gettext: Update to version 0.18.2.
[gnulib.git] / ChangeLog
1 2013-03-02  Bruno Haible  <bruno@clisp.org>
2
3         gettext: Update to version 0.18.2.
4         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
5         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
6                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
7
8 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9
10         regex: merge patches from libc
11
12         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13         * lib/regex_internal.h (__attribute__): Rename from __attribute.
14         All uses changed.
15         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
16         (re_string_wchar_at, re_string_elem_size_at):
17         Mark function as possibly unused.
18
19         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
20         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
21         elements compare against the byte sequence of it, not its name.
22
23 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
24
25         putenv: port better to native Windows
26         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
27         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
28         (_unsetenv): Use _putenv if available.
29         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
30         a bit less likely to cause damage.
31         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32         Fix the wrong value with SetEnvironmentVariable.
33         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
34         code better.
35
36 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37
38         regex: ignore old-style-definition warnings
39         * lib/regex.c: Add pragma to ignore these warnings.
40         Problem reported for GNU tar by Pavel Raiskup.
41
42 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43
44         getcwd: support coreutils better
45         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
46         but this might not be correct in coreutils, which disables
47         the raw decl checks.  Problem reported by Nagendra in
48         <http://bugs.gnu.org/10305#192>.
49         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
50         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51         Test the getcwd function, not any macro, since getcwd.c wants the
52         function.
53         * m4/getcwd.m4 (gl_FUNC_GETCWD):
54         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
55         compile, as might happen if there's a macro but no function.
56
57         strtod: support coreutils better
58         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
59         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
60         disables the raw decl checks.  This assumes there is an underlying
61         strtod, but that's a safe assumption these days.
62         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
63
64         mountlist: port to HP NonStop
65         Reported by Joachim Schmitz in
66         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
67         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
68         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
69
70 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
71
72         extern-inline: avoid compilation error with HP-UX cc
73         Reported by Richard Lloyd in
74         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
75         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
76         Suppress extern inline with HP-UX cc.  This should be safe,
77         though it may hurt performance.  Perhaps someone with some HP-UX
78         experience can come up with a higher-performance fix.
79
80 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81
82         putenv: fix heap corruption with mixed putenv/_putenv
83         Problem reported by Michael Goffioul in
84         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
85         * lib/putenv.c (putenv) [HAVE__PUTENV]:
86         Rely on _putenv to allocate the new environment.
87         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
88         * modules/putenv (configure.ac): Use it.
89
90 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
91
92         unsetenv etc.: port to Solaris 11 + GNU Emacs
93         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
94         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
95         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
96         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
97         idea but is too painful to fix right now), and without this gnulib
98         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
99         compiling unsetenv.c on Solaris 11.  Fix the problem for
100         unsetenv.c, and fix other similar occurrences.
101
102 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
103
104         secure_getenv: fix C++ declaration typo
105         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
106         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
107         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
108
109 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
110
111         careadlinkat: stop exporting careadlinkatcwd
112         Only Emacs used it directly, and Emacs no longer needs it.
113         * NEWS: Document this simplification.
114         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
115         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
116         for readlink.
117         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
118         Don't include stdlib.h; no longer needed.
119         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
120         * lib/relocwrapper.c: Adjust comment to match new dependencies.
121         * modules/areadlink (Depends-on): Add readlink.
122         (Maintainer): Add self.
123         * modules/careadlinkat (Depends-on): Remove readlink.
124
125         extensions: port better to HP-UX
126         This is merged from git Autoconf.
127         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
128         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
129         so that it's compatible with the value used when compiling.
130
131         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
132         Problem reported by Mats Erik Andersson in
133         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
134         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
135         openpty function exists, not merely when we intend to replace it.
136         This corrects the 2013-01-31 patch, which mistakenly defined
137         HAVE_OPENPTY even on hosts that lacked it.
138
139 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
140
141         secure_getenv: fix include typo
142         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
143
144         secure_getenv: port better to FreeBSD and Solaris
145         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
146         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
147         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
148         This works better on BSDish platforms.
149         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
150         Test for issetugid if __secure_getenv is missing.
151
152 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
153
154         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
155         Some of these changes are merged in from git Autoconf.
156         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
157         When deciding whether to define _XOPEN_SOURCE, inspect the
158         preprocessor macro __hpux instead of the more-heavyweight
159         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
160         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
161         as the key for __EXTENSIONS__.
162
163         unistd: avoid namespace pollution on non-glibc systems
164         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
165         This avoids namespace pollution on non-glibc systems, by causing
166         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
167         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
168         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
169
170 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
171
172         tmpdir: use secure_getenv
173         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
174         Define to secure_getenv, not getenv.
175         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
176         as that's now secure_getenv's job.
177         * modules/tmpdir (Depends-on): Add secure_getenv.
178
179         tempname: use secure_getenv
180         * lib/tempname.c (__secure_getenv) [!_LIBC]:
181         Define to secure_getenv, not getenv.
182         * modules/tempname (Depends-on):
183         Add secure_getenv.
184
185         secure_getenv: new module
186         * MODULES.html.sh (Extra functions based on ANSI C 89):
187         Add secure_getenv.
188         * doc/glibc-functions/secure_getenv.texi: New file.
189         * doc/gnulib.texi: Include it.
190         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
191         New files.
192         * lib/stdlib.in.h (secure_getenv): New decl.
193         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
194         * modules/stdlib (stdlib.h):
195         Add secure_getenv checks.
196
197 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
198
199         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
200         Reported for OS X 10.8.2 by Assaf Gordon in
201         <http://bugs.gnu.org/13516>.
202         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
203         !HAVE_OPENAT && !HAVE_FDOPENDIR.
204         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
205         so that they can be kept in sync more easily.  Avoid PATH_MAX
206         test on the Hurd.  Sync from test-getcwd.c for errno tests after
207         mkdir or chdir failure.
208         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
209         lib/getcwd.c.
210         (test_abort_bug): Do not test for the deep directory bug unless we
211         have openat support.  Avoid PATH_MAX test on the Hurd.
212
213         regex-tests, regex: fix bug: memset undeclared
214         * tests/test-regex.c: Don't include regex.h twice.  Include
215         string.h, to declare memset.  Christensen's report also mentioned
216         this issue.
217         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
218         test-regex.c, to avoid future problems like this.  Remove
219         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
220         twice.
221
222         regex-tests: fix link errors on older Solaris
223         These need to link with @LIBINTL@ to get libintl_gettext.
224         Problem reported by Tom G. Christensen in
225         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
226         * modules/regex-tests (test_regex_LDADD): New macro.
227
228 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
229
230         regex-tests: new module
231         * modules/regex-tests, tests/test-regex.c: New files.
232
233         regex: fix off-by-one error in configure test
234         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
235
236 2013-01-31  Eric Blake  <eblake@redhat.com>
237
238         regex: avoid infinite configure test
239         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
240
241 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
242
243         openpty: fix bug where HAVE_OPENPTY wasn't defined
244         See the thread starting at:
245         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
246         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
247         openpty function exists, not merely when we intend to replace it.
248
249 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
250
251         sys_time: port to Solaris 2.6
252         There is a circularity problem on Solaris 2.6, where <time.h> includes
253         <sys/time.h> for struct timespec.  The include nesting is gnulib
254         <time.h>, system <time.h>, gnulib <sys/time.h>, system
255         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
256         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
257         <sys/siginfo.h>; the last, innermost file needs struct
258         timestruc_t, which is defined in <sys/time.h>, which has not been
259         fully parsed.  Problem reported by Tom G. Christensen in
260         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
261         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
262         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
263         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
264         uses split double-inclusion guards.
265
266 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
267
268         regex: test for buffer overrun
269         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
270         for the just-fixed regex bug.
271
272 2013-01-29  Andreas Schwab  <schwab@suse.de>
273
274         regex: fix buffer overrun in regexp matcher [BZ #15078]
275         * lib/regexec.c (extend_buffers): Add parameter min_len.
276         (check_matching): Pass minimum needed length.
277         (clean_state_log_if_needed): Likewise.
278         (get_subexp): Likewise.
279
280 2013-01-28  Pádraig Brady  <P@draigBrady.com>
281
282         mountlist: don't consider "devtmpfs" as dummy
283         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
284         as there is storage associcated with it.
285
286 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
287
288         futimens-tests, utimens-tests: Depend on gettext.
289         This works around a problem introduced in my 2013-01-12 patch,
290         which added @LIBINTL@ to these modules.
291         * modules/futimens-tests (Depends-on):
292         * modules/utimens-tests (Depends-on): Add gettext.
293
294 2013-01-26  Eric Blake  <eblake@redhat.com>
295
296         test-getpeername: fix typo
297         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
298
299 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
300
301         bootstrap: remove the need for a sorted .gitignore file
302         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
303         rename to insert_if_absent(), so that we don't need or generate
304         a sorted .gitignore file.  We do require a .gitignore with no
305         existing duplicate entries and enforce that.
306         (sort_patterns): Remove this function as we now use the simpler
307         technigue of inserting blacklist entries at the top of the file,
308         assuming gnulib won't be inserting !whitelist entries.
309
310 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
311
312         readlinkat: don't depend on gl_FUNC_OPENAT
313         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
314         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
315         renameat.m4, symlinkat.m4; but one thing at a time.
316
317         statat: new module, split out from fstatat
318         GNU Emacs needs the POSIX-specified fstatat, but not the
319         gnulib-specified statat and lstat.  Split the latter two into a
320         new module 'statat'.
321         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
322         * lib/openat.h, lib/statat.c (STATAT_INLINE):
323         Rename from FSTATAT_INLINE. All uses changed.
324         * modules/fstatat (Files): Remove lib/statat.c.
325         (gl_MODULE_INDICATOR([fstatat])): Remove.
326         (lib_SOURCES): Remove.
327         (Maintainer): Add self.
328         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
329         * tests/test-fstatat.c (BASE): Don't define if already defined.
330         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
331
332 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
333
334         tests: don't assume fd 99 is closed
335         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
336         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
337         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
338         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
339         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
340         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
341         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
342         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
343         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
344         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
345         * tests/test-fwrite.c, tests/test-getpeername.c:
346         * tests/test-getsockname.c, tests/test-getsockopt.c:
347         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
348         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
349         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
350         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
351         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
352         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
353         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
354         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
355         * tests/test-unlinkat.c, tests/test-unlockpt.c:
356         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
357         Close file descriptor 99, instead of assuming it's already closed.
358
359 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
360
361         stpncpy: port to OS X 10.8
362         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
363         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
364
365 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
366
367         unistd: port to recent mingw
368         * lib/unistd.in.h: Remove special invocation convention for mingw,
369         which breaks for the latest mingw version.  See John W. Eaton in
370         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
371
372         largefile: port better to Mac OS X 10.5
373         This patch is backported from Autoconf git.
374         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
375         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
376         with ino_t size being different for configuration time versus
377         build/run time.  Problem reported by PHO in
378         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
379
380 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
381
382         doc: clarify -Werror
383         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
384         clarify that it's intended for developers, not for ordinary builds,
385         and mention --enable-gcc-warnings as one possible use.
386
387 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
388
389         stdint: fix build with Android's Bionic fox x86
390         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
391         was already included as _SSIZE_T_DEFINED_ might also be defined
392         in include/machine/_types.h, which is included by stdio.h
393
394 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
395
396         net_if-tests: port to Solaris 7 + GCC 3.4.6
397         Problem reported by Tom G. Christensen in
398         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
399         * tests/test-net_if.c (ni): Move to next the code that uses it,
400         so that it's declared only if needed.
401
402 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
403
404         net_if-tests: port to older Solaris
405         Problem reported by Tom G. Christensen in
406         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
407         * modules/net_if-tests (NET_IF_LIB): New substitution.
408         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
409         (HAVE_IF_NAMEINDEX): New C macro.
410         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
411
412         system-quote-tests: port to older Solaris
413         Problem reported by Tom G. Christensen in
414         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
415         * tests/test-system-quote-child.c (fopen, fread): Undef.
416
417         c-xvasprintf etc.: fix link errors on older Solaris
418         These need to link with @LIBINTL@ to get libintl_gettext.
419         Problem reported by Tom G. Christensen in
420         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
421         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
422         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
423         * modules/futimens-tests (test_futimens_LDADD):
424         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
425
426 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
427
428         locale: port to Solaris 2.6 and 7 + GNU gettext
429         * lib/locale.in.h: Just include_next <locale.h> when
430         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
431         when combining the localename module with GNU gettext 0.18.2.
432         Problem reported by Tom G. Christensen in
433         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
434
435 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
436
437         stdlib: port to Solaris 2.6
438         Also, the code worked on Solaris 7 through 9 only by accident.
439         Problem reported by Tom G. Christensen in
440         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
441         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
442         simply include the system stdlib.h.
443         * lib/getopt.in.h (__need_system_stdlib_h):
444         * lib/pthread.in.h (__need_system_stdlib_h):
445         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
446         Define when including <stdlib.h>, to avoid problems at least for
447         the pthread case on Solaris 2.6 and 7.  These .h files can get by
448         with the system stdlib.h.
449
450 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
451
452         doc: update main copyright year
453         * doc/gnulib.texi: Update copyright date.
454
455         doc: improve ISO 8601 discussion
456         * doc/parse-datetime.texi (Combined date and time of day items):
457         Specify more carefully what formats are supported and what is
458         done with excess precision.
459
460 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
461
462         doc: avoid small caps
463         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
464         they're more trouble than they're worth.  Suggested by Karl Berry
465         in <http://bugs.gnu.org/13360>.
466
467         regex: conform to strict C
468         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
469         From Aharon Robbins.
470
471         gnulib-tool: fix incompatibility with autopoint 0.18.2
472         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
473         Problem reported by Tom G. Christensen in
474         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
475
476 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
477
478         fprintftime: bring back and reword fwrite comment
479         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
480
481         stdio: remove now-unnecessary stdio.c
482         Since stdio.in.h no longer uses inline functions, we no longer
483         need to compile the extern versions.
484         * lib/stdio.c: Remove.
485         * modules/stdio (Files): Remove lib/stdio.c.
486         (lib_SOURCES): Remove.
487
488         unicodeio: depend on stdio, not ignore-value
489         * lib/unicodeio.c: Do not include ignore-value.h.
490         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
491         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
492
493         fprintftime: depend on stdio, not ignore-value
494         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
495         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
496         since the stdio module arranges to silence that warning now.
497         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
498
499 2012-10-04  Simon Josefsson  <simon@josefsson.org>
500
501         stdint-tests: Fix expanded-before-required-warning.
502         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
503
504 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
505
506         fwrite: silence __wur only for older glibc versions
507         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
508         This will help us remove this workaround some time in the far future.
509
510 2013-01-03  Eric Blake  <eblake@redhat.com>
511
512         fwrite: silence __wur without using inline
513         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
514         just gcc, and in a way that avoids inline issues.
515         * modules/stdio (Depends-on): Drop extern-inline.
516
517 2013-01-03  Jim Meyering  <jim@meyering.net>
518
519         update-copyright: avoid copyright notice date corruption
520         Given a sequence of copyright year numbers in which the final
521         one was a two-digit number that happened to be a substring of
522         a preceding four-digit year number, we would mistakenly update
523         the substring (from two- to four-digit) rather than the two-digit
524         number at the end, which, combined with the addition of the current
525         4-digit year number would yield two 5-digit year numbers, e.g.,
526         here, it would convert the first "99" to "1999, 2013" rather than
527         the final one:
528           1991, 99
529           11999, 20131, 1999
530         * build-aux/update-copyright: Tighten a regexp.
531         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
532         Reported by Joseph Myers in
533         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
534
535 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
536
537         regex: omit needless signed-pointer casts
538         * lib/regcomp.c (build_charclass, build_charclass_op):
539         Use char *, not unsigned char *, for class name and extra.
540         The char values are always nonnegative so there's no need to
541         insist on unsigned char * here, and using char * removes the need
542         for casts.  Reported by Aharon Robbins in
543         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
544
545         regex: support Gawk, which never uses alloca
546         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
547         Do not include in this case.  Gawk doesn't supply a substitute
548         alloca.h and doesn't need one.
549
550         regex: port __libc_lock_define usage to C89
551         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
552         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
553         does not conform to C89, as it has an empty macro argument.
554         Reported by Aharon Robbins in
555         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
556
557 2013-01-01  Eric Blake  <eblake@redhat.com>
558
559         maint: update all copyright year number ranges
560         Run "make update-copyright".
561
562         version-etc: bump copyright year reported in --version
563         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
564
565 2012-12-31  Eric Blake  <eblake@redhat.com>
566
567         sigprocmask-tests: skip test if pid is unexpectedly large
568         * tests/test-sigprocmask.c (main): Add range check.
569
570         git-version-gen: avoid test -z portability glitch
571         * build-aux/git-version-gen: Prefer portable test spelling, since
572         git-version-gen is run on more than just developer machines.
573
574 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
575
576         git-version-gen: add --fallback option to use if git is not present
577         * build-aux/git-version-gen: Add support for the new option --fallback,
578         which comes into play when there is no $tarball_version_file and
579         git is not working.
580         (scriptversion): Update.
581
582         maint.mk: handle missing git with more grace
583         * top/maint.mk (no-submodule-changes, public-submodule-commit):
584         Quietly proceed if git is not present.
585
586 2012-12-31  Eric Blake  <eblake@redhat.com>
587
588         dup2: work around cygwin bug
589         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
590         * lib/dup2.c (rpl_dup2): Work around it.
591         * doc/posix-functions/dup2.texi (dup2): Document it.
592
593 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
594
595         regex: remove unnecessary dependency on localcharset.h
596         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
597         hasn't been needed for years.
598         * modules/regex (Depends-on): Remove localcharset.
599
600         regex: revert single-byte change
601         * lib/regexec.c (check_node_accept_bytes): Revert previous change
602         to this function.  This was alredy fixed in a different way, at
603         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
604         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
605         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
606
607         regex: simplify based on Gawk version
608         * lib/regex_internal.c (re_dfa_add_node): Simplify.
609         Reported by Aharon Robbins in
610         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
611
612 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
613
614         regex: check that pattern char is single-byte
615         Reported by Aharon Robbins in
616         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
617         * lib/regexec.c (check_node_accept_bytes):
618         Return 0 if the pattern string has a multibyte character here.
619
620         regex: implement rational ranges
621         Reported by Aharon Robbins in
622         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
623         * lib/regcomp.c (build_range_exp) [!_LIBC]:
624         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
625         Implement rational ranges.
626
627         regex: avoid redefining __wctype
628         Reported by Aharon Robbins in
629         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
630         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
631         #undef before defining.
632
633         regex: port to hosts where malloc (0) == NULL
634         Reported by Aharon Robbins in
635         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
636         * lib/regex_internal.c (re_node_set_alloc):
637         Don't assume that malloc (0) yields nonnull.
638         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
639         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
640         * modules/regex (Files): Add m4/eealloc.m4.
641
642         regex: port to C89
643         Reported by Aharon Robbins in
644         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
645         * lib/regcomp.c (init_word_char): Declaration before statement.
646
647         regex: merge glibc changes
648         Also, copy the license wording from glibc.  This simplifies
649         merging changes.  gnulib-tool will change the wording to GPL as
650         appropriate, when importing it to other packages.  The only
651         glibc change made since the last merge, which needs merging, is:
652         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
653         * lib/regex_internal.h (gettext): Remove use of INTUSE.
654
655         * users.txt: Add Emacs.
656
657         doc: omit mention of version when not needed
658         * doc/gnulib-intro.texi (Portability and Application Code):
659         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
660         Don't mention particular dates or versions when not necessary, so
661         that the documentation won't go out of date so quickly.
662
663         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
664
665 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
666
667         bootstrap: pass --force to autoreconf.
668         * build-aux/bootstrap (AUTORECONFFLAGS): New.
669         Add "--force" so that Automake's ylwrap and other such tools
670         be updated at each bootstrap invocation.
671         Use it.
672
673 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
674
675         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
676         The earlier patch forgot to update one of the #if conditions, causing
677         a problem on Debian testing i386 reported by Mats Erik Andersson
678         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
679         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
680         (__argp_fmtstream_puts, argp_fmtstream_puts)
681         (__argp_fmtstream_write, argp_fmtstream_write)
682         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
683
684         * doc/gnulib-readme.texi: Minor fixups.
685         (Portability guidelines): Modernize URLs.  Remove some repetition.
686         (Indent with spaces not TABs): Reword to avoid too-long lines.
687         Remove some '@ifset standalone' stuff that isn't used.
688
689         * doc/gnulib-readme.texi (Portability guidelines):
690         ctype.h, not ctime.h.
691
692         Correct name of POSIX.1-2001.
693         * doc/posix-functions/fgetc.texi (fgetc):
694         * doc/posix-functions/fgets.texi (fgets):
695         * doc/posix-functions/fread.texi (fread):
696         * doc/posix-functions/fscanf.texi (fscanf):
697         * doc/posix-functions/getc.texi (getc):
698         * doc/posix-functions/getchar.texi (getchar):
699         * doc/posix-functions/scanf.texi (scanf):
700         POSIX.1-2001, not POSIX-2001.
701
702         doc: move README into manual
703         * README: Move contents to new file doc/gnulib-readme.texi.
704         Replace with a one-line summary.
705         * doc/gnulib.texi (Brief Overview): New section,
706         with old intro preface.  Include gnulib-readme.texi for contents.
707         (Philosophy): Rename from "Introduction", since this
708         section no longer introduces the rest.  Write a new preface.
709         * doc/gnulib-readme.texi: New file, with the old contents of
710         README texinfo-ized.  This way, the README info appears
711         in the online and printed manual.
712
713 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
714
715         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
716         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
717         c_vasprintf() prototype.
718
719 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
720
721         c-vasprintf: Fix "empty declaration" warning reported by GCC.
722         * lib/c-vasprintf.h: Remove stray semicolon.
723
724 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
725
726         gettext: avoid obsolete macro AM_PROG_MKDIR_P
727         It is obsolete and is planned to be removed from Automake 1.14; see
728         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
729         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
730         (installdirs-data, installdirs-data-yes):
731         Use $(MKDIR_P), not $(mkdir_p).
732         * m4/intl.m4 (AM_INTL_SUBDIR):
733         * m4/po.m4 (AM_PO_SUBDIRS):
734         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
735
736 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
737
738         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
739         On this platform, we are not optimizing but we are using
740         the substitute for extern inlines, so compile as if
741         C99-style extern inline, or a substitute, is available.
742         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
743         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
744         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
745         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
746         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
747         Declare as ARGP_FS_EI, not as extern.
748         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
749         (__option_is_short, _option_is_end, __option_is_end)
750         [!_LIBC && __USE_EXTERN_INLINES]:
751         Declare as ARGP_EI, not as extern.
752
753 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
754
755         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
756         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
757         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
758         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
759         ...), as the latter is fatal with older Autoconfs.
760         Problem reported and fix suggested by Eric Blake in thread starting at
761         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
762
763 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
764
765         AC_PROG_MKDIR_P: don't workaround if not buggy
766         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
767         Define only for Autoconf versions before 2.62.
768         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
769         undocumented m4_PACKAGE_VERSION, for consistency with the
770         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
771         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
772         was introduced in 2.62.
773
774 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
775
776         New 'c-*printf' modules for formatted output in C locale.
777
778         New module 'c-vasnprintf'.
779         * modules/c-vasnprintf: New file.
780         * lib/c-vasnprintf.c: New file.
781         * lib/c-vasnprintf.h: New file.
782
783         New module 'c-snprintf'.
784         * modules/c-snprintf: New file.
785         * modules/c-snprintf-tests: New file.
786         * lib/c-snprintf.c: New file.
787         * lib/c-snprintf.h: New file.
788         * tests/test-c-snprintf.c: New file.
789         * tests/test-c-snprintf.sh: New file.
790
791         New module 'c-vsnprintf'.
792         * modules/c-vsnprintf: New file.
793         * modules/c-vsnprintf-tests: New file.
794         * lib/c-vsnprintf.c: New file.
795         * lib/c-vsnprintf.h: New file.
796         * tests/test-c-vsnprintf.c: New file.
797         * tests/test-c-vsnprintf.sh: New file.
798
799         New module 'c-vasprintf'.
800         * modules/c-vasprintf: New file.
801         * modules/c-vasprintf-tests: New file.
802         * lib/c-asprintf.c: New file.
803         * lib/c-vasprintf.c: New file.
804         * lib/c-vasprintf.h: New file.
805         * tests/test-c-vasprintf.c  +: New file.
806         * tests/test-c-vasprintf.sh: New file.
807
808         New module 'c-xvasprintf'.
809         * modules/c-xvasprintf: New file.
810         * modules/c-xvasprintf-tests: New file.
811         * lib/c-xasprintf.c: New file.
812         * lib/c-xvasprintf.c: New file.
813         * lib/c-xvasprintf.h: New file.
814         * tests/test-c-xvasprintf.c: New file.
815         * tests/test-c-xvasprintf.sh: New file.
816
817 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
818
819         argp: better 'inline'
820         Use extern-inline module to declare extern inline functions.
821         This avoids some bogus warning diagnostics.  Problem discovered
822         when modifying GNU tar to use the manywarnings module.
823         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
824         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
825         Define based on extern-inline.
826         * modules/argp (Depends-on): Add extern-inline.
827
828 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
829
830         filemode, sys_stat: Handle MPX files a la AIX.
831         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
832         * lib/sys_stat.in.h (S_ISMPX): New macro.
833         * tests/test-sys_stat.c: Add tests for MPX files.
834
835 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
836
837         x-to-1: honor $PERL
838         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
839         a chance to use his preferred version of Perl.  This is typically
840         required by Darwin users whose default /usr/bin/perl does not have all
841         the libraries required by help2man, and who need to use their MacPorts
842         installation of Perl instead.
843
844 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
845
846         gnu-web-doc-update: add all the new files, even in new directories
847         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
848         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
849         Use it.
850         (main): Don't use cvsutils to get the list of unknown files,
851         just add all the existing files and directories.
852
853 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
854
855         gnu-web-doc-update: improve --help
856         * build-aux/gnu-web-doc-update: Move comments into --help.
857
858 2012-12-07  Eric Wong  <normalperson@yhbt.net>
859
860         mountlist: recognize more "dummy" file systems
861         * lib/mountlist.c (ME_DUMMY_0):
862         Add these dummy FS names to the list:
863         - "debugfs" virtual filesystem for kernel debugging
864         - "devpts" PTY slave filesystem
865         - "devtmpfs" device filesystem on top of tmpfs/ramfs
866         - "fusectl" control filesystem for FUSE
867         - "mqueue" enumerates POSIX message queues
868         - "rpc_pipefs" kernel <-> userspace bridge for NFS
869         - "sysfs" is for exporting kernel objects
870         - "devfs" device filesystem for Linux 2.4 and FreeBSD
871
872 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
873
874         extern-inline: avoid incompatibility with Darwin Libc
875         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
876         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
877         Problem reported by Akim Demaille in
878         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
879
880 2012-12-11  Simon Josefsson  <simon@josefsson.org>
881
882         gnupload: Work with GnuPG using gpg-agent (for smartcards).
883         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
884         let it handle password prompting.
885
886 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
887
888         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
889         * lib/canonicalize.c (canonicalize_filename_mode):
890         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
891         fetching the current directory.  Don't overrun the beginning of
892         rpath if there's no slashes after the MS-Windows drive letter.
893
894 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
895
896         maint.mk: avoid extra forks
897         * top/maint.mk (_cfg_mk): The GNU make manual documents that
898         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
899         So use that instead of "$(shell test -f FILE && echo FILE)".
900
901 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
902
903         vasnprintf: fix ASCII_ONLY typo
904         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
905         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
906         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
907         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
908         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
909
910 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
911
912         list, oset, xlist, xoset: fix extern inline issue with C99
913         This was introduced by my recent changes for 'inline'.
914         Problem reported for gettext by Daiki Ueno in
915         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
916         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
917         (gl_list_nx_create, gl_list_size, gl_list_node_value)
918         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
919         (gl_list_previous_node, gl_list_get_at)
920         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
921         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
922         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
923         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
924         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
925         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
926         (gl_list_iterator_free, gl_sortedlist_search)
927         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
928         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
929         (gl_sortedlist_remove):
930         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
931         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
932         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
933         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
934         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
935         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
936         (gl_list_add_at, gl_sortedlist_add):
937         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
938         Wrap these extern decls inside "#if 0", because they are implemented
939         as inline functions, and extern inline is not what's wanted here.
940         It would simplify these .h files to remove the extern decls entirely,
941         although a downside would be less-clear separation between
942         specification and implementation.
943
944 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
945
946         sys_stat: no 'static inline'
947         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
948         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
949
950         extern-inline: no 'static inline'
951         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
952         Do not require AC_C_INLINE.
953         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
954         'static inline', for older compilers.
955
956         snippet/warn-on-use: no 'static inline'
957         * build-aux/snippet/warn-on-use.h:
958         Remove unnecessary 'inline' in comment.
959
960         rbtree-list, rbtreehash-list: no 'static inline'
961         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
962         * lib/gl_anytree_list2.h (node_at):
963         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
964         (gl_oset_first, add_nodes_to_buckets):
965         Now static, not static inline.
966
967         regex: no 'static inline'
968         * lib/regex_internal.c (calc_state_hash):
969         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
970         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
971         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
972         Now static, not static inline.
973         (inline) [__GNUC__ < 3 && _LIBC]:
974         Remove macro; no longer needed.
975
976         xvasprintf: no 'static inline'
977         * lib/xvasprintf.c (xstrcat):
978         Now static, not static inline.
979         * m4/xvasprintf.m4 (gl_XVASPRINTF):
980         Do not require AC_C_INLINE.
981
982         parse-datetime, parse-duration: no 'static inline'
983         * lib/parse-datetime.y (to_uchar):
984         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
985         (scale_n_add):
986         Now static, not static inline.
987         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
988         * modules/parse-duration (configure.ac):
989         Do not require AC_C_INLINE.
990
991         getaddrinfo: no 'static inline'
992         * lib/getaddrinfo.c (validate_family):
993         Now static, not static inline.
994         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
995         Do not require AC_C_INLINE.
996
997         ftruncate, fts, lstat, openat, raise: no 'static inline'
998         * lib/ftruncate.c (chsize_nothrow):
999         * lib/fts.c (opendirat, diropen):
1000         * lib/lstat.c (orig_lstat):
1001         * lib/openat.c (orig_openat):
1002         * lib/raise.c (raise_nothrow):
1003         Now static, not static inline.
1004         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1005         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1006         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1007         * m4/openat.m4 (gl_PREREQ_OPENAT):
1008         * m4/raise.m4 (gl_PREREQ_RAISE):
1009         Do not require AC_C_INLINE.
1010
1011         fflush, stat: no 'static inline'
1012         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1013         (clear_ungetc_buffer, disable_seek_optimization)
1014         (restore_seek_optimization, update_fpos_cache):
1015         * lib/stat.c (orig_stat):
1016         Now static, not static inline.
1017         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1018         (update_fpos_cache):
1019         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1020         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1021         * m4/stat.m4 (gl_PREREQ_STAT):
1022         Do not require AC_C_INLINE.
1023
1024         error, filevercmp: no 'static inline'
1025         * lib/error.c (is_open, flush_stdout):
1026         * lib/filevercmp.c (order):
1027         Now static, not static inline.
1028         * m4/error.m4 (gl_PREREQ_ERROR):
1029         * modules/filevercmp (configure.ac):
1030         Do not require AC_C_INLINE.
1031
1032         dup, execute, fatal-signal, etc.: no 'static inline'
1033         * lib/dup.c (dup_nothrow):
1034         * lib/execute.c (nonintr_close, nonintr_open):
1035         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1036         * lib/fopen.c (orig_fopen):
1037         * lib/freadseek.c (freadptrinc):
1038         * lib/freopen.c (orig_freopen):
1039         * lib/fstat.c (orig_fstat, fstat_nothrow):
1040         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1041         (get_rusage_as_via_iterator):
1042         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1043         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1044         * lib/isatty.c (_isatty_nothrow):
1045         * lib/open.c (orig_open):
1046         * lib/read.c (read_nothrow):
1047         * lib/sigprocmask.c (signal_nothrow):
1048         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1049         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1050         * lib/wait-process.c (unregister_slave_subprocess):
1051         * lib/write.c (write_nothrow):
1052         Now static, not static inline.
1053         * lib/spawn-pipe.c (nonintr_open): Define only if
1054         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1055         * m4/dup.m4 (gl_PREREQ_DUP):
1056         * m4/execute.m4 (gl_EXECUTE):
1057         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1058         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1059         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1060         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1061         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1062         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1063         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1064         * m4/open.m4 (gl_PREREQ_OPEN):
1065         * m4/read.m4 (gl_PREREQ_READ):
1066         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1067         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1069         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1070         * m4/write.m4 (gl_PREREQ_WRITE):
1071         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1072         Do not require AC_C_INLINE.
1073
1074         c-strtod, memcoll, readutmp: no 'static inline'
1075         * lib/c-strtod.c (c_locale):
1076         * lib/memcoll.c (strcoll_loop):
1077         * lib/readutmp.c (desirable_utmp_entry):
1078         Now static, not static inline.
1079         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1080         * m4/memcoll.m4 (gl_MEMCOLL):
1081         * m4/readutmp.m4 (gl_READUTMP):
1082         Do not require AC_C_INLINE.
1083
1084         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1085         * lib/arctwo.c (to_uchar):
1086         * lib/md4.c (set_uint32):
1087         * lib/md5.c (set_uint32):
1088         * lib/sha1.c (set_uint32):
1089         * lib/sha256.c (set_uint32):
1090         * lib/sha512.c (set_uint64):
1091         Now static, not static inline.  This is a bit simpler, and doesn't
1092         affect performance with GCC and default optimization.
1093         * m4/arctwo.m4 (gl_ARCTWO):
1094         * m4/md4.m4 (gl_MD4):
1095         * m4/md5.m4 (gl_MD5):
1096         * m4/sha1.m4 (gl_SHA1):
1097         * m4/sha256.m4 (gl_SHA256):
1098         * m4/sha512.m4 (gl_SHA512):
1099         Do not require AC_C_INLINE.
1100
1101         cond, lock, thread: better 'inline'
1102         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1103         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1104         New macros.  Use them instead of static inline, for header functions.
1105         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1106         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1107         * lib/glthread/lock.c (gl_waitqueue_init)
1108         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1109         * lib/glthread/thread.c (get_current_thread_handle):
1110         Change 'static inline' to 'inline'.
1111         * lib/glthread/cond.h, lib/glthread/thread.h:
1112         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1113         * m4/cond.m4 (gl_COND):
1114         * m4/lock.m4 (gl_PREREQ_LOCK):
1115         * m4/thread.m4 (gl_THREAD):
1116         Do not require AC_C_INLINE.
1117         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1118
1119         chdir-long, cycle-check, savewd: better 'inline'
1120         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1121         (find_non_slash):
1122         * lib/cycle-check.c (is_zero_or_power_of_two):
1123         * lib/savewd.c (savewd_delegating):
1124         Change 'static inline' to 'inline'.
1125         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1126         Replace all remaining uses of 'static inline' with it.
1127         * lib/savewd.h:
1128         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1129         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1130         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1131         * m4/savewd.m4 (gl_SAVEWD):
1132         Do not require AC_C_INLINE.
1133         * modules/savewd (Depends-on): Add extern-inline.
1134
1135         base32, base64: no need for 'inline'
1136         * lib/base32.c (to_uchar, get_8, decode_8):
1137         * lib/base64.c (to_uchar, get_4, decode_4):
1138         Change 'static inline' to 'inline'.
1139         * m4/base32.m4 (gl_PREREQ_BASE32):
1140         * m4/base64.m4 (gl_PREREQ_BASE64):
1141         Do not require AC_C_INLINE.
1142
1143         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1144         * lib/gl_array_oset.c (gl_array_nx_add_at):
1145         (gl_array_remove_at):
1146         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1147         (add_to_bucket, remove_from_bucket):
1148         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1149         Change 'static inline' to 'static', as it's simpler to omit
1150         'inline' unless there's a significant performance advantage.
1151
1152         list, oset, xlist, xoset, xsublist: simplify via extern inline
1153         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1154         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1155         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1156         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1157         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1158         New macro.  Replace all uses of 'static inline' with it.
1159         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1160         instead of as macros FOO that are defined to static inline
1161         functions FOO_inline.
1162         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1163         * lib/gl_xsublist.c:
1164         Reimplement from scratch, by defining the corresponding *_INLINE
1165         macro and including the corresponding .h file.  This is simpler.
1166         * modules/list, modules/oset, modules/xlist, modules/xoset:
1167         (Files): Remove m4/gl_list.m4.
1168         (configure.ac): Remove gl_LIST.
1169         * m4/gl_list.m4: Remove.
1170         * modules/list, modules/oset, modules/xlist, modules/xoset:
1171         * modules/xsublist:
1172         (Depends-on): Depend on extern-inline, not inline.
1173
1174         xalloc: better 'inline'
1175         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1176         New macro.  Replace all uses of 'static inline' with it.
1177         (static_inline): Remove.
1178         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1179         Let 'extern inline' do the work automatically, instead of doing
1180         it by hand.
1181         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1182         Remove.  All uses removed.
1183         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1184
1185         gethrxtime: better 'inline'
1186         * lib/xtime.c: New file.
1187         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1188         * lib/xtime.h (XTIME_INCLUDE):
1189         New macros.  Replace all uses of 'static inline' with them.
1190         * lib/gethrxtime.c (gethrxtime): Define only if
1191         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1192         this source file is now always compiled, because of the extern inline.
1193         * lib/gethrxtime.h, lib/xtime.h:
1194         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1195         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1196         if gethrtime works, as they're not needed in that case.
1197         (gl_XTIME): Do not require AC_C_INLINE.
1198         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1199         compiled now.  Move the check into gl_GETHRXTIME.
1200         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1201         (Depends-on): Add extern-inline.
1202         (configure.ac): gethrxtime is always compiled now.
1203         (lib_SOURCES): Add gethrxtime.c.
1204
1205         wctype-h: better 'inline'
1206         * lib/wctype-h.c: New file.
1207         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1208         New macro.  Replace all uses of 'static inline' with it.
1209         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1210         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1211         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1212         (Depends-on): Add extern-inline.
1213
1214         unistd: better 'inline'
1215         * lib/unistd.c: New file.
1216         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1217         New macro.  Replace all uses of 'static inline' with it.
1218         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1219         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1220         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1221         (Depends-on): Add extern-inline.
1222
1223         sys_socket: better 'inline'
1224         * lib/sys_socket.c: New file.
1225         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1226         New macro.  Replace all uses of 'static inline' with it.
1227         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1228         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1229         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1230         (Depends-on): Add extern-inline.
1231
1232         stdio: better 'inline'
1233         * lib/stdio.c: New file.
1234         * lib/stdio.in.h (_GL_STDIO_INLINE):
1235         New macro.  Replace all uses of 'static inline' with it.
1236         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1237         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1238         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1239         (Depends-on): Add extern-inline.
1240
1241         sigaction: better 'inline'
1242         * lib/sig-handler.c: New file.
1243         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1244         New macro.  Replace all uses of 'static inline' with it.
1245         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1246         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1247         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1248         (Depends-on): Add extern-inline.
1249
1250         selinux-h: better 'inline'
1251         * lib/se-context.c, lib/se-selinux.c: New files.
1252         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1253         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1254         New macro.  Replace all uses of 'static inline' with it.
1255         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1256         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1257         New macro.  Replace all uses of 'static inline' with it.
1258         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1259         * modules/selinux-h (Files, lib_SOURCES):
1260         Add lib/se-context.c, lib/se-selinux.c.
1261         (Depends-on): Add extern-inline.
1262         (configure.ac): Do not require AC_C_INLINE.
1263
1264         pthread: better 'inline'
1265         * lib/pthread.c: New file.
1266         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1267         New macro.  Replace all uses of 'static inline' with it.
1268         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1269         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1270         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1271         * modules/pthread (Files): Add lib/pthread.c.
1272         (Depends-on): Add extern-inline.
1273
1274         math: better 'inline'
1275         * lib/math.c: New file.
1276         * lib/math.in.h (_GL_MATH_INLINE):
1277         New macro.  Replace all uses of 'static inline' with it.
1278         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1279         * m4/math_h.m4 (gl_MATH_H):
1280         Do not require AC_C_INLINE.
1281         * modules/math (Files, lib_SOURCES):
1282         Add lib/math.c.
1283         (Depends-on): Add extern-inline.
1284
1285         count-one-bits: better 'inline'
1286         * lib/count-one-bits.c: New file.
1287         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1288         New macro.  Replace all uses of 'static inline' with it.
1289         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1290         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1291         Do not require AC_C_INLINE.
1292         * modules/count-one-bits (Files, lib_SOURCES):
1293         Add lib/count-one-bits.c.
1294         (Depends-on): Add extern-inline.
1295
1296         count-leading-zeros: better 'inline'
1297         * lib/count-leading-zeros.c: New file.
1298         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1299         New macro.  Replace all uses of 'static inline' with it.
1300         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1301         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1302         Do not require AC_C_INLINE.
1303         * modules/count-leading-zeros (Files, lib_SOURCES):
1304         Add lib/count-leading-zeros.c.
1305         (Depends-on): Add extern-inline.
1306
1307         bitrotate: better 'inline'
1308         * lib/bitrotate.c: New file.
1309         * lib/bitrotate.h (BITROTATE_INLINE):
1310         New macros.
1311         Replace all uses of 'static inline' with them.
1312         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1313         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1314         (Depends-on): Add extern-inline.
1315         (configure.ac): Do not require AC_C_INLINE.
1316
1317 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1318
1319         maint.mk: avoid gratuitous failure
1320         Reported by Stefano Lattarini in
1321         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1322         * top/maint.mk (public-submodule-commit): Quote more safely.
1323
1324 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1325
1326         canonicalize, canonicalize-lgpl: support MS-Windows file names
1327         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1328         for test cases, which it'd be nice to add at some point.
1329         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1330         * lib/canonicalize.c (canonicalize_filename_mode):
1331         * lib/canonicalize-lgpl.c (__realpath):
1332         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1333         slash is at the beginning of the file name.  Use ISSLASH, instead
1334         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1335         the first character with '/'.  Test for
1336         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1337         with a drive letter.
1338         * lib/canonicalize.c (SLASHES): New macro.
1339         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1340
1341 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1342
1343         fts: introduce FTS_VERBATIM
1344         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1345         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1346         * lib/fts.c (fts_open): Honor it.
1347
1348 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1349
1350         getlogin-tests: allow errno == ENXIO
1351         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1352         with errno == ENXIO (No controlling tty).
1353         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1354         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1355         with errno == ENOENT.  This was reported to happen in various
1356         situations on GNU/Linux.
1357
1358 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1359
1360         getlogin-tests: allow errno == ENOENT
1361         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1362         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1363         when running a test in an Emacs shell buffer.
1364
1365 2012-11-08  Jim Meyering  <jim@meyering.net>
1366
1367         tests/nap.h: avoid warning about unused variable
1368         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1369
1370         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1371         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1372         white space before each of the special-cased file names, to avoid
1373         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1374         in http://bugs.gnu.org/12830.
1375
1376 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1377
1378         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1379         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1380         fails with errno == EBADF when fd is opened with O_PATH.
1381         Reported by Jim Meyering in
1382         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1383         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1384         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1385
1386 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1387
1388         test-utimens: speed up by taking shorter naps
1389         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1390         New functions.
1391         (nap): Use them, to do a better job of guessing the delay.
1392         On Fedora 17 with ext4 atop md atop hard disks, this made
1393         test-utimens run 10x faster, because the test napped for
1394         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1395         <http://bugs.gnu.org/12820#11>.
1396
1397 2012-11-07  Jim Meyering  <jim@meyering.net>
1398
1399         mountlist.c: fix a compilation failure
1400         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1401         I introduced while transforming commit v0.0-7683-g613bcb6
1402
1403 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1404
1405         errno: port to LynxOS 178 2.2.2
1406         Problem reported by Joel Brobecker in
1407         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1408         * doc/posix-headers/errno.texi (errno.h): Document this.
1409         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1410         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1411         Supply a string for EILSEQ.
1412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1413
1414 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1415
1416         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1417         Linux kernel 2.6.39 introduced O_PATH (see
1418         <http://lwn.net/Articles/433854/>) and this is a better fallback
1419         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1420         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1421         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1422         * lib/fcntl.in.h (O_ACCMODE):
1423         * tests/test-fcntl-h.c (main):
1424         Do not reject O_ACCMODE merely because it has more than the
1425         minimal number of bits, as POSIX allows extensions here.
1426
1427 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1428
1429         mountlist: do not classify a bind-mounted dir entry as "dummy"
1430         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1431         the "none"-testing clause.
1432         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1433         exception for bind-mounted directories.
1434
1435 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1436
1437         quote: provide a means to escape strings with nul characters
1438         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1439         (quote, quote_n): Rename formal arguments for consistency with
1440         quotearg.
1441
1442 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1443
1444         test-raise: don't assume 199 is an invalid signal
1445         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1446
1447         sh-quote-tests: port to Solaris 9
1448         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1449         Problem reported by Dagobert Michelsen in
1450         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1451
1452 2012-10-28  Jim Meyering  <jim@meyering.net>
1453
1454         maint.mk: rename a new configurable variable
1455         * top/maint.mk (_gl_translatable_string_re): Rename from
1456         translation-markers: _gl_ prefix to insulate from user Makefile code,
1457         and the _re suffix to inform that it's a regular expression.
1458
1459 2012-10-26  Eric Blake  <eblake@redhat.com>
1460
1461         maint.mk: let packages tweak sc_po_check pattern
1462         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1463         finding files with other translation markers.
1464
1465 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         euidaccess: speed up 'configure' on GNU hosts
1468         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1469         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1470         it's needed only in this case.  Use AC_CHECK_DECLS, not
1471         AC_CHECK_DECLS_ONCE.
1472         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1473         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1474
1475         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1476
1477 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1478
1479         fchmodat, fchownat, fstatat: port to non-inlining compilers
1480         Problem reported for FreeBSD 9 by Jim Meyering in
1481         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1482         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1483         New files, which define FCHMODAT_INLINE etc.
1484         * lib/fchmodat.c (FCHMODAT_INLINE):
1485         * lib/fchownat.c (FCHOWNAT_INLINE):
1486         * lib/fstatat.c (FSTATAT_INLINE):
1487         Remove, as chmodat.c etc. now do this.
1488         * modules/fchmodat (Files): Add lib/chmodat.c.
1489         * modules/fchownat (Files): Add lib/chownat.c.
1490         * modules/fstatat (Files): Add lib/statat.c.
1491
1492 2012-10-15  Jim Meyering  <jim@meyering.net>
1493
1494         fchmodat.c, fchownat.c: compile-impeding typos
1495         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1496         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1497         Introduced in commit v0.0-7636-gd202279.
1498
1499 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1500
1501         fcntl-h: support GNU flags like O_IGNORE_CTTY
1502         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1503         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1504         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1505         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1506         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1507         Define to 0 if not already defined.
1508         * tests/test-fcntl-h.c: Test these new flags.
1509
1510 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1511
1512         faccessat, etc.: support AT_FDCWD-only use
1513         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1514         this function only if its first argument is AT_FDCWD.
1515         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1516         values other than AT_FDCWD, so it doesn't want all the openat
1517         machinery with fchdir etc.
1518         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1519         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1520         * modules/unlinkat (Files):
1521         Remove lib/openat-priv.h, as at-internal supplies this file.
1522         Removing this file here allows us to support programs like Emacs
1523         that avoid at-internal.
1524
1525         faccessat: speed up 'configure' on mainstream hosts
1526         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1527         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1528         since it's only on unusual platforms that we need to check for
1529         'access', and it's better not to slow 'configure' down on all
1530         platforms.
1531
1532         faccessat: port to Solaris 10
1533         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1534         Needed on Solaris 10, which doesn't have AT_EACCESS,
1535         so we need the Gnulib fcntl.h, which defines it.
1536
1537 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1538         canonicalize: fix C89 compilation
1539         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1540         declarations so C89 is supported.  Also remove the comment
1541         referencing memorty allocation as the suggested feature could
1542         not be implemented as suggested.
1543         Reported by Michael Goffioul.
1544
1545 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1546
1547         group-member: omit unnecessary dependencies
1548         This is for Emacs, which has its own allocator and where we
1549         don't want to use xalloc.
1550         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1551         since we no longer use xmalloc.  Do not include stdbool.h, since
1552         the changes below happen to remove the only use of bool.
1553         (GROUPBUF_SIZE): New constant.
1554         (struct group_info): Remove n_groups member.  Add groupbuf member.
1555         This lets us get the groups without using malloc, usually.
1556         (free_group_info, get_group_info): Adjust to this.
1557         (get_group_info): Return the number of groups found, or -1 on error.
1558         Use plain malloc not xmalloc, and treat its failure as if there
1559         are no groups, as the user already loses in case of error.
1560         (group_member): Simplify, based on changes to get_group_info.
1561         * modules/group-member (Depends-on): Remove dependencies on
1562         xalloc and stdbool.  Add dependency on xalloc-oversized.
1563
1564 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1565
1566         gethrxtime: port to C++
1567         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1568
1569 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1570
1571         ptsname: fix macro-name typo
1572         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1573
1574 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1575
1576         inttostr: Relax license.
1577         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1578
1579 2012-10-03  Eric Blake  <eblake@redhat.com>
1580
1581         ptsname_r: support ptys returned by FreeBSD posix_openpt
1582         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1583         lives in /dev/pts/.
1584
1585 2012-10-02  Eric Blake  <eblake@redhat.com>
1586
1587         pselect: reject invalid file descriptors
1588         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1589         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1590         * modules/pselect (Depends-on): Add dup2.
1591         * doc/posix-functions/pselect.texi (pselect): Document this.
1592
1593         select: reject invalid file descriptors
1594         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1595         * lib/select.c (rpl_select) [!win32]: Work around it.
1596         * modules/select (Depends-on): Add dup2.
1597         * doc/posix-functions/select.texi (select): Document this.
1598
1599         select: enhance test
1600         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1601         New functions.
1602         (test_function): Enhance test.
1603         (do_select_bad_fd): Avoid any stale errno values.
1604
1605         ptsname: reject invalid file descriptors
1606         http://www.austingroupbugs.net/view.php?id=503
1607         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1609         * modules/stdlib (Makefile.am): Replace witness.
1610         * lib/stdlib.in.h (ptsname): Allow for replacement.
1611         * modules/ptsname (configure.ac): Trigger replacement.
1612         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1613
1614 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1615
1616         hash-pjw-bare: new module
1617         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1618         * lib/hash-pjw-bare.h: Likewise.
1619         * modules/hash-pjw-bare: New file.
1620         * MODULES.html.sh (Misc): Add it.
1621
1622 2012-10-02  Eric Blake  <eblake@redhat.com>
1623
1624         manywarnings: cater to more gcc infelicities
1625         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1626         -Wuninitialized without -O.
1627
1628 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1629
1630         select, poll tests: Make setsockopt invocation effective.
1631         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1632         the bind() call.
1633         * tests/test-select.h (open_server_socket): Likewise.
1634
1635 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1636
1637         sockets, sys_stat: restore AC_C_INLINE
1638         This undoes the 2012-09-22 patch.
1639         * m4/sockets.m4 (gl_SOCKETS):
1640         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1641         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1642         and does not support plain 'inline'.  Reported by Bruno Haible in
1643         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1644
1645 2012-09-30  Bruno Haible  <bruno@clisp.org>
1646
1647         localeconv tests: Avoid test failure on OpenIndiana.
1648         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1649         skip the 'grouping' and 'mon_grouping' tests.
1650         Reported by Jim Meyering.
1651
1652 2012-09-30  Bruno Haible  <bruno@clisp.org>
1653
1654         havelib: Follow libtool developments.
1655         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1656         Suggested by Simon Josefsson.
1657
1658 2012-09-29  Jim Meyering  <meyering@redhat.com>
1659
1660         fstatat.c: fix a compile-impeding typo
1661         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1662         Introduced in commit v0.0-7636-gd202279.
1663         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1664
1665 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1666
1667         extern-inline: provide a -Wundef safe config.h
1668         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1669         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1670         to produce a -Wundef warning free config.h.
1671
1672 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1673
1674         hash-pjw: relax license to LGPLv2+
1675         * modules/hash-pjw (License): Relax, with consent of author.
1676
1677 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1678
1679         maint.mk: fix strict vs. lazy variable issues with RELEASE
1680         * top/maint.mk (_equal): New function.
1681         (member_check): Strip the result to avoid spurious spaces.
1682         (url_dir_list): Do not use ifeq, which is strict, as it will
1683         require RELEASE_TYPE to be defined.
1684         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1685         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1686         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1687         (announcement_Cc_beta,announcement_mail_headers_beta)
1688         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1689         (release): Do not depend on $(release-type), as it forces its
1690         evaluation.  Bounce to it.
1691
1692 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1693
1694         maint.mk: formatting changes
1695         * top/maint.mk: Indent bodies of if's.
1696
1697 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1698
1699         maint.mk: factor the validation of RELEASE_TYPE
1700         With help from Jim Meyering.
1701         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1702         * top/maint.mk (_empty, _sp): Move their definition earlier.
1703         (member-check, release-type): New.
1704         Use the latter instead of $(RELEASE_TYPE).
1705         Remove now useless local checks.
1706
1707 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1708
1709         maint.mk: provide "make upload" to ease uploading
1710         See
1711         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1712         Do not depend simply on the current $(VERSION), as there may have been
1713         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1714         as "make release-commit" already does.
1715
1716         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1717         "make TYPE".
1718
1719         * top/maint.mk (upload_command, upload, release): New.
1720         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1721         (VERSION): first word of $(RELEASE) is always right.
1722         (emit_upload_commands): Adjust.
1723         * top/README-release: Update.
1724
1725 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1726
1727         maint.mk: silent rules
1728         With help from Stefano Lattarini.
1729         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1730         (announcement): Use $(AM_V_at).
1731
1732 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1733
1734         localename: port gl_locale_name_thread_unsafe to FreeBSD
1735         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1736         and use the simpler FreeBSD implementation on Mac OS X as well.
1737         Original idea suggested by Ed Maste in
1738         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1739
1740 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1741
1742         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1743         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1744         * lib/mbuiter.c, lib/xsize.c: New files.
1745         * lib/binary-io.h (BINARY_IO_INLINE):
1746         * lib/eealloc.h (EEALLOC_INLINE):
1747         * lib/mbfile.h (MBFILE_INLINE):
1748         * lib/mbiter.h (MBITER_INLINE):
1749         * lib/mbuiter.h (MBUITER_INLINE):
1750         * lib/xsize.h (XSIZE_INLINE):
1751         New macros.
1752         Replace all uses of 'static inline' with them.
1753         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1754         * m4/eealloc.m4 (gl_EEALLOC):
1755         * m4/mbfile.m4 (gl_MBFILE):
1756         * m4/mbiter.m4 (gl_MBITER):
1757         * m4/xsize.m4 (gl_XSIZE):
1758         Do not require AC_C_INLINE.
1759         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1760         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1761         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1762         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1763         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1764         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1765         * modules/binary-io, modules/eealloc, modules/mbfile:
1766         * modules/mbiter, modules/mbuiter:
1767         (Depends-on): Add extern-inline.
1768
1769         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1770         * lib/pipe-filter-aux.c: New file.
1771         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1772         Replace all uses of 'static inline' with it.
1773         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1774         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1775         (filter_retcode): No real need for inline here.
1776         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1777         (Files): Add lib/pipe-filter-aux.c.
1778         (Depends-on): Add extern-inline.
1779         (configure.ac): Do not require AC_C_INLINE.
1780         (lib_SOURCES): Add pipe-filter-aux.c.
1781
1782         fdutimensat: omit unnecessary AC_C_INLINE
1783         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1784
1785         fchmodat, fchownat, fstatat: use extern-inline
1786         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1787         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1788         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1789         New macros.
1790         * lib/openat.h:
1791         Replace all uses of 'static inline' with them.
1792         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1793         * modules/fchmodat, modules/fchownat, modules/fstatat:
1794         * modules/openat-h:
1795         (Depends-on):
1796         Add extern-inline.
1797         (configure.ac): Remove AC_C_INLINE.
1798
1799         acl, mbchar, priv-set: use extern-inline
1800         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1801         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1802         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1803         New macros.
1804         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1805         Replace all uses of 'static inline' with it.
1806         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1807         * m4/acl.m4 (gl_FUNC_ACL):
1808         * m4/mbchar.m4 (gl_MBCHAR):
1809         * m4/priv-set.m4 (gl_PRIV_SET):
1810         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1811         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1812         Add extern-inline.
1813
1814         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1815         * m4/sockets.m4 (gl_SOCKETS):
1816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1817         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1818         environments where it's already guaranteed to work, so we needn't
1819         check for it at 'configure'-time.
1820
1821         tls-tests: omit unnecessary 'inline'
1822         * tests/test-tls.c (perhaps_yield): No longer inline.
1823         Simplicity and portability trump efficiency in test cases.
1824
1825         utimens-tests: avoid unnecessary 'inline'
1826         * modules/fdutimensat-tests (configure.ac):
1827         * modules/futimens-tests (configure.ac):
1828         * modules/utimens-tests (configure.ac):
1829         * modules/utimensat-tests (configure.ac):
1830         Remove AC_C_INLINE.
1831         * tests/test-utimens-common.h (ctime_compare):
1832         No longer inline.  Simplicity and portability trump efficiency here.
1833
1834         misc: don't limit commentary to inline functions
1835         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1836         * lib/xalloc-oversized.h, lib/xsize.h:
1837         Contrast macros to functions in general, not just to inline functions,
1838         when the commentary does not apply only to inline functions.
1839
1840 2012-09-20  Jim Meyering  <meyering@redhat.com>
1841
1842         non-recursive-gnulib-prefix-hack: new module
1843         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1844         the file that originated in Bison.
1845         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1846         largely copied from a snippet that resided in bison's configure.ac.
1847         * modules/non-recursive-gnulib-prefix-hack: New file.
1848         * MODULES.html.sh (Support for maintaining and releasing projects):
1849         Add it.
1850
1851 2012-09-18  Jim Meyering  <meyering@redhat.com>
1852
1853         maint.mk: generalize _gl_tight_scope for non-recursive make
1854         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1855         that *.h would describe additional .h files in the directory
1856         specified by $(_gl_TS_dir).  I.e., add this...
1857         (_gl_TS_other_headers): New variable.
1858
1859         maint.mk: exempt trailing blanks found in "binary" files
1860         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1861         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1862         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1863
1864 2012-09-17  Jim Meyering  <meyering@redhat.com>
1865
1866         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1867         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1868         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1869         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1870
1871 2012-09-17  Jim Meyering  <meyering@redhat.com>
1872
1873         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1874         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1875         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1876         It is not in the same category as "exit (0)" or "exit (1)", and
1877         besides, I know of no symbolic name for that 77.  Reported by
1878         Richard W.M. Jones in
1879         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1880
1881 2012-09-17  Jim Meyering  <meyering@redhat.com>
1882
1883         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1884         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1885         all uses of #define, not just those that start in column 1.
1886         Richard W.M. Jones reported a false positive in
1887         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1888
1889 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1890
1891         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1892         * lib/localcharset.c (locale_charset) [DARWIN7]:
1893         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1894         as these two values are incompatible.  Problem reported by Max Horn.
1895         For more discussion, please see
1896         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1897
1898         doc: document sticky-EOF issue
1899         * doc/posix-functions/fgetc.texi (fgetc):
1900         * doc/posix-functions/fgets.texi (fgets):
1901         * doc/posix-functions/fread.texi (fread):
1902         * doc/posix-functions/fscanf.texi (fscanf):
1903         * doc/posix-functions/getc.texi (getc):
1904         * doc/posix-functions/getchar.texi (getchar):
1905         * doc/posix-functions/scanf.texi (scanf):
1906         Mention that glibc and default Solaris do not conform to
1907         C99 and POSIX-2001 or later, with respect to how getchar
1908         etc. behave when feof reports nonzero.
1909
1910 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1911
1912         poll: fix poll(0, NULL, msec)
1913         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1914         but nfd is 0.  In that case poll should behave like select.
1915
1916 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1917             Paolo Bonzini <bonzini@gnu.org>
1918
1919         poll: fix for systems that can't recv() on a non-socket
1920         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1921         is readable.  In this case POLLHUP will not be supported.
1922         * doc/posix-functions/poll.texi: Document this.
1923
1924 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1925
1926         poll/select: document portability problems not fixed by Gnulib.
1927         * doc/posix-functions/poll.texi: poll does not work well on
1928         pipes under Windows.  It has the same limitations as select on
1929         BeOS.
1930         * doc/posix-functions/select.texi: select does not work well
1931         on pipes under Windows.
1932
1933 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1934
1935         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1936         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1937         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1938         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1939
1940 2012-09-06  Eric Blake  <eblake@redhat.com>
1941
1942         net_if: give more details about the bug being fixed
1943         * doc/posix-headers/net_if.texi: Add clarification.
1944
1945 2012-09-05  Eric Blake  <eblake@redhat.com>
1946
1947         net_if: new module
1948         * modules/net_if: New module, borrowing ideas from netinet_in.
1949         * m4/net_if_h.m4: New file.
1950         * lib/net_if.in.h: Likewise.
1951         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1952         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1953         * tests/test-net_if.c: Make function checks conditional.
1954         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1955
1956 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1957
1958         readutmp: fix non-portable UT_PID use
1959         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1960         Use `UT_PID (u) > 0' as absolute condition.
1961
1962 2012-09-04  Jim Meyering  <meyering@redhat.com>
1963
1964         fts: reduce two or more trailing spaces to just one, usually
1965         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1966         or more slashes, trim all but the final one.  But if a name consists
1967         solely of two slashes, don't modify it.  If it consists solely of
1968         three or more slashes, strip all but one.
1969
1970         This is part of the solution to a minor problem with rm:
1971         it would print a bogus ELOOP diagnostic when failing to remove
1972         the slash-decorated name of a symlink-to-directory:
1973
1974             $ mkdir d && ln -s d s && env rm -r s/
1975             rm: cannot remove 's': Too many levels of symbolic links
1976
1977         With the change below and a trivial don't-trim-trailing-slashes
1978         adjustment to remove.c, it does this:
1979
1980             $ env rm -r s/
1981             rm: cannot remove 's/': Not a directory
1982
1983         Improved by: Eric Blake
1984
1985         fts: when there is no risk of overlap, use memcpy, not memmove
1986         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1987
1988 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1989
1990         stdbool: be more compatible with mixed C/C++ compiles
1991         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1992         Define to bool, true, false, respectively, as GCC's builtin
1993         stdbool.h does.  Problem reported by Michael Goffioul in
1994         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1995
1996 2012-08-28  Jim Meyering  <meyering@redhat.com>
1997
1998         revert last change: it was not needed
1999         * tests/test-vc-list-files-git.sh: There's already a test for
2000         a working git, just below.
2001
2002 2012-08-28  Jim Meyering  <meyering@redhat.com>
2003
2004         tests: test-vc-list-files-git.sh: skip if git is not available
2005         * tests/test-vc-list-files-git.sh: Skip this test when git is
2006         not available.
2007
2008 2012-08-26  Bruno Haible  <bruno@clisp.org>
2009
2010         gnulib-tool: Remove no-op option --no-changelog.
2011         * gnulib-tool (func_usage): Don't mention --no-changelog.
2012         (do_changelog): Remove variable.
2013         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2014
2015 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2016
2017         doc: remove fdl-1.2.texi
2018         It is no longer used or maintained, and its use of @acronym
2019         is problematic.  See the thread containing
2020         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2021         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2022         * doc/old-licenses/fdl-1.2.texi: Remove.
2023
2024         execinfo: port to FreeBSD
2025         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2026         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2027         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2028         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2029
2030 2012-08-23  Jim Meyering  <meyering@redhat.com>
2031
2032         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2033         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2034         to placate gcc's -Wold-style-declaration.
2035
2036 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2037
2038         doc: do not use @acronym
2039         * doc/inet_ntoa.texi (inet_ntoa):
2040         * doc/parse-datetime.texi (Seconds since the Epoch)
2041         (Specifying time zone rules):
2042         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2043         Don't use @acronym.  Problem reported by John Darlington in
2044         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2045
2046 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2047
2048         stdnoreturn: port to newer GCCs
2049         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2050         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2051         Problem reported by Jim Meyering in
2052         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2053         Also, rename the 'test' function to a void a clash with the
2054         already-supplied 'main' function; this fixes a bug that incorrectly
2055         rejected GCC 4.7.1's <stdnoreturn.h>.
2056         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2057         Document GCC problem.
2058
2059 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2060
2061         pipe-filter: fix comment typo
2062         * lib/pipe-filter.h: Mention correct function.
2063
2064 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2065
2066         execinfo: new module
2067         This is for Emacs.  Currently, it provides a no-effect stub
2068         on all platforms where it does not already work.
2069         It already works on glibc-based systems, and on Solaris 11.
2070         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2071         New files.
2072         * doc/glibc-headers/execinfo.texi (execinfo.h):
2073         * MODULES.html.sh (Misc): Document it.
2074
2075 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         extern-inline: support old GCC 'inline'
2078         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2079         if available.  This applies to GCC versions 2.7 through 4.2, or
2080         when newer GCC is using -fgnu89-inline.  The goal is to address
2081         some of the performance issues mentioned by Bruno Haible in
2082         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2083
2084 2012-08-20  Eric Blake  <eblake@redhat.com>
2085
2086         maint.mk: avoid redundant file name in message
2087         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2088         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2089         (sc_makefile_path_separator_check): Remove bogus $(ME).
2090
2091 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2092
2093         timer-time: fix link order when static linking on glibc
2094         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2095         _after_ -lrt so that it's significant.
2096
2097 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2098
2099         timespec: omit unnecessary AC_C_INLINE
2100         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2101
2102         stat-time: omit unnecessary AC_C_INLINE
2103         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2104         Do not require AC_C_INLINE.
2105
2106         ignore-value: omit unnecessary AC_C_INLINE
2107         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2108
2109         sys_select: avoid 'static inline'
2110         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2111
2112         mktime: avoid 'static inline'
2113         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2114         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2115
2116 2012-08-19  Bruno Haible  <bruno@clisp.org>
2117
2118         gnulib-tool: Improve coding style.
2119         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2120         func_emit_lib_Makefile_am.
2121         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2122
2123 2012-08-19  Bruno Haible  <bruno@clisp.org>
2124
2125         gnulib-tool: Fix indentation.
2126         * gnulib-tool (func_import): Fix indentation.
2127
2128 2012-08-19  Bruno Haible  <bruno@clisp.org>
2129
2130         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2131         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2132         on the list of removed files.
2133
2134 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2135
2136         test-parse-datetime: avoid glibc leap-second glitch
2137         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2138         with the 2012 rules.  Problem reported by Bruce Dubbs in
2139         <http://bugs.gnu.org/12206>.
2140
2141 2012-08-14  Bruno Haible  <bruno@clisp.org>
2142
2143         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2144         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2145         from argument.
2146         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2147
2148 2012-08-14  Eric Blake  <eblake@redhat.com>
2149
2150         ldexp: relax license
2151         * modules/ldexp (License): Trivial relax, since the module only
2152         provides a permissively licensed m4 file.
2153
2154 2012-08-13  Bruno Haible  <bruno@clisp.org>
2155
2156         gnulib-tool: Fix persistence of --witness-c-macro option.
2157         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2158         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2159
2160 2012-08-11  Eric Blake  <eblake@redhat.com>
2161
2162         count-leading-zeros: use a lookup table on non-gcc compilers
2163         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2164         alternate implementation, suggested by Jim Meyering.
2165
2166 2012-08-10  Eric Blake  <eblake@redhat.com>
2167
2168         count-leading-zeros: new module
2169         * modules/count-leading-zeros: New module.
2170         * m4/count-leading-zeros.m4: New file.
2171         * lib/count-leading-zeros.h: Likewise.
2172         * modules/count-leading-zeros-tests: New test.
2173         * tests/test-count-leading-zeros.c: New file.
2174         * MODULES.html.sh (Integer arithmetic functions): Document it.
2175
2176 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2177             Jim Meyering  <meyering@redhat.com>
2178
2179         maintainer-makefile: Fix syntax error with dash.
2180         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2181         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2182
2183 2012-08-05  Jim Meyering  <meyering@redhat.com>
2184
2185         extern-inline: also ignore -Wmissing-declarations
2186         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2187         required with gcc-4.8.0-to-be.
2188
2189         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2190         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2191         for /error ?([^,]*)/.  This avoids false-positives for strings like
2192         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2193
2194 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2195
2196         gnumakefile: better interaction with Automake-NG
2197         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2198         Automake-NG always contain a definition of VPATH, even in non-VPATH
2199         builds (its value being simply '.' in that case).  So, in the
2200         'clean-GNUmakefile' rule, to determine whether running under a
2201         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2202         '$(VPATH)' expands to the empty string.
2203
2204 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2205
2206         base64: Use extern C scope in header file, for C++.
2207         * lib/base64.h: Add C++ namespace protection.
2208
2209 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2210
2211         stat-time, timespec, u64: support naive out-of-dir builds
2212         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2213         Use '#include "foo.h"', not '#include <foo.h>', when including
2214         one's own interface.  This works better when configuring with
2215         out-of-directory builds, since packages need not add an
2216         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2217
2218 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2219
2220         utimens: use extern-inline
2221         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2222         * lib/utimens.h: Add copyright notice, since this is now large enough
2223         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2224         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2225         * modules/utimens (Depends-on): Add extern-inline.
2226
2227         u64: use extern-inline
2228         * lib/u64.c: New file.
2229         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2230         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2231         * modules/u64 (Files): Add lib/u64.c.
2232         (Depends-on): Add extern-inline.
2233         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2234         does that now.
2235         (lib_SOURCES): Add u64.c.
2236
2237         timespec: use extern-inline
2238         * lib/timespec.c: New file.
2239         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2240         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2241         * modules/timespec (Files): Add lib/timespec.c.
2242         (Depends-on): Add extern-inline.
2243         (lib_SOURCES): Add timespec.c.
2244
2245         stat-time: use extern-inline
2246         * lib/stat-time.c: New file.
2247         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2248         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2249         * modules/stat-time (Files): Add lib/stat-time.c.
2250         (Depends-on): Add extern-inline.
2251         (lib_SOURCES): Add stat-time.c.
2252
2253         extern-inline: new module
2254         * modules/extern-inline, m4/extern-inline.m4: New files.
2255         This is for better support of 'extern inline' a la ISO C99,
2256         with a portable alternative on compilers that do not support
2257         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2258         of the Emacs executable, when compiled with debugging disabled,
2259         which is a typical way that Emacs is built while developing.
2260
2261 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2262
2263         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2264         * build-aux/do-release-commit-and-tag: Move variable definitions
2265         together.
2266         ($branch): Instead of defaulting to "master", default to the current
2267         branch (as gnu-web-doc-update does).
2268         (help): Display the current values of the option arguments.
2269         * top/maint.mk (release-commit): New.
2270         * top/README-release: Simplify the corresponding step.
2271
2272 2012-07-30  Eric Blake  <eblake@redhat.com>
2273
2274         passfd: fix comment on recvfd
2275         * lib/passfd.c (recvfd): Fix comment.
2276         Reported by Jann Horn <jannhorn@googlemail.com>.
2277
2278 2012-07-30  Jim Meyering  <meyering@redhat.com>
2279
2280         maint.mk: avoid a sub-shell
2281         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2282
2283 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2284
2285         maint.mk: use silent-rules support from Automake
2286         * top/maint.mk (news-check, vc-diff-check, announcement)
2287         (no-submodule-changes, alpha beta stable, release-prep)
2288         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2289
2290 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2291
2292         maint.mk: provide a web-manual-update target
2293         * top/maint.mk: here.
2294         * top/README-release: Use it to simplify the web manual update step.
2295
2296 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2297
2298         README-release: shorten the circuit to post a news
2299         * top/README-release: Point directly to the news submission form.
2300
2301 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2302
2303         gnu-web-doc-update: fix --help
2304         * build-aux/gnu-web-doc-update: The information "top level" was written
2305         twice.
2306
2307 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2308
2309         maint.mk: absolute VPATH issue
2310         * top/maint.mk (release-prep): Help Git find .git/.
2311         From Jim Meyering.
2312
2313 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2314
2315         gitlog-to-changelog: fix previous change
2316         * build-aux/gitlog-to-changelog: Fix condition.
2317         Add missing ";".
2318
2319 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2320
2321         gitlog-to-changelog: don't expect .git to be in $srcdir
2322         Reported by Bruno Haible.
2323         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2324         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2325         Use it.
2326
2327 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2328
2329         maint.mk: absolute VPATH build fix
2330         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2331         $(srcdir) is not a parent of $(builddir).
2332
2333 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2334
2335         clean-temp: Fix memory leak.
2336         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2337         'files' members of tmpdir.
2338
2339 2012-07-27  Jim Meyering  <meyering@redhat.com>
2340
2341         maint.mk: new rule: refresh-gnulib-patches
2342         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2343         Use this rule to refresh them.
2344         * top/maint.mk (refresh-gnulib-patches): New rule.
2345
2346 2012-07-24  Bruno Haible  <bruno@clisp.org>
2347
2348         gnulib-tool: Fix handling of inctests variable.
2349         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2350         Reported by Nick Bowler <nbowler@elliptictech.com>.
2351
2352 2012-07-22  Bruno Haible  <bruno@clisp.org>
2353
2354         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2355         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2356         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2357         Remove exemption for getpass.h.
2358         Suggested by Eric Blake.
2359
2360 2012-07-20  Eric Blake  <eblake@redhat.com>
2361
2362         verify: document conflict with -Wnested-externs
2363         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2364
2365         maint.mk: forbid exit(-1)
2366         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2367
2368 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2369
2370         fsusage: port back to Solaris
2371         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2372         error (fsd not declared) on Solaris 10.  Reported privately by
2373         Andrew Borodin.
2374
2375 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2376
2377         gnu-web-doc-update: fix error messages
2378         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2379
2380         gnu-web-doc-update: check the requirements.
2381         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2382         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2383         * build-aux/bootstrap (find_tool): Comment change.
2384
2385 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2386
2387         maint.mk: minor simplication.
2388         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2389         for default values.
2390
2391 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2392
2393         gitlog-to-changelog: VPATH build issues
2394         If builddir is not a subdirectory of srcdir, running git from it will
2395         fail.
2396         * build-aux/gitlog-to-changelog (--srcdir): New option.
2397
2398 2012-07-15  Bruno Haible  <bruno@clisp.org>
2399
2400         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2401         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2402         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2403         Remove exemption for fpending.h.
2404         Suggested by Eric Blake.
2405
2406 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2407
2408         pthread_sigmask: fix bug on FreeBSD 9
2409         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2410         Include string.h.
2411         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2412         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2413         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2414         but pthread_sigmask (1729, NULL, NULL) returns zero.
2415         See <http://bugs.gnu.org/11884>.
2416         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2417         by inspecting whether the main call changed the old mask.
2418
2419 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2420
2421         README-release: make it more legible
2422         * top/README-release: Improve typography slightly.
2423
2424 2012-07-15  Jim Meyering  <meyering@redhat.com>
2425
2426         maint: require that each sc_... command start with "@"
2427         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2428         "make sc_maint" helps us avoid this nit.
2429
2430 2012-07-15  Jim Meyering  <meyering@redhat.com>
2431
2432         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2433         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2434
2435 2012-07-13  Eric Blake  <eblake@redhat.com>
2436
2437         maint.mk: new syntax check for HAVE_DECL checks
2438         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2439         * cfg.mk
2440         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2441         Exempt some false positives.
2442         Based on a report by Karel Zak.
2443
2444         argp: make HAVE_DECL usage consistent
2445         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2446         macros, not whether they are defined.
2447         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2448         convention with other declaration checks.
2449         Reported by Karel Zak, with suggestions from Paul Eggert.
2450
2451         stat-time: relax license to LGPLv2+
2452         * modules/stat-time (License): Relax, with consent of all authors.
2453
2454         strndup: fix m4 usage error
2455         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2456         defined, to either 0 or 1.
2457         Reported by Karel Zak.
2458
2459 2012-07-11  Jim Meyering  <meyering@redhat.com>
2460
2461         maint: enable the sc_avoid_if_before_free syntax-check rule
2462         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2463         (if_before_free_offenders_): Define.
2464         (if_before_free_basename_re_): Define.
2465         Exempt current files with useless if-before-free.
2466
2467 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2468
2469         gettext: do not assume '#define ... defined ...' behavior
2470         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2471         Do not use '#define FOO ... defined BAR ...', as the C standard says
2472         it's not portable to expect that this works after macro expansion.
2473         Problem reported for gzip by Steven M. Schweda in
2474         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2475
2476 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2477
2478         getloadavg: clean out old Emacs and Autoconf cruft
2479         See Glenn Morris in <http://bugs.gnu.org/11905>.
2480         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2481         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2482         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2483         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2484
2485 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2486
2487         bootstrap: let warn be like tests/init.sh's warn_
2488         Reported by Jim Meyering.
2489         * build-aux/bootstrap (warn): Remove, replaced by...
2490         (warnf_, warn_): these.
2491         Adjust callers.
2492         Shorten messages that no longer fit in 80 columns.
2493
2494 2012-07-09  Bruno Haible  <bruno@clisp.org>
2495
2496         getopt: Simplify after Emacs changed.
2497         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2498         (gl_GETOPT_IFELSE): Remove macro.
2499
2500 2012-07-09  Jim Meyering  <meyering@redhat.com>
2501
2502         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2503         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2504
2505         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2506         Bugs in both of those conspired to make the
2507         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2508         _sc_search_regexp's handling of non-empty $in_files would filter
2509         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2510         choice of in_files value meant there would be no match in most
2511         projects, due to the presence of two or more Makefile.in files.
2512         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2513         Fix a bug in how a non-empty $$in_files was processed:
2514         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2515         in spite of the name, it's a regexp, not a list of file names.
2516
2517 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2518
2519         getloadavg, getopt: fix commentary re configure.in
2520         Autoconf is deprecating the name 'configure.in', so change it to
2521         to the new name 'configure.ac' in a couple of places.
2522         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2523         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2524         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2525         Emacs has renamed it to configure.ac, and it no longer refers
2526         to these macros anyway.
2527
2528         timespec: mark functions with const attributes
2529         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2530         Mark with _GL_ATTRIBUTE_CONST.
2531
2532 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2533
2534         canonicalize[-lgpl]: handle "guessing" values when cross-building
2535         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2536         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2537         matches "*yes" instead of just "yes".  Regression introduced in commit
2538         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2539
2540 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2541             Bruno Haible  <bruno@clisp.org>
2542
2543         canonicalize: make the right guess when cross-compiling to GNU
2544         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2545         determine whether cross-compiling to glibc systems, so as to
2546         include GNU/Hurd.
2547
2548 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2549
2550         timespec-sub: avoid duplicate include
2551         * lib/timespec-sub.c: Do not include <config.h> twice.
2552         Reported by Juanma Barranquero.
2553
2554 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2555
2556         bootstrap: use a more consistent error reporting scheme
2557         * build-aux/bootstrap (warn, die): New.
2558         Use them.
2559
2560 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2561
2562         sys_time: allow too-wide tv_sec
2563         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2564         timeval even if tv_sec is wider than time_t.  This allows
2565         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2566         as without this patch gnulib replaces struct timeval
2567         and OpenBSD futimes therefore has a type mismatch.
2568         * doc/posix-headers/sys_time.texi: Mention this.
2569
2570         pthread: check for both pthread_create and pthread_join
2571         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2572         alter the check so that it tests for both pthread_create and
2573         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2574         Suggested by Bruno Haible and Richard Yao in
2575         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2576
2577         parse-datetime: doc tuneup
2578         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2579         spacing issues.
2580
2581 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2582
2583         do-release-commit-and-tag: fix the previous commit
2584         * build-aux/do-release-commit-and-tag: Actually the test was right,
2585         but the comment and the error message were misleading.
2586         Fix comment, and improve error message.
2587         Perform check first, so that NEWS is not modified uselessly.
2588
2589         do-release-commit-and-tag: fix typo
2590         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2591         _not_ start with a stub.
2592
2593 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2594
2595         pthread: check for pthread_create, not pthread_join
2596         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2597         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2598         pthread_join in libc.  I hope this removes the need for all the
2599         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2600         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2601
2602 2012-07-04  Jim Meyering  <meyering@redhat.com>
2603
2604         parse-datetime: fix failure to diagnose invalid input
2605         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2606         rather than diagnosing the invalid input.  Now it reports this:
2607         date: invalid date '\260'
2608         * lib/parse-datetime.y (to_uchar): Define.
2609         (yylex): Don't sign-extend "other" bytes.
2610         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2611         Thanks to Bruno Haible for the patch to this file.
2612         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2613         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2614
2615 2012-07-03  Jim Meyering  <meyering@redhat.com>
2616
2617         bootstrap: do not require now-removed build-aux/missing
2618         Now that build-aux/missing is, er, missing, bootstrap would
2619         silently fail.
2620         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2621         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2622         no longer part of gnulib.
2623         Diagnose the failure.
2624
2625 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2626
2627         alloca: add support for HP NonStop TNS/E native
2628         * lib/alloca.in.h (alloca): Support the new host.
2629         From a suggestion by Joachim Schmitz in
2630         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2631
2632 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2633
2634         fsusage: remove code not needed on non GNU/Linux systems.
2635
2636         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2637         Don't include headers no longer needed in this case.
2638         * lib/fsusage.c [STAT_STATVFS &&
2639         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2640         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2641
2642 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2643
2644         fsusage: include files needed for glibc 2.6 fallback
2645         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2646         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2647         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2648         Problem reported by Ludovic Courtès in
2649         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2650
2651         fsusage: avoid needless check on GNU/Linux
2652         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2653         on GNU/Linux systems, since it can't possibly work.
2654
2655 2012-07-01  Bruno Haible  <bruno@clisp.org>
2656
2657         log: Fix an autoconf >= 2.64 warning.
2658         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2659         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2660
2661 2012-06-28  Bruno Haible  <bruno@clisp.org>
2662
2663         log10f: Fix possible configuration problem.
2664         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2665         $LOGF_LIBM.
2666         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2667
2668 2012-06-28  Bruno Haible  <bruno@clisp.org>
2669
2670         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2671         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2672         not gl_cv_func_unlink_works.
2673         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2674
2675 2012-06-27  Eric Blake  <eblake@redhat.com>
2676
2677         config: drop scripts that automake says are not independent
2678         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2679         * build-aux/elisp-comp: Delete.
2680         * build-aux/missing: Likewise.
2681         * build-aux/ylwrap: Likewise.
2682         * modules/elisp-comp: Likewise.
2683         * MODULES.html.sh: Drop mention of elisp-comp.
2684         * NEWS: Mention this.
2685
2686 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2687
2688         root-uid: new module
2689         This is for portability to Tandem's NonStop Kernel.
2690         * lib/root-uid.h, modules/root-uid: New files.
2691         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2692         * lib/write-any-file.c, tests/test-sethostname2.c:
2693         Include "root-uid.h".
2694         * lib/euidaccess.c (euidaccess):
2695         * lib/pt_chown.c (main):
2696         * lib/unlinkdir.c (cannot_unlink_dir):
2697         * lib/write-any-file.c (can_write_any_file):
2698         * m4/mknod.m4 (gl_FUNC_MKNOD):
2699         * tests/test-sethostname2.c (geteuid, main):
2700         Don't assume ROOT_UID == 0.
2701         * modules/euidaccess (Depends-on):
2702         * modules/pt_chown (Depends-on):
2703         * modules/sethostname-tests (Depends-on):
2704         * modules/unlinkdir (Depends-on):
2705         * modules/write-any-file (Depends-on):
2706         Add root-uid.
2707
2708         regex: use locale-independent comparison for codeset name
2709         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2710         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2711         for codeset name.
2712         * lib/regex_internal.h: Do not include <strings.h>, since we
2713         no longer use strcasecmp.
2714         * modules/regex (Depends-on): Remove strcase.
2715
2716 2012-06-23  Bruno Haible  <bruno@clisp.org>
2717
2718         getopt-posix: No longer guarantee that option processing is resettable.
2719         * doc/posix-functions/getopt.texi: Drop description of problem with
2720         internal state. Fix info about mingw and msvc9.
2721         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2722         option processing by getopt(). Run three test programs instead of one.
2723         Simplify cross-compilation guess.
2724         * NEWS: Mention the change.
2725         Reported by Rich Felker <dalias@aerifal.cx>.
2726
2727 2012-06-26  Bruno Haible  <bruno@clisp.org>
2728
2729         argp, regex: Ensure strcasecmp gets declared.
2730         * lib/argp-help.c: Include <strings.h>.
2731         * lib/regex_internal.h: Likewise.
2732         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2733
2734 2012-06-24  Bruno Haible  <bruno@clisp.org>
2735
2736         ptsname_r: Make it consistent with ptsname on AIX.
2737         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2738         implementation as for OSF/1.
2739         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2740         a pty master.
2741
2742         ptsname_r: Make it consistent with ptsname on OSF/1.
2743         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2744         OSF/1.
2745
2746 2012-06-24  Bruno Haible  <bruno@clisp.org>
2747
2748         ttyname_r: Fix result on OSF/1, Solaris.
2749         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2750
2751 2012-06-24  Bruno Haible  <bruno@clisp.org>
2752
2753         ptsname_r: Add support for Solaris.
2754         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2755         Solaris.
2756
2757         ptsname_r: Fix test failure on native Windows.
2758         * modules/ptsname_r (Depends-on): Add isatty.
2759
2760         ptsname_r: Fix test failures on IRIX, Solaris.
2761         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2762         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2763         accordingly.
2764         * lib/ptsname_r.c: Include <fcntl.h>.
2765         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2766         set errno if fd is invalid.
2767         * tests/test-isatty.c (main): Update comments.
2768
2769 2012-06-24  Bruno Haible  <bruno@clisp.org>
2770
2771         ptsname test: Extend test.
2772         * tests/test-ptsname.c: Include <errno.h>.
2773         (main): Test behaviour with invalid file descriptor.
2774
2775 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2776
2777         time: fix obsolete comment
2778         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2779         reference to HAVE_STRUCT_TIMESPEC in comment.
2780
2781 2012-06-23  Bruno Haible  <bruno@clisp.org>
2782
2783         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2785         does not handle abbreviated long options with equivalent
2786         disambiguations, set gl_replace_getopt to yes.
2787         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2788
2789 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2790
2791         time_r: fix typo that always overrode localtime_r decl
2792         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2793         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2794         not in a standard include.
2795
2796 2012-06-22  Bruno Haible  <bruno@clisp.org>
2797
2798         Write "Mac OS X" instead of "MacOS X".
2799         * README: Write "Mac OS X" instead of "MacOS X".
2800         * build-aux/bootstrap: Likewise.
2801         * build-aux/install-reloc: Likewise.
2802         * lib/acl-internal.h: Likewise.
2803         * lib/acl_entries.c: Likewise.
2804         * lib/argp-ba.c: Likewise.
2805         * lib/argp-pv.c: Likewise.
2806         * lib/config.charset: Likewise.
2807         * lib/copy-acl.c: Likewise.
2808         * lib/csharpexec.c: Likewise.
2809         * lib/euidaccess.c: Likewise.
2810         * lib/fbufmode.c: Likewise.
2811         * lib/fflush.c: Likewise.
2812         * lib/file-has-acl.c: Likewise.
2813         * lib/filemode.h: Likewise.
2814         * lib/fpurge.c: Likewise.
2815         * lib/freadable.c: Likewise.
2816         * lib/freadahead.c: Likewise.
2817         * lib/freading.c: Likewise.
2818         * lib/freadptr.c: Likewise.
2819         * lib/freadseek.c: Likewise.
2820         * lib/fseeko.c: Likewise.
2821         * lib/fseterr.c: Likewise.
2822         * lib/fsusage.c: Likewise.
2823         * lib/fwritable.c: Likewise.
2824         * lib/fwriting.c: Likewise.
2825         * lib/get-rusage-as.c: Likewise.
2826         * lib/get-rusage-data.c: Likewise.
2827         * lib/getdomainname.c: Likewise.
2828         * lib/idpriv-drop.c: Likewise.
2829         * lib/idpriv-droptemp.c: Likewise.
2830         * lib/localcharset.c: Likewise.
2831         * lib/locale.in.h: Likewise.
2832         * lib/localename.c: Likewise.
2833         * lib/mbsrtowcs-state.c: Likewise.
2834         * lib/nproc.c: Likewise.
2835         * lib/passfd.c: Likewise.
2836         * lib/posix_openpt.c: Likewise.
2837         * lib/printf-parse.c: Likewise.
2838         * lib/progreloc.c: Likewise.
2839         * lib/safe-read.h: Likewise.
2840         * lib/safe-write.h: Likewise.
2841         * lib/sched.in.h: Likewise.
2842         * lib/set-mode-acl.c: Likewise.
2843         * lib/signal.in.h: Likewise.
2844         * lib/stdint.in.h: Likewise.
2845         * lib/stdio-impl.h: Likewise.
2846         * lib/stdlib.in.h: Likewise.
2847         * lib/strtod.c: Likewise.
2848         * lib/sys_select.in.h: Likewise.
2849         * lib/tcgetsid.c: Likewise.
2850         * lib/unistd.in.h: Likewise.
2851         * lib/unlockpt.c: Likewise.
2852         * lib/vasnprintf.c: Likewise.
2853         * lib/vma-iter.c: Likewise.
2854         * lib/wcsrtombs-state.c: Likewise.
2855         * m4/acl.m4: Likewise.
2856         * m4/acosl.m4: Likewise.
2857         * m4/asinl.m4: Likewise.
2858         * m4/atanl.m4: Likewise.
2859         * m4/c-stack.m4: Likewise.
2860         * m4/cosl.m4: Likewise.
2861         * m4/expl.m4: Likewise.
2862         * m4/extensions.m4: Likewise.
2863         * m4/fdatasync.m4: Likewise.
2864         * m4/fmal.m4: Likewise.
2865         * m4/frexp.m4: Likewise.
2866         * m4/frexpf.m4: Likewise.
2867         * m4/frexpl.m4: Likewise.
2868         * m4/fsusage.m4: Likewise.
2869         * m4/getdomainname.m4: Likewise.
2870         * m4/getloadavg.m4: Likewise.
2871         * m4/getopt.m4: Likewise.
2872         * m4/gettext.m4: Likewise.
2873         * m4/gnulib-common.m4: Likewise.
2874         * m4/intdiv0.m4: Likewise.
2875         * m4/intlmacosx.m4: Likewise.
2876         * m4/largefile.m4: Likewise.
2877         * m4/ldexpl.m4: Likewise.
2878         * m4/link-follow.m4: Likewise.
2879         * m4/locale-ar.m4: Likewise.
2880         * m4/locale-fr.m4: Likewise.
2881         * m4/locale-ja.m4: Likewise.
2882         * m4/locale-tr.m4: Likewise.
2883         * m4/locale-zh.m4: Likewise.
2884         * m4/locale_h.m4: Likewise.
2885         * m4/lock.m4: Likewise.
2886         * m4/logl.m4: Likewise.
2887         * m4/mathfunc.m4: Likewise.
2888         * m4/minus-zero.m4: Likewise.
2889         * m4/mktime.m4: Likewise.
2890         * m4/mmap-anon.m4: Likewise.
2891         * m4/multiarch.m4: Likewise.
2892         * m4/nanosleep.m4: Likewise.
2893         * m4/nocrash.m4: Likewise.
2894         * m4/poll.m4: Likewise.
2895         * m4/printf-frexpl.m4: Likewise.
2896         * m4/printf.m4: Likewise.
2897         * m4/signbit.m4: Likewise.
2898         * m4/sinl.m4: Likewise.
2899         * m4/sqrtl.m4: Likewise.
2900         * m4/strerror_r.m4: Likewise.
2901         * m4/tanl.m4: Likewise.
2902         * m4/threadlib.m4: Likewise.
2903         * m4/ttyname_r.m4: Likewise.
2904         * m4/unlink.m4: Likewise.
2905         * m4/visibility.m4: Likewise.
2906         * m4/wcwidth.m4: Likewise.
2907         * tests/minus-zero.h: Likewise.
2908         * tests/test-alloca-opt.c: Likewise.
2909         * tests/test-copy-acl.sh: Likewise.
2910         * tests/test-copy-file.sh: Likewise.
2911         * tests/test-fdatasync.c: Likewise.
2912         * tests/test-file-has-acl.sh: Likewise.
2913         * tests/test-flock.c: Likewise.
2914         * tests/test-fsync.c: Likewise.
2915         * tests/test-localename.c: Likewise.
2916         * tests/test-malloca.c: Likewise.
2917         * tests/test-nonblocking-pipe.h: Likewise.
2918         * tests/test-nonblocking-socket.h: Likewise.
2919         * tests/test-openpty.c: Likewise.
2920         * tests/test-posix_openpt.c: Likewise.
2921         * tests/test-ptsname.c: Likewise.
2922         * tests/test-ptsname_r.c: Likewise.
2923         * tests/test-sameacls.c: Likewise.
2924         * tests/test-select.h: Likewise.
2925         * tests/test-set-mode-acl.sh: Likewise.
2926         * tests/test-snprintf-posix.h: Likewise.
2927         * tests/test-sprintf-posix.h: Likewise.
2928         * tests/test-strtod.c: Likewise.
2929         * tests/test-time.c: Likewise.
2930         * tests/test-vasnprintf-posix.c: Likewise.
2931         * tests/test-vasprintf-posix.c: Likewise.
2932         * doc/acl-resources.txt: Likewise.
2933         * doc/**/*.texi: Likewise.
2934         Reported by Max Horn <max@quendi.de>.
2935
2936 2012-06-22  Bruno Haible  <bruno@clisp.org>
2937
2938         grantpt: Relax requirement regarding invalid file descriptors.
2939         * lib/grantpt.c: Don't include <fcntl.h>.
2940         (grantpt): Don't verify the validity of the file descriptor.
2941         * modules/grantpt (Depends-on): Remove fcntl-h.
2942         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2943         file descriptors.
2944         * doc/posix-functions/grantpt.texi: Document more platforms on which
2945         grantpt succeeds for invalid file descriptors.
2946         Reported by Rich Felker <dalias@aerifal.cx>.
2947
2948 2012-06-22  Bruno Haible  <bruno@clisp.org>
2949
2950         fbufmode test: Don't test unportable behaviour.
2951         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2952         (main): Invoke it three times.
2953         Reported by Szabolcs Nagy <nsz@port70.net>
2954         and Rich Felker <dalias@aerifal.cx>.
2955
2956 2012-06-21  Bruno Haible  <bruno@clisp.org>
2957
2958         gnulib-tool: Refactor inctests variable.
2959         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2960         (func_modules_transitive_closure,
2961         func_modules_transitive_closure_separately,
2962         func_import, func_create_testdir): Update.
2963
2964         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2965         * gnulib-tool: Accept option --without-tests.
2966         (func_usage): Document --without-tests option. Rearrange.
2967         (inctests): Normalize according to the mode.
2968         * NEWS: Mention the change.
2969         Suggested by Simon Josefsson.
2970
2971 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2972
2973         parse-duration test: Avoid spurious output.
2974         * tests/test-parse-duration.sh: Reindent with leading tabs.
2975
2976 2012-06-21  Jim Meyering  <meyering@redhat.com>
2977
2978         maint: disable the strncpy prohibition
2979         * cfg.mk: Do not prohibit strncpy here.
2980
2981 2012-06-21  Bruno Haible  <bruno@clisp.org>
2982
2983         nonblocking: Avoid compilation error on mingw64.
2984         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2985         fscanf.
2986         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2987         * modules/vfscanf (configure.ac): Likewise.
2988         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2989         definition only if stdio.h has prepared it.
2990         Reported by Daniel P. Berrange <berrange@redhat.com>.
2991
2992 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2993
2994         gnulib-tool: Use readlink if it is available.
2995         * gnulib-tool (func_readlink): Choose function more appropriately.
2996
2997 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2998
2999         posixtm-tests: port to buggy compiler
3000         Problem reported by Simon Josefsson in
3001         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3002         * modules/posixtm-tests (Depends-on): Add stdint.
3003         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3004         Now of type int_least64_t, not int64_t, both because that's
3005         what INT64_C returns and because int_least64_t works even
3006         on 72-bit hosts.
3007         (T): Use INT64_C on constants outside the traditional int range,
3008         to work around compiler bug noted by Simon.
3009
3010         mktime: fix integer overflow in 'configure'-time test
3011         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3012         after integer overflow.  Problem reported by Rich Felker in
3013         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3014         Also, don't look for further instances of a bug if we've already
3015         found one instance; this helps 'configure' run faster.
3016
3017 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3018
3019         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3020         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3021         GetVersionEx correctly.
3022         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3023
3024 2012-06-20  Bruno Haible  <bruno@clisp.org>
3025
3026         fdopen: Allow implementations that don't reject invalid fd arguments.
3027         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3028         succeeds.
3029         Reported by Rich Felker <dalias@aerifal.cx>.
3030
3031 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3032
3033         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3034         bring in LIBINTL.
3035
3036 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3037
3038         init.sh: do not rely on autoupated PWD
3039         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3040         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3041         Although Nelson's bug was not necessarily fixed by this patch,
3042         it seems wise to make the change for safety.
3043         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3044         automagically after 'cd'; this is not reliable on older shells.
3045         (setup_): Fail if we cannot cd to temporary directory.
3046
3047 2012-06-19  Bruno Haible  <bruno@clisp.org>
3048
3049         stat, fstat: Avoid warnings on mingw64.
3050         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3051         redefining.
3052         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3053         Reported by Daniel P. Berrange <berrange@redhat.com>.
3054
3055 2012-06-19  Bruno Haible  <bruno@clisp.org>
3056
3057         stdioext: Add support for musl libc.
3058
3059         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3060         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3061
3062         * m4/fseterr.m4: New file.
3063         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3064         function exists.
3065         * modules/fseterr (Files): Add m4/fseterr.m4.
3066         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3067         __fseterr does not exist.
3068         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3069
3070         * lib/freadable.h: Update comment.
3071
3072         * lib/fwritable.h: Update comment.
3073
3074         * lib/freading.h: Update comment.
3075
3076         * lib/fwriting.h: Update comment.
3077
3078         * m4/freadahead.m4: New file.
3079         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3080         that function exists.
3081         * modules/freadahead (Files): Add m4/freadahead.m4.
3082         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3083         __freadahead does not exist.
3084         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3085
3086         * m4/freadptr.m4: New file.
3087         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3088         function exists.
3089         * modules/freadptr (Files): Add m4/freadptr.m4.
3090         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3091         __freadptr does not exist.
3092         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3093
3094         * m4/freadseek.m4: New file.
3095         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3096         exists.
3097         * modules/freadseek (Files): Add m4/freadseek.m4.
3098         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3099
3100         * lib/fpurge.c (fpurge): Update comment.
3101
3102         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3103
3104 2012-06-19  Bruno Haible  <bruno@clisp.org>
3105
3106         *printf-posix: Put more info into config.log.
3107         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3108         exit code into config.log.
3109
3110 2012-06-19  Bruno Haible  <bruno@clisp.org>
3111
3112         getopt-gnu: Fix exit code overflow in autoconf test.
3113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3114         to keep them below < 128.
3115
3116 2012-06-17  Jim Meyering  <meyering@redhat.com>
3117
3118         maint.mk: fix typo in code to derive GPG key at release time
3119         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3120
3121 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3122
3123         regex: avoid warning when pointers are not long
3124         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3125         and uintptr_t, not long, for portability to hosts where pointers and
3126         long have different sizes.  Issue noted by Daniel P. Berrange in
3127         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3128         and fix suggested by Bruno Haible in
3129         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3130
3131 2012-06-17  Bruno Haible  <bruno@clisp.org>
3132
3133         dummy: Relicense into the public domain.
3134         * modules/dummy (License): Set to "public domain".
3135         Suggested by Reuben Thomas.
3136
3137 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3138
3139         announce-gen: VPATH issues
3140         * build-aux/announce-gen (--srcdir): New option, used to trim the
3141         $srcdir part of the path from $builddir to NEWS.
3142         * top/maint.mk (announcement): Adjust.
3143
3144 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3145
3146         gnu-web-doc-update: VPATH builds
3147         * build-aux/gnu-web-doc-update (--builddir): New option.
3148         Revamp the handling of options.
3149         Prefer $(...) to `...`.
3150         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3151         the template, and it is GNU mktemp specific.
3152         Prefer set -e to long series of &&.
3153         Restore the initial git branch, not "master".
3154         Properly initialize submodules (don't rely only on bootstrap).
3155         Do not reconfigure blindly, use config.status.
3156         * top/README-release: Update instructions for gnu-web-doc-update.
3157
3158 2012-06-11  Jim Meyering  <meyering@redhat.com>
3159
3160         maint.mk: revert most of the previous change re "all these"
3161         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3162         For rationale, see the discussion at
3163         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3164
3165 2012-06-10  Karl Berry  <karl@gnu.org>
3166
3167         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3168
3169         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3170
3171 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3172
3173         parse-duration: Relicense under LGPLv2+.
3174         * modules/parse-duration (License): Change to LGPLv2+.
3175
3176 2012-06-10  Jim Meyering  <meyering@redhat.com>
3177
3178         maint.mk: prohibit common grammar error: "all these"
3179         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3180         the list of prohibited word sequences.  It should be "all of these".
3181         * lib/tempname.c (__gen_tempname): Fix one of them.
3182
3183 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3184
3185         do-release-commit-and-tag: support VPATH builds
3186         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3187         (noteworthy): Defined earlier to factor its value.
3188         (noteworthy_stub): New.
3189         Use it to factor.
3190         (help_version): Split into...
3191         (help, version): these.
3192         Adjust the option processing part.
3193         Support "--option=value" in addition to "--option value".
3194         (builddir): New.
3195         (--builddir): New option.
3196         * top/README-release: Document this.
3197         Reword slightly so that the reader cannot understand that he
3198         has to do these steps before calling do-release-commit-and-tag.
3199
3200 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3201
3202         readme-release: also require announce-gen and maintainer-makefile
3203         * modules/readme-release (Depends-on): here.
3204         * modules/announce-gen, modules/do-release-commit-and-tag,
3205         modules/gnu-web-doc-update, modules/maintainer-makefile
3206         (Description): Point to readme-release.
3207
3208 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3209
3210         maint.mk: fix VPATH issues.
3211         * top/maint.mk (news-check): GNU Make understand $< very well.
3212         (release-prep): NEWS is in $(srcdir).
3213
3214 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3215
3216         readme-release: require the promoted modules.
3217         * modules/readme-release (Depends-on): Add
3218         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3219         in this text.
3220
3221 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3222             Bruno Haible  <bruno@clisp.org>
3223
3224         error, strerror-override: Support mingw64 from Fedora 17.
3225         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3226         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3227         EINPROGRESS.
3228         * lib/strerror-override.h (strerror_override): Test it.
3229         * lib/strerror-override.c (strerror_override): Likewise.
3230         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3231
3232 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3233             Bruno Haible  <bruno@clisp.org>
3234
3235         error, strerror-override: Support mingw64 from Fedora 17.
3236         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3237         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3238         * lib/strerror-override.h (strerror_override): Test it.
3239         * lib/strerror-override.c (strerror_override): Likewise.
3240
3241 2012-06-03  Bruno Haible  <bruno@clisp.org>
3242
3243         error, strerror-override: Support new errno values from POSIX:2008.
3244         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3245         ENOTRECOVERABLE.
3246         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3247         platforms.
3248         * lib/strerror-override.c (strerror_override): Conditionalize the
3249         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3250         * lib/strerror-override.h (strerror_override): Declare also if
3251         GNULIB_defined_EOWNERDEAD is defined.
3252         * tests/test-errno.c (e130, e131): New variables.
3253         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3254         ENOTRECOVERABLE.
3255         Reported by Paolo Bonzini.
3256
3257 2012-05-31  Jim Meyering  <meyering@redhat.com>
3258
3259         savewd: add missing dependency on sys_wait module
3260         * modules/savewd (Depends-on): Add sys_wait, needed at least
3261         for MSVC.  Report and suggested change by Michael Goffioul.
3262
3263 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3264
3265         system-quote-tests: port to CentOS 5
3266         Problem reported by Tom G. Christensen in
3267         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3268         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3269
3270 2012-05-29  Jim Meyering  <meyering@redhat.com>
3271
3272         maint: fix typos in comments and ChangeLog
3273         Culprits identified and fixed mostly automatically using these commands:
3274         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3275         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3276         using http://github.com/lyda/misspell-check
3277         * ChangeLog: Fix typos.
3278         * doc/solaris-versions: Likewise.
3279         * lib/regexec.c (re_search_stub): Likewise.
3280         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3281
3282 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3283
3284         manywarnings: remove duplicate -Wmultichar entry
3285         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3286         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3287         so keep the entry marked as documented.
3288
3289 2012-05-27  Karl Berry  <karl@gnu.org>
3290
3291         * config/srclist.txt (mktime.c): remove last libc sync,
3292         perhaps just temporarily.
3293
3294 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3295
3296         regex: don't assume uint64_t or uint32_t
3297         * lib/regcomp.c (init_word_char): Don't assume that the types
3298         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3299         them, and on some 32-bit compilers there is no uint64_t.
3300         Problem reported by Gianluigi Tiesi in
3301         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3302
3303 2012-05-25  Jim Meyering  <meyering@redhat.com>
3304
3305         maint.mk: add strncpy-prohibiting syntax-check rule
3306         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3307
3308 2012-05-24  Jim Meyering  <meyering@redhat.com>
3309
3310         maint.mk: compute $(gpg_key_ID) more portably
3311         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3312         That use of sed is not portable to some fringe systems.
3313         Reported by Paul Eggert in
3314         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3315
3316 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3317
3318         mktime: sync from glibc
3319         * config/srclist.txt: Uncomment mktime.c.
3320         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3321         First, indent with tabs, since glibc uses tabs and doesn't want to
3322         change and we'd rather be identical to glibc.  Also, two small
3323         coding changes:
3324         (isdst_differ): Use &&, not &, as && is the usual style.
3325         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3326         for clarity.
3327
3328 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3329
3330         announce-gen: du -h is more portable than du --human
3331         * build-aux/announce-gen (sizes): Invoke du with -h instead
3332         of --human.  Accept leading white space in its output.
3333
3334 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3335
3336         announce-gen: Improve diagnostics.
3337         * build-aux/announce-gen: When parsing command line options,
3338         prefer "announce-gen: option --release-type requires an argument"
3339         to "Option release-type requires an argument".
3340
3341 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3342
3343         maint.mk: gpg_key_ID: use sed more portably
3344         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3345         the closing brace.
3346         (refresh-po): Fuse two sed invocations into one.
3347
3348 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3349
3350         gitlog-to-changelog: support the log message format used in Bison.
3351         * build-aux/gitlog-to-changelog: Support --strip-tab and
3352         --strip-cherry-picked.
3353
3354 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3355
3356         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3357         the rest of the current time slice to another thread in the current
3358         process. So if the thread that feeds the file decscriptor we're
3359         polling is not in the current process, we get busy-waiting.
3360         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3361         Patch from Theodore Leblond.
3362         * lib/select.c: Split polling out of the loop that sets the output
3363         fd_sets.  Check for zero result and loop if the wait timeout is
3364         infinite.
3365
3366 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3367
3368         select: Fix build error on IRIX 6.5.
3369         * lib/select.c: Include stddef.h for NULL.
3370
3371 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3372
3373         gc: fix libgcrypt detection on older machines.
3374         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3375         copyright years because the file has been distributed every year
3376         since it was created.
3377
3378 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3379
3380         crypto: fix bug in large buffer handling
3381         Problem reported by Serge Belyshev for glibc in
3382         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3383         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3384         * lib/md4.c (md4_process_block):
3385         * lib/md5.c (md5_process_block):
3386         * lib/sha1.c (sha1_process_block):
3387         * lib/sha256.c (sha256_process_block):
3388         Don't assume the buffer length is less than 2**32.
3389         * lib/sha512.c (sha512_process_block): Likewise.
3390         Here, the bug is present only in the rare case where the host does
3391         not support uint64_t or where size_t is wider than 64 bits.
3392         Use u64size to work around the problems.
3393         * lib/u64.h (u64size): New macro.
3394
3395 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3396
3397         fsusage: fix block size returned on older Linux 2.6
3398
3399         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3400         which is available since Linux 2.6.
3401         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3402         when the member is available so it can be used as a fallback.
3403         * doc/posix-functions/statvfs.texi: Mention the hang issue
3404         on Linux < 2.6.36.
3405
3406 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3407
3408         bootstrap: suppress stderr chatter
3409         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3410         Omit unnecessary chatter to stderr.  The main program chatter
3411         was there only inadvertantly.
3412
3413         bootstrap: .gitignore files created by autopoint, libtool
3414         I ran into this problem when bootstrapping the latest diffutils.
3415         After './bootstrap', 'git status' reported lots of untracked files
3416         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3417         autopoint and do not need to be version-controlled.
3418         * build-aux/bootstrap: Put into .gitignore the files that
3419         autopoint and libtool create, by keeping track of files that exist
3420         after but not before these programs are run.
3421         (version_controlled_file): Move up.  2nd arg is now full file
3422         name, not base name; this is more convenient.  Put CVS at the end,
3423         as it's now somewhat deprecated.
3424
3425 2012-05-14  Jim Meyering  <meyering@redhat.com>
3426
3427         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3428         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3429         definition.  Reported by Bruno Haible.
3430
3431 2012-05-13  Bruno Haible  <bruno@clisp.org>
3432             Paul Eggert  <eggert@cs.ucla.edu>
3433
3434         binary-io: Define set_binary_mode function.
3435         * lib/binary-io.h (set_binary_mode): New function.
3436         (SET_BINARY): Define in terms of set_binary_mode.
3437         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3438         * tests/test-binary-io.c (main): Accept an argument, and test either
3439         set_binary_mode or SET_BINARY depending on the argument.
3440         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3441         argument. Clean up also t-bin-out0.tmp.
3442
3443 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3444
3445         bootstrap: take advantage of POSIX shell features
3446
3447         The 'bootstrap' script offered by Gnulib script already uses POSIX
3448         shell features (like $((...)) arithmetic expansions) that are not
3449         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3450         means that bootstrap must already be run using a proper POSIX shell,
3451         which will thus provide more features, like ${var#pattern} parameter
3452         expansion or inversion of a command exit status with '!'.  We can
3453         thus use these features to improve the clarity and the performances
3454         of the bootstrap script.
3455
3456         Suggested by Eric Blake.
3457
3458         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3459         of sed/expr plus command substitutions, to save some forks.  While
3460         we are at it, prefer the POSIX $(...) form of command substitution,
3461         rather than the legacy form `...` (since the former is visually
3462         clearer and interacts better with quoting), and prefer the idiom:
3463           "if ! CMD; then ACTION ..."
3464         over the idiom:
3465           "if CMD; then :; else ACTION ..."
3466         which was required by legacy Bourne shells not supporting '!'.
3467
3468 2012-05-12  Bruno Haible  <bruno@clisp.org>
3469
3470         system-quote: Add more comments.
3471         * lib/system-quote.h: Add more comments about wilcards and limitations.
3472         Suggested by Eli Zaretskii <eliz@gnu.org>.
3473
3474         sh-quote, system-quote: Add comments about wildcards.
3475         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3476         * lib/system-quote.h: Likewise.
3477         Reported by Eli Zaretskii <eliz@gnu.org>.
3478
3479 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3480
3481         fsusage: check for GNU/Linux statvfs problem dynamically
3482         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3483         Define STAT_STATFS2_BSIZE too, since in this case the code now
3484         checks dynamically whether statvfs is reliable, falling back on
3485         Linux-style statfs otherwise.
3486         (statvfs_works): New function, for dynamically testing statvfs.
3487         (get_fs_usage) [STAT_STATVFS]: Use it.
3488         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3489         statvfs on GNU/Linux hosts, since it's now done dynamically.
3490
3491 2012-05-10  Bruno Haible  <bruno@clisp.org>
3492
3493         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3494         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3495         '?' character.
3496         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3497         * tests/test-system-quote-main.c (check_all): Check also strings like
3498         "??????????".
3499         Reported by Eli Zaretskii <eliz@gnu.org>.
3500
3501 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3502
3503         _Noreturn: port config.h to gcc -Wundef
3504         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3505         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3506         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3507
3508 2012-05-10  Bruno Haible  <bruno@clisp.org>
3509
3510         system-quote: Refactor.
3511         * lib/system-quote.h (system_quote_copy): Fix comment.
3512         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3513         New functions, extracted from system_quote_copy.
3514         (system_quote_length, system_quote_copy): Use these functions.
3515         Reported by Paul Eggert.
3516
3517 2012-05-08  Bruno Haible  <bruno@clisp.org>
3518
3519         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3520         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3521
3522 2012-05-08  Bruno Haible  <bruno@clisp.org>
3523
3524         Tests for module 'system-quote'.
3525         * modules/system-quote-tests: New file.
3526         * tests/test-system-quote.sh: New file.
3527         * tests/test-system-quote-main.c: New file.
3528         * tests/test-system-quote-child.c: New file.
3529
3530         New module 'system-quote'.
3531         * lib/system-quote.h: New file.
3532         * lib/system-quote.c: New file.
3533         * modules/system-quote: New file.
3534
3535 2012-05-08  Bruno Haible  <bruno@clisp.org>
3536
3537         sh-quote: Make C++ safe and allow multiple inclusion.
3538         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3539         declarations in extern "C".
3540
3541 2012-05-08  Bruno Haible  <bruno@clisp.org>
3542
3543         sh-quote tests: Make tests stricter.
3544         * tests/test-sh-quote.c (check_one): Check the return value of
3545         shell_quote_copy.
3546         (main): Check a string with a CR character. Check a string that
3547         contains UCHAR_MAX.
3548
3549 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3550
3551         warnings.m4: provide a means to specify the program to compile.
3552         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3553         (gl_WARN_ADD): here.
3554         Use gl_AS_VAR_APPEND.
3555         Support an argument to specify the program to compile.
3556         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3557         AC_SUBST the WARN_CFLAGS when they are used.
3558         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3559         leave this to gl_WARN_ADD.
3560
3561 2012-05-08  Eric Blake  <eblake@redhat.com>
3562
3563         doc: recommendations on gettext version
3564         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3565         choice between versions.
3566         * DEPENDENCIES (gettext): Cover both approaches.
3567
3568 2012-05-08  Jim Meyering  <meyering@redhat.com>
3569
3570         init.sh: explain why EXEEXT support uses aliases rather than functions
3571         * tests/init.sh: Add a comment.
3572
3573         init.sh: don't let bash aliases interfere with tests
3574         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3575         is bash.  This avoids problems for those who alias standard commands to
3576         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3577         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3578
3579 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3580
3581         stdint: be more consistent with glibc, SunOS libc
3582         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3583         (gl_int_fast16_t, gl_uint_fast16_t)
3584         (gl_int_fast32_t, gl_uint_fast32_t)
3585         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3586         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3587         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3588         Be consistent with glibc by default, and with SunOS 5.10 and later
3589         if __sun is defined.  This lessens the likelihood of clashes if
3590         code compiled for older hosts is combined with code compiled for
3591         newer ones.  Problem reported by Niels Möller in
3592         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3593
3594 2012-05-07  Eric Blake  <eblake@redhat.com>
3595
3596         isatty: relax license to LGPLv2+
3597         * modules/isatty (License): Relax license.
3598
3599 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3600
3601         stat-size: comment fix
3602         * lib/stat-size.h: Remove obsolete comment about indenting.
3603
3604 2012-05-06  Bruno Haible  <bruno@clisp.org>
3605
3606         Tests for module 'sh-quote'.
3607         * modules/sh-quote-tests: New file.
3608         * tests/test-sh-quote.c: New file.
3609
3610 2012-05-06  Bruno Haible  <bruno@clisp.org>
3611
3612         sh-quote: Improve shell_quote_argv's signature.
3613         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3614         * lib/sh-quote.c (shell_quote_argv): Likewise.
3615
3616 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3617
3618         stdint: document issues with int_fast8_t etc.
3619         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3620         stdint.h substitutes may define these types differently.  See
3621         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3622
3623 2012-05-05  Bruno Haible  <bruno@clisp.org>
3624
3625         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3627         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3628         or 'guessing no (mishandles large arguments)'.
3629
3630 2012-05-05  Bruno Haible  <bruno@clisp.org>
3631
3632         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3633         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3634         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3635         set gl_cv_func_link_follows_symlink to "guessing no".
3636
3637 2012-05-05  Bruno Haible  <bruno@clisp.org>
3638
3639         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3640         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3641         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3642         "guessing no".
3643         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3644
3645 2012-05-05  Bruno Haible  <bruno@clisp.org>
3646
3647         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3648         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3649         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3650         set gl_cv_struct_dirent_d_ino to "guessing yes".
3651
3652 2012-05-05  Bruno Haible  <bruno@clisp.org>
3653
3654         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3655         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3656         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3657         "guessing yes".
3658
3659 2012-05-05  Bruno Haible  <bruno@clisp.org>
3660
3661         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3662         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3663         compiling to a glibc system, set gl_cv_func_signbit and
3664         gl_cv_func_signbit_gcc to "guessing yes".
3665
3666 2012-05-05  Bruno Haible  <bruno@clisp.org>
3667
3668         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3669         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3670         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3671         to "guessing yes".
3672         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3673         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3674
3675 2012-05-05  Bruno Haible  <bruno@clisp.org>
3676
3677         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3678         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3679         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3680         gl_cv_func_realpath_works to "guessing yes".
3681
3682 2012-05-05  Bruno Haible  <bruno@clisp.org>
3683
3684         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3686         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3687
3688 2012-05-04  Bruno Haible  <bruno@clisp.org>
3689
3690         Tweak last commit.
3691         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3692         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3693
3694 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3695
3696         unistd_h: make it easier to avoid sys_types_h
3697         This is useful for Emacs, which has its own method of porting to
3698         Windows, and which therefore does not need the sys_types_h module.
3699         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3700         code moved here from gl_SYS_TYPES_H.
3701         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3702         using the code directly.
3703         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3704         gl_SYS_TYPES_H.
3705         * modules/sys_types (Files):
3706         * modules/unistd (Files): Add m4/off_t.m4.
3707
3708 2012-05-03  Bruno Haible  <bruno@clisp.org>
3709
3710         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3711         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3712         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3713         "guessing yes" or "guessing no".
3714         (gl_FUNC_LSTAT): Update.
3715         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3716         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3717         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3718
3719 2012-05-03  Bruno Haible  <bruno@clisp.org>
3720
3721         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3722         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3723         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3724         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3725         cross-compiling, choose the first alternative on glibc systems.
3726         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3727
3728 2012-05-03  Bruno Haible  <bruno@clisp.org>
3729
3730         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3731         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3732         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3733
3734 2012-05-03  Bruno Haible  <bruno@clisp.org>
3735
3736         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3737         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3738
3739 2012-05-03  Bruno Haible  <bruno@clisp.org>
3740
3741         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3742         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3743         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3744         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3745         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3746         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3747         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3748         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3749         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3750         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3751         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3752         gl_cv_func_chown_ctime_works to "guessing yes".
3753         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3754         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3755         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3756         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3757         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3759         compiling to glibc systems, set gl_cv_func_open_directory_works to
3760         "guessing yes".
3761         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3762         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3763         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3764         "guessing yes".
3765         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3766         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3767         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3768         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3769         "guessing yes".
3770         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3771         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3772         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3773         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3774         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3775         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3776         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3777         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3778         "guessing yes".
3779         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3780         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3781         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3782         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3783         "guessing yes".
3784         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3785         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3786         "guessing yes".
3787         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3788         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3789         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3790         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3791         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3792         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3793         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3794         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3795         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3796         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3797         "guessing yes".
3798         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3799         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3800         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3801         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3802         "guessing yes".
3803         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3804         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3805         "guessing yes".
3806         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3807         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3808         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3809         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3810         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3811         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3812         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3813         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3814         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3815         "guessing yes".
3816         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3817         compiling to glibc systems, set gl_cv_func_mknod_works to
3818         "guessing yes".
3819         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3820         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3821         "guessing yes".
3822         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3823         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3824         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3825         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3826         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3827         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3828         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3829         compiling to glibc systems, set gl_cv_func_svid_putenv to
3830         "guessing yes".
3831         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3832         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3833         "guessing yes".
3834         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3835         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3836         "guessing yes".
3837         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3838         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3839         to "guessing yes".
3840         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3841         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3842         to "guessing yes".
3843         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3844         compiling to glibc systems, set gl_cv_func_rmdir_works to
3845         "guessing yes".
3846         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3847         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3848         gl_cv_func_unlink_parent_fails to "guessing yes".
3849         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3850         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3851         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3852         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3853         gl_cv_func_rename_dest_works to "guessing yes".
3854         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3855         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3856         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3857         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3858         "guessing yes".
3859         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3860         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3861         "guessing yes".
3862         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3863         compiling to glibc systems, set gl_cv_func_setenv_works to
3864         "guessing yes".
3865         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3866         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3867         "guessing yes".
3868         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3869         compiling to glibc systems, set gl_cv_func_sleep_works to
3870         "guessing yes".
3871         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3872         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3873         "guessing yes".
3874         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3875         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3876         "guessing yes".
3877         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3878         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3879         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3880         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3881         "guessing yes".
3882         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3883         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3884         "guessing yes".
3885         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3886         compiling to glibc systems, set gl_cv_func_usleep_works to
3887         "guessing yes".
3888         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3889         compiling to glibc systems, set gl_cv_func_futimesat_works to
3890         "guessing yes".
3891
3892 2012-05-03  Bruno Haible  <bruno@clisp.org>
3893
3894         Say "guessing yes" or "guessing no" when cross-compiling.
3895         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3896         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3897         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3898         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3899         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3900         am_cv_func_working_getline to "guessing yes" or "guessing no".
3901         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3902         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3903         (gl_FUNC_MEMMEM): When cross-compiling, set
3904         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3906         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3908         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3909         "guessing no".
3910         (gl_FUNC_STRCASESTR): When cross-compiling, set
3911         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3912         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3913         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3914         (gl_FUNC_STRSTR): When cross-compiling, set
3915         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3916         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3917         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3918         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3919         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3920
3921 2012-05-01  Bruno Haible  <bruno@clisp.org>
3922
3923         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3924         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3925         * build-aux/reloc-ldflags: Likewise.
3926         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3927
3928 2012-05-01  Bruno Haible  <bruno@clisp.org>
3929
3930         gnulib-tool: Remove transitional code.
3931         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3932         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3933
3934 2012-05-01  Bruno Haible  <bruno@clisp.org>
3935
3936         getcwd: Fix misindentation.
3937         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3938
3939 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3940
3941         exclude: process exclude and include directives in order
3942         This restores the pre-2009 behavior, and is part of a fix of a
3943         grep bug reported by Quentin Arce in
3944         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3945         * lib/exclude.c (struct exclude): Remove 'tail' member.
3946         (new_exclude_segment): Prepend the new segment instead of appending.
3947         Return void, since that's now more convenient.
3948         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3949         (file_name_matches): Renamed from excluded_file_name_p.
3950         (file_pattern_matches, file_name_matches):
3951         Return true if the pattern matches, not if it excludes.
3952         All callers changed.
3953         (excluded_file_name): Process the list in reverse order;
3954         since the list is now reversed this restores the pre-2009 behavior.
3955         (add_exclude): Adjust to new reversed-order list.  Use local var
3956         rather than macro, for clarity.
3957         * tests/test-exclude7.sh: Adjust to corrected behavior.
3958
3959         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3960         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3961         it's not possible here.  Handle the case of \ at end of pattern
3962         without dumping core.
3963         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3964
3965         _Noreturn: future-proof non-GNU and non-MSVC compilers
3966         * build-aux/snippet/_Noreturn.h (_Noreturn):
3967         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3968         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3969         C11 or later.  This is more likely to work with random future C
3970         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3971         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3972
3973         exclude: handle wildcards with FNM_EXTMATCH
3974         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3975         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3976         comment that "has wildcards" really means "has or may have
3977         wildcards".  Simplify by avoiding the need to call strcspn.
3978
3979 2012-04-29  Bruno Haible  <bruno@clisp.org>
3980
3981         gnulib-tool: Fix list of authors.
3982         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3983
3984 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3985
3986         bootstrap: support Automake-NG in $buildreq
3987         * bootstrap (check_versions): Handle automake and aclocal from
3988         Automake-NG specially.  They can be specified as respectively
3989         the "automake-ng" and "aclocal-ng" requirements.
3990
3991 2012-04-25  Eric Blake  <eblake@redhat.com>
3992
3993         bootstrap: only force latest Makefile.in.in for gettext module
3994         * build-aux/bootstrap (with_gettext): Only install latest
3995         Makefile.in.in for projects requesting bleeding edge gettext.
3996
3997 2012-04-22  Bruno Haible  <bruno@clisp.org>
3998
3999         doc: Mention reason for replacement on glibc/Linux systems.
4000         * doc/posix-functions/dprintf.texi: Mention the problem with special
4001         'long double' values.
4002         * doc/posix-functions/fprintf.texi: Likewise.
4003         * doc/posix-functions/printf.texi: Likewise.
4004         * doc/posix-functions/snprintf.texi: Likewise.
4005         * doc/posix-functions/sprintf.texi: Likewise.
4006         * doc/posix-functions/vdprintf.texi: Likewise.
4007         * doc/posix-functions/vfprintf.texi: Likewise.
4008         * doc/posix-functions/vprintf.texi: Likewise.
4009         * doc/posix-functions/vsnprintf.texi: Likewise.
4010         * doc/posix-functions/vsprintf.texi: Likewise.
4011         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4012         platforms with F_DUPFD_CLOEXEC problems.
4013         * doc/posix-functions/glob.texi: Mention which platforms are affected
4014         by the problem with symbolic links.
4015         * doc/posix-functions/linkat.texi: Mention the problem with
4016         AT_SYMLINK_FOLLOW on Linux.
4017
4018 2012-04-22  Bruno Haible  <bruno@clisp.org>
4019
4020         pwrite: Don't replace on all platforms.
4021         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4022
4023 2012-04-22  Bruno Haible  <bruno@clisp.org>
4024
4025         rint* tests: Avoid gcc warnings.
4026         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4027         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4028         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4029
4030 2012-04-21  Bruno Haible  <bruno@clisp.org>
4031
4032         users.txt: Update.
4033         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4034         switched from CVS to git, bzr, or svn.
4035
4036 2012-04-21  Bruno Haible  <bruno@clisp.org>
4037
4038         Large File Support for native Windows platforms.
4039
4040         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4041         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4042
4043         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4044         type.
4045         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4046         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4047         * doc/posix-headers/sys_types.texi: Mention the effect of the
4048         'largefile' module.
4049
4050         * lib/fcntl.in.h: Add comments about off_t.
4051         * modules/fcntl-h (Depends-on): Add sys_types.
4052
4053         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4054         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4055         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4056         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4057         * modules/unistd (Depends-on): Add sys_types.
4058         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4059
4060         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4061         instead of lseek.
4062         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4063         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4064         * modules/lseek (Depends-on): Add sys_types.
4065
4066         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4067         msvc-nothrow.h.
4068         (SetFileSize): New function.
4069         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4070         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4071         if Large File Support is requested.
4072         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4073         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4074
4075         * lib/stdio.in.h: Add comments about off_t.
4076         * modules/stdio (Depends-on): Add sys_types.
4077
4078         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4079         instead of ftello.
4080         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4081         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4082         (gl_PREREQ_FTELLO): New macro.
4083         * modules/ftello (Depends-on): Add sys_types.
4084         (configure.ac): Incoke gl_PREREQ_FTELLO.
4085
4086         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4087         instead of fseeko.
4088         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4089         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4090         (gl_PREREQ_FSEEKO): New macro.
4091         * modules/fseeko (Depends-on): Add sys_types.
4092         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4093
4094         * lib/sys_stat.in.h: Add comments about off_t.
4095         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4096         64-bit integer for st_size in 'struct stat'.
4097         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4098         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4099         * modules/sys_stat (Depends-on): Add sys_types.
4100         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4101
4102         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4103         instead of stat or _stat.
4104
4105         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4106         'struct _stati64' instead of fstat and 'struct stat'.
4107         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4108         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4109
4110         Reported by Ray Satiro <raysatiro@yahoo.com>.
4111
4112 2012-04-19  Eric Blake  <eblake@redhat.com>
4113
4114         bootstrap: accommodate older libtool
4115         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4116         Reported by Daniel P. Berrange.
4117
4118 2012-04-19  Jim Meyering  <meyering@redhat.com>
4119
4120         announce-gen: avoid failure due to lack of Digest::SHA1
4121         Even with the preferred Digest::SHA available, this script
4122         would fail when the backup module, Digest::SHA1, was not installed.
4123         * build-aux/announce-gen: Quote the conditional use of "use".
4124         Reported by Reuben Thomas in:
4125         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4126
4127         bootstrap: don't let a user's CDPATH setting affect this script
4128         When CDPATH is set, cd will sometimes generate output.
4129         When "cd" is run in a subshell whose output matters, that
4130         surprising-to-some output can cause malfunction.
4131         Unsetting CDPATH turns off this shell "feature."
4132         * build-aux/bootstrap (CDPATH): Unset.
4133         Reported by Reuben Thomas in:
4134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4135         and inspired by his patch here:
4136         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4137
4138 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4139         and Jim Meyering  <meyering@redhat.com>
4140
4141         maint.mk: catch "see @xref{}" and similar
4142         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4143         prohibit "See also @xref{", "Also see @pxref{", and similar.
4144
4145 2012-04-16  Jim Meyering  <meyering@redhat.com>
4146
4147         bootstrap: really use gnulib's po/Makefile.in.in
4148         * build-aux/bootstrap: Correct the source file name in previous change.
4149         Reported by Akim Demaille.
4150
4151         configmake: correct minor inconsistency in Makefile rule
4152         * modules/configmake (Makefile.am): All other rules like this one
4153         run the final "mv -f ..." in the same backslash-continued command
4154         as the one that does everything else.  This one put the mv -f ...
4155         command on a separate, non-backslash-continued line.
4156         Make it like the others.
4157
4158         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4159         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4160         the one from gettext.  Reported by Akim Demaille.
4161
4162 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4163
4164         Fix recursion of install-* into po directories.
4165         Bison's install-pdf bug reported by Hans Aberg at
4166         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4167         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4168         (install-info, install-pdf, install-ps): New targets.
4169
4170 2012-04-16  Jim Meyering  <meyering@redhat.com>
4171
4172         maint: avoid spurious "make sc_maint" failure
4173         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4174         exempt all *.class file names, for lib/javaversion.class.
4175
4176 2012-04-15  Bruno Haible  <bruno@clisp.org>
4177
4178         lseek: Make configure test independent of environment.
4179         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4180         Windows, we know that lseek() on pipes is broken; skip the runtime
4181         test.
4182
4183 2012-04-14  Bruno Haible  <bruno@clisp.org>
4184
4185         stat: Bypass buggy override in mingw64.
4186         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4187         * lib/stat.c (stat) [mingw64]: Define to _stat.
4188         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4189
4190 2012-04-14  Bruno Haible  <bruno@clisp.org>
4191
4192         pathmax: Fix compilation error on MSVC 9.
4193         * modules/pathmax (Depends-on): Add unistd.
4194
4195 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4196
4197         README: document pointer comparison assumption
4198         * README (Portability guidelines): Document assumption about
4199         pointer comparisons, in response to a recent bug-gnulib comment by
4200         Jeffrey Kegler.
4201
4202 2012-04-12  Bruno Haible  <bruno@clisp.org>
4203
4204         Tests for module 'getrusage'.
4205         * modules/getrusage-tests: New file.
4206         * tests/test-getrusage.c: New file.
4207
4208         New module 'getrusage'.
4209         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4210         warn-on-use.h.
4211         (getrusage): New declaration.
4212         * lib/getrusage.c: New file.
4213         * m4/getrusage.m4: New file.
4214         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4215         is declared.
4216         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4217         HAVE_GETRUSAGE.
4218         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4219         snippet/c++defs, snippet/warn-on-use.
4220         (Makefile.am): Update generation of sys/resource.h. Substitute
4221         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4222         * modules/getrusage: New file.
4223         * doc/posix-functions/getrusage.texi: Mention the new module.
4224
4225 2012-04-12  Bruno Haible  <bruno@clisp.org>
4226
4227         Tests for module 'sys_resource'.
4228         * modules/sys_resource-tests: New file.
4229         * tests/test-sys_resource.c: New file.
4230
4231         New module 'sys_resource'.
4232         * lib/sys_resource.in.h: New file.
4233         * m4/sys_resource_h.m4: New file.
4234         * modules/sys_resource: New file.
4235         * doc/posix-headers/sys_resource.texi: Mention the new module.
4236
4237 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4238
4239         ioctl: Fix compilation error on mingw.
4240         * lib/ioctl.c: Include <windows.h>.
4241         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4242
4243 2012-04-04  Jim Meyering  <meyering@redhat.com>
4244
4245         regex: correct #pragma guard expression
4246         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4247         not 4.3.  Correct its cpp guard expression.
4248
4249 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4250
4251         regex: remove unnecessary type punning
4252         Problem reported by Vladimir Serbinenko in
4253         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4254         * lib/regex.h (struct re_pattern_buffer): Change the type of
4255         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4256         Fix comment to match code.
4257         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4258         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4259         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4260         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4261         (set_regs):
4262         Omit no-longer-necessary casts.
4263
4264 2012-04-03  Bruno Haible  <bruno@clisp.org>
4265
4266         Tests for module 'ilogbl'.
4267         * modules/ilogbl-tests: New file.
4268         * tests/test-ilogbl.c: New file.
4269
4270         New module 'ilogbl'.
4271         * lib/math.in.h (ilogbl): New declaration.
4272         * lib/ilogbl.c: New file.
4273         * m4/ilogbl.m4: New file.
4274         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4276         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4277         Split sed invocation, to avoid the limit of 100 substitutions of
4278         HP-UX 'sed'.
4279         * modules/ilogbl: New file.
4280         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4281         * doc/posix-functions/ilogbl.texi: Mention the new module.
4282
4283 2012-04-03  Bruno Haible  <bruno@clisp.org>
4284
4285         Tests for module 'ilogbf'.
4286         * modules/ilogbf-tests: New file.
4287         * tests/test-ilogbf.c: New file.
4288
4289         New module 'ilogbf'.
4290         * lib/math.in.h (ilogbf): New declaration.
4291         * lib/ilogbf.c: New file.
4292         * m4/ilogbf.m4: New file.
4293         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4295         REPLACE_ILOGBF.
4296         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4297         REPLACE_ILOGBF.
4298         * modules/ilogbf: New file.
4299         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4300         * doc/posix-functions/ilogbf.texi: Mention the new module.
4301
4302 2012-04-03  Bruno Haible  <bruno@clisp.org>
4303
4304         Tests for module 'ilogb'.
4305         * modules/ilogb-tests: New file.
4306         * tests/test-ilogb.c: New file.
4307         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4308         tests/test-logb-ieee.h.
4309
4310         New module 'ilogb'.
4311         * lib/math.in.h (ilogb): New declaration.
4312         * lib/ilogb.c: New file.
4313         * m4/ilogb.m4: New file.
4314         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4316         REPLACE_ILOGB.
4317         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4318         REPLACE_ILOGB.
4319         * modules/ilogb: New file.
4320         * tests/test-math-c++.cc: Check the declaration of ilogb.
4321         * doc/posix-functions/ilogb.texi: Mention the new module.
4322
4323 2012-04-03  Bruno Haible  <bruno@clisp.org>
4324
4325         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4326         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4327         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4328         (main): Check their values.
4329         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4330         problem.
4331
4332 2012-04-03  Bruno Haible  <bruno@clisp.org>
4333
4334         Tests for module 'logbl-ieee'.
4335         * modules/logbl-ieee-tests: New file.
4336         * tests/test-logbl-ieee.c: New file.
4337
4338         New module 'logbl-ieee'.
4339         * modules/logbl-ieee: New file.
4340
4341         Tests for module 'logb-ieee'.
4342         * modules/logb-ieee-tests: New file.
4343         * tests/test-logb-ieee.c: New file.
4344
4345         New module 'logb-ieee'.
4346         * modules/logb-ieee: New file.
4347
4348         Tests for module 'logbf-ieee'.
4349         * modules/logbf-ieee-tests: New file.
4350         * tests/test-logbf-ieee.c: New file.
4351         * tests/test-logb-ieee.h: New file.
4352
4353         New module 'logbf-ieee'.
4354         * modules/logbf-ieee: New file.
4355
4356 2012-04-03  Bruno Haible  <bruno@clisp.org>
4357
4358         Tests for module 'logbl'.
4359         * modules/logbl-tests: New file.
4360         * tests/test-logbl.c: New file.
4361
4362         New module 'logbl'.
4363         * lib/math.in.h (logbl): New declaration.
4364         * lib/logbl.c: New file.
4365         * m4/logbl.m4: New file.
4366         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4368         REPLACE_LOGBL.
4369         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4370         REPLACE_LOGBL.
4371         * modules/logbl: New file.
4372         * tests/test-math-c++.cc: Check the declaration of logbl.
4373         * doc/posix-functions/logbl.texi: Mention the new module.
4374
4375 2012-04-02  Bruno Haible  <bruno@clisp.org>
4376
4377         Tests for module 'logbf'.
4378         * modules/logbf-tests: New file.
4379         * tests/test-logbf.c: New file.
4380
4381         New module 'logbf'.
4382         * lib/math.in.h (logbf): New declaration.
4383         * lib/logbf.c: New file.
4384         * m4/logbf.m4: New file.
4385         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4387         REPLACE_LOGBF.
4388         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4389         REPLACE_LOGBF.
4390         * modules/logbf: New file.
4391         * tests/test-math-c++.cc: Check the declaration of logbf.
4392         * doc/posix-functions/logbf.texi: Mention the new module.
4393
4394 2012-04-02  Bruno Haible  <bruno@clisp.org>
4395
4396         logb tests: More tests.
4397         * tests/test-logb.h: New file, based on tests/test-logb.c and
4398         tests/test-frexp.h.
4399         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4400         (main): Just invoke test_function.
4401         * modules/logb-tests (Files): Add tests/test-logb.h,
4402         tests/minus-zero.h, tests/randomd.c.
4403         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4404
4405         logb: Provide replacement and workarounds.
4406         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4407         is 1.
4408         * lib/logb.c: New file.
4409         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4410         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4412         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4413         * modules/logb (Files): Add lib/logb.c.
4414         (Depends-on): Add isfinite, frexp, isnand.
4415         (configure.ac): Compile the replacement code logb.c if needed.
4416         * tests/test-math-c++.cc: Check the declaration of logb.
4417         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4418         with subnormal numbers.
4419
4420 2012-04-02  Bruno Haible  <bruno@clisp.org>
4421
4422         log10* tests: Speed up.
4423         * tests/test-log10.h (test_function): Reduce amount of random numbers
4424         to test.
4425
4426 2012-04-01  Bruno Haible  <bruno@clisp.org>
4427
4428         logf-ieee: Fix test whether logf works.
4429         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4430
4431 2012-04-01  Bruno Haible  <bruno@clisp.org>
4432
4433         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4434         * lib/log10l.c: Include <float.h>
4435         (log10l): On IRIX, normalize the +Infinity value.
4436         * modules/log10l (Depends-on): Add 'float'.
4437         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4438         +Infinity.
4439
4440         log10f-ieee: Work around test failure on NetBSD 5.1.
4441         * m4/log10f-ieee.m4: New file.
4442         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4443         test whether log10f works with a negative argument. Replace it if not.
4444         * lib/log10f.c (log10f): For negative arguments, return NaN.
4445         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4446         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4447         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4448
4449         log10f-ieee: Work around test failure on Solaris 9.
4450         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4451         (configure.ac): Require gl_FUNC_LOG10F.
4452
4453         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4454         * m4/log10-ieee.m4: New file.
4455         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4456         whether log10 works with a negative argument. Replace it if not.
4457         * lib/log10.c (log10): For negative arguments, return NaN.
4458         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4459         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4460         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4461
4462         Tests for module 'log10l-ieee'.
4463         * modules/log10l-ieee-tests: New file.
4464         * tests/test-log10l-ieee.c: New file.
4465
4466         New module 'log10l-ieee'.
4467         * modules/log10l-ieee: New file.
4468
4469         Tests for module 'log10-ieee'.
4470         * modules/log10-ieee-tests: New file.
4471         * tests/test-log10-ieee.c: New file.
4472
4473         New module 'log10-ieee'.
4474         * modules/log10-ieee: New file.
4475
4476         Tests for module 'log10f-ieee'.
4477         * modules/log10f-ieee-tests: New file.
4478         * tests/test-log10f-ieee.c: New file.
4479         * tests/test-log10-ieee.h: New file.
4480
4481         New module 'log10f-ieee'.
4482         * modules/log10f-ieee: New file.
4483
4484 2012-04-01  Bruno Haible  <bruno@clisp.org>
4485
4486         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4487         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4488         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4489         workaround.
4490         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4491         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4493         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4494         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4495         (Depends-on): Update conditions.
4496         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4497         IRIX 6.5, OSF/1 5.1 problems.
4498
4499 2012-04-01  Bruno Haible  <bruno@clisp.org>
4500
4501         log10f: Work around OSF/1 5.1 bug.
4502         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4503         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4504         workaround.
4505         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4506         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4508         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4509         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4510         (Depends-on): Update conditions.
4511         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4512
4513 2012-04-01  Bruno Haible  <bruno@clisp.org>
4514
4515         log10: Work around OSF/1 5.1 bug.
4516         * lib/math.in.h (log10): New declaration.
4517         * lib/log10.c: New file.
4518         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4519         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4520         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4522         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4523         * modules/log10 (Files): Add lib/log10.c.
4524         (Depends-on): Add math.
4525         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4526         * tests/test-math-c++.cc: Check the declaration of log10.
4527         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4528
4529 2012-03-31  Bruno Haible  <bruno@clisp.org>
4530
4531         log10l tests: More tests.
4532         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4533         tests/minus-zero.h, tests/randoml.c.
4534         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4535         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4536         (main): Invoke test_function.
4537
4538         log10f tests: More tests.
4539         * modules/log10f-tests (Files): Add tests/test-log10.h,
4540         tests/minus-zero.h, tests/randomf.c.
4541         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4542         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4543         (main): Invoke test_function.
4544
4545         log10 tests: More tests.
4546         * tests/test-log10.h: New file.
4547         * modules/log10-tests (Files): Add tests/test-log10.h,
4548         tests/minus-zero.h, tests/randomd.c.
4549         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4550         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4551         (main): Invoke test_function.
4552
4553 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4554
4555         fflush: Fix syntax error.
4556         * lib/fflush.c: Include unused-parameter.h, needed for
4557         _GL_UNUSED_PARAMETER.
4558         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4559
4560 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4561
4562         regex: pacify GCC when compiling GRUB
4563         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4564         a diagnostic.  Reported by Vladimir Serbinenko in
4565         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4566
4567 2012-03-29  Eric Blake  <eblake@redhat.com>
4568
4569         stdio: don't assume gets any more
4570         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4571         support.
4572         * modules/stdio (Makefile.am): Likewise.
4573         * lib/stdio-read.c (gets): Likewise.
4574         * tests/test-stdio-c++.cc: Likewise.
4575         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4576         * lib/stdio.in.h (gets): Make warning occur in more places.
4577         * doc/posix-functions/gets.texi (gets): Update documentation.
4578         Reported by Christer Solskogen.
4579
4580         maint.mk: fix syntax checks without exclusions
4581         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4582         Reported by Daniel P. Berrange.
4583
4584         strerror_r: avoid compiler warning
4585         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4586         level.
4587
4588         fflush: avoid compiler warning
4589         * lib/fflush.c (update_fpos_cache): Mark variables that are
4590         potentially unused.
4591
4592 2012-03-25  Bruno Haible  <bruno@clisp.org>
4593
4594         Tests for module 'localeconv'.
4595         * modules/localeconv-tests: New file.
4596         * tests/test-localeconv.c: New file.
4597
4598         New module 'localeconv'.
4599         * lib/locale.in.h (localeconv): New declaration.
4600         * lib/localeconv.c: New file.
4601         * m4/localeconv.m4: New file.
4602         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4603         REPLACE_LOCALECONV.
4604         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4605         REPLACE_LOCALECONV.
4606         * modules/localeconv: New file.
4607         * modules/nl_langinfo (Depends-on): Add localeconv.
4608         * modules/human (Depends-on): Likewise.
4609         * doc/posix-functions/localeconv.texi: Mention the new module.
4610
4611 2012-03-25  Bruno Haible  <bruno@clisp.org>
4612
4613         locale: Provide a complete 'struct lconv'.
4614         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4615         'struct lconv' does not contain int_p_cs_precedes.
4616         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4617         * doc/posix-headers/locale.texi: Update.
4618
4619         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4620         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4621         * doc/posix-headers/locale.texi: Update.
4622
4623         locale: Provide a working 'struct lconv'.
4624         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4625         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4626         'struct lconv' does not even contain decimal_point.
4627         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4628         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4629         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4630         * doc/posix-headers/locale.texi: Mention the problems with
4631         'struct lconv'.
4632         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4633
4634 2012-03-24  Bruno Haible  <bruno@clisp.org>
4635
4636         Enable common subexpression optimization in GCC.
4637         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4638         macros.
4639         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4640         GCC attribute 'const'.
4641         (uc_locale_language): Declare with GCC attribute 'pure'.
4642         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4643         with GCC attribute 'const'.
4644         * lib/unictype.in.h (uc_is_general_category_withtable,
4645         uc_combining_class, uc_combining_class_name,
4646         uc_combining_class_long_name, uc_bidi_class_name,
4647         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4648         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4649         uc_decimal_value, uc_digit_value, uc_numeric_value,
4650         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4651         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4652         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4653         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4654         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4655         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4656         Declare with GCC attribute 'const'.
4657         (uc_general_category_name, uc_general_category_long_name,
4658         uc_general_category_byname, uc_general_category,
4659         uc_is_general_category, uc_combining_class_byname,
4660         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4661         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4662         Declare with GCC attribute 'pure'.
4663         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4664         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4665         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4666         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4667         with GCC attribute 'pure'.
4668         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4669         'const'.
4670         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4671         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4672         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4673         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4674         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4675         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4676         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4677         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4678         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4679         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4680         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4681         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4682         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4683         GCC attribute 'pure'.
4684         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4685         'const'.
4686         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4687         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4688         u32_strwidth): Declare with GCC attribute 'pure'.
4689
4690         Enable common subexpression optimization in GCC.
4691         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4692         (alphasort): Declare with GCC attribute 'pure'.
4693         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4694         (atoll): Declare with GCC attribute 'pure'.
4695         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4696         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4697         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4698         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4699         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4700         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4701         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4702
4703 2012-03-24  Bruno Haible  <bruno@clisp.org>
4704
4705         gnulib-tool: Avoid unintended error output from 'cmp'.
4706         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4707         "cmp -s", not "cmp > /dev/null".
4708
4709 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4710
4711         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4712
4713         It's not just Automake versions < 1.9b that creates an empty
4714         pkgdatadir at installation time if pkgdata_DATA is specified
4715         to empty; modern automake versions do this as well, at least
4716         until automake 1.11.4 (not yet released at the moment of writing,
4717         but soon to appear).  That behaviour was generally considered a
4718         feature rather than a bug, at least until this discussion:
4719         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4720
4721         See also automake bugs #10997 and #11030.
4722
4723         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4724         reference to relevant automake bug numbers.
4725         (func_emit_tests_Makefile_am): Likewise.
4726
4727 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4728
4729         announce-gen: use Digest::SHA when possible
4730         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4731         back to Digest::SHA1 if necessary.
4732
4733 2012-03-20  Jim Meyering  <meyering@redhat.com>
4734
4735         tests: avoid gcc warnings about argv vs. const initializers
4736         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4737         warnings about discarding 'const' qualifier from pointer target type.
4738         * tests/test-posix_spawn2.c (main): Likewise.
4739
4740 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4741
4742         README-release: simplify slightly
4743         * top/README-release: Run "git checkout master" only once.
4744
4745 2012-03-15  Mark Wielaard  <mark@klomp.org>
4746
4747         git-merge-changelog: add specific example on how to use with hg.
4748         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4749
4750 2012-03-18  Mark Wielaard  <mark@klomp.org>
4751
4752         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4753
4754 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4755
4756         git-version-gen: don't let "prefix" envvar cause trouble
4757         * build-aux/git-version-gen (prefix): Initialize properly,
4758         so as not to use a value specified via the environment.
4759         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4760
4761 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4762
4763         regex: diagnose too-large repeat counts in EREs
4764         Previously, the code did not diagnose the too-large repeat count
4765         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4766         as if it were 'b\{1000000000}', which is unexpected.
4767         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4768         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4769         is a reasonable one for this problem.  Another option would be to
4770         create a new REG_OVERFLOW error for repeat counts that are too large.
4771         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4772         count is too large, so that the caller can distinguish the two cases.
4773         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4774         "Too large" return code, and that repeat counts are one example of this.
4775
4776 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4777
4778         doc: some glibc x32 integer width issues
4779         * doc/posix-headers/sys_types.texi (sys/types.h):
4780         * doc/posix-headers/time.texi (time.h):
4781         Mention that glibc x32 does not conform to POSIX in a couple of
4782         areas related to integer widths.
4783
4784 2012-03-15  Bruno Haible  <bruno@clisp.org>
4785
4786         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4787         * lib/fma.c (VOLATILE): New macro.
4788         (FUNC): Use it to work around a GCC compiler bug.
4789
4790 2012-03-13  Bruno Haible  <bruno@clisp.org>
4791
4792         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4793         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4794         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4795         REPLACE_HYPOTL to 1.
4796         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4797
4798 2012-03-13  Bruno Haible  <bruno@clisp.org>
4799
4800         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4801         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4802         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4803         REPLACE_REMAINDERL to 1.
4804         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4805         bug.
4806
4807 2012-03-13  Bruno Haible  <bruno@clisp.org>
4808
4809         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4810         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4811         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4812         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4813         too big rounding errors.
4814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4815         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4816         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4817         (Depends-on): Update conditions.
4818         * tests/test-sqrtl.c (my_ldexpl): New function.
4819         (main): Add test of a particular value.
4820         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4821
4822 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4823
4824         doc: Update timer_* platform portability notes.
4825         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4826         that always return ENOSYS.
4827         * doc/posix-functions/timer_delete.texi: Likewise.
4828         * doc/posix-functions/timer_gettime.texi: Likewise.
4829         * doc/posix-functions/timer_settime.texi: Likewise.
4830
4831 2012-03-13  Bruno Haible  <bruno@clisp.org>
4832
4833         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4834         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4835         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4836         REPLACE_CBRTL to 1.
4837         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4838
4839 2012-03-13  Bruno Haible  <bruno@clisp.org>
4840
4841         remainderl: Avoid compilation error on AIX >= 5.2.
4842         * lib/math.in.h (remainderl): Undefine macro from the system header.
4843
4844 2012-03-13  Bruno Haible  <bruno@clisp.org>
4845
4846         Avoid compilation errors with MSVC option -fp:strict.
4847         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4848         * lib/cbrtf.c: Likewise.
4849         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4850
4851 2012-03-12  Bruno Haible  <bruno@clisp.org>
4852
4853         uninorm: Don't crash in out-of-memory conditions.
4854         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4855         gracefully.
4856         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4857         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4858
4859 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4860
4861         quote: fix syntax-check
4862         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4863         also exports quote_quoting_options.
4864
4865 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4866
4867         Collapse list of copyright years to ranges.  See
4868         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4869         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4870         build-aux/csharpexec.sh.in, build-aux/gnupload,
4871         build-aux/install-reloc, build-aux/javacomp.sh.in,
4872         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4873         build-aux/move-if-change, build-aux/reloc-ldflags,
4874         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4875
4876 2012-03-11  Bruno Haible  <bruno@clisp.org>
4877
4878         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4879         * m4/log2f-ieee.m4: New file.
4880         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4881         whether log2f works with a minus zero argument. Replace it if not.
4882         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4883         (Depends-on): Add log2-ieee.
4884         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4885         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4886
4887         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4888         * m4/log2-ieee.m4: New file.
4889         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4890         whether log2 works with a minus zero argument. Replace it if not.
4891         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4892         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4893         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4894
4895         Tests for module 'log2l-ieee'.
4896         * modules/log2l-ieee-tests: New file.
4897         * tests/test-log2l-ieee.c: New file.
4898
4899         New module 'log2l-ieee'.
4900         * modules/log2l-ieee: New file.
4901
4902         Tests for module 'log2-ieee'.
4903         * modules/log2-ieee-tests: New file.
4904         * tests/test-log2-ieee.c: New file.
4905
4906         New module 'log2-ieee'.
4907         * modules/log2-ieee: New file.
4908
4909         Tests for module 'log2f-ieee'.
4910         * modules/log2f-ieee-tests: New file.
4911         * tests/test-log2f-ieee.c: New file.
4912         * tests/test-log2-ieee.h: New file.
4913
4914         New module 'log2f-ieee'.
4915         * modules/log2f-ieee: New file.
4916
4917 2012-03-11  Bruno Haible  <bruno@clisp.org>
4918
4919         Tests for module 'log2l'.
4920         * modules/log2l-tests: New file.
4921         * tests/test-log2l.c: New file.
4922
4923         New module 'log2l'.
4924         * lib/math.in.h (log2l): New declaration.
4925         * lib/log2l.c: New file.
4926         * m4/log2l.m4: New file.
4927         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4929         REPLACE_LOG2L.
4930         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4931         REPLACE_LOG2L.
4932         * modules/log2l: New file.
4933         * tests/test-math-c++.cc: Check the declaration of log2l.
4934         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4935         and OSF/1 problems.
4936
4937 2012-03-11  Bruno Haible  <bruno@clisp.org>
4938
4939         Tests for module 'log2f'.
4940         * modules/log2f-tests: New file.
4941         * tests/test-log2f.c: New file.
4942
4943         New module 'log2f'.
4944         * lib/math.in.h (log2f): New declaration.
4945         * lib/log2f.c: New file.
4946         * m4/log2f.m4: New file.
4947         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4949         REPLACE_LOG2F.
4950         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4951         REPLACE_LOG2F.
4952         * modules/log2f: New file.
4953         * tests/test-math-c++.cc: Check the declaration of log2f.
4954         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4955         and OSF/1 and Cygwin problems.
4956
4957 2012-03-11  Bruno Haible  <bruno@clisp.org>
4958
4959         Tests for module 'log2'.
4960         * modules/log2-tests: New file.
4961         * tests/test-log2.c: New file.
4962         * tests/test-log2.h: New file.
4963
4964         New module 'log2'.
4965         * lib/math.in.h (log2): New declaration.
4966         * lib/log2.c: New file.
4967         * m4/log2.m4: New file.
4968         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4970         REPLACE_LOG2.
4971         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4972         REPLACE_LOG2.
4973         * modules/log2: New file.
4974         * tests/test-math-c++.cc: Check the declaration of log2.
4975         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4976         and OSF/1 and Cygwin problems.
4977
4978 2012-03-11  Bruno Haible  <bruno@clisp.org>
4979
4980         exp2* tests: More tests.
4981         * tests/test-exp2.h (test_function): Test all integral arguments that
4982         don't need to overflow or denormalized numbers.
4983         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4984         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4985         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4986
4987 2012-03-10  Bruno Haible  <bruno@clisp.org>
4988
4989         log1pl-ieee: Work around test failure on AIX 7.1.
4990         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4991
4992         log1pl-ieee: Work around test failure on IRIX 6.5.
4993         * m4/log1pl-ieee.m4: New file.
4994         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4995         test whether log1pl works with a minus zero argument. Replace it if
4996         not.
4997         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4999         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5000         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5001         (Depends-on): Update conditions.
5002         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5003         m4/signbit.m4.
5004         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5005         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5006
5007         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5008         * m4/log1pf-ieee.m4: New file.
5009         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5010         test whether log1pf works with a minus zero argument. Replace it if
5011         not.
5012         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5013         m4/signbit.m4.
5014         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5015         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5016
5017         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5018         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5019         (configure.ac): Require gl_FUNC_LOG1PF.
5020
5021         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5022         * m4/log1p-ieee.m4: New file.
5023         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5024         whether log1p works with a minus zero argument. Replace it if not.
5025         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5027         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5028         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5029         (Depends-on): Update conditions.
5030         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5031         m4/signbit.m4.
5032         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5033         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5034
5035         Tests for module 'log1pl-ieee'.
5036         * modules/log1pl-ieee-tests: New file.
5037         * tests/test-log1pl-ieee.c: New file.
5038
5039         New module 'log1pl-ieee'.
5040         * modules/log1pl-ieee: New file.
5041
5042         Tests for module 'log1p-ieee'.
5043         * modules/log1p-ieee-tests: New file.
5044         * tests/test-log1p-ieee.c: New file.
5045
5046         New module 'log1p-ieee'.
5047         * modules/log1p-ieee: New file.
5048
5049         Tests for module 'log1pf-ieee'.
5050         * modules/log1pf-ieee-tests: New file.
5051         * tests/test-log1pf-ieee.c: New file.
5052         * tests/test-log1p-ieee.h: New file.
5053
5054         New module 'log1pf-ieee'.
5055         * modules/log1pf-ieee: New file.
5056
5057 2012-03-10  Bruno Haible  <bruno@clisp.org>
5058
5059         Tests for module 'log1pl'.
5060         * modules/log1pl-tests: New file.
5061         * tests/test-log1pl.c: New file.
5062
5063         New module 'log1pl'.
5064         * lib/math.in.h (log1pl): New declaration.
5065         * lib/log1pl.c: New file.
5066         * m4/log1pl.m4: New file.
5067         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5069         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5070         * modules/log1pl: New file.
5071         * tests/test-math-c++.cc: Check the declaration of log1pl.
5072         * doc/posix-functions/log1pl.texi: Mention the new module.
5073
5074 2012-03-10  Bruno Haible  <bruno@clisp.org>
5075
5076         Tests for module 'log1pf'.
5077         * modules/log1pf-tests: New file.
5078         * tests/test-log1pf.c: New file.
5079
5080         New module 'log1pf'.
5081         * lib/math.in.h (log1pf): New declaration.
5082         * lib/log1pf.c: New file.
5083         * m4/log1pf.m4: New file.
5084         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5086         REPLACE_LOG1PF.
5087         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5088         REPLACE_LOG1PF.
5089         * modules/log1pf: New file.
5090         * tests/test-math-c++.cc: Check the declaration of log1pf.
5091         * doc/posix-functions/log1pf.texi: Mention the new module.
5092
5093 2012-03-10  Bruno Haible  <bruno@clisp.org>
5094
5095         log1p tests: More tests.
5096         * tests/test-log1p.h: New file.
5097         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5098         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5099         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5100         (main): Invoke test_function.
5101
5102         log1p: Provide replacement for Minix and MSVC.
5103         * lib/math.in.h (log1p): New declaration.
5104         * lib/log1p.c: New file.
5105         * m4/log1p.m4: New file.
5106         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5108         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5109         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5110         (Depends-on): Add math, isnand, log, round.
5111         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5112         HAVE_LOG1P is 0.
5113         * tests/test-math-c++.cc: Check the declaration of log1p.
5114         * doc/posix-functions/log1p.texi: Mention the replacement.
5115
5116 2012-03-10  Bruno Haible  <bruno@clisp.org>
5117
5118         math tests: Small simplification.
5119         * tests/test-exp.h (test_function): Use the same err_bound for
5120         'double' on platforms with sizeof (long double) == sizeof (double)
5121         than on platforms with sizeof (long double) > sizeof (double).
5122         * tests/test-exp2.h (test_function): Likewise.
5123         * tests/test-expm1.h (test_function): Likewise.
5124         * tests/test-log.h (test_function): Likewise.
5125
5126 2012-03-10  Bruno Haible  <bruno@clisp.org>
5127
5128         Fix some comments.
5129         * lib/expl.c: Fix an ambiguous comment.
5130         * lib/expm1.c: Likewise.
5131         * lib/expm1l.c: Likewise.
5132         * lib/exp2.c: Likewise.
5133         * lib/exp2l.c: Likewise.
5134
5135 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5136
5137         regex: allow inclusion of <regex.h> before <limits.h>
5138         Without this patch, portable programs had to include <limits.h> before
5139         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5140         I ran into this problem with a test version of GNU grep on Solaris 8.
5141         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5142         This is done conditionally so that this change can be merged
5143         back to glibc.
5144         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5145         using the included regex.
5146
5147         fts: depend on fdopendir
5148         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5149         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5150         problem was introduced when fdopendir was split out.
5151
5152 2012-03-10  Bruno Haible  <bruno@clisp.org>
5153
5154         Remove unused variables.
5155         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5156         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5157
5158 2012-03-10  Bruno Haible  <bruno@clisp.org>
5159
5160         isnanf-nolibm: Fix last commit.
5161         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5162
5163         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5164         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5165
5166 2012-03-10  Bruno Haible  <bruno@clisp.org>
5167
5168         logf-ieee: Work around test failure on NetBSD 5.1.
5169         * m4/logf-ieee.m4: New file.
5170         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5171         whether logf works with a negative argument. Replace it if not.
5172         * lib/logf.c (logf): For negative arguments, return NaN.
5173         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5174         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5175         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5176
5177         logf-ieee: Work around test failure on Solaris 9.
5178         * modules/logf-ieee (Depends-on): Add log-ieee.
5179         (configure.ac): Require gl_FUNC_LOGF.
5180
5181         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5182         * m4/log-ieee.m4: New file.
5183         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5184         log works with a negative argument. Replace it if not.
5185         * lib/log.c (log): For negative arguments, return NaN.
5186         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5187         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5188         * doc/posix-functions/log.texi: Mention the log-ieee module.
5189
5190         Tests for module 'logl-ieee'.
5191         * modules/logl-ieee-tests: New file.
5192         * tests/test-logl-ieee.c: New file.
5193
5194         New module 'logl-ieee'.
5195         * modules/logl-ieee: New file.
5196
5197         Tests for module 'log-ieee'.
5198         * modules/log-ieee-tests: New file.
5199         * tests/test-log-ieee.c: New file.
5200
5201         New module 'log-ieee'.
5202         * modules/log-ieee: New file.
5203
5204         Tests for module 'logf-ieee'.
5205         * modules/logf-ieee-tests: New file.
5206         * tests/test-logf-ieee.c: New file.
5207         * tests/test-log-ieee.h: New file.
5208
5209         New module 'logf-ieee'.
5210         * modules/logf-ieee: New file.
5211
5212 2012-03-10  Bruno Haible  <bruno@clisp.org>
5213
5214         log: Fix bug introduced on 2012-03-09.
5215         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5216
5217 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5218
5219         timer-time: link explicitly with pthreads on glibc
5220         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5221         to support static linking, when newer glibc is
5222         detected, as that contains pthread emulation of
5223         POSIX timer functions where required.
5224         * modules/timer-time: Depend on threadlib to
5225         pull in the appropriate library to link.
5226
5227 2012-03-10  Bruno Haible  <bruno@clisp.org>
5228
5229         log* tests: More tests.
5230         * tests/test-log.h: New file.
5231         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5232         (main): Invoke test_function.
5233         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5234         (main): Invoke test_function.
5235         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5236         (main): Invoke test_function.
5237         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5238         tests/randomd.c.
5239         (Makefile.am): Add randomd.c to test_log_SOURCES.
5240         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5241         tests/randomf.c.
5242         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5243         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5244         tests/randoml.c.
5245         (Depends-on): Add 'float'.
5246         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5247
5248 2012-03-09  Bruno Haible  <bruno@clisp.org>
5249
5250         logl: Work around OSF/1 5.1 bug.
5251         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5252         * lib/logl.c (logl): If logl exists, use it and provide just the
5253         workaround.
5254         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5255         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5257         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5258         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5259         (Depends-on): Update conditions.
5260         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5261
5262 2012-03-09  Bruno Haible  <bruno@clisp.org>
5263
5264         logf: Work around OSF/1 5.1 bug.
5265         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5266         * lib/logf.c (logf): If logf exists, use it and provide just the
5267         workaround.
5268         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5269         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5271         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5272         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5273         (Depends-on): Update conditions.
5274         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5275
5276 2012-03-09  Bruno Haible  <bruno@clisp.org>
5277
5278         log: Work around OSF/1 5.1 bug.
5279         * lib/math.in.h (log): New declaration.
5280         * lib/log.c: New file.
5281         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5282         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5283         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5285         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5286         * modules/log (Files): Add lib/log.c.
5287         (Depends-on): Add math.
5288         (configure.ac): If REPLACE_LOG is 1, compile an override.
5289         * tests/test-math-c++.cc: Check the declaration of log.
5290         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5291
5292 2012-03-09  Jim Meyering  <meyering@redhat.com>
5293
5294         readtokens.c: adjust wording in a comment
5295         * lib/readtokens.c: Insert omitted "that" in a comment.
5296
5297 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5298
5299         modechange: add notations +40, 00440, etc.
5300         * lib/modechange.c (mode_compile): Support new notations
5301         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5302
5303 2012-03-08  Bruno Haible  <bruno@clisp.org>
5304
5305         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5306         * m4/exp2l-ieee.m4: New file.
5307         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5308         test whether exp2l works with a NaN argument and with a negative
5309         infinity argument. Replace it if not.
5310         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5312         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5313         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5314         (Depends-on): Update conditions.
5315         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5316         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5317         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5318
5319         Tests for module 'exp2l-ieee'.
5320         * modules/exp2l-ieee-tests: New file.
5321         * tests/test-exp2l-ieee.c: New file.
5322
5323         New module 'exp2l-ieee'.
5324         * modules/exp2l-ieee: New file.
5325
5326         Tests for module 'exp2-ieee'.
5327         * modules/exp2-ieee-tests: New file.
5328         * tests/test-exp2-ieee.c: New file.
5329
5330         New module 'exp2-ieee'.
5331         * modules/exp2-ieee: New file.
5332
5333         Tests for module 'exp2f-ieee'.
5334         * modules/exp2f-ieee-tests: New file.
5335         * tests/test-exp2f-ieee.c: New file.
5336         * tests/test-exp2-ieee.h: New file.
5337
5338         New module 'exp2f-ieee'.
5339         * modules/exp2f-ieee: New file.
5340
5341 2012-03-08  Bruno Haible  <bruno@clisp.org>
5342
5343         Tests for module 'exp2l'.
5344         * modules/exp2l-tests: New file.
5345         * tests/test-exp2l.c: New file.
5346
5347         New module 'exp2l'.
5348         * lib/math.in.h (exp2l): New declaration.
5349         * lib/exp2l.c: New file.
5350         * lib/expl-table.c: New file, extracted from lib/expl.c.
5351         * lib/expl.c (gl_expl_table): New declaration.
5352         (expl): Remove expl_table. Update reference.
5353         * m4/exp2l.m4: New file.
5354         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5356         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5357         * modules/exp2l: New file.
5358         * modules/expl (Files): Add lib/expl-table.c.
5359         (configure.ac): Compile also expl-table.c.
5360         * tests/test-math-c++.cc: Check the declaration of exp2l.
5361         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5362         problem.
5363
5364 2012-03-08  Bruno Haible  <bruno@clisp.org>
5365
5366         Tests for module 'exp2f'.
5367         * modules/exp2f-tests: New file.
5368         * tests/test-exp2f.c: New file.
5369
5370         New module 'exp2f'.
5371         * lib/math.in.h (exp2f): New declaration.
5372         * lib/exp2f.c: New file.
5373         * m4/exp2f.m4: New file.
5374         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5376         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5377         * modules/exp2f: New file.
5378         * tests/test-math-c++.cc: Check the declaration of exp2f.
5379         * doc/posix-functions/exp2f.texi: Mention the new module and the
5380         IRIX problem.
5381
5382 2012-03-08  Bruno Haible  <bruno@clisp.org>
5383
5384         Tests for module 'exp2'.
5385         * modules/exp2-tests: New file.
5386         * tests/test-exp2.c: New file.
5387         * tests/test-exp2.h: New file.
5388
5389         New module 'exp2'.
5390         * lib/math.in.h (exp2): New declaration.
5391         * lib/exp2.c: New file.
5392         * m4/exp2.m4: New file.
5393         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5395         REPLACE_EXP2.
5396         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5397         REPLACE_EXP2.
5398         * modules/exp2: New file.
5399         * tests/test-math-c++.cc: Check the declaration of exp2.
5400         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5401         and OpenBSD problems.
5402
5403 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5404
5405         savedir: fix comment typo
5406         * lib/savedir.c (savedirstream): Fix typo in comment.
5407
5408 2012-03-08  Bruno Haible  <bruno@clisp.org>
5409
5410         test-readtokens.c: use const; remove unwarranted cast
5411         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5412
5413 2012-03-08  Bruno Haible  <bruno@clisp.org>
5414
5415         fmal: Avoid compilation error on AIX.
5416         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5417         AIX 5.2..7.1.
5418
5419 2012-03-08  Bruno Haible  <bruno@clisp.org>
5420
5421         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5422         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5423         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5424         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5425         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5426         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5427         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5428
5429 2012-03-08  Bruno Haible  <bruno@clisp.org>
5430
5431         remainderf: Override buggy system function on IRIX 6.5.
5432         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5433         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5434         when it exists.
5435         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5436
5437 2012-03-08  Jim Meyering  <meyering@redhat.com>
5438
5439         test-readtokens.c: avoid const-related compilation warnings
5440         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5441
5442 2012-03-07  Jim Meyering  <meyering@redhat.com>
5443             Bruno Haible  <bruno@clisp.org>
5444
5445         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5446         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5447         tests/randomd.c.
5448         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5449         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5450         tests/randoml.c.
5451         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5452
5453 2012-03-07  Bruno Haible  <bruno@clisp.org>
5454
5455         expm1l: Avoid compilation error on AIX.
5456         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5457         AIX 5.2..7.1.
5458
5459 2012-03-07  Bruno Haible  <bruno@clisp.org>
5460
5461         expm1l: Don't override undeclared system function on IRIX 6.5.
5462         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5463         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5464         it exists. Set HAVE_DECL_EXPM1L.
5465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5466         HAVE_EXPM1L.
5467         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5468         HAVE_EXPM1L.
5469         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5470
5471 2012-03-07  Bruno Haible  <bruno@clisp.org>
5472
5473         remainderl: Don't override undeclared system function on IRIX 6.5.
5474         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5475         HAVE_REMAINDERL.
5476         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5477         declared when it exists. Set HAVE_DECL_REMAINDERL.
5478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5479         not HAVE_REMAINDERL.
5480         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5481         HAVE_REMAINDERL.
5482         * doc/posix-functions/remainderl.texi: Mention missing declaration
5483         problem.
5484
5485 2012-03-07  Bruno Haible  <bruno@clisp.org>
5486
5487         rintf: Don't override undeclared system function on IRIX 6.5.
5488         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5489         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5490         exists. Set HAVE_DECL_RINTF.
5491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5492         HAVE_RINTF.
5493         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5494         HAVE_RINTF.
5495         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5496
5497 2012-03-07  Bruno Haible  <bruno@clisp.org>
5498
5499         roundl: Avoid compilation error on AIX.
5500         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5501         AIX 5.2..7.1.
5502
5503 2012-03-07  Bruno Haible  <bruno@clisp.org>
5504
5505         roundl: Don't override undeclared system function on IRIX 6.5.
5506         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5507         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5508         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5509         * modules/roundl (configure.ac): For replacement code, test
5510         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5511         (Depends-on): Update conditions.
5512         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5513
5514 2012-03-07  Bruno Haible  <bruno@clisp.org>
5515
5516         roundf: Don't override undeclared system function on IRIX 6.5.
5517         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5518         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5519         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5520         * modules/roundf (configure.ac): For replacement code, test
5521         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5522         (Depends-on): Update conditions.
5523         * modules/roundf-ieee (Depends-on): Update conditions.
5524         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5525
5526 2012-03-07  Bruno Haible  <bruno@clisp.org>
5527
5528         round: Don't override undeclared system function on IRIX 6.5.
5529         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5530         argument.
5531         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5532         also when it is not declared. Set HAVE_ROUND. For replacement code,
5533         test HAVE_ROUND, not HAVE_DECL_ROUND.
5534         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5535         not HAVE_DECL_ROUND.
5536         (Depends-on): Update conditions.
5537         * modules/round-ieee (Depends-on): Update conditions.
5538         * doc/posix-functions/round.texi: Mention the IRIX problem.
5539
5540 2012-03-07  Bruno Haible  <bruno@clisp.org>
5541
5542         copysignf: Don't override undeclared system function on IRIX 6.5.
5543         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5544         HAVE_COPYSIGNF.
5545         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5546         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5548         not HAVE_COPYSIGNF.
5549         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5550         HAVE_COPYSIGNF.
5551         * doc/posix-functions/copysignf.texi: Mention missing declaration
5552         problem.
5553
5554 2012-03-07  Jim Meyering  <meyering@redhat.com>
5555
5556         readtokens: add tests
5557         * modules/readtokens-tests: New file.
5558         * tests/test-readtokens.c: New file.
5559
5560 2012-03-07  Jim Meyering  <meyering@redhat.com>
5561
5562         quotearg: the module must now include quote.h
5563         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5564         So must the module.
5565         * modules/quotearg (Files): Add quote.h.
5566
5567 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5568
5569         readtokens: avoid core dumps with unusual calling patterns
5570         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5571         * lib/readtokens.c: Include limits.h.
5572         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5573         (readtoken): Don't cache the delimiters; the cache code was buggy
5574         if !delim && saved_delim, or if the new n_delim differs from the old.
5575         Also, it wasn't thread-safe.
5576
5577 2012-03-07  Bruno Haible  <bruno@clisp.org>
5578
5579         quote: Adhere to common module description layout.
5580         * modules/quote (Makefile.am): Add back empty section.
5581
5582 2012-03-06  Akim Demaille  <demaille@gostai.com>
5583
5584         quote: fuse into quotearg
5585         This patch is made for the benefit of Bison.
5586         quote does not leave the choice of the quoting style to the user.
5587         quoting_style provides poor customizability, yet quoting_options,
5588         which is very rich, is hidden inside quotearg.c.  So in order to
5589         allow quote customization, move its implementation to quotearg.c.
5590         * lib/quote.c: Remove.
5591         * modules/quote: Adjust.
5592         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5593         warning: provide all the members of literal structs.
5594         (quote_quoting_options): New.
5595         (quote, quote_n): Import implementation from quote.c.
5596         * lib/quote.h: Import the comments from quote.c.
5597         (quote_quoting_options): New.
5598
5599 2012-03-06  Bruno Haible  <bruno@clisp.org>
5600
5601         Tests for module 'expm1l-ieee'.
5602         * modules/expm1l-ieee-tests: New file.
5603         * tests/test-expm1l-ieee.c: New file.
5604
5605         New module 'expm1l-ieee'.
5606         * modules/expm1l-ieee: New file.
5607
5608         Tests for module 'expm1f-ieee'.
5609         * modules/expm1f-ieee-tests: New file.
5610         * tests/test-expm1f-ieee.c: New file.
5611
5612         New module 'expm1f-ieee'.
5613         * modules/expm1f-ieee: New file.
5614
5615         Tests for module 'expm1-ieee'.
5616         * modules/expm1-ieee-tests: New file.
5617         * tests/test-expm1-ieee.c: New file.
5618         * tests/test-expm1-ieee.h: New file.
5619
5620         New module 'expm1-ieee'.
5621         * modules/expm1-ieee: New file.
5622         * m4/expm1-ieee.m4: New file.
5623         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5624         whether expm1 works with a minus zero argument. Replace it if not.
5625         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5627         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5628         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5629         (Depends-on): Update conditions.
5630         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5631         AIX problem.
5632
5633 2012-03-06  Bruno Haible  <bruno@clisp.org>
5634
5635         Work around expm1f bug on IRIX 6.5.
5636         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5637         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5638         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5639         not work.
5640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5641         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5642         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5643         (Depends-on): Update conditions.
5644         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5645
5646 2012-03-06  Bruno Haible  <bruno@clisp.org>
5647
5648         Tests for module 'expm1l'.
5649         * modules/expm1l-tests: New file.
5650         * tests/test-expm1l.c: New file.
5651
5652         New module 'expm1l'.
5653         * lib/math.in.h (expm1l): New declaration.
5654         * lib/expm1l.c: New file.
5655         * m4/expm1l.m4: New file.
5656         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5658         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5659         * modules/expm1l: New file.
5660         * tests/test-math-c++.cc: Check the declaration of expm1l.
5661         * doc/posix-functions/expm1l.texi: Mention the new module.
5662
5663 2012-03-06  Bruno Haible  <bruno@clisp.org>
5664
5665         Tests for module 'expm1f'.
5666         * modules/expm1f-tests: New file.
5667         * tests/test-expm1f.c: New file.
5668
5669         New module 'expm1f'.
5670         * lib/math.in.h (expm1f): New declaration.
5671         * lib/expm1f.c: New file.
5672         * m4/expm1f.m4: New file.
5673         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5675         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5676         * modules/expm1f: New file.
5677         * tests/test-math-c++.cc: Check the declaration of expm1f.
5678         * doc/posix-functions/expm1f.texi: Mention the new module.
5679
5680 2012-03-06  Bruno Haible  <bruno@clisp.org>
5681
5682         Tests for module 'expm1'.
5683         * modules/expm1-tests: New file.
5684         * tests/test-expm1.c: New file.
5685         * tests/test-expm1.h: New file.
5686
5687         New module 'expm1'.
5688         * lib/math.in.h (expm1): New declaration.
5689         * lib/expm1.c: New file.
5690         * m4/expm1.m4: New file.
5691         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5693         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5694         * modules/expm1: New file.
5695         * tests/test-math-c++.cc: Check the declaration of expm1.
5696         * doc/posix-functions/expm1.texi: Mention the new module.
5697
5698 2012-03-06  Bruno Haible  <bruno@clisp.org>
5699
5700         math: Ensure declarations of math functions.
5701         * modules/acosf (Depends-on): Add 'extensions'.
5702         * modules/asinf (Depends-on): Likewise.
5703         * modules/atan2f (Depends-on): Likewise.
5704         * modules/atanf (Depends-on): Likewise.
5705         * modules/cbrt (Depends-on): Likewise.
5706         * modules/cbrtf (Depends-on): Likewise.
5707         * modules/cbrtl (Depends-on): Likewise.
5708         * modules/copysignf (Depends-on): Likewise.
5709         * modules/copysignl (Depends-on): Likewise.
5710         * modules/cosf (Depends-on): Likewise.
5711         * modules/coshf (Depends-on): Likewise.
5712         * modules/expf (Depends-on): Likewise.
5713         * modules/fabsf (Depends-on): Likewise.
5714         * modules/fabsl (Depends-on): Likewise.
5715         * modules/fmaf (Depends-on): Likewise.
5716         * modules/fmal (Depends-on): Likewise.
5717         * modules/fmodf (Depends-on): Likewise.
5718         * modules/fmodl (Depends-on): Likewise.
5719         * modules/frexpf (Depends-on): Likewise.
5720         * modules/frexpl (Depends-on): Likewise.
5721         * modules/hypot (Depends-on): Likewise.
5722         * modules/hypotf (Depends-on): Likewise.
5723         * modules/hypotl (Depends-on): Likewise.
5724         * modules/ldexpf (Depends-on): Likewise.
5725         * modules/ldexpl (Depends-on): Likewise.
5726         * modules/log10f (Depends-on): Likewise.
5727         * modules/log10l (Depends-on): Likewise.
5728         * modules/log1p (Depends-on): Likewise.
5729         * modules/logb (Depends-on): Likewise.
5730         * modules/logf (Depends-on): Likewise.
5731         * modules/modff (Depends-on): Likewise.
5732         * modules/modfl (Depends-on): Likewise.
5733         * modules/powf (Depends-on): Likewise.
5734         * modules/remainderf (Depends-on): Likewise.
5735         * modules/remainderl (Depends-on): Likewise.
5736         * modules/rintf (Depends-on): Likewise.
5737         * modules/rintl (Depends-on): Likewise.
5738         * modules/sinf (Depends-on): Likewise.
5739         * modules/sinhf (Depends-on): Likewise.
5740         * modules/sqrtf (Depends-on): Likewise.
5741         * modules/tanf (Depends-on): Likewise.
5742         * modules/tanhf (Depends-on): Likewise.
5743         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5744         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5745         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5746         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5747         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5748         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5749         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5750         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5751         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5752         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5753         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5754         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5755         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5756         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5757         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5758         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5759         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5760         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5761         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5762         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5763         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5764         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5765         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5766         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5768         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5769         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5770         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5771         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5772         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5773         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5774         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5775         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5776         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5777         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5778         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5779         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5780         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5781         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5782         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5783         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5784
5785 2012-03-06  Bruno Haible  <bruno@clisp.org>
5786
5787         math: Update module names in warnings.
5788         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5789         tanl): Use specific module name in warn-on-use warning.
5790
5791 2012-03-06  Bruno Haible  <bruno@clisp.org>
5792
5793         expl: Simplify computation.
5794         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5795
5796 2012-03-05  Bruno Haible  <bruno@clisp.org>
5797
5798         exp* tests: More tests.
5799         * tests/test-exp.h: New file.
5800         * tests/test-exp.c: Include <float.h> and test-exp.h.
5801         (main): Invoke test_function.
5802         * tests/test-expf.c: Include <float.h> and test-exp.h.
5803         (main): Invoke test_function.
5804         * tests/test-expl.c: Include <float.h> and test-exp.h.
5805         (main): Invoke test_function.
5806         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5807         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5808         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5809         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5810         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5811         (Depends-on): Add 'float'.
5812         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5813
5814         expl: Fix precision of computed result.
5815         * lib/expl.c: Completely rewritten.
5816         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5817         (Maintainer): Add me.
5818         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5819
5820 2012-03-05  Bruno Haible  <bruno@clisp.org>
5821
5822         cbrt* tests: More tests.
5823         * tests/test-cbrt.h: New file.
5824         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5825         (main): Invoke test_function.
5826         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5827         (main): Invoke test_function.
5828         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5829         (main): Invoke test_function.
5830         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5831         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5832         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5833         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5834         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5835         (Depends-on): Add 'float'.
5836         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5837
5838 2012-03-05  Bruno Haible  <bruno@clisp.org>
5839
5840         hypot* tests: More tests.
5841         * tests/test-hypot.h: New file, partially extracted from
5842         tests/test-hypotl.c.
5843         * tests/test-hypot.c: Include test-hypot.h.
5844         (main): Invoke test_function.
5845         * tests/test-hypotf.c: Include test-hypot.h.
5846         (main): Invoke test_function.
5847         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5848         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5849         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5850         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5851         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5852         tests/randomf.c.
5853         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5854         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5855         tests/randoml.c.
5856         (Depends-on): Add 'fpucw', 'float'.
5857         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5858
5859 2012-03-05  Bruno Haible  <bruno@clisp.org>
5860
5861         fpucw: Doc about FreeBSD.
5862         * lib/fpucw.h: Mention FreeBSD in comments.
5863
5864 2012-03-04  Bruno Haible  <bruno@clisp.org>
5865
5866         sqrt* tests: More tests.
5867         * tests/test-sqrt.h: New file.
5868         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5869         (main): Invoke test_function.
5870         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5871         (main): Invoke test_function.
5872         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5873         (main): Invoke test_function.
5874         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5875         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5876         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5877         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5878         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5879         (Depends-on): Add 'float'.
5880         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5881
5882 2012-03-04  Bruno Haible  <bruno@clisp.org>
5883
5884         remainder* tests: More tests.
5885         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5886         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5887         (main): Invoke test_function.
5888         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5889         (main): Invoke test_function.
5890         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5891         (main): Invoke test_function.
5892         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5893         tests/randomd.c.
5894         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5895         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5896         tests/randomf.c.
5897         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5898         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5899         tests/randoml.c.
5900         (Depends-on): Add 'float'.
5901         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5902
5903 2012-03-04  Bruno Haible  <bruno@clisp.org>
5904
5905         remainder, remainderf, remainderl: Fix computation for large quotients.
5906         * lib/remainder.c: Completely rewritten.
5907         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5908         USE_FLOAT.
5909         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5910         USE_LONG_DOUBLE.
5911         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5912         isnand, isinf. Remove round, fma.
5913         * modules/remainderf (Files): Add lib/remainder.c.
5914         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5915         Remove roundf, fmaf.
5916         * modules/remainderl (Files): Add lib/remainder.c.
5917         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5918         isinf. Remove roundl, fmal.
5919         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5920         REMAINDER_LIBM.
5921         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5922         REMAINDERF_LIBM.
5923         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5924         REMAINDERL_LIBM.
5925
5926 2012-03-04  Bruno Haible  <bruno@clisp.org>
5927
5928         fmod* tests: More tests.
5929         * tests/test-fmod.h (my_ldexp): New function.
5930         (test_function): Reduce amount of random numbers to test. Add tests
5931         of very large quotients x / y.
5932         * tests/test-fmod.c (MAX_EXP): New macro.
5933         * tests/test-fmodf.c (MAX_EXP): Likewise.
5934         * tests/test-fmodl.c (MAX_EXP): Likewise.
5935
5936 2012-03-04  Bruno Haible  <bruno@clisp.org>
5937
5938         fmod, fmodl: Fix computation for large quotients x / y.
5939         * lib/fmod.c: Completely rewritten.
5940         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5941         USE_LONG_DOUBLE.
5942         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5943         isnand. Remove fma.
5944         * modules/fmodl (Files): Add lib/fmod.c.
5945         (Depends-on): Add float, isfinite, signbit, fabsl,
5946         frexpl, ldexpl, isnanl. Remove fma.
5947         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5948         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5949
5950 2012-03-03  Bruno Haible  <bruno@clisp.org>
5951
5952         fmod* tests: More tests.
5953         * tests/test-fmod.h: New file.
5954         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5955         (main): Invoke test_function.
5956         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5957         (main): Invoke test_function.
5958         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5959         (main): Invoke test_function.
5960         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5961         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5962         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5963         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5964         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5965         (Depends-on): Add 'float'.
5966         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5967
5968 2012-03-03  Bruno Haible  <bruno@clisp.org>
5969
5970         rint* tests: More tests.
5971         * tests/test-rint.h: New file, partially extracted from
5972         tests/test-rintl.c.
5973         * tests/test-rint.c: Include test-rint.h.
5974         (main): Invoke test_function.
5975         * tests/test-rintf.c: Include test-rint.h.
5976         (main): Invoke test_function.
5977         * tests/test-rintl.c: Include test-rint.h.
5978         (main): Invoke test_function.
5979         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5980         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5981         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5982         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5983         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5984         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5985
5986 2012-03-03  Bruno Haible  <bruno@clisp.org>
5987
5988         modf* tests: More tests.
5989         * tests/test-modf.h: New file.
5990         * tests/test-modf.c: Include <float.h> and test-modf.h.
5991         (main): Invoke test_function.
5992         * tests/test-modff.c: Include <float.h> and test-modf.h.
5993         (main): Invoke test_function.
5994         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5995         (main): Invoke test_function.
5996         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5997         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5998         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5999         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6000         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6001         (Depends-on): Add 'float'.
6002         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6003
6004 2012-03-03  Bruno Haible  <bruno@clisp.org>
6005
6006         fabs* tests: More tests.
6007         * tests/test-fabs.h: New file, partially extracted from
6008         tests/test-fabsl.c.
6009         * tests/test-fabs.c (RANDOM): New macro.
6010         * tests/test-fabsf.c (RANDOM): New macro.
6011         * tests/test-fabsl.c (RANDOM): New macro.
6012         * modules/fabs-tests (Files): Add tests/randomd.c.
6013         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6014         * modules/fabsf-tests (Files): Add tests/randomf.c.
6015         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6016         * modules/fabsl-tests (Files): Add tests/randoml.c.
6017         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6018
6019 2012-03-03  Bruno Haible  <bruno@clisp.org>
6020
6021         ldexp* tests: More tests.
6022         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6023         * tests/test-ldexp.c (RANDOM): New macro.
6024         * tests/test-ldexpf.c (RANDOM): New macro.
6025         * tests/test-ldexpl.c (RANDOM): New macro.
6026         * modules/ldexp-tests (Files): Add tests/randomd.c.
6027         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6028         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6029         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6030         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6031         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6032
6033 2012-03-03  Bruno Haible  <bruno@clisp.org>
6034
6035         frexp* tests: More tests.
6036         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6037         * tests/test-frexp.c (RANDOM): New macro.
6038         * tests/test-frexpf.c (RANDOM): New macro.
6039         * tests/test-frexpl.c (RANDOM): New macro.
6040         * modules/frexp-tests (Files): Add tests/randomd.c.
6041         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6042         * modules/frexpf-tests (Files): Add tests/randomf.c.
6043         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6044         * modules/frexpl-tests (Files): Add tests/randoml.c.
6045         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6046
6047 2012-03-03  Bruno Haible  <bruno@clisp.org>
6048
6049         Support for pseudo-random numbers in tests.
6050         * tests/randomf.c: New file.
6051         * tests/randomd.c: New file.
6052         * tests/randoml.c: New file.
6053         * tests/macros.h (randomf, randomd, randoml): New declarations.
6054
6055 2012-03-03  Bruno Haible  <bruno@clisp.org>
6056
6057         frexp* tests: Refactor.
6058         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6059         * tests/test-frexp.c: Include and use it.
6060         * tests/test-frexpf.c: Likewise.
6061         * tests/test-frexpl.c: Likewise.
6062         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6063         * modules/frexpf-tests (Files): Likewise.
6064         * modules/frexpl-tests (Files): Likewise.
6065
6066 2012-03-02  Jim Meyering  <meyering@redhat.com>
6067
6068         maint: don't specify XZ_OPT=-9ev in dist-related rule
6069         Using xz's -9 option is warranted only if you have a very large
6070         tarball (see xz's documentation for the sizes vs. presets), and
6071         requires 64MiB of memory at decompression time.
6072         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6073         Automake's default of just "-e" is fine.  Override on a
6074         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6075
6076 2012-03-01  Eric Blake  <eblake@redhat.com>
6077
6078         maint.mk: allow announcement for non-gnulib project
6079         * maint.mk (announcement): Skip gnulib version if not used.
6080
6081 2012-03-01  Jim Meyering  <meyering@redhat.com>
6082
6083         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6084         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6085         envvar settings cannot interfere.  Otherwise, setting envvars like
6086         prohibit=foo require=bar, etc. would cause spurious test failures.
6087
6088 2012-03-01  Eric Blake  <eblake@redhat.com>
6089
6090         maint.mk: add per-line exclusions to prohibitions
6091         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6092         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6093         (sc_const_long_option): Use it.
6094
6095 2012-03-01  Bruno Haible  <bruno@clisp.org>
6096
6097         Tests for module 'expl-ieee'.
6098         * modules/expl-ieee-tests: New file.
6099         * tests/test-expl-ieee.c: New file.
6100
6101         New module 'expl-ieee'.
6102         * modules/expl-ieee: New file.
6103
6104         Tests for module 'exp-ieee'.
6105         * modules/exp-ieee-tests: New file.
6106         * tests/test-exp-ieee.c: New file.
6107
6108         New module 'exp-ieee'.
6109         * modules/exp-ieee: New file.
6110
6111         Tests for module 'expf-ieee'.
6112         * modules/expf-ieee-tests: New file.
6113         * tests/test-expf-ieee.c: New file.
6114         * tests/test-exp-ieee.h: New file.
6115
6116         New module 'expf-ieee'.
6117         * modules/expf-ieee: New file.
6118
6119 2012-02-29  Bruno Haible  <bruno@clisp.org>
6120
6121         cbrtl-ieee: Work around test failure on IRIX 6.5.
6122         * m4/cbrtl-ieee.m4: New file.
6123         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6124         test whether cbrtl works with a minus zero argument. Replace it if not.
6125         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6127         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6128         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6129         (Depends-on): Update conditions.
6130         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6131         m4/signbit.m4.
6132         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6133         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6134         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6135
6136         Tests for module 'cbrtl-ieee'.
6137         * modules/cbrtl-ieee-tests: New file.
6138         * tests/test-cbrtl-ieee.c: New file.
6139
6140         New module 'cbrtl-ieee'.
6141         * modules/cbrtl-ieee: New file.
6142
6143         Tests for module 'cbrt-ieee'.
6144         * modules/cbrt-ieee-tests: New file.
6145         * tests/test-cbrt-ieee.c: New file.
6146
6147         New module 'cbrt-ieee'.
6148         * modules/cbrt-ieee: New file.
6149
6150         Tests for module 'cbrtf-ieee'.
6151         * modules/cbrtf-ieee-tests: New file.
6152         * tests/test-cbrtf-ieee.c: New file.
6153         * tests/test-cbrt-ieee.h: New file.
6154
6155         New module 'cbrtf-ieee'.
6156         * modules/cbrtf-ieee: New file.
6157
6158 2012-02-29  Bruno Haible  <bruno@clisp.org>
6159
6160         cbrtf: Work around bug in IRIX 6.5 system function.
6161         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6162         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6163         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6164         work.
6165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6166         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6167         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6168         (Depends-on): Update conditions.
6169         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6170
6171 2012-02-29  Bruno Haible  <bruno@clisp.org>
6172
6173         Tests for module 'cbrtl'.
6174         * modules/cbrtl-tests: New file.
6175         * tests/test-cbrtl.c: New file.
6176
6177         New module 'cbrtl'.
6178         * lib/math.in.h (cbrtl): New declaration.
6179         * lib/cbrtl.c: New file.
6180         * m4/cbrtl.m4: New file.
6181         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6183         HAVE_DECL_CBRTL.
6184         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6185         HAVE_DECL_CBRTL.
6186         * modules/cbrtl: New file.
6187         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6188         * doc/posix-functions/cbrtl.texi: Mention the new module.
6189
6190 2012-02-29  Bruno Haible  <bruno@clisp.org>
6191
6192         Tests for module 'cbrtf'.
6193         * modules/cbrtf-tests: New file.
6194         * tests/test-cbrtf.c: New file.
6195
6196         New module 'cbrtf'.
6197         * lib/math.in.h (cbrtf): New declaration.
6198         * lib/cbrtf.c: New file.
6199         * m4/cbrtf.m4: New file.
6200         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6202         HAVE_DECL_CBRTF.
6203         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6204         HAVE_DECL_CBRTF.
6205         * modules/cbrtf: New file.
6206         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6207         * doc/posix-functions/cbrtf.texi: Mention the new module.
6208
6209 2012-02-29  Bruno Haible  <bruno@clisp.org>
6210
6211         cbrt: Provide replacement on MSVC and Minix.
6212         * lib/math.in.h (cbrt): New declaration.
6213         * lib/cbrt.c: New file.
6214         * m4/cbrt.m4: New file.
6215         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6217         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6218         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6219         (Depends-on): Add dependencies.
6220         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6221         * tests/test-math-c++.cc: Check the declaration of cbrt.
6222         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6223         replacement.
6224
6225 2012-02-29  Bruno Haible  <bruno@clisp.org>
6226
6227         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6228         * m4/hypotl-ieee.m4: New file.
6229         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6230         test whether hypotl works with mixed NaN and Infinity arguments.
6231         Replace it if not.
6232         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6234         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6235         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6236         (Depends-on): Update conditions.
6237         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6238         (Depends-on): Add hypot-ieee.
6239         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6240         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6241
6242         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6243         * m4/hypotf-ieee.m4: New file.
6244         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6245         test whether hypotf works with mixed NaN and Infinity arguments.
6246         Replace it if not.
6247         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6248         (Depends-on): Add hypot-ieee.
6249         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6250         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6251
6252         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6253         * lib/math.in.h (hypot): New declaration.
6254         * lib/hypot.c: New file.
6255         * m4/hypot-ieee.m4: New file.
6256         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6257         whether hypot works with mixed NaN and Infinity arguments. Replace it
6258         if not.
6259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6260         REPLACE_HYPOT.
6261         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6262         * modules/hypot (Files): Add lib/hypot.c.
6263         (Depends-on): Add dependencies.
6264         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6265         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6266         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6267         * tests/test-math-c++.cc: Check the declaration of hypot.
6268         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6269
6270         Tests for module 'hypotl-ieee'.
6271         * modules/hypotl-ieee-tests: New file.
6272         * tests/test-hypotl-ieee.c: New file.
6273
6274         New module 'hypotl-ieee'.
6275         * modules/hypotl-ieee: New file.
6276
6277         Tests for module 'hypot-ieee'.
6278         * modules/hypot-ieee-tests: New file.
6279         * tests/test-hypot-ieee.c: New file.
6280
6281         New module 'hypot-ieee'.
6282         * modules/hypot-ieee: New file.
6283
6284         Tests for module 'hypotf-ieee'.
6285         * modules/hypotf-ieee-tests: New file.
6286         * tests/test-hypotf-ieee.c: New file.
6287         * tests/test-hypot-ieee.h: New file.
6288
6289         New module 'hypotf-ieee'.
6290         * modules/hypotf-ieee: New file.
6291
6292 2012-02-29  Bruno Haible  <bruno@clisp.org>
6293
6294         Remove unused variables.
6295         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6296         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6297         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6298         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6299
6300 2012-02-29  Eric Blake  <eblake@redhat.com>
6301
6302         termios: fix pid_t always, not just for tcgetsid
6303         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6304         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6305         just when building tcgetsid.
6306
6307 2012-02-29  Bruno Haible  <bruno@clisp.org>
6308
6309         Tests for module 'hypotl'.
6310         * modules/hypotl-tests: New file.
6311         * tests/test-hypotl.c: New file.
6312
6313         New module 'hypotl'.
6314         * lib/math.in.h (hypotl): New declaration.
6315         * lib/hypotl.c: New file.
6316         * m4/hypotl.m4: New file.
6317         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6319         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6320         * modules/hypotl: New file.
6321         * tests/test-math-c++.cc: Check the hypotl declaration.
6322         * doc/posix-functions/hypotl.texi: Mention the new module.
6323
6324 2012-02-29  Eric Blake  <eblake@redhat.com>
6325
6326         tcgetsid: fix cygwin header bug
6327         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6328
6329         docs: update cygwin progress
6330         * doc/posix-functions/llround.texi (llround): Added in cygwin
6331         1.7.8.
6332         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6333         * doc/glibc-functions/program_invocation_name.texi
6334         (program_invocation_name): Likewise.
6335         * doc/glibc-functions/program_invocation_short_name.texi
6336         (program_invocation_short_name): Likewise.
6337         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6338         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6339         Likewise.
6340         * doc/posix-functions/pthread_spin_destroy.texi
6341         (pthread_spin_destroy): Added in cygwin 1.7.10.
6342         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6343         Likewise.
6344         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6345         Likewise.
6346         * doc/posix-functions/pthread_spin_trylock.texi
6347         (pthread_spin_trylock): Likewise.
6348         * doc/posix-functions/pthread_spin_unlock.texi
6349         (pthread_spin_unlock): Likewise.
6350         * doc/posix-functions/pthread_setschedprio.texi
6351         (pthread_setschedprio): Likewise.
6352         * doc/posix-functions/pthread_attr_getstack.texi
6353         (pthread_attr_getstack): Likewise.
6354         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6355         (pthread_attr_getstackaddr): Likewise.
6356         * doc/glibc-functions/pthread_getattr_np.texi
6357         (pthread_getattr_np): Likewise.
6358         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6359         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6360         * doc/posix-functions/clock_settime.texi (clock_settime):
6361         Likewise.
6362         * doc/posix-functions/pthread_attr_getguardsize.texi
6363         (pthread_attr_getguardsize): Likewise.
6364         * doc/posix-functions/pthread_attr_setguardsize.texi
6365         (pthread_attr_setguardsize): Likewise.
6366         * doc/posix-functions/pthread_attr_setstack.texi
6367         (pthread_attr_setstack): Likewise.
6368         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6369         (pthread_attr_setstackaddr): Likewise.
6370         * doc/posix-functions/clock_getcpuclockid.texi
6371         (clock_getcpuclockid): Likewise.
6372         * doc/posix-functions/pthread_getcpuclockid.texi
6373         (pthread_getcpuclockid): Likewise.
6374         * doc/glibc-functions/error.texi (error): Likewise.
6375         * doc/glibc-functions/error_at_line.texi (error_at_line):
6376         Likewise.
6377         * doc/glibc-functions/error_message_count.texi
6378         (error_message_count): Likewise.
6379         * doc/glibc-functions/error_one_per_line.texi
6380         (error_one_per_line): Likewise.
6381         * doc/glibc-functions/error_print_progname.texi
6382         (error_print_progname): Likewise.
6383         * doc/posix-functions/pthread_condattr_getclock.texi
6384         (pthread_condattr_getclock): Likewise.
6385         * doc/posix-functions/pthread_condattr_setclock.texi
6386         (pthread_condattr_setclock): Likewise.
6387         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6388         Likewise.
6389         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6390         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6391         * doc/glibc-functions/get_current_dir_name.texi
6392         (get_current_dir_name): Likewise.
6393         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6394         Likewise.
6395         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6396         wrong return type.
6397         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6398         1.7.11.
6399
6400 2012-02-29  Bruno Haible  <bruno@clisp.org>
6401
6402         Tests for module 'hypotf'.
6403         * modules/hypotf-tests: New file.
6404         * tests/test-hypotf.c: New file.
6405
6406         New module 'hypotf'.
6407         * lib/math.in.h (hypotf): New declaration.
6408         * lib/hypotf.c: New file.
6409         * m4/hypotf.m4: New file.
6410         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6412         REPLACE_HYPOTF.
6413         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6414         REPLACE_HYPOTF.
6415         * modules/hypotf: New file.
6416         * tests/test-math-c++.cc: Check the hypotf declaration.
6417         * doc/posix-functions/hypotf.texi: Mention the new module.
6418
6419         hypot: Prepare for hypotf module.
6420         * m4/hypot.m4: New file.
6421         * modules/hypot (Files): Add m4/hypot.m4.
6422         (configure.ac): Invoke gl_FUNC_HYPOT.
6423
6424 2012-02-29  Bruno Haible  <bruno@clisp.org>
6425
6426         hypot tests: More tests.
6427         * tests/test-hypot.c: Include <float.h>.
6428         (main): Add tests about overflow and underflow.
6429
6430 2012-02-29  Bruno Haible  <bruno@clisp.org>
6431
6432         math code: Add comments.
6433         * lib/acosl.c: Add comment about related glibc source files.
6434         * lib/asinl.c: Likewise.
6435         * lib/atanl.c: Likewise.
6436         * lib/expl.c: Likewise.
6437         * lib/logl.c: Likewise.
6438         * lib/sincosl.c: Likewise.
6439         * lib/sinl.c: Likewise.
6440         * lib/tanl.c: Likewise.
6441         * lib/trigl.c: Likewise.
6442         * lib/cosl.c: Likewise. Fix comments.
6443
6444 2012-02-28  Bruno Haible  <bruno@clisp.org>
6445
6446         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6447         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6448         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6449         HUGE_VALL are defined.
6450         (numeric_equald): Renamed from numeric_equal.
6451         (numeric_equalf, numeric_equall): New functions.
6452         (main): Check also HUGE_VALF, HUGE_VALL.
6453         * modules/math-tests (Files): Add tests/macros.h.
6454         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6455         HUGE_VALL.
6456
6457 2012-02-28  Bruno Haible  <bruno@clisp.org>
6458
6459         doc: Move ISO C11 feature notes into POSIX chapters.
6460         * doc/posix-functions/aligned_alloc.texi: Renamed from
6461         doc/glibc-functions/aligned_alloc.texi.
6462         * doc/posix-functions/quick_exit.texi: Renamed from
6463         doc/glibc-functions/quick_exit.texi.
6464         * doc/posix-headers/uchar.texi: Renamed from
6465         doc/glibc-headers/uchar.texi.
6466         * doc/posix-functions/c16rtomb.texi: Renamed from
6467         doc/glibc-functions/c16rtomb.texi.
6468         * doc/posix-functions/c32rtomb.texi: Renamed from
6469         doc/glibc-functions/c32rtomb.texi.
6470         * doc/posix-functions/mbrtoc16.texi: Renamed from
6471         doc/glibc-functions/mbrtoc16.texi.
6472         * doc/posix-functions/mbrtoc32.texi: Renamed from
6473         doc/glibc-functions/mbrtoc32.texi.
6474         * doc/gnulib.texi: Update.
6475         (Glibc uchar.h): Remove section.
6476         Suggested by Eric Blake.
6477
6478 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6479
6480         stdnoreturn: port to MSVC better
6481         MSVC standard headers use __declspec(noreturn), so #define noreturn
6482         to empty on that platform.  Reported by Bruno Haible in
6483         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6484         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6485         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6486
6487 2012-02-28  Bruno Haible  <bruno@clisp.org>
6488
6489         doc: Mention new glibc headers and functions.
6490         * doc/glibc-headers/uchar.texi: New file.
6491         * doc/glibc-functions/aligned_alloc.texi: New file.
6492         * doc/glibc-functions/c16rtomb.texi: New file.
6493         * doc/glibc-functions/c32rtomb.texi: New file.
6494         * doc/glibc-functions/clock_adjtime.texi: New file.
6495         * doc/glibc-functions/fanotify_init.texi: New file.
6496         * doc/glibc-functions/fanotify_mark.texi: New file.
6497         * doc/glibc-functions/inet6_opt_append.texi: New file.
6498         * doc/glibc-functions/inet6_opt_find.texi: New file.
6499         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6500         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6501         * doc/glibc-functions/inet6_opt_init.texi: New file.
6502         * doc/glibc-functions/inet6_opt_next.texi: New file.
6503         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6504         * doc/glibc-functions/inet6_rth_add.texi: New file.
6505         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6506         * doc/glibc-functions/inet6_rth_init.texi: New file.
6507         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6508         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6509         * doc/glibc-functions/inet6_rth_space.texi: New file.
6510         * doc/glibc-functions/login.texi: New file.
6511         * doc/glibc-functions/mbrtoc16.texi: New file.
6512         * doc/glibc-functions/mbrtoc32.texi: New file.
6513         * doc/glibc-functions/name_to_handle_at.texi: New file.
6514         * doc/glibc-functions/ntp_gettimex.texi: New file.
6515         * doc/glibc-functions/open_by_handle_at.texi: New file.
6516         * doc/glibc-functions/prlimit.texi: New file.
6517         * doc/glibc-functions/process_vm_readv.texi: New file.
6518         * doc/glibc-functions/process_vm_writev.texi: New file.
6519         * doc/glibc-functions/recvmmsg.texi: New file.
6520         * doc/glibc-functions/scandirat.texi: New file.
6521         * doc/glibc-functions/sendmmsg.texi: New file.
6522         * doc/glibc-functions/setns.texi: New file.
6523         * doc/glibc-functions/timespec_get.texi: New file.
6524         * doc/gnulib.texi: Include them.
6525         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6526         sections.
6527         Reported by Eric Blake.
6528
6529 2012-02-28  Bruno Haible  <bruno@clisp.org>
6530
6531         Avoid compilation errors with MSVC option -fp:strict.
6532         * lib/floor.c: Use MSVC specific pragma fenv_access.
6533         * lib/ceil.c: Likewise.
6534         * lib/trunc.c: Likewise.
6535         * lib/round.c: Likewise.
6536         * lib/rint.c: Likewise.
6537         * lib/fma.c: Likewise.
6538         * lib/integer_length.c: Likewise.
6539         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6540         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6541         * tests/test-floor2.c: Likewise.
6542         * tests/test-floorf2.c: Likewise.
6543         * tests/test-ceil2.c: Likewise.
6544         * tests/test-ceilf2.c: Likewise.
6545         * tests/test-trunc2.c: Likewise.
6546         * tests/test-truncf2.c: Likewise.
6547         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6548
6549 2012-02-27  Bruno Haible  <bruno@clisp.org>
6550
6551         Tests for module 'sqrtl-ieee'.
6552         * modules/sqrtl-ieee-tests: New file.
6553         * tests/test-sqrtl-ieee.c: New file.
6554
6555         New module 'sqrtl-ieee'.
6556         * modules/sqrtl-ieee: New file.
6557
6558         Tests for module 'sqrt-ieee'.
6559         * modules/sqrt-ieee-tests: New file.
6560         * tests/test-sqrt-ieee.c: New file.
6561
6562         New module 'sqrt-ieee'.
6563         * modules/sqrt-ieee: New file.
6564
6565         Tests for module 'sqrtf-ieee'.
6566         * modules/sqrtf-ieee-tests: New file.
6567         * tests/test-sqrtf-ieee.c: New file.
6568         * tests/test-sqrt-ieee.h: New file.
6569
6570         New module 'sqrtf-ieee'.
6571         * modules/sqrtf-ieee: New file.
6572
6573 2012-02-27  Bruno Haible  <bruno@clisp.org>
6574
6575         remainderl-ieee: Work around test failure on OSF/1.
6576         * m4/remainderl-ieee.m4: New file.
6577         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6578         present, test whether remainderl works with a zero second argument.
6579         Replace it if not.
6580         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6582         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6583         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6584         (Depends-on): Update conditions.
6585         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6586         (Depends-on): Add remainder-ieee.
6587         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6588         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6589         module.
6590
6591         remainderf-ieee: Work around test failure on OSF/1.
6592         * m4/remainderf-ieee.m4: New file.
6593         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6594         present, test whether remainderf works with a zero second argument.
6595         Replace it if not.
6596         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6598         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6599         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6600         (Depends-on): Update conditions.
6601         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6602         (Depends-on): Add remainder-ieee.
6603         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6604         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6605         module.
6606
6607         remainder-ieee: Work around test failure on OSF/1.
6608         * m4/remainder-ieee.m4: New file.
6609         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6610         present, test whether remainder works with a zero second argument.
6611         Replace it if not.
6612         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6614         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6615         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6616         (Depends-on): Update dependencies.
6617         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6618         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6619         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6620
6621         Tests for module 'remainderl-ieee'.
6622         * modules/remainderl-ieee-tests: New file.
6623         * tests/test-remainderl-ieee.c: New file.
6624
6625         New module 'remainderl-ieee'.
6626         * modules/remainderl-ieee: New file.
6627
6628         Tests for module 'remainder-ieee'.
6629         * modules/remainder-ieee-tests: New file.
6630         * tests/test-remainder-ieee.c: New file.
6631
6632         New module 'remainder-ieee'.
6633         * modules/remainder-ieee: New file.
6634
6635         Tests for module 'remainderf-ieee'.
6636         * modules/remainderf-ieee-tests: New file.
6637         * tests/test-remainderf-ieee.c: New file.
6638         * tests/test-remainder-ieee.h: New file.
6639
6640         New module 'remainderf-ieee'.
6641         * modules/remainderf-ieee: New file.
6642
6643 2012-02-27  Bruno Haible  <bruno@clisp.org>
6644
6645         modff, modfl: Fix configure syntax error.
6646         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6647         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6648
6649 2012-02-27  Bruno Haible  <bruno@clisp.org>
6650
6651         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6652         * m4/fmodl-ieee.m4: New file.
6653         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6654         whether fmodl works with zero arguments. Replace it if not.
6655         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6656         (Depends-on): Add fmod-ieee.
6657         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6658         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6659
6660         fmodf-ieee: Work around test failure on OSF/1.
6661         * m4/fmodf-ieee.m4: New file.
6662         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6663         whether fmodf works with zero arguments. Replace it if not.
6664         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6666         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6667         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6668         (Depends-on): Update dependencies.
6669         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6670         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6671         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6672
6673         fmodf-ieee: Work around test failure on MSVC 9.
6674         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6675         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6676
6677         fmod-ieee: Work around test failures on OSF/1, mingw.
6678         * m4/fmod-ieee.m4: New file.
6679         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6680         whether fmod works with zero arguments. Replace it if not.
6681         * lib/math.in.h (fmod): New declaration.
6682         * lib/fmod.c: New file.
6683         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6685         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6686         * modules/fmod (Files): Add lib/fmod.c.
6687         (Depends-on): Add math, isinf, trunc, fma.
6688         (configure.ac): Arrange to compile lib/fmod.c if needed.
6689         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6690         m4/signbit.m4.
6691         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6692         * tests/test-math-c++.cc: Check the declaration of fmod.
6693         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6694
6695         fmodl-ieee: Fix test failures.
6696         * lib/fmodl.c (fmodl): Treat Inf specially.
6697         * modules/fmodl (Depends-on): Add isinf.
6698
6699         Tests for module 'fmodl-ieee'.
6700         * modules/fmodl-ieee-tests: New file.
6701         * tests/test-fmodl-ieee.c: New file.
6702
6703         New module 'fmodl-ieee'.
6704         * modules/fmodl-ieee: New file.
6705
6706         Tests for module 'fmod-ieee'.
6707         * modules/fmod-ieee-tests: New file.
6708         * tests/test-fmod-ieee.c: New file.
6709
6710         New module 'fmod-ieee'.
6711         * modules/fmod-ieee: New file.
6712
6713         Tests for module 'fmodf-ieee'.
6714         * modules/fmodf-ieee-tests: New file.
6715         * tests/test-fmodf-ieee.c: New file.
6716         * tests/test-fmod-ieee.h: New file.
6717
6718         New module 'fmodf-ieee'.
6719         * modules/fmodf-ieee: New file.
6720
6721 2012-02-27  Bruno Haible  <bruno@clisp.org>
6722
6723         Tests for module 'rintl-ieee'.
6724         * modules/rintl-ieee-tests: New file.
6725         * tests/test-rintl-ieee.c: New file.
6726
6727         New module 'rintl-ieee'.
6728         * modules/rintl-ieee: New file.
6729
6730         Tests for module 'rint-ieee'.
6731         * modules/rint-ieee-tests: New file.
6732         * tests/test-rint-ieee.c: New file.
6733
6734         New module 'rint-ieee'.
6735         * modules/rint-ieee: New file.
6736
6737         Tests for module 'rintf-ieee'.
6738         * modules/rintf-ieee-tests: New file.
6739         * tests/test-rintf-ieee.c: New file.
6740         * tests/test-rint-ieee.h: New file.
6741
6742         New module 'rintf-ieee'.
6743         * modules/rintf-ieee: New file.
6744
6745 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6746
6747         regex: re_search etc. should return -2 when memory exhausted
6748         This bug was uncovered when testing 'grep'.  Without the fix,
6749         re_search and friends return -1 when memory is exhausted, but -1
6750         means no match, and this causes grep to falsely report no-match
6751         instead of memory-exhaustion.  See
6752         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6753         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6754         trouble; this can occur if re_search_internal ran out of memory.
6755
6756 2012-02-26  Bruno Haible  <bruno@clisp.org>
6757
6758         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6759         * m4/modfl-ieee.m4: New file.
6760         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6761         whether modfl works with Inf. Replace it if not.
6762         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6764         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6765         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6766         (Depends-on): Update dependencies.
6767         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6768         m4/signbit.m4.
6769         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6770         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6771
6772         modfl-ieee: Fix dependencies.
6773         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6774
6775         modfl-ieee: Fix test failures.
6776         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6777         * modules/modfl (Depends-on): Add isfinite, isinf.
6778
6779         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6780         * m4/modff-ieee.m4: New file.
6781         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6782         whether modff works with NaN and Inf. Replace it if not.
6783         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6785         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6786         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6787         (Depends-on): Update dependencies.
6788         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6789         m4/signbit.m4.
6790         (Depends-on): Add modf-ieee.
6791         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6792         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6793
6794         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6795         * m4/modf-ieee.m4: New file.
6796         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6797         whether modf works with NaN and Inf. Replace it if not.
6798         * lib/math.in.h (modf): New declaration.
6799         * lib/modf.c: New file.
6800         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6802         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6803         * modules/modf (Files): Add lib/modf.c.
6804         (Depends-on): Add math, isfinite, trunc, isinf.
6805         (configure.ac): Addrange to compile lib/modf.c if needed.
6806         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6807         m4/signbit.m4.
6808         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6809         * tests/test-math-c++.cc: Check the declaration of modf.
6810         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6811
6812         Tests for module 'modfl-ieee'.
6813         * modules/modfl-ieee-tests: New file.
6814         * tests/test-modfl-ieee.c: New file.
6815
6816         New module 'modfl-ieee'.
6817         * modules/modfl-ieee: New file.
6818
6819         Tests for module 'modf-ieee'.
6820         * modules/modf-ieee-tests: New file.
6821         * tests/test-modf-ieee.c: New file.
6822
6823         New module 'modf-ieee'.
6824         * modules/modf-ieee: New file.
6825
6826         Tests for module 'modff-ieee'.
6827         * modules/modff-ieee-tests: New file.
6828         * tests/test-modff-ieee.c: New file.
6829         * tests/test-modf-ieee.h: New file.
6830
6831         New module 'modff-ieee'.
6832         * modules/modff-ieee: New file.
6833
6834 2012-02-26  Bruno Haible  <bruno@clisp.org>
6835
6836         Tests for module 'fabsl-ieee'.
6837         * modules/fabsl-ieee-tests: New file.
6838         * tests/test-fabsl-ieee.c: New file.
6839
6840         New module 'fabsl-ieee'.
6841         * modules/fabsl-ieee: New file.
6842
6843         Tests for module 'fabs-ieee'.
6844         * modules/fabs-ieee-tests: New file.
6845         * tests/test-fabs-ieee.c: New file.
6846
6847         New module 'fabs-ieee'.
6848         * modules/fabs-ieee: New file.
6849
6850         Tests for module 'fabsf-ieee'.
6851         * modules/fabsf-ieee-tests: New file.
6852         * tests/test-fabsf-ieee.c: New file.
6853         * tests/test-fabs-ieee.h: New file.
6854
6855         New module 'fabsf-ieee'.
6856         * modules/fabsf-ieee: New file.
6857
6858 2012-02-26  Bruno Haible  <bruno@clisp.org>
6859
6860         Tests for module 'fmal-ieee'.
6861         * modules/fmal-ieee-tests: New file.
6862         * tests/test-fmal-ieee.c: New file.
6863
6864         New module 'fmal-ieee'.
6865         * modules/fmal-ieee: New file.
6866
6867         Tests for module 'fma-ieee'.
6868         * modules/fma-ieee-tests: New file.
6869         * tests/test-fma-ieee.c: New file.
6870
6871         New module 'fma-ieee'.
6872         * modules/fma-ieee: New file.
6873
6874         Tests for module 'fmaf-ieee'.
6875         * modules/fmaf-ieee-tests: New file.
6876         * tests/test-fmaf-ieee.c: New file.
6877         * tests/test-fma-ieee.h: New file.
6878
6879         New module 'fmaf-ieee'.
6880         * modules/fmaf-ieee: New file.
6881
6882 2012-02-26  Bruno Haible  <bruno@clisp.org>
6883
6884         Tests for module 'ldexpl-ieee'.
6885         * modules/ldexpl-ieee-tests: New file.
6886         * tests/test-ldexpl-ieee.c: New file.
6887
6888         New module 'ldexpl-ieee'.
6889         * modules/ldexpl-ieee: New file.
6890
6891         Tests for module 'ldexp-ieee'.
6892         * modules/ldexp-ieee-tests: New file.
6893         * tests/test-ldexp-ieee.c: New file.
6894
6895         New module 'ldexp-ieee'.
6896         * modules/ldexp-ieee: New file.
6897
6898         Tests for module 'ldexpf-ieee'.
6899         * modules/ldexpf-ieee-tests: New file.
6900         * tests/test-ldexpf-ieee.c: New file.
6901         * tests/test-ldexp-ieee.h: New file.
6902
6903         New module 'ldexpf-ieee'.
6904         * modules/ldexpf-ieee: New file.
6905
6906 2012-02-26  Bruno Haible  <bruno@clisp.org>
6907
6908         Refactor frexp*-ieee tests.
6909         * tests/test-frexp-ieee.h: New file.
6910         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6911         (main): Just call test_function.
6912         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6913         (main): Just call test_function.
6914         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6915         (main): Just call test_function.
6916         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6917         * modules/frexp-ieee-tests (Files): Likewise.
6918         * modules/frexpl-ieee-tests (Files): Likewise.
6919
6920         Tests for module 'frexpl-ieee'.
6921         * modules/frexpl-ieee-tests: New file.
6922         * tests/test-frexpl-ieee.c: New file.
6923
6924         New module 'frexpl-ieee'.
6925         * modules/frexpl-ieee: New file.
6926
6927         Tests for module 'frexp-ieee'.
6928         * modules/frexp-ieee-tests: New file.
6929         * tests/test-frexp-ieee.c: New file.
6930
6931         New module 'frexp-ieee'.
6932         * modules/frexp-ieee: New file.
6933
6934         Tests for module 'frexpf-ieee'.
6935         * modules/frexpf-ieee-tests: New file.
6936         * tests/test-frexpf-ieee.c: New file.
6937
6938         New module 'frexpf-ieee'.
6939         * modules/frexpf-ieee: New file.
6940
6941 2012-02-26  Bruno Haible  <bruno@clisp.org>
6942
6943         roundl-ieee tests: More tests.
6944         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6945         (main): Add tests for [MX] shaded specification in POSIX.
6946         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6947         (Depends-on): Add isnanl-nolibm.
6948
6949         round-ieee tests: More tests.
6950         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6951         (main): Add tests for [MX] shaded specification in POSIX.
6952         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6953         (Depends-on): Add isnand-nolibm.
6954
6955         roundf-ieee tests: More tests.
6956         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6957         (main): Add tests for [MX] shaded specification in POSIX.
6958         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6959         (Depends-on): Add isnanf-nolibm.
6960
6961         truncl-ieee tests: More tests.
6962         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6963         (main): Add tests for [MX] shaded specification in POSIX.
6964         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6965         (Depends-on): Add isnanl-nolibm.
6966
6967         trunc-ieee tests: More tests.
6968         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6969         (main): Add tests for [MX] shaded specification in POSIX.
6970         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6971         (Depends-on): Add isnand-nolibm.
6972
6973         truncf-ieee tests: More tests.
6974         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6975         (main): Add tests for [MX] shaded specification in POSIX.
6976         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6977         (Depends-on): Add isnanf-nolibm.
6978
6979         ceill-ieee tests: More tests.
6980         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6981         (main): Add tests for [MX] shaded specification in POSIX.
6982         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6983         (Depends-on): Add isnanl-nolibm.
6984
6985         ceil-ieee tests: More tests.
6986         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6987         (main): Add tests for [MX] shaded specification in POSIX.
6988         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6989         (Depends-on): Add isnand-nolibm.
6990
6991         ceilf-ieee tests: More tests.
6992         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6993         (main): Add tests for [MX] shaded specification in POSIX.
6994         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6995         (Depends-on): Add isnanf-nolibm.
6996
6997         floorl-ieee tests: More tests.
6998         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6999         (main): Add tests for [MX] shaded specification in POSIX.
7000         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7001         (Depends-on): Add isnanl-nolibm.
7002
7003         floor-ieee tests: More tests.
7004         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7005         (main): Add tests for [MX] shaded specification in POSIX.
7006         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7007         (Depends-on): Add isnand-nolibm.
7008
7009         floorf-ieee tests: More tests.
7010         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7011         (main): Add tests for [MX] shaded specification in POSIX.
7012         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7013         (Depends-on): Add isnanf-nolibm.
7014
7015 2012-02-26  Bruno Haible  <bruno@clisp.org>
7016
7017         fpieee: More comments.
7018         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7019
7020 2012-02-25  Bruno Haible  <bruno@clisp.org>
7021
7022         Tests for module 'log10l'.
7023         * modules/log10l-tests: New file.
7024         * tests/test-log10l.c: New file.
7025         * tests/test-math-c++.cc: Check the declaration of log10l.
7026
7027         New module 'log10l'.
7028         * lib/math.in.h (log10l): New declaration.
7029         * lib/log10l.c: New file.
7030         * m4/log10l.m4: New file.
7031         * modules/log10l: New file.
7032         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7034         HAVE_DECL_LOG10L.
7035         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7036         HAVE_DECL_LOG10L.
7037         * doc/posix-functions/log10l.texi: Mention the new module.
7038
7039 2012-02-25  Bruno Haible  <bruno@clisp.org>
7040
7041         fmodl, remainder*: Avoid wrong results due to rounding errors.
7042         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7043         expected bounds.
7044         * lib/remainderf.c (remainderf): Likewise.
7045         * lib/remainder.c (remainder): Likewise.
7046         * lib/remainderl.c (remainderl): Likewise.
7047
7048 2012-02-25  Bruno Haible  <bruno@clisp.org>
7049
7050         Tests for module 'remainderl'.
7051         * modules/remainderl-tests: New file.
7052         * tests/test-remainderl.c: New file.
7053         * tests/test-math-c++.cc: Check the declaration of remainderl.
7054
7055         New module 'remainderl'.
7056         * lib/math.in.h (remainderl): New declaration.
7057         * lib/remainderl.c: New file.
7058         * m4/remainderl.m4: New file.
7059         * modules/remainderl: New file.
7060         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7062         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7063         HAVE_REMAINDERL.
7064         * doc/posix-functions/remainderl.texi: Mention the new module.
7065
7066 2012-02-25  Bruno Haible  <bruno@clisp.org>
7067
7068         Tests for module 'remainderf'.
7069         * modules/remainderf-tests: New file.
7070         * tests/test-remainderf.c: New file.
7071         * tests/test-math-c++.cc: Check the declaration of remainderf.
7072
7073         New module 'remainderf'.
7074         * lib/math.in.h (remainderf): New declaration.
7075         * lib/remainderf.c: New file.
7076         * m4/remainderf.m4: New file.
7077         * modules/remainderf: New file.
7078         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7080         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7081         HAVE_REMAINDERF.
7082         * doc/posix-functions/remainderf.texi: Mention the new module.
7083
7084 2012-02-25  Bruno Haible  <bruno@clisp.org>
7085
7086         remainder: Support for MSVC.
7087         * lib/math.in.h (remainder): New declaration.
7088         * lib/remainder.c: New file.
7089         * m4/remainder.m4: New file.
7090         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7091         (Depends-on): Add math, round, fma.
7092         (configure.ac): Use results of gl_FUNC_REMAINDER.
7093         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7095         HAVE_DECL_REMAINDER.
7096         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7097         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7098         * tests/test-math-c++.cc: Check the declaration of remainder.
7099         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7100         problems are fixed.
7101
7102 2012-02-25  Bruno Haible  <bruno@clisp.org>
7103
7104         Tests for module 'fmodl'.
7105         * modules/fmodl-tests: New file.
7106         * tests/test-fmodl.c: New file.
7107         * tests/test-math-c++.cc: Check the declaration of fmodl.
7108
7109         New module 'fmodl'.
7110         * lib/math.in.h (fmodl): New declaration.
7111         * lib/fmodl.c: New file.
7112         * m4/fmodl.m4: New file.
7113         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7115         REPLACE_FMODL.
7116         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7117         REPLACE_FMODL.
7118         * modules/fmodl: New file.
7119         * doc/posix-functions/fmodl.texi: Mention the new module.
7120
7121 2012-02-25  Bruno Haible  <bruno@clisp.org>
7122
7123         Tests for module 'modfl'.
7124         * modules/modfl-tests: New file.
7125         * tests/test-modfl.c: New file.
7126         * tests/test-math-c++.cc: Check the declaration of modfl.
7127
7128         New module 'modfl'.
7129         * lib/math.in.h (modfl): New declaration.
7130         * lib/modfl.c: New file.
7131         * m4/modfl.m4: New file.
7132         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7134         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7135         * modules/modfl: New file.
7136         * doc/posix-functions/modfl.texi: Mention the new module.
7137
7138 2012-02-25  Bruno Haible  <bruno@clisp.org>
7139
7140         Tests for module 'fabsl'.
7141         * modules/fabsl-tests: New file.
7142         * tests/test-fabsl.c: New file.
7143         * tests/test-math-c++.cc: Check the declaration of fabsl.
7144
7145         New module 'fabsl'.
7146         * lib/math.in.h (fabsl): New declaration.
7147         * lib/fabsl.c: New file.
7148         * m4/fabsl.m4: New file.
7149         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7151         REPLACE_FABSL.
7152         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7153         REPLACE_FABSL.
7154         * modules/fabsl: New file.
7155         * doc/posix-functions/fabsl.texi: Mention the new module.
7156
7157 2012-02-25  Bruno Haible  <bruno@clisp.org>
7158
7159         fabs tests: More tests.
7160         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7161         (zero): New variable.
7162         (main): Add tests for signed zero.
7163         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7164
7165         fabsf tests: More tests.
7166         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7167         (zero): New variable.
7168         (main): Add tests for signed zero.
7169         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7170
7171 2012-02-24  Bruno Haible  <bruno@clisp.org>
7172
7173         atanl: Provide function definition on MSVC.
7174         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7175         function pointer.
7176         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7177
7178 2012-02-24  Bruno Haible  <bruno@clisp.org>
7179
7180         acosl: Provide function definition on MSVC.
7181         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7182         function pointer.
7183         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7184
7185 2012-02-24  Bruno Haible  <bruno@clisp.org>
7186
7187         asinl: Provide function definition on MSVC.
7188         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7189         function pointer.
7190         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7191
7192 2012-02-24  Bruno Haible  <bruno@clisp.org>
7193
7194         tanl: Provide function definition on MSVC.
7195         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7196         function pointer.
7197         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7198
7199 2012-02-24  Bruno Haible  <bruno@clisp.org>
7200
7201         cosl: Provide function definition on MSVC.
7202         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7203         function pointer.
7204         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7205
7206 2012-02-24  Bruno Haible  <bruno@clisp.org>
7207
7208         sinl: Provide function definition on MSVC.
7209         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7210         function pointer.
7211         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7212
7213 2012-02-24  Bruno Haible  <bruno@clisp.org>
7214
7215         logl: Provide function definition on MSVC.
7216         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7217         function pointer.
7218         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7219
7220 2012-02-24  Bruno Haible  <bruno@clisp.org>
7221
7222         expl: Provide function definition on MSVC.
7223         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7224         function pointer.
7225         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7226
7227 2012-02-24  Bruno Haible  <bruno@clisp.org>
7228
7229         sqrtl: Provide function definition on MSVC.
7230         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7231         a function pointer.
7232         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7233
7234 2012-02-24  Bruno Haible  <bruno@clisp.org>
7235
7236         ceill: Provide function definition on MSVC.
7237         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7238         used as a function pointer.
7239         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7240
7241 2012-02-24  Bruno Haible  <bruno@clisp.org>
7242
7243         floorl: Provide function definition on MSVC.
7244         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7245         used as a function pointer.
7246         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7247
7248 2012-02-24  Bruno Haible  <bruno@clisp.org>
7249
7250         ceilf: Provide function definition on MSVC.
7251         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7252         used as a function pointer.
7253         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7254
7255 2012-02-24  Bruno Haible  <bruno@clisp.org>
7256
7257         floorf: Provide function definition on MSVC.
7258         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7259         used as a function pointer.
7260         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7261
7262 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7263
7264         stdnoreturn: new module
7265         This implements a replacement for C11's <stdnoreturn.h>.
7266         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7267         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7268         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7269         * tests/test-stdnoreturn.c: New files.
7270
7271 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7272
7273         regex: fix false multibyte matches in some regular expressions
7274         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7275         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7276         * lib/regex_internal.c (re_string_skip_chars):
7277         Fix miscomputation of remain_len that may cause incomplete
7278         multi-byte character and false match.
7279
7280 2012-02-24  Jim Meyering  <meyering@redhat.com>
7281
7282         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7283         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7284         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7285         Remove now-unnecessary str''cmp obfuscation.
7286         Suggested by Akim Demaille.
7287
7288 2012-02-24  Bruno Haible  <bruno@clisp.org>
7289
7290         streq: Rename macro.
7291         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7292         * NEWS: Mention the change.
7293         * lib/mbrtowc.c (mbrtowc): Update.
7294         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7295         * lib/wcwidth.c (wcwidth): Update.
7296         Suggested by Akim Demaille and Jim Meyering.
7297
7298 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7299
7300         regex: fix typo in definition of MIN
7301         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7302         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7303
7304 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7305             Bruno Haible  <bruno@clisp.org>
7306
7307         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7308         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7309         entries into a stack-allocated buffer directly.
7310         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7311
7312 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7313             Bruno Haible  <bruno@clisp.org>
7314
7315         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7316
7317          - There were several instances of this pattern:
7318
7319              for (;;) {
7320                n = acl (f, GETACLCNT, 0, NULL);
7321                [ allocate an array A of size N ]
7322                if (acl (f, GETACL, n, a) == n)
7323                  break;
7324              }
7325
7326            This loop might never terminate if some other process is constantly
7327            manipulating the file's ACL.  The loop should be rewritten to
7328            terminate.
7329
7330          - The acl (... GETACLNT ...) call is merely an optimization; its value
7331            is merely a hint as to how big to make the array.  A better
7332            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7333            and just guess a reasonably-big size, growing the size and trying
7334            again if it's not large enough.  This guarantees termination, and
7335            saves a system call.
7336
7337         * lib/acl-internal.h: Include <limits.h>.
7338         (MIN, SIZE_MAX): New macros.
7339         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7340         a stack-allocated buffer, and use malloc if it does not fit. Don't
7341         use GETACLCNT.
7342         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7343
7344 2012-02-19  Bruno Haible  <bruno@clisp.org>
7345
7346         acl: Fix endless loop on Solaris with vxfs.
7347         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7348         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7349         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7350         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7351         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7352         Reported by Bill Jones in
7353         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7354
7355 2012-02-19  Bruno Haible  <bruno@clisp.org>
7356
7357         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7358         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7359         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7360         that this function returns 0 in some more cases.
7361
7362 2012-02-19  Bruno Haible  <bruno@clisp.org>
7363
7364         acl: Update doc references.
7365         * doc/acl-resources.txt: Update links to Solaris documentation.
7366
7367 2012-02-19  Bruno Haible  <bruno@clisp.org>
7368
7369         Fix test failure in many locales on Solaris 11.
7370         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7371         'tr' arguments.
7372         * tests/test-pipe-filter-ii1.c (main): Likewise.
7373         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7374         expressions in the C locale.
7375         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7376         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7377
7378 2012-02-19  Bruno Haible  <bruno@clisp.org>
7379
7380         gnulib-tool: Improve usage message.
7381         * gnulib-tool (func_usage): Move doc of --help and --version to the
7382         section "Operation modes".
7383
7384 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7385
7386         README-release: make it easier to execute commands
7387         * top/README-release: break commands out on to separate lines.
7388
7389 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7390
7391         GNUmakefile: simplify detection of unconfigured trees
7392         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7393         whether the tree make is being run from is already configured or
7394         not.  Related simplifications.
7395
7396 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7397
7398         * gnulib-tool (func_usage): Document --help and --version.
7399
7400 2012-02-11  Jim Meyering  <meyering@redhat.com>
7401
7402         bootstrap: don't exit 0 upon gnulib-tool failure
7403         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7404         its exit status, not 0.
7405
7406 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7407
7408         README-release: various improvements
7409         * top/README-release: Give a command to push changes for the
7410         release.  Add "distcheck" to list of other pre-release checks.
7411         Fix instance of "make stable" which should be "make TYPE".
7412
7413 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7414
7415         maint: replace FSF snail-mail addresses with URLs
7416         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7417         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7418         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7419         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7420         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7421         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7422         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7423         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7424         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7425         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7426         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7427         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7428         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7429         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7430         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7431         * lib/glthread/thread.c, lib/glthread/thread.h:
7432         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7433         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7434         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7435         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7436         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7437         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7438         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7439         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7440         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7441         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7442         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7443         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7444         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7445         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7446         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7447         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7448         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7449         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7450         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7451         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7452         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7453         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7454         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7455         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7456         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7457         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7458         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7459         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7460         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7461         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7462         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7463         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7464         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7465         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7466         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7467         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7468         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7469         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7470         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7471         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7472         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7473         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7474         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7475         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7476         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7477         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7478         * tests/test-poll.c, tests/test-quotearg-simple.c:
7479         * tests/test-quotearg.c, tests/test-quotearg.h:
7480         * tests/test-round-ieee.c, tests/test-round1.c:
7481         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7482         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7483         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7484         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7485         * tests/test-strerror.c, tests/test-strerror_r.c:
7486         * tests/test-strsignal.c, tests/test-strverscmp.c:
7487         * tests/test-xmemdup0.c:
7488         Replace FSF snail mail addresses with URLs, as per GNU coding
7489         standards.  See glibc bug
7490         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7491
7492 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7493
7494         README-release: capitalize a word and split a line
7495         * top/README-release: Fix punctuation and spacing.
7496
7497 2012-02-08  Akim Demaille  <demaille@gostai.com>
7498
7499         fatal-signal: use C prototypes (with explicit void).
7500         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7501         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7502
7503 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7504
7505         regex: spelling fix
7506         * lib/regexec.c: spelling fix
7507
7508         regex: rely on stdint.h for SIZE_MAX
7509         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7510
7511 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7512
7513         regex: merge glibc changes
7514
7515         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7516         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7517         (init_word_char): Work even if bitset words are not exactly 32 or
7518         64 bits wide.  Don't assume there are no padding bits.
7519         * lib/regex.c [_LIBC]: Do not include <config.h>.
7520         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7521         and -Wtype-limits.
7522         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7523         needless disagreement with glibc.  All uses changed.  Define it to
7524         1 only if _GNU_SOURCE, to match glibc.
7525         (_REG_RM_NAME): Remove; no longer needed, since the names in
7526         question are now all protected by __USE_GNU.
7527         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7528         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7529         * lib/regex_internal.h (MIN): New macro.
7530
7531         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7532         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7533
7534         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7535         * lib/regex_internal.c (re_string_fetch_byte_case):
7536         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7537         is miscompiled, and it turns out it is because of an incorrect
7538         attribute on re_string_fetch_byte_case.  Unlike
7539         re_string_peek_byte_case, this one is really not pure, it modifies
7540         memory (increments pstr->cur_idx), and with the pure attribute GCC
7541         assumed it doesn't and it cached the presumed value of
7542         regexp->cur_idx in a variable across the
7543          for (;; ++i)
7544            {
7545              if (i >= BRACKET_NAME_BUF_SIZE)
7546                return REG_EBRACK;
7547              if (token->type == OP_OPEN_CHAR_CLASS)
7548                ch = re_string_fetch_byte_case (regexp);
7549              else
7550                ch = re_string_fetch_byte (regexp);
7551              if (re_string_eoi(regexp))
7552                return REG_EBRACK;
7553              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7554                break;
7555              elem->opr.name[i] = ch;
7556            }
7557
7558         2011-11-29 Andreas Schwab <schwab@redhat.com>
7559         * lib/regcomp.c (build_equiv_class):
7560         Fix access after end of search string in regex matcher.
7561
7562         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7563         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7564
7565         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7566         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7567
7568         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7569         * lib/regcomp.c (parse_branch, parse_sub_exp):
7570         More regex memory leak fixes and tests.
7571         (parse_sub_exp, parse_bracket_exp):
7572         Fix memory leak for some invalid regular expressions.
7573
7574         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7575         * lib/regex_internal.c, lib/regexec.c:
7576         Fix unnecessary overallocation due to incomplete character.  When
7577         incomplete characters are found at the end of a string the code
7578         ran amok and allocated lots of memory.  Stricter limits are now in
7579         place.
7580
7581         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7582         * lib/regex.h: Update documentation.
7583
7584         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7585         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7586
7587         2010-05-05 Andreas Schwab <schwab@redhat.com>
7588         * lib/regexec.c (find_collation_sequence_value):
7589         Fix lookup of collation sequence value during regexp matching.
7590
7591         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7592         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7593
7594         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7595         * lib/regex.h: Cleanup namespace.
7596
7597         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7598         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7599
7600         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7601         * lib/regex_internal.h: Prevent some declarations and definitions
7602         to be seen when used in tests.
7603
7604         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7605         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7606         __libc_lock_* macros if not _LIBC.
7607         (struct re_dfa_t): Add lock.
7608
7609 2012-02-07  Eric Blake  <eblake@redhat.com>
7610
7611         maint.mk: also prohibit lower-case @var@
7612         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7613         lower case, like @top_srcdir@.
7614
7615 2012-02-04  Eric Blake  <eblake@redhat.com>
7616
7617         canonicalize: avoid uninitialized memory use
7618         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7619         random '/' left in dest.
7620         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7621
7622 2012-02-04  Bruno Haible  <bruno@clisp.org>
7623
7624         isatty: Fix test failure of ptsname_r on native Windows.
7625         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7626         and don't set errno.
7627         (isatty): Test first whether fd is valid. Set errno when returning 0.
7628
7629 2012-02-04  Bruno Haible  <bruno@clisp.org>
7630
7631         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7632         * tests/test-spawn-pipe-main.c: Include progname.h.
7633         (main): Invoke set_program_name.
7634         * modules/spawn-pipe-tests (Depends-on): Add progname.
7635
7636         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7637         * tests/test-nonblocking-socket-main.c: Include progname.h.
7638         (main): Invoke set_program_name.
7639         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7640
7641         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7642         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7643         (main): Invoke set_program_name.
7644         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7645
7646 2012-02-04  Eric Blake  <eblake@redhat.com>
7647
7648         canonicalize-lgpl: fix // handling
7649         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7650
7651         canonicalize: fix // handling
7652         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7653         /// to //, since only // is special.
7654
7655 2012-02-04  Bruno Haible  <bruno@clisp.org>
7656
7657         ioctl: Fix test failure on native Windows.
7658         * lib/ioctl.c: Include msvc-nothrow.h.
7659         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7660
7661 2012-02-04  Bruno Haible  <bruno@clisp.org>
7662
7663         fsync: Avoid test failure on native Windows.
7664         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7665         read-only.
7666
7667 2012-02-04  Bruno Haible  <bruno@clisp.org>
7668
7669         sys_select: Avoid syntax error on OpenBSD 5.0.
7670         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7671         currently being included, just include the system's <sys/select.h>.
7672
7673 2012-02-04  Bruno Haible  <bruno@clisp.org>
7674
7675         sys_select: Avoid syntax error on OpenBSD 5.0.
7676         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7677         <sys/select.h>, not before.
7678         Reported by Jiri B <jirib@devio.us>.
7679
7680 2012-02-04  Bruno Haible  <bruno@clisp.org>
7681
7682         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7683         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7684         global variables.
7685         * tests/test-get-rusage-data.c (main): Likewise.
7686         Reported by Jim Meyering.
7687
7688 2012-02-04  Bruno Haible  <bruno@clisp.org>
7689
7690         stdioext: Fix last commit.
7691         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7692
7693 2012-02-03  Bruno Haible  <bruno@clisp.org>
7694
7695         stdioext: Add tentative support for Plan9.
7696         * lib/stdio-impl.h: Include <errno.h>.
7697         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7698         * lib/freadable.c (freadable): Likewise.
7699         * lib/fwritable.c (fwritable): Likewise.
7700         * lib/fbufmode.c (fbufmode): Likewise.
7701         * lib/freading.c (freading): Likewise.
7702         * lib/fwriting.c (fwriting): Likewise.
7703         * lib/freadptr.c (freadptr): Likewise.
7704         * lib/freadseek.c (freadptrinc): Likewise.
7705         * lib/freadahead.c (freadahead): Likewise.
7706         * lib/fpurge.c (fpurge): Likewise.
7707         * lib/fseeko.c (rpl_fseeko): Likewise.
7708         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7709         Reported by Jens Staal <staal1978@gmail.com>.
7710
7711 2012-02-02  Jim Meyering  <meyering@redhat.com>
7712
7713         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7714         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7715         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7716         not even to try to add the attribute.  Instead, add a pragma to suppress
7717         the suggestion/warning.
7718
7719 2012-01-31  Karl Berry  <karl@gnu.org>
7720
7721         setstate doc: typo.
7722         * doc/posix-functions/setstate.texi (setstate): { not (.
7723
7724 2012-01-31  Bruno Haible  <bruno@clisp.org>
7725
7726         popen: Make more robust on Windows.
7727         * lib/popen.c: On native Windows, use the _popen based code even if
7728         HAVE_POPEN is set.
7729         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7730         environment variable on native Windows.
7731
7732 2012-01-30  Bruno Haible  <bruno@clisp.org>
7733
7734         pclose: Fix typo.
7735         * lib/stdio.in.h (pclose): Fix typo in warning message.
7736
7737 2012-01-30  Bruno Haible  <bruno@clisp.org>
7738
7739         doc about getlogin_r, setstate.
7740         * doc/posix-functions/getlogin_r.texi: List the incompatible
7741         declaration problem under "not fixed by gnulib".
7742         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7743         problem on Solaris 11 and other platforms.
7744
7745 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7746             Bruno Haible  <bruno@clisp.org>
7747
7748         poll tests: Make test more robust.
7749         * tests/test-poll.c: Include macros.h.
7750         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7751         return value of various I/O operations.
7752         * modules/poll-tests (Files): Add tests/macros.h.
7753
7754 2012-01-30  Bruno Haible  <bruno@clisp.org>
7755
7756         sys_stat: Fix support for mingw64 and MSVC.
7757         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7758         header files already do it.
7759         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7760         stat itself.
7761         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7762
7763 2012-01-30  Bruno Haible  <bruno@clisp.org>
7764
7765         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7767         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7768
7769 2012-01-29  Bruno Haible  <bruno@clisp.org>
7770
7771         quotearg: Fix test failure on MacOS X 10.5.
7772         * tests/test-quotearg-simple.c: Include localcharset.h.
7773         (main): If the locale encoding is not ASCII, bypass the tests of
7774         locale_quoting_style and clocale_quoting_style.
7775         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7776
7777 2012-01-29  Jim Meyering  <meyering@redhat.com>
7778
7779         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7780         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7781         detect uses of canonicalize_file_name.
7782
7783 2012-01-28  Bruno Haible  <bruno@clisp.org>
7784
7785         test-framework-sh: Fix test failure with AIX 7.1 diff.
7786         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7787         in column 1, like 'diff -c' does.
7788         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7789         whether 'diff -u' is used. Instead, test whether the output contains
7790         some '@' character.
7791
7792 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7793
7794         strtoimax: eliminate need for stdint.h, inttypes.h checks
7795         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7796         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7797         the prerequisites for a recently-introduced strtoimax test.
7798         I guess this might cause strtoimax to be replaced when not
7799         strictly necessary on older hosts, but this shouldn't introduce
7800         any bugs and it should make Emacs 'configure' faster on typical
7801         modern hosts.  Problem discovered when importing the latest gnulib
7802         to an Emacs test version.
7803         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7804
7805 2012-01-28  Bruno Haible  <bruno@clisp.org>
7806
7807         sys_time: Override 'struct timeval' on some native Windows platforms.
7808         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7809         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7810         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7811         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7812         needs to be overridden.
7813         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7814         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7815         * tests/test-sys_select.c: Check that the tv_sec member has the same
7816         size as a 'time_t'.
7817         * tests/test-sys_time.c: Likewise.
7818         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7819         is set, set also REPLACE_GETTIMEOFDAY.
7820         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7821         convert the resulting 'struct timeval' before returning.
7822         * lib/select.c: Include <sys/time.h>.
7823         (select, timeval): Undefine at the right place.
7824         * modules/select (Depends-on): Add sys_time.
7825         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7826         some Windows platforms.
7827         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7828
7829 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7830
7831         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7832         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7833         an integer.
7834         * lib/fcntl.c (dupfd): Likewise.
7835         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7836
7837 2012-01-28  Bruno Haible  <bruno@clisp.org>
7838
7839         fcntl: Avoid compilation error on native Windows.
7840         * modules/fcntl (Depends-on): Add 'close'.
7841
7842 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7843
7844         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7845         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7846         pointer to an integer.
7847         * lib/poll.c (IsConsoleHandle): Likewise.
7848         * lib/isatty.c (IsConsoleHandle): Likewise.
7849
7850 2012-01-28  Jim Meyering  <meyering@redhat.com>
7851
7852         doc: clarify README-release
7853         * top/README-release: Clarify: you should make a point to have
7854         the latest stable versions of build tools in your PATH, and the
7855         reference to buildreq is solely for its list of tool names, not
7856         for its minimal-functional version numbers.
7857         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7858
7859         maint.mk: use more readable (yet functionally equivalent) quoting
7860         It is common to quote a single quote in a single quoted string like
7861         this:  '...'\''...'.  Unless you know the idiom, that looks like
7862         gibberish, so prefer to double-quote the string when possible.
7863         Then you can use a more readable, lone single quote: "...'..."
7864         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7865         "don't" is more readable than the equivalent 'don'\''t'.
7866         (sc_cast_of_x_alloc_return_value): Likewise.
7867         (sc_cast_of_alloca_return_value): Likewise.
7868         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7869         rather than '\'':'\''.
7870
7871 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7872
7873         stdalign: relax _Alignof and tighten _Alignas test
7874         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7875         as it was too strict: alignof must divide offsetof, but it need
7876         not equal offsetof.  Inspired by Joseph S. Myers's comment
7877         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7878         Conversely, tighten the _Alignas test a bit, as the resulting
7879         alignment must be exactly 8.
7880
7881 2012-01-27  Bruno Haible  <bruno@clisp.org>
7882
7883         stdalign: Document the last change.
7884         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7885
7886 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7887
7888         stdalign: check that alignof and offsetof are consistent
7889         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7890         Problem reported for gnulib by Richard W.M. Jones in
7891         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7892
7893 2012-01-27  Jim Meyering  <meyering@redhat.com>
7894
7895         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7896         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7897         convert a sequence with gaps to the minimal containing range.
7898         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7899         * tests/test-update-copyright.sh: Test for this.
7900         The FSF confirmed it is ok to do this, assuming there is at
7901         least one significant change per year in the affected range:
7902         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7903
7904 2012-01-26  Bruno Haible  <bruno@clisp.org>
7905
7906         pipe2: refine doc about thread-safety
7907         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7908         multithread-safety problem.
7909         * doc/glibc-functions/accept4.texi: Likewise.
7910
7911 2012-01-26  Bruno Haible  <bruno@clisp.org>
7912
7913         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7914         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7915         In the test program, include <fcntl.h>, for O_RDONLY.
7916
7917 2012-01-26  Eric Blake  <eblake@redhat.com>
7918
7919         pipe2: document lack of thread-safety in replacement
7920         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7921         issue in replacement.
7922         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7923         Based on a report by Eric Wong.
7924
7925 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7926             Bruno Haible  <bruno@clisp.org>
7927
7928         malloca: Avoid warnings on x86_64 mingw64.
7929         * lib/malloca.c: Include <stdint.h>.
7930         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7931         * modules/malloca (Depends-on): Add stdint.
7932         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7933
7934 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7935
7936         obstack: remove __STDC__ conditionals
7937         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7938         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7939         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7940         m4/include_next.m4 as the only gnulib-maintained places that still
7941         refer to __STDC__.
7942
7943 2012-01-24  Bruno Haible  <bruno@clisp.org>
7944
7945         havelib: Modern quoting.
7946         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7947         the recent change to the GNU coding standards.
7948
7949 2012-01-24  Bruno Haible  <bruno@clisp.org>
7950
7951         stdint: Improve support for Android.
7952         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7953         Reported by Simon Josefsson <simon@josefsson.org>.
7954
7955 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7956
7957         doc: omit trailing empty lines from INSTALL etc.
7958         * doc/Makefile (INSTALL): Omit trailing empty lines.
7959         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7960         omit trailing empty lines.  This simplifies the build procedure.
7961
7962 2012-01-23  Jim Meyering  <meyering@redhat.com>
7963
7964         tests: avoid spurious warnings about gl_sockets_startup
7965         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7966         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7967         reporting a "statement with no effect".
7968         * tests/test-accept.c (main): Mark as "(void)".
7969         * tests/test-accept4.c (main): Likewise.
7970         * tests/test-bind.c (main): Likewise.
7971         * tests/test-connect.c (main): Likewise.
7972         * tests/test-getpeername.c (main): Likewise.
7973         * tests/test-getsockname.c (main): Likewise.
7974         * tests/test-getsockopt.c (main): Likewise.
7975         * tests/test-listen.c (main): Likewise.
7976         * tests/test-recv.c (main): Likewise.
7977         * tests/test-recvfrom.c (main): Likewise.
7978         * tests/test-send.c (main): Likewise.
7979         * tests/test-sendto.c (main): Likewise.
7980         * tests/test-setsockopt.c (main): Likewise.
7981         * tests/test-shutdown.c (main): Likewise.
7982
7983 2012-01-21  Bruno Haible  <bruno@clisp.org>
7984
7985         locale-fr.m4: Fix for Android.
7986         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7987         failure of the test program on Bionic libc.
7988
7989 2012-01-21  Jim Meyering  <meyering@redhat.com>
7990
7991         bootstrap: fail when bootstrap_post_import_hook fails
7992         Otherwise, it's far too easy to miss diagnostics emitted
7993         between gnulib-tool's output and that of running configure.
7994         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7995
7996 2012-01-17  Jim Meyering  <meyering@redhat.com>
7997
7998         maint: enable sc_trailing_blank
7999         * build-aux/pmccabe.css: Remove trailing blanks.
8000         * doc/acl-cygwin.txt: Likewise.
8001         * doc/gnu-oids.texi: Likewise
8002         * cfg.mk: Enable sc_trailing_blank.
8003         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8004
8005 2012-01-17  Jim Meyering  <meyering@redhat.com>
8006
8007         maint: enable sc_prohibit_openat_without_use
8008         * cfg.mk: Enable sc_prohibit_openat_without_use.
8009         Exempt lib/selinux-at.c.
8010
8011 2012-01-17  Jim Meyering  <meyering@redhat.com>
8012
8013         maint: enable sc_prohibit_cloexec_without_use
8014         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8015         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8016
8017 2012-01-17  Jim Meyering  <meyering@redhat.com>
8018
8019         maint: enable sc_prohibit_intprops_without_use
8020         * cfg.mk: Enable sc_prohibit_intprops_without_use
8021         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8022
8023 2012-01-17  Jim Meyering  <meyering@redhat.com>
8024
8025         maint: enable sc_prohibit_hash_pjw_without_use
8026         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8027         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8028         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8029         following " (".
8030
8031 2012-01-17  Jim Meyering  <meyering@redhat.com>
8032
8033         maint: enable double-word-prohibiting rule
8034         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8035         Exempt three files.
8036
8037 2012-01-17  Jim Meyering  <meyering@redhat.com>
8038
8039         maint: remove empty lines at EOF, but excluding modules/*
8040         Apply syntax rules at home as well as abroad.  Most changes
8041         were induced by running this:
8042           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8043             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8044             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8045         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8046         Exempt modules/* and two binary files.
8047         Also exempt doc/INSTALL*, per request from Bruno Haible.
8048         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8049         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8050         * doc/Copyright/request-assign.future: Likewise.
8051         * doc/Copyright/request-disclaim.changes: Likewise.
8052         * doc/INSTALL: Likewise.
8053         * doc/INSTALL.ISO: Likewise.
8054         * doc/INSTALL.UTF-8: Likewise.
8055         * doc/acl-cygwin.txt: Likewise.
8056         * doc/acl-resources.txt: Likewise.
8057         * doc/fdl-1.2.texi: Likewise.
8058         * doc/fdl-1.3.texi: Likewise.
8059         * doc/fdl.texi: Likewise.
8060         * lib/argp-pin.c: Likewise.
8061         * lib/round.c: Likewise.
8062         * lib/unicase/u16-totitle.c: Likewise.
8063         * lib/unictype/block_test.c: Likewise.
8064         * lib/uninorm/canonical-decomposition.c: Likewise.
8065         * m4/README: Likewise.
8066         * m4/relocatable-lib.m4: Likewise.
8067         * tests/test-isnand-nolibm.c: Likewise.
8068         * tests/test-isnand.c: Likewise.
8069         * tests/uninorm/NormalizationTest.txt: Likewise.
8070
8071 2012-01-17  Jim Meyering  <meyering@redhat.com>
8072
8073         maint: add framework to run syntax-check rules against gnulib sources
8074         * cfg.mk: New file, to disable all currently-failing tests.
8075         We'll enable them one by one, as they are made to pass.
8076         * Makefile (sc_maint): New rule.
8077
8078 2012-01-21  Bruno Haible  <bruno@clisp.org>
8079
8080         stdint: Add support for Android.
8081         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8082         include the system's <stdint.h>.
8083         Reported by Simon Josefsson <simon@josefsson.org>.
8084
8085 2012-01-19  Jim Meyering  <meyering@redhat.com>
8086
8087         bootstrap: add bootstrap_post_import_hook
8088         Bison does still need something like the gnulib_mk_hook whose
8089         invocation I had to remove along with slurp in commit 767ccd40.
8090         Technically, we could get along without it, but doing so would
8091         have required living with a warning and a mandatory post-bootstrap
8092         automake rerun.
8093         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8094         (bootstrap_post_import_hook): New function.
8095         Invoke it after gnulib-tool --import and before autoreconf.
8096
8097 2012-01-18  Jim Meyering  <meyering@redhat.com>
8098
8099         gitlog-to-changelog: don't use "no_"-prefixed variable name
8100         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8101         to enable both --cluster and --no-cluster.  Change variable name,
8102         s/\$no_cluster/$cluster/, and reverse usage to match.
8103
8104         gitlog-to-changelog: use "||", not "or" in expressions
8105         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8106         expressions.
8107
8108 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8109
8110         gitlog-to-changelog: new option --no-cluster
8111         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8112         clustering of adjacent commit messages.
8113
8114 2012-01-17  Jim Meyering  <meyering@redhat.com>
8115
8116         maint: spell file systems with two words, not one
8117         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8118         two words, not one.
8119
8120 2012-01-16  Jim Meyering  <meyering@redhat.com>
8121
8122         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8123         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8124
8125 2012-01-16  Eric Blake  <eblake@redhat.com>
8126
8127         bootstrap: cater to autoconf 2.59
8128         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8129         is not available.
8130
8131         bootstrap: properly check for libtool
8132         * build-aux/bootstrap (libtoolize): Also run libtool when older
8133         usage is detected.
8134
8135 2012-01-15  Bruno Haible  <bruno@clisp.org>
8136
8137         Improve support for MSVC 9.
8138         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8139         clashes on MSVC.
8140         * lib/fcntl.in.h: Likewise.
8141         * lib/stdlib.in.h: Likewise.
8142         * lib/sys_stat.in.h: Likewise.
8143
8144 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8145
8146         gnupload: we hold the master copy of this script now
8147         For motivation and more information, see:
8148         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8149         * build-aux/gnupload: Make it clear in the heading comments that the
8150         master copy of this file is maintained by gnulib.  Since we are at
8151         it, bump its copyright year and ...
8152         ($scriptversion): ... the date in its version.
8153         ($usage): Patches and bug reports should be sent to the gnulib list,
8154         not the automake one.
8155         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8156         anymore.
8157
8158 2012-01-15  Bruno Haible  <bruno@clisp.org>
8159
8160         Fix module 'random'.
8161         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8162         initstate, setstate are declared.
8163
8164 2012-01-14  Bruno Haible  <bruno@clisp.org>
8165
8166         Tests for module 'random'.
8167         * modules/random-tests: New file.
8168         * tests/test-random.c: New file, based on tests/test-random_r.c.
8169
8170         New module 'random'.
8171         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8172         declarations.
8173         * lib/random.c: New file, based on glibc/stdlib/random.c.
8174         * m4/random.m4: New file.
8175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8176         HAVE_RANDOM.
8177         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8178         * modules/random: New file.
8179         * config/srclist.txt: Add an entry for random.c.
8180         * doc/posix-functions/random.texi: Mention the 'random' module.
8181         * doc/posix-functions/initstate.texi: Likewise.
8182         * doc/posix-functions/setstate.texi: Likewise.
8183         * doc/posix-functions/srandom.texi: Likewise.
8184
8185 2012-01-12  Bruno Haible  <bruno@clisp.org>
8186
8187         random_r: Use common idioms.
8188         * lib/random_r.c: Include <stdlib.h> first.
8189
8190         random_r: Override incompatible API on AIX, OSF/1.
8191         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8192         Override the system function if REPLACE_RANDOM_R is 1.
8193         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8194         and OSF/1, set REPLACE_RANDOM_R.
8195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8196         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8197         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8198         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8199         * doc/glibc-functions/random_r.texi: Likewise.
8200         * doc/glibc-functions/setstate_r.texi: Likewise.
8201
8202         random_r: Support for MSVC 9.
8203         * lib/random_r.c: Include stdint.h, not inttypes.h.
8204
8205 2012-01-12  Eric Blake  <eblake@redhat.com>
8206
8207         inet_ntop: guard extra work by IF_LINT
8208         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8209         better code generation when not checking for warnings.
8210         Suggested by Paul Eggert and Jim Meyering.
8211
8212         strptime: fix regression on mingw
8213         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8214         Fix regression.  Reported by Bruno Haible.
8215
8216 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8217             Bruno Haible  <bruno@clisp.org>
8218
8219         copy-file: add error-code-returning variant.
8220         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8221         (qcopy_file_preserving): New declaration.
8222         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8223         copy_file_preserving. Change return type to 'int'. Don't emit an error
8224         message here.
8225         (copy_file_preserving): New function.
8226         * tests/test-copy-file.c: Include <stdlib.h>.
8227         (main): Test qcopy_file_preserving if the environment variable
8228         NO_STDERR_OUTPUT is set.
8229         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8230         with NO_STDERR_OUTPUT
8231         * tests/test-copy-file-2.sh: Likewise.
8232
8233 2012-01-10  Bruno Haible  <bruno@clisp.org>
8234
8235         copy-file: Use 'quote' module consistently.
8236         * lib/copy-file.c (copy_file_preserving): Use quote().
8237
8238         copy-file: Refactor.
8239         * lib/copy-file.c: Include quote.h.
8240         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8241         message here.
8242         * modules/copy-file (Depends-on): Add quote.
8243
8244         acl: Export qcopy_acl.
8245         * lib/acl.h (qcopy_acl): New declaration.
8246         * lib/copy-acl.c (qcopy_acl): Make non-static.
8247
8248         acl: Rename a local variable.
8249         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8250
8251         acl: Align return values of copy_acl and qcopy_acl.
8252         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8253         maybe < -1.
8254
8255 2012-01-11  Eric Blake  <eblake@redhat.com>
8256
8257         strptime: silence gcc warnings
8258         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8259         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8260         Reported by Daniel P. Berrange.
8261
8262         inet_ntop: silence gcc warning
8263         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8264         Reported by Daniel P. Berrange.
8265
8266 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8267
8268         getloadavg test: skip the test on GNU/Linux without /proc mounted
8269         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8270         file.  When /proc is not mounted, it always fails with ENOENT.
8271         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8272         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8273
8274 2012-01-10  Bruno Haible  <bruno@clisp.org>
8275
8276         regex: Avoid link error on MSVC 9.
8277         * modules/regex (Depends-on): Add wctype.
8278
8279 2012-01-10  Bruno Haible  <bruno@clisp.org>
8280
8281         doc: Mention --with-tests option.
8282         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8283         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8284         --with-tests.
8285         Reported by Reuben Thomas.
8286
8287 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8288
8289         users.txt: order package names lexicographically.
8290         * users.txt: Order package names lexicographically.
8291
8292 2012-01-10  Jim Meyering  <meyering@redhat.com>
8293
8294         maint.mk: fix description in comment
8295         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8296
8297         ignore-value: remove deprecated ignore_ptr function
8298         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8299         * NEWS: Note this.
8300
8301 2012-01-09  Jim Meyering  <meyering@redhat.com>
8302
8303         test-init.sh: avoid a subshell
8304         * tests/test-init.sh: Remove protective subshell.
8305         Suggested by Bernhard Voelker.  While a subshell is normally
8306         required to protect against older shells (Solaris, FreeBSD) that
8307         warn about a missing program before performing redirection, the
8308         shell-selection tests performed by init.sh probably exclude any
8309         offending shell.
8310
8311 2012-01-08  Bruno Haible  <bruno@clisp.org>
8312
8313         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8314         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8315         variable.
8316
8317 2012-01-08  Bruno Haible  <bruno@clisp.org>
8318
8319         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8320         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8321         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8322         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8323         macro.
8324         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8325         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8326         * lib/spawn_faction_addopen.c: Add workaround implementation if
8327         HAVE_WORKING_POSIX_SPAWN.
8328         * modules/spawn (Makefile): Substitute
8329         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8330         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8331         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8332         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8333         (Depends-on): Update conditions.
8334         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8335         the Solaris 11 bug.
8336
8337 2012-01-08  Bruno Haible  <bruno@clisp.org>
8338
8339         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8340         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8341         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8342         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8343         macro.
8344         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8345         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8346         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8347         HAVE_WORKING_POSIX_SPAWN.
8348         * modules/spawn (Makefile): Substitute
8349         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8350         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8351         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8352         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8353         (Depends-on): Update conditions.
8354         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8355         the Solaris 11 bug.
8356
8357 2012-01-08  Bruno Haible  <bruno@clisp.org>
8358
8359         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8360         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8361         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8362         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8363         HAVE_WORKING_POSIX_SPAWN.
8364         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8365         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8366         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8367         * lib/spawn_faction_addclose.c: Add workaround implementation if
8368         HAVE_WORKING_POSIX_SPAWN.
8369         * modules/spawn (Makefile): Substitute
8370         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8371         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8372         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8373         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8374         (Depends-on): Update conditions.
8375         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8376         the Solaris 11 bug.
8377
8378 2012-01-08  Bruno Haible  <bruno@clisp.org>
8379
8380         doc: Update for Solaris 11 2011-11.
8381         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8382         * m4/printf.m4: Update comments.
8383
8384 2012-01-08  Bruno Haible  <bruno@clisp.org>
8385
8386         mktime: Avoid compilation error on Solaris 11.
8387         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8388
8389 2012-01-08  Bruno Haible  <bruno@clisp.org>
8390
8391         doc: Small fix.
8392         * doc/posix-headers/nl_types.texi: Correct platforms list.
8393
8394 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8395
8396         Add lgpl-3.0 module.
8397         * MODULES.html.sh (Support for building documentation): Add
8398         lgpl-3.0.
8399         * modules/lgpl-3.0: New file.
8400
8401 2012-01-08  Jim Meyering  <meyering@redhat.com>
8402
8403         select.c: indent with spaces, not TABs
8404         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8405
8406 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8407
8408         quotearg: do not use grave accent for left quote
8409         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8410         locale_quoting_style.
8411         (quotearg_buffer_restyled): Fix example.
8412         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8413
8414 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8415
8416         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8417         Most programs do not have translation catalogs for English and much
8418         less separate catalogs for British and American English.  Drop the
8419         suggestion to translators about these two, and provide it
8420         automatically for Unicode locales.  Like most programs, even those
8421         using American English, we use single quotation marks.  This conflicts
8422         with the American typographic convention, but works better when you
8423         cite the entire error message within double quotes.  It also tries not
8424         to clash with established practice and with what non-gnulib programs
8425         will usually do.
8426         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8427         using an UTF-8 or GB-18030 locale.  The list of other locales with
8428         quotes was provided by Bruno Haible.
8429         (quotearg_buffer_restyled): Adjust instructions to translators.
8430         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8431         text, since this would be wrong when using Unicode.
8432         * modules/quotearg: Depend on c-strcaseeq.
8433
8434 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8435
8436         quotearg: fix Wikipedia link
8437         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8438
8439 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8440
8441         Fix for mingw with MSVC9.
8442         * m4/ld-version-script.m4: Check that compiler rejects version
8443         scripts with syntax errors.  Reported by Bruno Haible
8444         <bruno@clisp.org>.
8445
8446 2012-01-06  Bruno Haible  <bruno@clisp.org>
8447
8448         Talk about "native Windows API", not "Woe32".
8449         * lib/accept4.c: Update comments to mention native Windows.
8450         * lib/execute.c: Likewise.
8451         * lib/fatal-signal.c: Likewise.
8452         * lib/localcharset.c: Likewise.
8453         * lib/nanosleep.c: Likewise.
8454         * lib/nl_langinfo.c: Likewise.
8455         * lib/pclose.c: Likewise.
8456         * lib/pipe-filter-gi.c: Likewise.
8457         * lib/pipe-filter-ii.c: Likewise.
8458         * lib/pipe.c: Likewise.
8459         * lib/pipe2.c: Likewise.
8460         * lib/popen.c: Likewise.
8461         * lib/progreloc.c: Likewise.
8462         * lib/relocatable.c: Likewise.
8463         * lib/sigaction.c: Likewise.
8464         * lib/sigprocmask.c: Likewise.
8465         * lib/spawn-pipe.h: Likewise.
8466         * lib/spawn-pipe.c: Likewise.
8467         * lib/spawni.c: Likewise.
8468         * lib/stat-time.h: Likewise.
8469         * lib/w32spawn.h: Likewise.
8470         * tests/test-isatty.c: Likewise.
8471         * lib/config.charset: More comments.
8472         * doc/gnulib-intro.texi: Mention native Windows.
8473         * doc/posix-functions/_Exit_C99.texi: Likewise.
8474         * doc/posix-headers/fcntl.texi: Likewise.
8475
8476 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8477
8478         argp: Avoid crash if translator uses % characters in a translation.
8479         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8480         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8481
8482 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8483
8484         doc: C11 and C++11 are now official
8485         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8486         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8487         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8488         * modules/stdalign:
8489         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8490
8491 2012-01-06  Bruno Haible  <bruno@clisp.org>
8492
8493         uc-is-grapheme-break tests: Tweak.
8494         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8495         message.
8496
8497 2012-01-06  Bruno Haible  <bruno@clisp.org>
8498
8499         test-init.sh: correct the test for diff -u
8500         * tests/test-init.sh: Also redirect stdout to /dev/null.
8501
8502 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8503
8504         Use ', not `, for quoting output.
8505         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8506         (print_changelog_deltas, get_tool_versions, main program):
8507         * build-aux/git-version-gen:
8508         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8509         * build-aux/move-if-change (help):
8510         * build-aux/useless-if-before-free (usage, main program):
8511         * check-module (parse_module_file, usage)
8512         (find_included_lib_files, check_module):
8513         * lib/argmatch.c (main) [TEST]:
8514         * lib/argp-help.c (_help):
8515         * lib/getopt1.c (main) [TEST]:
8516         * lib/git-merge-changelog.c (usage):
8517         * lib/xstrtol-error.c (xstrtol_error):
8518         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8519         * m4/argz.m4 (gl_FUNC_ARGZ):
8520         * m4/bison.m4 (gl_BISON):
8521         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8522         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8523         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8524         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8525         * m4/gc-random.m4 (gl_GC_RANDOM):
8526         * m4/intl.m4 (gt_CHECK_DECL):
8527         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8528         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8529         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8530         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8531         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8532         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8533         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8534         * tests/test-dirname.c (main):
8535         * tests/test-getpass.c (main):
8536         * tests/test-iconvme.c (main):
8537         * tests/test-parse-datetime.c (LOG):
8538         * tests/test-xstrtoimax.sh:
8539         * tests/test-xstrtol.sh:
8540         * tests/test-xstrtoll.sh:
8541         * tests/test-xstrtoumax.sh:
8542         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8543         * top/GNUmakefile (abort-due-to-no-makefile):
8544         Quote 'like this', not `like this', as per the recent change to
8545         the GNU coding standards.
8546
8547 2012-01-05  Bruno Haible  <bruno@clisp.org>
8548
8549         strtoimax: Don't force a replacement on systems where intmax_t is int.
8550         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8551         'intmax_t' is not larger than 'int'.
8552         Reported by Pádraig Brady <P@draigBrady.com>.
8553
8554 2012-01-05  Bruno Haible  <bruno@clisp.org>
8555
8556         doc: Mention NetBSD bugs.
8557         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8558         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8559
8560 2012-01-05  Bruno Haible  <bruno@clisp.org>
8561
8562         strtoumax tests: Enhance tests.
8563         * tests/test-strtoumax.c (main): Add tests for large values.
8564
8565 2012-01-05  Bruno Haible  <bruno@clisp.org>
8566
8567         strtoimax: Work around AIX 5.1 bug.
8568         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8569         definition.
8570         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8571         Set HAVE_STRTOIMAX.
8572         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8573         REPLACE_STRTOIMAX.
8574         * modules/inttypes-incomplete (Makefile.am): Substitute
8575         REPLACE_STRTOIMAX.
8576         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8577         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8578         (Depends-on): Update conditions.
8579         * tests/test-strtoimax.c (main): Add tests for large values.
8580         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8581
8582 2012-01-05  Bruno Haible  <bruno@clisp.org>
8583
8584         inttypes: Modernize.
8585         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8586         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8587         (Makefile.am): Update inttypes.h rule.
8588
8589 2012-01-05  Jim Meyering  <meyering@redhat.com>
8590
8591         init.sh: don't waste a subshell just to redirect stderr
8592         * tests/init.sh: In testing for diff -u and diff -c, use a
8593         stderr-redirecting exec inside `...` rather than a subshell.
8594
8595         test-init.sh: avoid failure on HP-UX 11.00
8596         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8597         resolves to diff -c or cmp.  Reported by Bruno Haible.
8598
8599 2012-01-05  Bruno Haible  <bruno@clisp.org>
8600
8601         Tests for module 'strtoull'.
8602         * modules/strtoull-tests: New file.
8603         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8604
8605 2012-01-05  Bruno Haible  <bruno@clisp.org>
8606
8607         Tests for module 'strtoll'.
8608         * modules/strtoll-tests: New file.
8609         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8610
8611 2012-01-05  Bruno Haible  <bruno@clisp.org>
8612
8613         Tests for module 'strtoul'.
8614         * modules/strtoul-tests: New file.
8615         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8616
8617 2012-01-05  Bruno Haible  <bruno@clisp.org>
8618
8619         Tests for module 'strtol'.
8620         * modules/strtol-tests: New file.
8621         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8622
8623 2012-01-04  Jim Meyering  <meyering@redhat.com>
8624
8625         test-init.sh: accommodate Solaris 5.10's different diff -u output
8626         * tests/test-init.sh: Also exempt @@ lines from the comparison
8627         of diff output, since Solaris 5.10 and GNU diff formats differ.
8628         Reported by Stefano Lattarini.
8629
8630 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8631
8632         test-posixtm: don't assume signed integer wraparound
8633         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8634         after signed integer overflow.  Inspired by (though it may not
8635         fix) Bruno Haible's bug report in
8636         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8637
8638         Spell out "Windows 9x" and "Windows XP".
8639         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8640         "Windows 9x" and "WinXP" with "Windows XP".
8641
8642 2012-01-04  Jim Meyering  <meyering@redhat.com>
8643
8644         test-vc-list-files-cvs.sh: remove obsolete comment
8645         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8646         double exit.  Now that's all encapsulated via skip_ and Exit.
8647
8648 2012-01-04  Bruno Haible  <bruno@clisp.org>
8649
8650         Talk about "native Windows API", not "Win32".
8651         * lib/classpath.c: Update comments to mention native Windows.
8652         * lib/csharpexec.c: Likewise.
8653         * lib/dup2.c: Likewise.
8654         * lib/error.c: Likewise.
8655         * lib/fcntl.c: Likewise.
8656         * lib/filename.h: Likewise.
8657         * lib/findprog.c: Likewise.
8658         * lib/get-rusage-as.c: Likewise.
8659         * lib/get-rusage-data.c: Likewise.
8660         * lib/getpagesize.c: Likewise.
8661         * lib/javaexec.c: Likewise.
8662         * lib/msvc-inval.c: Likewise.
8663         * lib/msvc-nothrow.c: Likewise.
8664         * lib/nanosleep.c: Likewise.
8665         * lib/nonblocking.c: Likewise.
8666         * lib/printf-parse.c: Likewise.
8667         * lib/setlocale.c: Likewise.
8668         * lib/sigaction.c: Likewise.
8669         * lib/strerror_r.c: Likewise.
8670         * lib/tmpdir.c: Likewise.
8671         * lib/vasnprintf.c: Likewise.
8672         * lib/w32spawn.h: Likewise.
8673         * lib/waitpid.c: Likewise.
8674         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8675         * m4/locale-ar.m4: Likewise.
8676         * m4/locale-fr.m4: Likewise.
8677         * m4/locale-ja.m4: Likewise.
8678         * m4/locale-tr.m4: Likewise.
8679         * m4/locale-zh.m4: Likewise.
8680         * m4/printf.m4: Likewise.
8681         * tests/test-cloexec.c: Likewise.
8682         * tests/test-copy-acl.sh: Likewise.
8683         * tests/test-copy-file.sh: Likewise.
8684         * tests/test-file-has-acl.sh: Likewise.
8685         * tests/test-set-mode-acl.sh: Likewise.
8686         * tests/test-dup-safer.c: Likewise.
8687         * tests/test-dup2.c: Likewise.
8688         * tests/test-dup3.c: Likewise.
8689         * tests/test-fcntl.c: Likewise.
8690         * tests/test-nonblocking-pipe.h: Likewise.
8691         * tests/test-nonblocking-socket.h: Likewise.
8692         * tests/test-pipe.c: Likewise.
8693         * tests/test-pipe2.c: Likewise.
8694         * tests/test-spawn-pipe-child.c: Likewise.
8695         * doc/acl-resources.txt: Likewise.
8696         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8697         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8698         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8699         * lib/localcharset.c: Update comments to mention native Windows.
8700         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8701         * lib/localename.c: Likewise.
8702         * lib/progreloc.c: Likewise.
8703         * lib/relocatable.c: Likewise.
8704         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8705         (windows_compute_revents): Renamed from win32_compute_revents.
8706         (windows_compute_revents_socket): Renamed from
8707         win32_compute_revents_socket.
8708         * lib/select.c: Update comments to mention native Windows.
8709         (windows_poll_handle): Renamed from win32_poll_handle.
8710         * m4/threadlib.m4: Update comments to mention native Windows.
8711         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8712         --enable-threads=windows instead of --enable-threads=win32. Set
8713         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8714         * lib/glthread/lock.h: Update comments to mention native Windows.
8715         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8716         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8717         USE_WIN32_THREADS.
8718         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8719         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8720         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8721         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8722         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8723         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8724         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8725         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8726         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8727         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8728         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8729         * tests/test-tls.c: Likewise.
8730         Rationale:
8731         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8732         on both 32-bit and 64-bit Windows systems.
8733         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8734         line of distinction is between "native Windows" on one side and Unix/
8735         POSIX systems on the other side. More details in
8736         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8737         Suggested by Paul Eggert.
8738
8739 2012-01-03  Bruno Haible  <bruno@clisp.org>
8740
8741         isatty: Support for MSVC 9.
8742         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8743         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8744         (_isatty_nothrow): New function.
8745         (isatty): Use it instead of _isatty.
8746         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8747         * lib/poll.c (IsConsoleHandle): Likewise.
8748         * lib/select.c (IsConsoleHandle): Likewise.
8749         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8750         (gl_PREREQ_ISATTY): New macro.
8751         * modules/isatty (Depends-on): Add msvc-inval.
8752         (configure.ac): Invoke gl_PREREQ_ISATTY.
8753
8754 2012-01-03  Jim Meyering  <meyering@redhat.com>
8755
8756         maint.mk: remove temporary transition aid from over 1.5 years ago
8757         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8758         purpose was to aid in the transition (avoiding silent malfunction)
8759         from that old name to the new _sc_search_regexp.  This shim was
8760         added by commit 219c504b.
8761
8762         init.sh: do not try to accommodate compare arguments starting with "-"
8763         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8764         compare arguments that start with "-".  Besides, we do not worry
8765         about this when invoking diff or cmp; why start now with sed?
8766         Using "--" to separate options from argument would trigger sed
8767         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8768         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8769
8770 2012-01-02  Bruno Haible  <bruno@clisp.org>
8771
8772         Enhance tests for module 'isatty'.
8773         * modules/isatty-tests (Depends-on): Add pipe-posix.
8774         * tests/test-isatty.c: Include <fcntl.h>.
8775         (DEV_NULL): New macro.
8776         (main): Test the resut of isatty() also on regular files, pipes, and
8777         /dev/null.
8778
8779         New module 'isatty'.
8780         * lib/unistd.in.h (isatty): New declaration.
8781         * lib/isatty.c: New file, based on an idea of
8782         Bastien Roucariès <roucaries.bastien@gmail.com>.
8783         * m4/isatty.m4: New file.
8784         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8785         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8786         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8787         REPLACE_ISATTY.
8788         * modules/isatty: New file.
8789         * doc/posix-functions/isatty.texi: Mention the new module.
8790         Suggested by Paolo Bonzini.
8791
8792 2012-01-02  Bruno Haible  <bruno@clisp.org>
8793
8794         canonicalize: Tweak 2011-12-29 commit.
8795         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8796         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8797
8798 2012-01-02  Jim Meyering  <meyering@redhat.com>
8799
8800         gitlog-to-changelog: describe input syntax in --help output
8801         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8802
8803         gitlog-to-changelog: fix typo in --help: show backslash before email @
8804         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8805         in sources, but not in actual output.
8806
8807 2011-12-30  Jim Meyering  <meyering@redhat.com>
8808
8809         gitlog-to-changelog: don't malfunction when name contains %-directive
8810         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8811         in a name string cause trouble.  E.g., with a user name of "%s",
8812         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8813
8814 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8815
8816         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8817         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8818         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8819         the "  (tiny change)" notation that is appended to the standard
8820         ChangeLog "date  name  email" header line.
8821
8822 2012-01-01  Jim Meyering  <meyering@redhat.com>
8823
8824         test-framework-sh: init.sh: fix "make dist" failure
8825         When using gnulib-tool's --with-tests option and any module that
8826         depends on test-framework-sh, "make dist" would fail due to the
8827         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8828         in the gltests directory, and not in the gllib/ directory.
8829         One way to work around that is to move the EXTRA_DIST += init.sh
8830         from the primary module to the -tests one:
8831         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8832         * modules/test-framework-sh (Makefile.am): ...not here.
8833         Reported by Tom G. Christensen in
8834         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8835
8836         version-etc: update copyright year reported by --version
8837         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8838
8839 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8840
8841         canonicalize: only stat() if required
8842         * lib/canonicalize.c (canonicalize_filename_mode):
8843         Avoid calling l?stat() when both CAN_MISSING,
8844         and CAN_NOLINKS are set, as we neither need
8845         to resolve symlinks or test component existence.
8846
8847 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8848
8849         doc: cover st_ino issues once; add OpenVMS etc.
8850         * doc/posix-functions/stat.texi (stat):
8851         * doc/posix-functions/lstat.texi (lstat):
8852         * doc/posix-functions/fstatat.texi (fstatat):
8853         * doc/posix-functions/fstat.texi (fstat):
8854         Move general 'struct stat' stuff to sys_stat.texi,
8855         leaving behind a pointer.
8856         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8857         Merge duplicate info about 'struct stat' problems into here.
8858         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8859         and suggest partial workarounds.
8860
8861         same-inode: port to OpenVMS
8862         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8863         three st_ino values.
8864
8865 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8866
8867         canonicalize: fix references to stat() and lstat()
8868         * lib/canonicalize.c (canonicalize_filename_mode):
8869         Ensure references always resolve to a replacement
8870         function if required (even via a macro).
8871
8872 2011-12-30  Jim Meyering  <meyering@redhat.com>
8873
8874         gitlog-to-changelog: remove a little duplication
8875         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8876         rather than twice.
8877
8878 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8879
8880         canonicalize: add support for not resolving symlinks
8881         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8882         indicate we don't want to follow symlinks.  Also
8883         provide CAN_MODE_MASK to aid setting these existing
8884         mutually exclusive values.
8885         * lib/canonicalize.c (canonicalize_filename_mode):
8886         Extract the flags from can_mode parameter, which
8887         are currently just used to select between stat()
8888         and lstat().  Also ensure that mutually exclusive
8889         values are flagged immediately as invalid.
8890         * tests/test-canonicalize.c: Verify symlinks are
8891         not followed, and that invalid flag combinations
8892         are diagnosed.
8893
8894 2011-12-25  Jim Meyering  <meyering@redhat.com>
8895
8896         gitlog-to-changelog: do not clump multi-paragraph entries
8897         Identical header lines (date,name,email+coauthors) are suppressed,
8898         thus putting all entries with those same characteristics under
8899         a single header.  However, when a log entry consists of two or
8900         more paragraphs, it may not be clear where it starts and ends.
8901         This change makes it so that such an entry is always separated
8902         from others by a header line, even when that header would
8903         otherwise be suppressed.
8904         * build-aux/gitlog-to-changelog: Implement the above.
8905         Inspired by a related request from Stefano Lattarini in
8906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8907
8908 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8909
8910         announce-gen: fix `cmd' typo in diagnostic
8911         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8912         diagnostic: a missing '$' meant that the command was not output.
8913
8914 2011-12-23  Jim Meyering  <meyering@redhat.com>
8915
8916         test-framework-sh: distribute init.sh
8917         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8918         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8919         fail due to the lack of init.sh.
8920
8921         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8922         * modules/atexit-tests: Rather than listing tests/init.sh,
8923         now that there's a module for it, simply depend on that new module.
8924         * modules/closein-tests: Likewise.
8925         * modules/exclude-tests: Likewise.
8926         * modules/getcwd-tests: Likewise.
8927         * modules/perror-tests: Likewise.
8928         * modules/pread-tests: Likewise.
8929         * modules/pwrite-tests: Likewise.
8930         * modules/vc-list-files-tests: Likewise.
8931         * modules/verify-tests: Likewise.
8932         * modules/xalloc-die-tests: Likewise.
8933         * modules/xstrtoimax-tests: Likewise.
8934         * modules/xstrtol-tests: Likewise.
8935         * modules/xstrtoll-tests: Likewise.
8936         * modules/xstrtoumax-tests: Likewise.
8937         * modules/yesno-tests: Likewise.
8938
8939 2011-12-22  Jim Meyering  <meyering@redhat.com>
8940
8941         test-framework-sh: add minimal tests of init.sh's compare function
8942         * modules/test-framework-sh-tests: New file.
8943         * tests/test-init.sh: New file.
8944
8945         test-framework-sh: new module
8946         * modules/test-framework-sh: New file.
8947         * MODULES.html.sh (Support for maintaining and releasing projects):
8948         List it.
8949
8950         init.sh: do not emit simulated diff output to stderr
8951         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8952
8953 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8954
8955         .gitignore: ignore gnulib.dvi and regex.info
8956         * doc/.gitignore:add gnulib.dvi and regex.info
8957
8958 2011-12-22  Jim Meyering  <meyering@redhat.com>
8959
8960         init.sh: correct previous change
8961         * tests/init.sh (compare): My previous change was wrong.
8962         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8963
8964         init.sh: avoid unwarranted test failure when using "set -e"
8965         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8966         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8967         a use like "compare exp out" would get evoke an unconditional failure.
8968
8969 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8970
8971         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8972         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8973         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8974         autoreconf that did not.
8975         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8976         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8977
8978 2011-12-17  Jim Meyering  <meyering@redhat.com>
8979
8980         bootstrap: remove some now-unneeded code
8981         This script arose back when gnulib-tool was young.
8982         Since then, it has seen improvements that render much of this
8983         script unnecessary.  In particular, it can now make symlinks
8984         to the files it uses.  Also, I no longer see as much value in
8985         marking files as read-only via comments.
8986         If you relied on the symlink-creation feature of the preceding
8987         version of this script, you can get most of that functionality
8988         by adding the --symlink option to the definition of
8989         gnulib_tool_option_extras in your bootstrap.conf file.
8990         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8991         Run autopoint and libtoolize *before* gnulib-tool.
8992         After it, run an abbreviated autoreconf, rather than a loop around
8993         all tools.
8994         (slirp, bt_mark_as_generated): Remove functions.
8995
8996 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8997
8998         ftoastr: fix typo
8999         * lib/ftoastr.h: Fix misspelling in comment.
9000
9001 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9002
9003         * top/README-release: fix punctuation.
9004
9005 2011-12-17  Jim Meyering  <meyering@redhat.com>
9006
9007         bootstrap: correct the recent buildreq change
9008         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9009         had no effect.
9010         * build-aux/bootstrap (buildreq): Bracket each search term with
9011         "*...*", so that the shell "case" statement works as intended.
9012         Add comments.
9013
9014 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9015
9016         build: let bootstrap resort to wget when downloading .po files
9017         * build-aux/bootstrap (download_po_files): Fallback to wget when
9018         downloading the .po files via rsync fails.  This is necessary to
9019         bootstrap from behind a strict firewall.
9020
9021 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9022
9023         stdint: don't assume C++11 when compiling with g++
9024         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9026         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9027         work also in C++ before C++11, as that improperly inhibits
9028         generating a substitute stdint.h for that case.
9029
9030 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9031
9032         alloca: protect comment from gnulib-tool
9033         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9034         that gnulib-tool doesn't think it's a license, and munge it to
9035         say "GCC version 3".
9036
9037 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9038
9039         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9040         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9041         $(abs_top_builddir) instead of $(top_builddir).
9042
9043 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9044
9045         strftime-tests: also test nanoseconds
9046         * tests/test-strftime.c (T): Add a test of %N.
9047
9048 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9049
9050         inttypes, stdint: add C++11 support
9051         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9052         when including inttypes.h and stdint.h.  Support this change to
9053         the standard.
9054         * doc/posix-headers/inttypes.texi (inttypes.h):
9055         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9056         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9057         Define if not defined already, for the benefit of pre-C++11 hosts.
9058         Define the standard format macros (e.g., PRId8) always.
9059         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9060         Likewise, if __cpluspus.  Define the standard constant and limit
9061         macros (e.g., INT8_C, INT8_MAX) always.
9062         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9063         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9064         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9065         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9066         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9067         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9068         Likewise.
9069
9070 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9071
9072         nonblocking tests: Fix test failure on Linux/PPC.
9073         Suggested by Prerna Saxena in
9074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9075         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9076         Set to 1100000.
9077
9078 2011-12-12  Jim Meyering  <meyering@redhat.com>
9079
9080         argmatch: don't hard-code `' when listing valid option arguments
9081         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9082         use the quote function to add quotes.  Use fputs rather than
9083         fprintf for the format string with no format directive.
9084
9085 2011-12-07  Eric Blake  <eblake@redhat.com>
9086
9087         bootstrap: detect tools required by gnulib-tool
9088         * build-aux/bootstrap (buildreq): Provide minimum implicit
9089         dependencies.
9090         * DEPENDENCIES: Mention patch as a prereq.
9091
9092 2011-12-04  Bruno Haible  <bruno@clisp.org>
9093
9094         sethostname: Port to Windows platforms.
9095         * lib/sethostname.c: Provide an alternate implementation for Windows
9096         platforms.
9097         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9098         (main): Skip the test if sethostname() fails with EPERM. On Windows
9099         platforms, don't check the result of gethostname().
9100
9101 2011-12-04  Bruno Haible  <bruno@clisp.org>
9102             Jim Meyering  <meyering@redhat.com>
9103
9104         tests: Avoid spurious error message on platforms without mktemp program.
9105         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9106
9107 2011-12-04  Bruno Haible  <bruno@clisp.org>
9108
9109         sethostname: Fix documentation.
9110         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9111         "not fixed" section.
9112
9113 2011-12-03  Bruno Haible  <bruno@clisp.org>
9114
9115         gnulib-tool: Verify that the License field is present and non-empty.
9116         * gnulib-tool (func_get_license_raw): New function, extracted from
9117         func_get_license.
9118         (func_get_license): Use it. Warn if the module is not a test module and
9119         has no license.
9120         Suggested by Jim Meyering.
9121
9122 2011-12-03  Bruno Haible  <bruno@clisp.org>
9123
9124         sethostname tests: Fix link error on mingw.
9125         * tests/test-sethostname1.c: New file, extracted from
9126         tests/test-sethostname.c.
9127         * tests/test-sethostname2.c: New file, extracted from
9128         tests/test-sethostname.c.
9129         * tests/test-sethostname.c: Remove file.
9130         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9131         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9132         (Depends-on): Add gethostname.
9133         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9134         Link the latter with $(GETHOSTNAME_LIB).
9135
9136         sethostname tests: Fix compilation error on mingw.
9137         * tests/test-sethostname.c: Don't include <sys/types.h>.
9138         (geteuid): Use a dummy value without uid_t.
9139         * modules/sethostname-tests (Depends-on): Remove sys_types.
9140
9141         sethostname tests: Avoid a gcc warning.
9142         * tests/test-sethostname.c (main): Remove an unused variable.
9143
9144         Tweak last commit.
9145         * modules/sethostname-tests (Files): Sort by decreasing importance.
9146         (configure.ac): Check for geteuid.
9147         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9148         the test when there's nothing to test. Drop an unnecessary cast.
9149         Improve an error message. Verify that the final sethostname() call
9150         succeeds.
9151
9152 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9153
9154         Add a test suite for the sethostname module.
9155         * modules/sethostname-tests: New file.  A test program
9156         for the sethostname module.
9157         * tests/test-sethostname.c: Likewise.
9158
9159 2011-12-03  Bruno Haible  <bruno@clisp.org>
9160
9161         Tweak last commit.
9162         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9163         Fix preprocessor directives indentation. Fix typos.
9164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9165         * modules/unistd (Makefile): Likewise.
9166
9167 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9168
9169         Integrate the sethostname module into unistd.
9170         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9171         into the unistd.h header.
9172         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9173         preprocessor directives.
9174         * modules/unistd: Setup the Makefile substitutions of the
9175         SETHOSTNAME preprocessor directives.
9176
9177 2011-12-03  Bruno Haible  <bruno@clisp.org>
9178
9179         Tweak last commit.
9180         * lib/sethostname.c: Don't include <string.h>.
9181         (sethostname): No need to copy the argument string to the stack. Don't
9182         call clearerr. Preserve errno when fprintf failed.
9183         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9184         Don't invoke AC_REPLACE_FUNCS.
9185         * modules/sethostname (Link): Remove empty section.
9186         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9187         failure problem.
9188
9189 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9190
9191         New module 'sethostname'.
9192         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9193         for systems that lack it.
9194         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9195         sethostname declaration and function.
9196         * modules/sethostname: New file.  Define the sethostname module.
9197
9198 2011-12-03  Bruno Haible  <bruno@clisp.org>
9199
9200         Tweak last commit.
9201         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9202
9203 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9204
9205         Split the HOST_NAME_MAX detection into a separate m4 macro.
9206         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9207         macro so it can be used by the pending sethostname module.
9208
9209 2011-12-03  Bruno Haible  <bruno@clisp.org>
9210
9211         Fix module descriptions syntax.
9212         * modules/argv-iter (License): Fix syntax.
9213         * modules/di-set (License): Likewise.
9214         * modules/ino-map (License): Likewise.
9215         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9216
9217 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9218
9219         stdalign: port to Clang 3.0
9220         Problem reported by Simon Josefsson in
9221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9222         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9223         which has <stdalign.h> but which does not define alignof.
9224         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9225
9226 2011-12-01  Eric Blake  <eblake@redhat.com>
9227
9228         mktempd: silence dd usage
9229         * build-aux/mktempd (rand_bytes): Silence dd.
9230
9231 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9232
9233         manywarnings: Don't mention gcc version in docstring.
9234         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9235         Jim Meyering <meyering@redhat.com>.
9236
9237 2011-11-30  Jim Meyering  <meyering@redhat.com>
9238
9239         hash: mark a few floating point constants with "f" suffix
9240         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9241         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9242         floating point constants with "f", since they're destined to be
9243         saved/used as "float"s.
9244
9245 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9246
9247         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9248         * tests/test-float.c (test_long_double): Correct and re-enable the
9249         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9250
9251 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9252
9253         Avoid subtracting two pointers that don't point into the same block.
9254         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9255         only pointers into the same memory block are subtracted. We cannot
9256         assume that sizeof (ptrdiff_t) == sizeof (void *).
9257
9258 2011-11-29  Eric Blake  <eblake@redhat.com>
9259
9260         maint.mk: add syntax check for use of compare from init.sh
9261         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9262         moved here from coreutils.
9263
9264         manywarnings: drop -Wunsuffixed-float-constants
9265         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9266         '1.0D', which is the only way to silence this warning for 'double'.
9267
9268 2011-11-29  Jim Meyering  <meyering@redhat.com>
9269
9270         hash: mark compute_bucket_size with the pure attribute
9271         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9272
9273         quotearg, propername: correct pragma guard expression
9274         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9275         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9276
9277 2011-11-28  Jim Meyering  <meyering@redhat.com>
9278
9279         propername: do not mark proper_name with the const attribute
9280         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9281         since it examines data pointed to by its parameter.
9282         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9283         the suggestion from -Wsuggest-attribute=const.
9284
9285         propername: mark one more function as const
9286         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9287
9288 2011-11-27  Jim Meyering  <meyering@redhat.com>
9289
9290         mark functions with const and pure attributes
9291
9292         Mark functions per suggestions from gcc-4.6 when using these options:
9293         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9294         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9295         Follow these guidelines: when possible, apply the attribute to
9296         an extern declaration, not to its definition.  Apply it to the
9297         definition only when the definition is static.
9298         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9299         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9300         * lib/base64.h (isbase64): Likewise.
9301         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9302         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9303         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9304         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9305         (c_tolower, c_toupper): Likewise.
9306         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9307         * lib/chdir-long.c (find_non_slash): Likewise.
9308         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9309         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9310         * lib/file-type.h (file_type): Likewise.
9311         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9312         * lib/filevercmp.c (verrevcmp): Likewise.
9313         * lib/freadahead.h (freadahead): Likewise.
9314         * lib/fts.c (fts_maxarglen): Likewise.
9315         * lib/hash-pjw.h (hash_pjw): Likewise.
9316         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9317         * lib/hash.c (is_prime, next_prime): Likewise.
9318         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9319         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9320         (hash_table_ok, hash_get_first, hash_string): Likewise.
9321         (compute_bucket_size): Likewise.
9322         * lib/i-ring.h (i_ring_empty): Likewise.
9323         * lib/isnan.c (isnanl): Likewise.
9324         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9325         * lib/memcasecmp.h (memcasecmp): Likewise.
9326         * lib/memchr2.h (memchr2): Likewise.
9327         * lib/memcmp2.h (memcmp2): Likewise.
9328         * lib/parse-datetime.y (lookup_zone): Likewise.
9329         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9330         [!WINDOWS_SOCKETS]: Likewise.
9331         * lib/strnlen1.h (strnlen1): Likewise.
9332         * lib/uniwidth.in.h (uc_width): Likewise.
9333         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9334         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9335         (quoting_options_from_style): Add a comment.
9336         * lib/propername.h (proper_name): Add a comment.
9337
9338 2011-11-27  Bruno Haible  <bruno@clisp.org>
9339
9340         Remove unused macros from !_LIBC code in glibc-borrowed files.
9341         * lib/fnmatch.c (STRCOLL): Remove macro.
9342         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9343         * lib/glob.c (__stat, __readdir64): Remove macros.
9344         * lib/tempname.c (__open64, __xstat64): Remove macros.
9345         Suggested by Paul Eggert.
9346
9347 2011-11-27  Bruno Haible  <bruno@clisp.org>
9348
9349         getcwd: Fix link error on MSVC 9.
9350         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9351
9352 2011-11-27  Bruno Haible  <bruno@clisp.org>
9353
9354         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9355         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9356         HAVE_OPENDIR is 0.
9357         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9358         HAVE_CLOSEDIR is 0.
9359         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9360         is 0.
9361         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9362
9363 2011-11-27  Bruno Haible  <bruno@clisp.org>
9364
9365         getcwd: Fix bug from 2011-08-17.
9366         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9367         platforms that need it.
9368         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9369         code of 4 to be a failure, not a success. This ensures that
9370         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9371
9372 2011-11-27  Bruno Haible  <bruno@clisp.org>
9373
9374         binary-io tests: Avoid test failure on mingw when libtool is used.
9375         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9376         Don't verify the size of t-bin-out1.tmp here.
9377         * tests/test-binary-io.sh: Verify it here.
9378         Reported by Simon Josefsson.
9379
9380 2011-11-26  Bruno Haible  <bruno@clisp.org>
9381
9382         Fix conflict between two instantiations of module 'unistd'.
9383         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9384         ${include_guard_prefix} also in the autoconf snippet.
9385         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9387         GNULIB_UNISTD_H_GETOPT.
9388         * modules/getopt-posix (configure.ac): Set the
9389         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9390         * modules/getopt-gnu (configure.ac): Likewise.
9391         * modules/unistd (Makefile.am): Change the substitution value of
9392         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9393         Reported by Simon Josefsson.
9394
9395 2011-11-25  Bruno Haible  <bruno@clisp.org>
9396
9397         pagealign_alloc: Doc and comments.
9398         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9399         module.
9400         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9401
9402 2011-11-25  Jim Meyering  <meyering@redhat.com>
9403
9404         test-update-copyright.sh: avoid false-positive failure
9405         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9406         around false positive failure on Cygwin/Windows.  The latter was
9407         matching erroneously-created files with names like
9408         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9409
9410 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9411
9412         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9413         * m4/valgrind-tests.m4: Check that the parameters that will be
9414         used works, not just a subset of them.  Reported by Bruno Haible
9415         <bruno@clisp.org>.
9416
9417 2011-11-24  Jim Meyering  <meyering@redhat.com>
9418
9419         test-stdalign.c: comment out long double tests
9420         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9421         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9422         error: '_Alignas' specifiers cannot reduce alignment of \
9423         'static_longdouble_alignas'.
9424
9425 2011-11-22  Jim Meyering  <meyering@redhat.com>
9426
9427         init.sh: make "compare /dev/null FILE" output more readable
9428         * tests/init.sh (compare_): Document the preferred order of arguments.
9429         (emit_diff_u_header_): New function.
9430         (compare_dev_null_): Emit a simulated diff, rather than just the
9431         contents of the unexpected file.  Suggestion from Bruno Haible.
9432
9433 2011-11-21  Jim Meyering  <meyering@redhat.com>
9434             Eric Blake  <eblake@redhat.com>
9435
9436         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9437         * tests/init.sh: Make our compare function slightly more portable.
9438         Reported by Bruno Haible in
9439         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9440
9441 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9442
9443         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9444         before using it, in code that ends up in config.h.
9445
9446 2011-11-20  Bruno Haible  <bruno@clisp.org>
9447
9448         getcwd: Work around getcwd bug on AIX 5..7.
9449         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9450         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9451         Use a different value for gl_cv_func_getcwd_path_max. Move the
9452         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9453         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9454         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9455         Define HAVE_MINIMALLY_WORKING_GETCWD.
9456         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9457         where it is not even minimally working, that is, on AIX.
9458         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9459         m4/getcwd-path-max.m4.
9460         (main): Update exit code computation.
9461         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9462         getcwd does not handle long file names.
9463
9464 2011-11-20  Bruno Haible  <bruno@clisp.org>
9465
9466         getcwd: Fix bug from 2009-09-10.
9467         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9468         like "no".
9469
9470 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9471
9472         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9473
9474 2011-11-20  Bruno Haible  <bruno@clisp.org>
9475
9476         fma tests: Avoid shadowing local variables.
9477         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9478         expected.
9479
9480 2011-11-20  Bruno Haible  <bruno@clisp.org>
9481
9482         copysignf tests: Fix.
9483         * tests/test-copysignf.c: Fix signature check.
9484
9485 2011-11-20  Bruno Haible  <bruno@clisp.org>
9486
9487         fma: Remove unused code.
9488         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9489         unused macros.
9490
9491 2011-11-20  Bruno Haible  <bruno@clisp.org>
9492
9493         sethostname: Fix doc about AIX.
9494         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9495         sethostname; it has it.
9496
9497         sethostname: Mention more portability problems.
9498         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9499         problem.
9500         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9501
9502 2011-11-19  Bruno Haible  <bruno@clisp.org>
9503
9504         Depend on module fcntl-h when AT_FDCWD is used.
9505         * modules/utimens (Depends-on): Add fcntl-h.
9506         * modules/areadlinkat (Depends-on): Likewise.
9507         * modules/areadlinkat-with-size (Depends-on): Likewise.
9508         * modules/faccessat (Depends-on): Likewise.
9509         * modules/fchmodat (Depends-on): Likewise.
9510         * modules/fchownat (Depends-on): Likewise.
9511         * modules/getcwd (Depends-on): Likewise.
9512         * modules/mkdirat (Depends-on): Likewise.
9513         * modules/mkfifoat (Depends-on): Likewise.
9514         * modules/readlinkat (Depends-on): Likewise.
9515         * modules/symlinkat (Depends-on): Likewise.
9516         * modules/dup2-tests (Depends-on): Likewise.
9517         * modules/fdutimensat-tests (Depends-on): Likewise.
9518         * modules/futimens-tests (Depends-on): Likewise.
9519
9520 2011-11-19  Bruno Haible  <bruno@clisp.org>
9521
9522         euidaccess: Update a comment.
9523         * lib/euidaccess.c: Update comment about platforms with faccessat.
9524
9525 2011-11-19  Bruno Haible  <bruno@clisp.org>
9526
9527         openat: Fix file list.
9528         * modules/openat (Files): Remove lib/at-func.c.
9529
9530 2011-11-19  Bruno Haible  <bruno@clisp.org>
9531
9532         fstatat: Simplify.
9533         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9534         gnulib should define rpl_fstatat, there is a
9535         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9536
9537 2011-11-19  Bruno Haible  <bruno@clisp.org>
9538
9539         Ensure 'inline' can be used in tests/test-utimens-common.h.
9540         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9541         * modules/futimens-tests (configure.ac): Likewise.
9542         * modules/utimens-tests (configure.ac): Likewise.
9543         * modules/utimensat-tests (configure.ac): Likewise.
9544
9545 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9546
9547         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9548         not hash_insert0.
9549         (hash_insert_if_absent): Doc fix.
9550
9551 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9552
9553         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9554
9555 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9556
9557         test-getcwd: disambiguate exit status
9558         * tests/test-getcwd.c (test_long_name): Return 0..7.
9559         (main): Exit with an unambiguous exit status.  The old
9560         code yielded a mysterious mixture of two failure codes.
9561
9562         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9563         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9564         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9565         rpl_fstatat or fstatat.  This should fix the other problem
9566         reported by Kai Habel in
9567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9568         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9570         and I reproduced it on a Solaris 8 host we still have in production.
9571
9572 2011-11-18  Jim Meyering  <meyering@redhat.com>
9573
9574         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9575         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9576         Add a sentence to the comment.
9577         (hash_insert0): New function that simply calls hash_insert_if_absent.
9578         * lib/hash.h (hash_insert_if_absent): Declare it.
9579         (hash_insert0): Add deprecation attribute.
9580         (_GL_ATTRIBUTE_DEPRECATED): Define.
9581         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9582         not hash_insert0.
9583         * NEWS: Mention it, even though it's not really an incompatible change.
9584
9585 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9586
9587         openat: avoid compilation failure due to lack of <errno.h> inclusion
9588         * lib/openat.c: Include <errno.h>.
9589
9590 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9591
9592         * modules/getcwd (Depends-on): Add fdopendir.
9593         This fixes one of the two problems reported by Kai Habel in
9594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9595
9596         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9597         stdalign problem reported by Ian Beckwith in
9598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9599         * modules/crypto/gc-arcfour (Depends-on):
9600         Depend conditionally on crypto/arcfour.
9601         * modules/crypto/gc-arctwo (Depends-on):
9602         Depend conditionally on crypto/arctwo.
9603         * modules/crypto/gc-des (Depends-on):
9604         Depend conditionally on crypto/des.
9605         * modules/crypto/gc-hmac-md5 (Depends-on):
9606         Depend conditionally on crypto/hmac-md5.
9607         * modules/crypto/gc-hmac-sha1 (Depends-on):
9608         Depend conditionally on crypto/hmac-sha1.
9609         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9610         * modules/crypto/gc-md4 (Depends-on):
9611         Depend conditionally on crypto/md4.
9612         * modules/crypto/gc-md5 (Depends-on):
9613         Depend conditionally on crypto/md5.
9614         * modules/crypto/gc-rijndael (Depends-on):
9615         Depend conditionally on crypto/rijndael.
9616         * modules/crypto/gc-sha1 (Depends-on):
9617         Depend conditionally on crypto/sha1.
9618         * modules/crypto/gc-arcfour:
9619         * modules/crypto/gc-arctwo:
9620         * modules/crypto/gc-des:
9621         * modules/crypto/gc-hmac-md5:
9622         * modules/crypto/gc-hmac-sha1:
9623         * modules/crypto/gc-md2:
9624         * modules/crypto/gc-md4:
9625         * modules/crypto/gc-md5:
9626         * modules/crypto/gc-rijndael:
9627         * modules/crypto/gc-sha1:
9628         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9629         now that the conditional dependencies do the work for us.
9630
9631 2011-11-17  Jim Meyering  <meyering@redhat.com>
9632
9633         tests: factor st_ctime-comparison out of two headers
9634         * tests/test-utimens-common.h (ctime_compare): Define.
9635         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9636         * tests/test-lutimens.h (test_lutimens): Likewise.
9637         * tests/test-utimens.h (test_utimens): Likewise.
9638
9639         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9640         Invoke the test program via an init.sh-using wrapper.
9641         * tests/test-getcwd.sh: New file.
9642         * modules/getcwd-tests (Files): Add it.
9643         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9644
9645 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9646
9647         gitlog-to-changelog: support multi-author commits.
9648         The FSF cares about keeping track of all authors of patches to its
9649         projects, but Git doesn't provide obvious support for multi-author
9650         changesets. Consensus seems to be forming around the use of extra
9651         Signed-off-by inspired lines in the log message formatted as
9652         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9653         multi-author commits between version control systems.
9654         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9655         log message and output in standard ChangeLog multi-author format.
9656         Reported by Peter Rosin <peda@lysator.liu.se>
9657
9658 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9659             Bruno Haible  <bruno@clisp.org>
9660
9661         Fix some modules' file list.
9662         * modules/fstatat (Files): Add m4/lstat.m4.
9663         * modules/openat (Files): Likewise.
9664         * modules/unlinkat (Files): Likewise.
9665
9666 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9667
9668         maint.mk: fix tight-scope.mk generation in VPATH builds.
9669         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9670         reference with $(srcdir) so that the file is found correctly even
9671         when running `make syntax-check' in a VPATH build.
9672
9673 2011-11-13  Bruno Haible  <bruno@clisp.org>
9674             Jim Meyering  <meyering@redhat.com>
9675
9676         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9677         * tests/init.sh (compare): Remove "No differences encountered" or
9678         synonymous output from the 'diff' program.
9679
9680 2011-11-13  Bruno Haible  <bruno@clisp.org>
9681
9682         Makefile: Tweak indentation.
9683         * Makefile: Use tab as first character in every line that contains rule
9684         commands.
9685
9686 2011-11-13  Bruno Haible  <bruno@clisp.org>
9687
9688         Syntax check for copyright statements.
9689         * check-copyright: New file.
9690         * Makefile (sc_check_copyright): New rule.
9691
9692 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9693
9694         * build-aux/git-version-gen: Add --prefix to configure the tag
9695         match string.
9696
9697 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9698
9699         * build-aux/git-version-gen: Add --help and --version.
9700
9701 2011-11-12  Jim Meyering  <meyering@redhat.com>
9702
9703         revamp the other test-exclude?.sh scripts to use init.sh, too
9704         * tests/test-exclude1.sh: Use init.sh.
9705         * tests/test-exclude2.sh: Likewise.
9706         * tests/test-exclude3.sh: Likewise.
9707         * tests/test-exclude4.sh: Likewise.
9708         * tests/test-exclude5.sh: Likewise.
9709         * tests/test-exclude6.sh: Likewise.
9710         * tests/test-exclude7.sh: Likewise.
9711         * tests/test-exclude8.sh: Likewise.
9712         * modules/exclude-tests (Files): List init.sh.
9713
9714         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9715         These shell scripts ignored failure of the binary test-exclude,
9716         so making the latter return 77 didn't cause them to be skipped.
9717         * tests/test-exclude5.sh: Exit with test-exclude's error status
9718         when that program fails.  Revamp to use init.sh.
9719         * tests/test-exclude2.sh: Likewise.
9720
9721         test-exclude: fix a typo
9722         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9723
9724 2011-11-11  Bruno Haible  <bruno@clisp.org>
9725
9726         obstack: Fix compilation error on MSVC 9.
9727         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9728
9729 2011-11-11  Jim Meyering  <meyering@redhat.com>
9730
9731         test-exclude: skip tests rather than failing on deficient systems
9732         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9733         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9734         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9735         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9736
9737 2011-11-10  Bruno Haible  <bruno@clisp.org>
9738
9739         ptsname_r test: Avoid gcc warning on glibc systems.
9740         * tests/test-ptsname_r.c (null_ptr): New function.
9741         (test_errors): Use it.
9742
9743 2011-11-10  Bruno Haible  <bruno@clisp.org>
9744
9745         ptsname_r: Avoid compilation error on OSF/1 5.1.
9746         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9748         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9749         function is not declared or incompatibly declared.
9750         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9751         * modules/ptsname_r (Depends-on, configure.ac): Update.
9752         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9753
9754 2011-11-10  Bruno Haible  <bruno@clisp.org>
9755
9756         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9757         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9758         When cross-compiling, guess yes on all platforms except AIX.
9759         Reported by Ludovic Courtès <ludo@gnu.org>.
9760
9761 2011-11-09  Bruno Haible  <bruno@clisp.org>
9762
9763         ptsname_r tests: Fix bugs.
9764         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9765         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9766
9767 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9768
9769         fstatat: work with cross-compilation
9770         Problem reported by Ludovic Courtès in
9771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9772         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9773         "cross-compiling" and assume the bug is present.  Replace
9774         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9775         an inverted sense, to be more conservative about our assumptions.
9776         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9777
9778 2011-11-09  Bruno Haible  <bruno@clisp.org>
9779
9780         Improve MODULES.html output.
9781         * modules/mkfifoat (Description): Use the word "function".
9782         * modules/readlinkat (Description): Likewise.
9783         * modules/symlinkat (Description): Likewise.
9784
9785 2011-11-09  Eric Blake  <eblake@redhat.com>
9786
9787         ptsname_r-tests: new test module
9788         * modules/ptsname_r-tests: New module.
9789         * tests/test-ptsname_r.c: New file.
9790
9791         ptsname_r: new module
9792         * modules/ptsname_r: New module.
9793         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9794         * lib/ptsname.c (__ptsname_r): Split...
9795         * lib/ptsname_r.c: ...into new file.
9796         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9797         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9798         * modules/stdlib (Makefile.am): Substitute witnesses.
9799         * lib/stdlib.in.h (ptsname_r): Declare it.
9800         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9801         * MODULES.html.sh (Misc): Likewise.
9802         * modules/ptsname (Depends-on): Alter dependency.
9803         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9804
9805 2011-11-09  Jim Meyering  <meyering@redhat.com>
9806
9807         announce-gen: be more concise when there's only one URL+tarball
9808         * build-aux/announce-gen (get_tool_versions): When you distribute
9809         only one type of tarball, combine the first two "Here are..."
9810         sections and make the key-checking grammar independent of
9811         how many tarballs there are.
9812
9813 2011-11-09  Eric Blake  <eblake@redhat.com>
9814
9815         openpty: provide a stub on mingw
9816         * lib/pty.in.h (includes): Provide forward declarations.
9817         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9818
9819         raise: fix mingw handling of SIGPIPE
9820         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9821
9822 2011-11-08  Bruno Haible  <bruno@clisp.org>
9823
9824         More conditional dependencies.
9825         * modules/faccessat (Depends-on): Add conditions.
9826         * modules/fchmodat (Depends-on): Likewise.
9827         * modules/fchownat (Depends-on): Likewise.
9828         * modules/fstatat (Depends-on): Likewise.
9829         * modules/mkfifoat (Depends-on): Likewise.
9830         * modules/readlinkat (Depends-on): Likewise.
9831         * modules/symlinkat (Depends-on): Likewise.
9832         * modules/unlinkat (Depends-on): Likewise.
9833         * modules/utimensat (Depends-on): Likewise.
9834         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9835         * modules/linkat (Depends-on): Refine the conditions.
9836         * modules/renameat (Depends-on): Likewise.
9837
9838 2011-11-08  Bruno Haible  <bruno@clisp.org>
9839
9840         faccessat: Move AC_LIBOBJ invocation to module description.
9841         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9842         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9843         invocation from here...
9844         * modules/faccessat (configure.ac): ... to here. Invoke
9845         gl_PREREQ_FACCESSAT.
9846
9847 2011-11-08  Bruno Haible  <bruno@clisp.org>
9848
9849         faccessat: Simplify autoconf macro.
9850         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9851         gl_FUNC_EUIDACCESS.
9852
9853 2011-11-08  Bruno Haible  <bruno@clisp.org>
9854
9855         renameat: Fix dependencies.
9856         * modules/renameat (Depends-on): Add stdbool.
9857
9858 2011-11-08  Bruno Haible  <bruno@clisp.org>
9859
9860         mkfifoat: Fix module description.
9861         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9862         not gl_UNISTD_MODULE_INDICATOR.
9863
9864 2011-11-08  Bruno Haible  <bruno@clisp.org>
9865
9866         fstatat: Remove unused dependency.
9867         * modules/fstatat (Depends-on): Remove fstat.
9868
9869 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9870
9871         GNUmakefile: behave when Makefile is missing.
9872         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9873
9874 2011-11-08  Bruno Haible  <bruno@clisp.org>
9875
9876         openat: Conditionalize dependencies.
9877         * lib/openat.c: Reduce the scope of some #includes.
9878         * modules/openat (Depends-on): Add conditions.
9879
9880 2011-11-07  Jim Meyering  <meyering@redhat.com>
9881
9882         maint.mk: extract GPG key ID without using a temporary file
9883         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9884         without using a temporary file.  Based on a suggestion from Werner Koch
9885         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9886
9887 2011-11-07  Eric Blake  <eblake@redhat.com>
9888
9889         grantpt: fix typo
9890         * lib/stdlib.in.h (grantpt): Check correct function.
9891
9892         maint.mk: silence new syntax check
9893         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9894
9895 2011-11-06  Bruno Haible  <bruno@clisp.org>
9896
9897         Doc about floating-point and math API.
9898         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9899         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9900
9901 2011-11-06  Bruno Haible  <bruno@clisp.org>
9902
9903         stdalign tests: Skip the test when compiled by Sun C.
9904         * tests/test-stdalign.c (main): Skip the test on Sun C.
9905
9906 2011-11-06  Bruno Haible  <bruno@clisp.org>
9907
9908         ansi-c++-opt: Complete the 2011-06-05 change.
9909         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9910         does not support namespaces, set the variable to "no", not to ":".
9911
9912 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9913
9914         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9915
9916 2011-11-06  Bruno Haible  <bruno@clisp.org>
9917
9918         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9919         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9920         (minus_zerol) [HP-UX]: New macro.
9921         (unary_minus) [HP-UX]: New function.
9922         (copysignl) [HP-UX]: Use unary_minus function.
9923
9924 2011-11-06  Bruno Haible  <bruno@clisp.org>
9925
9926         ldexp, ldexpf, ldexpl: Enhance tests.
9927         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9928         and tests/test-ldexpl.c.
9929         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9930         LDEXP, MIN_EXP, MAX_EXP): New macros.
9931         Include test-ldexp.h.
9932         (main): Just call test_function.
9933         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9934         infinity.h, nan.h.
9935         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9936         MAX_EXP): New macros.
9937         Include test-ldexp.h.
9938         (x, y): Remove variables.
9939         (main): Just call test_function.
9940         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9941         infinity.h, nan.h.
9942         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9943         MAX_EXP): New macros.
9944         Include test-ldexp.h.
9945         (x, y): Remove variables.
9946         (main): Just call test_function.
9947         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9948         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9949         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9950         (Depends-on): Add isnand-nolibm, signbit, float.
9951         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9952         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9953         (Depends-on): Add isnanf-nolibm, signbit, float.
9954
9955 2011-11-06  Bruno Haible  <bruno@clisp.org>
9956
9957         math tests: Cosmetics.
9958         * tests/test-math-c++.cc: Reorder declarations.
9959
9960 2011-11-05  Bruno Haible  <bruno@clisp.org>
9961
9962         fma*: Simplify test.
9963         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9964         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9965
9966         Tests for module 'fmal'.
9967         * modules/fmal-tests: New file.
9968         * tests/test-fmal1.c: New file.
9969         * tests/test-fmal2.c: New file.
9970
9971         New module 'fmal'.
9972         * lib/math.in.h (fmal): New declaration.
9973         * lib/fmal.c: New file.
9974         * m4/fmal.m4: New file.
9975         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9977         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9978         REPLACE_FMAL.
9979         * modules/fmal: New file.
9980         * doc/posix-functions/fmal.texi: Mention the new module and the various
9981         bugs.
9982
9983         Tests for module 'fmaf'.
9984         * modules/fmaf-tests: New file.
9985         * tests/test-fmaf1.c: New file.
9986         * tests/test-fmaf2.c: New file.
9987
9988         New module 'fmaf'.
9989         * lib/math.in.h (fmaf): New declaration.
9990         * lib/fmaf.c: New file.
9991         * m4/fmaf.m4: New file.
9992         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9994         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9995         REPLACE_FMAF.
9996         * modules/fmaf: New file.
9997         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9998         bugs.
9999
10000         Tests for module 'fma'.
10001         * modules/fma-tests: New file.
10002         * tests/test-fma1.c: New file.
10003         * tests/test-fma1.h: New file.
10004         * tests/test-fma2.c: New file.
10005         * tests/test-fma2.h: New file.
10006
10007         New module 'fma'.
10008         * lib/math.in.h (fma): New declaration.
10009         * lib/fma.c: New file.
10010         * m4/fma.m4: New file.
10011         * m4/fegetround.m4: New file.
10012         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10014         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10015         REPLACE_FMA.
10016         * modules/fma: New file.
10017         * doc/posix-functions/fma.texi: Mention the new module and the various
10018         bugs.
10019
10020         Extend gl_MATHFUNC.
10021         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10022         Support 'void' as argument type.
10023         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10024
10025 2011-11-05  Jim Meyering  <meyering@redhat.com>
10026
10027         maint.mk: also prohibit inclusion of dirent.h without use
10028         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10029
10030 2011-11-05  Bruno Haible  <bruno@clisp.org>
10031
10032         ldexpl tests: Avoid test failure on MSVC 9.
10033         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10034         value. Needed in order to enforce the conversion from a value greater
10035         than LDBL_MAX to Infinity.
10036
10037 2011-11-05  Bruno Haible  <bruno@clisp.org>
10038
10039         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10040         * modules/at-internal: New file, extracted from modules/openat.
10041         * modules/openat-h: New file.
10042         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10043         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10044         * modules/openat (Description): Add reference to POSIX function.
10045         (Files): Remove lib/openat.h, lib/openat-proc.c.
10046         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10047         intprops, unistd.
10048         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10049         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10050         gl_FCNTL_MODULE_INDICATOR.
10051         (Include): Remove unistd.h, openat.h.
10052         * modules/areadlinkat (Files): Add lib/at-func.c.
10053         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10054         openat-die, openat-h, save-cwd.
10055         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10056         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10057         openat-die, openat-h, save-cwd, unistd.
10058         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10059         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10060         openat-h, save-cwd. Remove fcntl-h, openat.
10061         * modules/fchmodat (Files): Remove lib/openat.h.
10062         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10063         openat, stdbool, unistd.
10064         * modules/fchownat (Files): Remove lib/openat.h.
10065         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10066         openat, stdbool, sys_stat.
10067         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10068         lib/openat-proc.c.
10069         (Depends-on): Add at-internal.
10070         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10071         * modules/fstatat (Files): Remove lib/openat.h.
10072         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10073         stdbool, unistd.
10074         * modules/fts (Depends-on): Add openat-h.
10075         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10076         openat.
10077         * modules/mkdirat (Files): Remove lib/openat.h.
10078         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10079         openat, stdbool, sys_stat.
10080         * modules/mkfifoat (Files): Add lib/at-func.c.
10081         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10082         openat-h, save-cwd. Remove fcntl-h, openat.
10083         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10084         * modules/readlinkat (Files): Add lib/at-func.c.
10085         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10086         openat-h, save-cwd. Remove fcntl-h, openat.
10087         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10088         openat.
10089         * modules/selinux-at (Files): Add lib/at-func.c.
10090         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10091         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10092         * modules/symlinkat (Files): Add lib/at-func.c.
10093         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10094         openat-h, save-cwd. Remove fcntl-h, openat.
10095         * modules/unlinkat (Files): Remove lib/openat.h.
10096         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10097         stdbool.
10098         * modules/utimensat (Files): Add lib/at-func.c.
10099         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10100         openat-die, openat-h, save-cwd.
10101         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10102         * modules/fdutimensat-tests (Depends-on): Add openat.
10103         * modules/fstatat-tests (Depends-on): Add openat-h.
10104         * modules/readlinkat-tests (Depends-on): Add openat.
10105         * modules/symlinkat-tests (Depends-on): Add openat.
10106
10107 2011-11-05  Bruno Haible  <bruno@clisp.org>
10108
10109         openat: Include <stdbool.h>.
10110         * lib/openat.c: Include <stdbool.h>.
10111
10112 2011-11-04  Bruno Haible  <bruno@clisp.org>
10113
10114         fchownat, renameat, unlinkat: Fix dependencies.
10115         * modules/fchownat (Depends-on): Add fstatat.
10116         * modules/renameat (Depends-on): Likewise.
10117         * modules/unlinkat (Depends-on): Likewise.
10118
10119 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10120
10121         openat: remove direct dependency on dirent
10122         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10123         and hasn't been needed ever since fdopendir was split into its own
10124         module on 2009-08-31.
10125         * modules/openat (Depends-on): Remove dirent.
10126
10127 2011-11-04  Bruno Haible  <bruno@clisp.org>
10128
10129         renameat: Optimize code size.
10130         * modules/renameat (configure.ac): Don't compile at-func2.c if
10131         REPLACE_RENAMEAT is 1.
10132
10133 2011-11-04  Bruno Haible  <bruno@clisp.org>
10134
10135         openat tests: Fix file list.
10136         * modules/openat-tests (Files): Add tests/test-open.h.
10137
10138 2011-11-04  Bruno Haible  <bruno@clisp.org>
10139
10140         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10141         * modules/fchmodat (Depends-on): Add openat-die.
10142         * modules/fchownat (Depends-on): Likewise.
10143         * modules/linkat (Depends-on): Likewise.
10144         * modules/renameat (Depends-on): Likewise.
10145         * modules/openat (Depends-on): Add dirent.
10146
10147 2011-11-04  Jim Meyering  <meyering@redhat.com>
10148
10149         at-func*.c: fix comments
10150         * lib/at-func2.c: Correct/improve first-line comment.
10151         * lib/at-func.c: Correct grammar in first-line comment.
10152
10153 2011-11-04  Bruno Haible  <bruno@clisp.org>
10154
10155         New module 'mkdirat', split off from module 'openat'.
10156         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10157         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10158         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10159         * modules/mkdirat: New file, extracted from modules/openat.
10160         * modules/openat (Files): Remove lib/mkdirat.c.
10161         (Depends-on): Remove mkdir.
10162         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10163         (Include): Remove <sys/stat.h>.
10164         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10165         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10166         tests/test-mkdir.h.
10167         (Depends-on): Remove ignore-value.
10168         (Makefile.am): Remove rules for test-mkdirat.
10169         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10170         of module 'openat'.
10171         * NEWS: Mention the change.
10172
10173 2011-11-04  Bruno Haible  <bruno@clisp.org>
10174
10175         closedir: Avoid warning on mingw.
10176         * lib/closedir.c: Include <unistd.h>.
10177
10178 2011-11-04  Bruno Haible  <bruno@clisp.org>
10179
10180         New module 'fstatat', split off from module 'openat'.
10181         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10182         defined.
10183         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10184         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10185         gl_FUNC_FSTATAT.
10186         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10187         * modules/fstatat: New file, extracted from modules/openat.
10188         * modules/openat (Files): Remove lib/fstatat.c.
10189         (Depends-on): Remove lstat.
10190         (configure.ac): Remove AC_LIBOBJ of fstatat.
10191         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10192         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10193         tests/test-lstat.h, tests/test-stat.h.
10194         (Depends-on): Remove getcwd-lgpl.
10195         (Makefile.am): Remove rules for test-fstatat.
10196         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10197         of module 'openat'.
10198         * NEWS: Mention the change.
10199         * modules/getcwd (Depends-on): Add fstatat.
10200         * modules/linkat (Depends-on): Likewise.
10201         * modules/mkfifoat-tests (Depends-on): Likewise.
10202         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10203
10204 2011-11-03  Bruno Haible  <bruno@clisp.org>
10205
10206         New module 'unlinkat', split off from module 'openat'.
10207         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10208         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10209         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10210         * modules/unlinkat: New file, extracted from modules/openat. Correct
10211         the dependency conditions.
10212         * modules/openat (Files): Remove lib/unlinkat.c.
10213         (Depends-on): Remove rmdir, unlink.
10214         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10215         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10216         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10217         tests/test-rmdir.h, tests/test-unlink.h.
10218         (Depends-on): Remove unlinkdir.
10219         (Makefile.am): Remove rules for test-unlinkat.
10220         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10221         of module 'openat'.
10222         * NEWS: Mention the change.
10223         * modules/linkat-tests (Depends-on): Add unlinkat.
10224         * modules/mkfifoat-tests (Depends-on): Likewise.
10225         * modules/readlinkat-tests (Depends-on): Likewise.
10226
10227 2011-11-02  Bruno Haible  <bruno@clisp.org>
10228
10229         New module 'fchmodat', split off from module 'openat'.
10230         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10231         defined.
10232         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10233         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10234         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10235         * modules/fchmodat: New file, extracted from modules/openat.
10236         * modules/openat (Files): Remove lib/fchmodat.c.
10237         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10238         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10239         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10240         (Makefile.am): Remove rules for test-fchmodat.
10241         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10242         of module 'openat'.
10243         * NEWS: Mention the change.
10244
10245 2011-11-02  Jim Meyering  <meyering@redhat.com>
10246
10247         putenv: indent #definition of "environ" to placate cppi
10248         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10249
10250         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10251         Git logs are often treated as immutable, because editing them
10252         changes the SHA1 checksums of all descendants.  Thus, errors in
10253         git logs tend to stay there forever.  However, when we generate
10254         a ChangeLog file -- typically for distribution -- from that git log,
10255         we can actually make corrections in the generated file.  The key
10256         lies in recording in machine-readable/applicable form the desired
10257         corrections.  See --help for description and an example.
10258         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10259         (usage): Describe it; alphabetize option descriptions.
10260         (main): Honor the new option, carefully.
10261
10262 2011-11-01  Jim Meyering  <meyering@redhat.com>
10263
10264         gitlog-to-changelog: avoid an infloop
10265         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10266         that ends up being empty.
10267
10268 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10269
10270         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10271         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10272         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10273         contains (possibly-quoted) backslashes.  This should avoid
10274         all-too-common shell bugs if COMPLICATED contains backslashes in
10275         the "wrong" places.  Reported by David Evans in
10276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10277         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10278         because we want ASCII ranges.  Is there some reason we don't use
10279         the C locale everywhere in this script?
10280         (func_module, top level): Avoid unwanted pathname expansion when
10281         $repo_url_prefix or $repo_url_suffix_repl contain shell
10282         metacharacters like '?' and '*'.
10283
10284 2011-11-01  Bruno Haible  <bruno@clisp.org>
10285
10286         fchownat: Improve description.
10287         * modules/fchownat (Description): Add link to function.
10288
10289 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10290
10291         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10292         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10294         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10295
10296 2011-11-01  Bruno Haible  <bruno@clisp.org>
10297
10298         alignof: Avoid collision with stdalign module.
10299         * lib/alignof.h (alignof): Remove macro.
10300         * NEWS: Mention the change.
10301         Reported by Paul Eggert.
10302
10303 2011-11-01  Bruno Haible  <bruno@clisp.org>
10304
10305         New module 'fchownat', split off from module 'openat'.
10306         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10307         defined.
10308         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10309         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10310         invoke gl_FUNC_FCHOWNAT.
10311         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10312         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10313         * modules/fchownat: New file, extracted from modules/openat.
10314         * modules/openat (Files): Remove lib/fchownat.c.
10315         (Depends-on): Remove lchown.
10316         (configure.ac): Remove AC_LIBOBJ of fchownat.
10317         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10318         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10319         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10320         (Depends-on): Remove mgetgroups, usleep, stat-time.
10321         (configure.ac): Remove test for getegid.
10322         (Makefile.am): Remove rules for test-fchownat.
10323         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10324         of module 'openat'.
10325         * NEWS: Mention the change.
10326
10327 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10328
10329         stdalign: port better to MSVC and to Sun C 5.11
10330         This fixes some of the problems reported by Bruno Haible in
10331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10332         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10333         shortcomings of MSVC and of Sun C 5.11.
10334         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10335         around __declspec arg.
10336         * modules/stdalign-tests (Files): Add tests/macros.h.
10337         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10338         Include macros.h, for ASSERT.
10339         (DECLARE_ALIGNED): Remove.
10340         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10341         to catch bug), and to 1 if not (simplifies the rest of the code).
10342         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10343         (CHECK_AUTO): Remove.
10344         (CHECK_ALIGNED): Check only the alignment of the static vars,
10345         since auto var alignment isn't supported by Sun C 5.11.
10346         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10347         ASSERT failures are easier to diagnose.
10348
10349 2011-10-31  Bruno Haible  <bruno@clisp.org>
10350
10351         doc about some IRIX 5.3 problems.
10352         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10353         on IRIX 5.3.
10354         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10355         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10356         5.3.
10357         * doc/posix-functions/grantpt.texi: Likewise.
10358         * doc/posix-functions/unlockpt.texi: Likewise.
10359         * doc/posix-functions/lgamma.texi: Likewise.
10360         * doc/posix-functions/nextafter.texi: Likewise.
10361         * doc/posix-functions/remainder.texi: Likewise.
10362         * doc/posix-functions/select.texi: Mention misplaced declaration on
10363         IRIX 5.3.
10364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10365
10366 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10367
10368         gitlog-to-changelog: fix git-log invocation.
10369         git-log mishandles date strings before 1970-01-01 UTC, and there is
10370         no use to specify --since=1970-01-01 by default anyway.
10371         * build-aux/gitlog-to-changelog: By default, when no --since option
10372         was given, do not specify explicit --since option to git-log.
10373
10374 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10375
10376         gitlog-to-changelog: new option --append-dot.
10377         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10378         first non-blank line of each commit message terminated with a dot.
10379
10380 2011-10-30  Bruno Haible  <bruno@clisp.org>
10381
10382         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10383         * lib/ffsl.h: Include <config.h>.
10384         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10385
10386 2011-10-30  Jim Meyering  <meyering@redhat.com>
10387
10388         GNUmakefile: reenable "make syntax-check" for most projects
10389         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10390         build-aux variable", "syntax-check" would do nothing but succeed with
10391         the "No version control files detected..." diagnostic (unless you
10392         happened to override _build-aux via cfg.mk).
10393         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10394         to precede inclusion of maint.mk.  Otherwise, these variables would
10395         be used undefined in any project that does not override the default.
10396
10397 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10398
10399         gitlog-to-changelog: treat a message with only blank lines as empty.
10400         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10401         trailing blank lines before the code that issues a warning about an
10402         empty commit message.
10403
10404 2011-10-30  Jim Meyering  <meyering@redhat.com>
10405
10406         test-parse-datetime.c: avoid new DST-related false positive test failure
10407         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10408         based on the time/date we'll convert, not the current time.
10409         Otherwise, the moment we cross a DST boundary like today's in
10410         Europe, (CEST to CET), that offset ends up being one hour off.
10411
10412 2011-10-27  Bruno Haible  <bruno@clisp.org>
10413
10414         fstat: Tweak documentation.
10415         * modules/fstat (Description): More precise description.
10416
10417 2011-10-27  Bruno Haible  <bruno@clisp.org>
10418
10419         Update documentation regarding 'largefile' module.
10420         * doc/posix-functions/fstat.texi: Tweak wording.
10421         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10422         problems with huge directories and/or small ino_t types.
10423         * doc/posix-functions/readdir.texi: Likewise.
10424         * doc/posix-functions/rewinddir.texi: Likewise.
10425
10426 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10427
10428         maint.mk: don't maintain a second build-aux variable.
10429         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10430         depends on GNUmakefile, which already maintains a cfg.mk
10431         overridable $(_build-aux) for projects with a non-standard
10432         build-aux directory location, although without the $(srcdir)
10433         prefix.  Use that variable consistently instead of introducing a
10434         second one.  Adjust all call sites.
10435
10436 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10437
10438         Add stdalign module and use it in other modules.
10439         This is based on a previous proposal by Bruno Haible
10440         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10441
10442         stdalign: new module
10443         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10444         * modules/stdalign: New files.
10445         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10446         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10447
10448         stdalign-tests: new module
10449         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10450
10451         argp: use stdalign
10452         * lib/argp-parse.c: Include <stdalign.h>.
10453         (alignof): Remove.
10454         * modules/argp (Depends-on): Add stdalign.
10455
10456         crypto libraries: use stdalign
10457         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10458         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10459         Do not include <stdlib.h> twice, in md4.c.
10460         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10461         because we are accessing a pointer's bit-pattern, not a size.
10462         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10463         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10464         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10465         * modules/crypto/sha512: Likewise.
10466
10467         sys_socket: use stdalign, not alignof
10468         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10469         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10470
10471 2011-10-27  Bruno Haible  <bruno@clisp.org>
10472
10473         raise test: Avoid a test failure on Linux/MIPS.
10474         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10475         because 99 is a valid signal on Linux/MIPS.
10476
10477 2011-10-27  Bruno Haible  <bruno@clisp.org>
10478
10479         nonblocking tests: Fix test failure on Linux/MIPS.
10480         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10481         Set to 270000.
10482
10483 2011-10-27  Bruno Haible  <bruno@clisp.org>
10484
10485         utimensat: Work around problem on Linux/hppa.
10486         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10487         values.
10488         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10489
10490 2011-10-25  Jim Meyering  <meyering@redhat.com>
10491
10492         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10493         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10494         after symbols like NULL, size_t, etc.
10495         Reported by Alfred M. Szmidt.
10496
10497         maint.mk: exempt ENODATA from a syntax-check rule
10498         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10499         from the sc_prohibit_always-defined_macros syntax-check rule.
10500         Add a comment.  See this for more details:
10501         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10502
10503 2011-10-23  Jim Meyering  <meyering@redhat.com>
10504
10505         fts: close parent dir FD before returning from post-traversal fts_read
10506         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10507         unlink A, even though an FD open on A remained.  This is suboptimal
10508         (holding a file descriptor open longer than needed), but otherwise not
10509         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10510         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10511         that represents a real problem: it causes the removal of A to fail
10512         with e.g., "rm: cannot remove `A': Device or resource busy"
10513
10514         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10515         directory file descriptors.  After completing the final, FTS_DP,
10516         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10517         cache, but then proceeded to add a new FD to it via the subsequent
10518         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10519         final file descriptor would be closed only via fts_close's call to
10520         fd_ring_clear.  Now, it is usually closed earlier, via the final
10521         FTS_DP-returning fts_read call.
10522         * lib/fts.c (restore_initial_cwd): New function, converted from
10523         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10524         Update callers.
10525         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10526         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10527
10528 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10529             Bruno Haible  <bruno@clisp.org>
10530             Jim Meyering  <jim@meyering.net>
10531
10532         readme-release: improve safety of release prep instructions.
10533         * README-release: Don't git pull all branches when only master
10534         is needed for the release process.
10535         Run make maintainer-clean before changing trees and merging.
10536         Don't try to run ./configure right after git pull in case files
10537         that influence the bootstrap process have changed, move the
10538         ./configure step to after running ./bootstrap.
10539         Don't bootstrap "one last time"... it's the first time!
10540
10541 2011-10-22  Bruno Haible  <bruno@clisp.org>
10542
10543         errno, strerror-override: Support for MSVC 10.
10544         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10545         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10546         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10547         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10548         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10549         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10550         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10551         Assign values compatible with MSVC 10.
10552         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10553         New macros.
10554         (GNULIB_defined_EWINSOCK): New macro.
10555         * lib/strerror-override.c (strerror_override): Update accordingly.
10556         * lib/strerror-override.h: Likewise.
10557         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10558         longer equal to the corresponding errno value.
10559         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10560
10561 2011-10-22  Bruno Haible  <bruno@clisp.org>
10562
10563         perror: Recognize when test program crashes.
10564         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10565         strerror, set gl_cv_func_perror_works to no.
10566         Reported by Daniel Richard G. <skunk@iskunk.org>.
10567
10568         perror: Fix indentation.
10569         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10570
10571 2011-10-22  Bruno Haible  <bruno@clisp.org>
10572
10573         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10574         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10575         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10576         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10577         functions, not as a macro.
10578         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10579         macros.
10580         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10581         absence of macro.
10582         Suggested by Eric Blake.
10583         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10584
10585 2011-10-21  Bruno Haible  <bruno@clisp.org>
10586
10587         relocatable-prog-wrapper: Don't leave object files behind.
10588         * build-aux/install-reloc: Re-synchronize list of .o files to be
10589         removed with list of compilation units.
10590
10591 2011-10-20  Bruno Haible  <bruno@clisp.org>
10592
10593         openpty, posix_openpt: Remove code duplication.
10594         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10595         * lib/openpty.c: Include <stdlib.h>.
10596         (openpty): Use posix_openpt on all platforms except IRIX.
10597         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10598
10599 2011-10-20  Bruno Haible  <bruno@clisp.org>
10600
10601         unlockpt: Detect invalid argument.
10602         * lib/unlockpt.c: Include <fcntl.h>.
10603         (unlockpt): Check whether fd is valid, using fcntl().
10604         * modules/unlockpt (Depends-on): Add fcntl-h.
10605
10606 2011-10-20  Bruno Haible  <bruno@clisp.org>
10607
10608         openpty: Avoid compilation error on AIX 6.1.
10609         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10610
10611 2011-10-20  Bruno Haible  <bruno@clisp.org>
10612
10613         posix_openpt: Support for OpenBSD.
10614         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10615         (posix_openpt) [OpenBSD]: New code.
10616         * lib/grantpt.c: Include <fcntl.h>.
10617         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10618         * modules/grantpt (Depends-on): Add fcntl-h.
10619
10620 2011-10-20  Bruno Haible  <bruno@clisp.org>
10621
10622         posix_openpt test: Coding style.
10623         * tests/test-posix_openpt.c: Use GNU coding style.
10624
10625 2011-10-20  Bruno Haible  <bruno@clisp.org>
10626
10627         grantpt: Support --avoid=pt_chown.
10628         * modules/grantpt (Files): Add lib/pty-private.h.
10629
10630 2011-10-20  Bruno Haible  <bruno@clisp.org>
10631
10632         posix_openpt: Fix autoconf macro.
10633         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10634         unneeded check for _getpty.
10635
10636 2011-10-20  Bruno Haible  <bruno@clisp.org>
10637
10638         openpty: Update comments.
10639         * lib/openpty.c: Add comments about Minix.
10640
10641 2011-10-19  Eric Blake  <eblake@redhat.com>
10642
10643         openpty: relax license
10644         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10645
10646         pt_chown: use configmake to simplify build
10647         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10648
10649         ptsname and others: relax license
10650         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10651         * modules/unlockpt (License): Likewise.
10652         * modules/pt_chown (License): Likewise.
10653         * modules/ptsname (License): Likewise.
10654         * modules/ttyname_r (License): Likewise.
10655
10656 2011-10-19  Jim Meyering  <meyering@redhat.com>
10657
10658         posix_openpt: remove spurious #endif
10659         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10660
10661 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10662
10663         maint.mk: Respect $(build_aux) in web-manual rule.
10664         * top/maint.mk (web-manual): Find gen-announce script in user's
10665         $(build_aux) directory instead of hard-coding 'build-aux'.
10666
10667 2011-10-19  Bruno Haible  <bruno@clisp.org>
10668
10669         posix_openpt: Fix compilation error.
10670         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10671         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10672         Mention the openpty module as an alternative.
10673
10674 2011-10-19  Bruno Haible  <bruno@clisp.org>
10675
10676         Support for old NeXTstep 3.3 frexp().
10677         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10678         execution time of the test to 5 seconds.
10679         Reported by Daniel Richard G. <skunk@iskunk.org>.
10680
10681 2011-10-19  Bruno Haible  <bruno@clisp.org>
10682
10683         Support for old NeXTstep 3.3 sed.
10684         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10685         part, use /.../, not \|...|. Escape periods in the header file name.
10686         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10687         Reported by Daniel Richard G. <skunk@iskunk.org>.
10688
10689 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10690
10691         Support for old NeXTstep 3.3 gcc.
10692         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10693         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10694         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10695         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10696         * lib/regex.h (_Restrict_arr_): Likewise.
10697         * lib/regex_internal.h (re_token_t): Likewise.
10698         * lib/regexec.c (check_node_accept_bytes): Likewise.
10699         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10700
10701 2011-10-18  Eric Blake  <eblake@redhat.com>
10702
10703         posix_openpt: new module
10704         * modules/posix_openpt: New module.
10705         * m4/posix_openpt.m4: New file.
10706         * lib/posix_openpt.c: Likewise.
10707         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10708         (gl_STDLIB_H_DEFAULTS): Set defaults.
10709         * modules/stdlib (Makefile.am): Substitute macros.
10710         * lib/stdlib.in.h (posix_openpt): Declare.
10711         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10712         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10713         * modules/posix_openpt-tests: New test module.
10714         * tests/test-posix_openpt.c: New test.
10715
10716 2011-10-15  Bruno Haible  <bruno@clisp.org>
10717
10718         xstrtoll: Fix compilation failure.
10719         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10720         from lib/strtol.c.
10721         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10722         some platforms.
10723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10724
10725 2011-10-15  Bruno Haible  <bruno@clisp.org>
10726
10727         vasnprintf: Optimize bit search operation.
10728         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10730         gl_DOUBLE_EXPONENT_LOCATION.
10731         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10732         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10733         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10734         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10735         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10736         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10737         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10738         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10739         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10740
10741 2011-10-15  Bruno Haible  <bruno@clisp.org>
10742
10743         vasnprintf: Fix comments.
10744         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10745
10746 2011-10-14  Bruno Haible  <bruno@clisp.org>
10747
10748         Tests for module 'integer_length_ll'.
10749         * modules/integer_length_ll-tests: New file.
10750         * tests/test-integer_length_ll.c: New file.
10751
10752         New module 'integer_length_ll'.
10753         * lib/integer_length_ll.c: New file.
10754         * modules/integer_length_ll: New file.
10755
10756 2011-10-14  Bruno Haible  <bruno@clisp.org>
10757
10758         Tests for module 'integer_length_l'.
10759         * modules/integer_length_l-tests: New file.
10760         * tests/test-integer_length_l.c: New file.
10761
10762         New module 'integer_length_l'.
10763         * lib/integer_length_l.c: New file.
10764         * modules/integer_length_l: New file.
10765
10766 2011-10-14  Bruno Haible  <bruno@clisp.org>
10767
10768         Tests for module 'integer_length'.
10769         * modules/integer_length-tests: New file.
10770         * tests/test-integer_length.c: New file.
10771
10772         New module 'integer_length'.
10773         * lib/integer_length.h: New file.
10774         * lib/integer_length.c: New file.
10775         * modules/integer_length: New file.
10776
10777 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10778
10779         popen: Fix dependency conditions.
10780         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10781
10782 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10783
10784         perror: Fix autoconf test.
10785         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10786         <stdlib.h> and <string.h>.
10787
10788 2011-10-14  Bruno Haible  <bruno@clisp.org>
10789
10790         ffsl: Optimize on 64-bit platforms.
10791         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10792         unrolling.
10793
10794 2011-10-13  Bruno Haible  <bruno@clisp.org>
10795
10796         ffsl: Optimize on 32-bit platforms.
10797         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10798         use ffs() without a loop.
10799
10800         ffsl, ffsll: Optimize for GCC.
10801         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10802         * lib/ffsl.c (GCC_BUILTIN): New macro.
10803         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10804
10805 2011-10-13  Bruno Haible  <bruno@clisp.org>
10806
10807         ffs, bcopy, memset: Support symbol renaming via config.h.
10808         * lib/ffs.c: Include <config.h>.
10809         * lib/bcopy.c: Likewise.
10810         * lib/memset.c: Likewise.
10811
10812 2011-10-10  Bruno Haible  <bruno@clisp.org>
10813
10814         atanl: Simplify for platforms where 'long double' == 'double'.
10815         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10816         alternative implementation.
10817         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10818         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10819         * modules/atanl (Depends-on): Add atan. Update conditions.
10820
10821 2011-10-10  Bruno Haible  <bruno@clisp.org>
10822
10823         acosl: Simplify for platforms where 'long double' == 'double'.
10824         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10825         alternative implementation.
10826         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10827         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10828         * modules/acosl (Depends-on): Add acos. Update conditions.
10829
10830 2011-10-10  Bruno Haible  <bruno@clisp.org>
10831
10832         asinl: Simplify for platforms where 'long double' == 'double'.
10833         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10834         alternative implementation.
10835         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10836         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10837         * modules/asinl (Depends-on): Add asin. Update conditions.
10838
10839 2011-10-10  Bruno Haible  <bruno@clisp.org>
10840
10841         tanl: Simplify for platforms where 'long double' == 'double'.
10842         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10843         implementation.
10844         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10845         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10846         * modules/tanl (Depends-on): Add tan. Update conditions.
10847         (configure.ac): Don't compile trigl.c if
10848         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10849
10850 2011-10-10  Bruno Haible  <bruno@clisp.org>
10851
10852         cosl: Simplify for platforms where 'long double' == 'double'.
10853         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10854         implementation.
10855         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10856         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10857         * modules/cosl (Depends-on): Add cos. Update conditions.
10858         (configure.ac): Don't compile sincosl.c and trigl.c if
10859         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10860
10861 2011-10-10  Bruno Haible  <bruno@clisp.org>
10862
10863         sinl: Simplify for platforms where 'long double' == 'double'.
10864         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10865         implementation.
10866         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10867         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10868         * modules/sinl (Depends-on): Add sin. Update conditions.
10869         (configure.ac): Don't compile sincosl.c and trigl.c if
10870         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10871
10872 2011-10-10  Bruno Haible  <bruno@clisp.org>
10873
10874         logl: Simplify for platforms where 'long double' == 'double'.
10875         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10876         implementation.
10877         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10878         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10879         * modules/logl (Depends-on): Add log. Update conditions.
10880
10881 2011-10-10  Bruno Haible  <bruno@clisp.org>
10882
10883         expl: Simplify for platforms where 'long double' == 'double'.
10884         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10885         implementation.
10886         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10887         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10888         * modules/expl (Depends-on): Add exp. Update conditions.
10889
10890 2011-10-10  Bruno Haible  <bruno@clisp.org>
10891
10892         sqrtl: Simplify for platforms where 'long double' == 'double'.
10893         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10894         alternative implementation.
10895         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10896         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10897         * modules/sqrtl (Depends-on): Update conditions.
10898
10899 2011-10-10  Bruno Haible  <bruno@clisp.org>
10900
10901         ldexpl: Simplify for platforms where 'long double' == 'double'.
10902         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10903         alternative implementation.
10904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10905         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10906         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10907
10908 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10909
10910         ffsll: set correct witness
10911         * modules/ffsll (configure.ac): Fix typo.
10912
10913 2011-10-10  Bruno Haible  <bruno@clisp.org>
10914
10915         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10916         * lib/printf-frexpl.c: Include <config.h>.
10917         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10918         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10919         second time.
10920         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10921         gl_LONG_DOUBLE_VS_DOUBLE.
10922         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10923         conditions.
10924
10925 2011-10-10  Bruno Haible  <bruno@clisp.org>
10926
10927         frexpl: Simplify for platforms where 'long double' == 'double'.
10928         * lib/frexpl.c: Include <config.h>.
10929         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10930         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10931         time.
10932         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10933         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10934         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10935         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10936         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10937         conditions.
10938
10939 2011-10-10  Jim Meyering  <meyering@redhat.com>
10940
10941         test-renameat: don't leave behind a temporary file
10942         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10943           ERROR: files left in build directory after distclean:
10944           ./gltests/test-renameat.too
10945           make[1]: *** [distcleancheck] Error 1
10946         Reported by Tom G. Christensen.
10947
10948 2011-10-09  Bruno Haible  <bruno@clisp.org>
10949
10950         rint: Determine RINT_LIBM correctly on AIX 7.
10951         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10952         directly, not only through a function pointer. Also accept an optional
10953         4th argument with extra code.
10954         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10955         rintf() call by gcc when optimizing.
10956
10957         mathfunc.m4: Refactor.
10958         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10959         m4 variable.
10960
10961 2011-10-09  Bruno Haible  <bruno@clisp.org>
10962
10963         rintl: Simplify for platforms where 'long double' == 'double'.
10964         * lib/rintl.c: Include <config.h>.
10965         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10966         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10967         time.
10968         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10969         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10970         * modules/rintl (Depends-on): Add rint. Update conditions.
10971
10972 2011-10-09  Bruno Haible  <bruno@clisp.org>
10973
10974         roundl: Simplify for platforms where 'long double' == 'double'.
10975         * lib/roundl.c: Include <config.h>.
10976         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10977         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10978         time.
10979         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10980         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10981         * modules/roundl (Depends-on): Add round. Update conditions.
10982
10983 2011-10-09  Bruno Haible  <bruno@clisp.org>
10984
10985         truncl: Simplify for platforms where 'long double' == 'double'.
10986         * lib/truncl.c: Include <config.h>.
10987         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10988         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10989         time.
10990         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10991         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10992         * modules/truncl (Depends-on): Add trunc. Update conditions.
10993
10994 2011-10-09  Bruno Haible  <bruno@clisp.org>
10995
10996         ceill: Simplify for platforms where 'long double' == 'double'.
10997         * lib/ceill.c: Include <config.h>.
10998         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10999         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11000         time.
11001         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11002         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11003         * modules/ceill (Depends-on): Add ceil. Update conditions.
11004
11005 2011-10-09  Bruno Haible  <bruno@clisp.org>
11006
11007         floorl: Simplify for platforms where 'long double' == 'double'.
11008         * lib/floorl.c: Include <config.h>.
11009         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11010         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11011         time.
11012         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11013         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11014         * modules/floorl (Depends-on): Add floor. Update conditions.
11015
11016 2011-10-09  Bruno Haible  <bruno@clisp.org>
11017
11018         rint: Fix ordering constraints.
11019         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11020         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11021         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11022
11023 2011-10-09  Bruno Haible  <bruno@clisp.org>
11024
11025         copysignl: Simplify for platforms where 'long double' == 'double'.
11026         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11027         alternative.
11028         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11029         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11030         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11031
11032 2011-10-09  Bruno Haible  <bruno@clisp.org>
11033
11034         Tests for module 'rintl'.
11035         * modules/rintl-tests: New file.
11036         * tests/test-rintl.c: New file.
11037
11038         New module 'rintl'.
11039         * lib/math.in.h (rintl): New declaration.
11040         * lib/rintl.c: New file.
11041         * m4/rintl.m4: New file.
11042         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11044         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11045         * modules/rintl: New file.
11046         * tests/test-math-c++.cc: Check the declaration of rintl.
11047         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11048         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11049         * doc/posix-functions/rintl.texi: Mention the new module.
11050
11051 2011-10-09  Bruno Haible  <bruno@clisp.org>
11052
11053         Tests for module 'rintf'.
11054         * modules/rintf-tests: New file.
11055         * tests/test-rintf.c: New file.
11056
11057         New module 'rintf'.
11058         * lib/math.in.h (rintf): New declaration.
11059         * lib/rintf.c: New file.
11060         * m4/rintf.m4: New file.
11061         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11063         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11064         * modules/rintf: New file.
11065         * tests/test-math-c++.cc: Check the declaration of rintf.
11066         * doc/posix-functions/rintf.texi: Mention the new module.
11067
11068 2011-10-09  Bruno Haible  <bruno@clisp.org>
11069
11070         rint: Support for MSVC.
11071         * lib/math.in.h (rint): New declaration.
11072         * lib/rint.c: New file.
11073         * m4/rint.m4: New file.
11074         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11076         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11077         * modules/rint (Description): Fix.
11078         (Files): Add lib/rint.c, m4/rint.m4.
11079         (Depends-on): Add math.
11080         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11081         gl_MATH_MODULE_INDICATOR.
11082         * tests/test-math-c++.cc: Check the declaration of rint.
11083         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11084         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11085         * doc/posix-functions/rint.texi: Mention the replacement provided by
11086         the module.
11087
11088         rint tests: More tests.
11089         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11090         minus-zero.h, infinity.h, nan.h.
11091         (main): Skip the test if the current rounding mode is not standard. Add
11092         tests for negative numbers, minus zero, infinity, NaN.
11093         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11094         tests/nan.h.
11095         (Depends-on): Add isnand-nolibm.
11096
11097 2011-10-09  Bruno Haible  <bruno@clisp.org>
11098
11099         Tests for module 'copysignl'.
11100         * modules/copysignl-tests: New file.
11101         * tests/test-copysignl.c: New file.
11102
11103         New module 'copysignl'.
11104         * lib/math.in.h (copysignl): New declaration.
11105         * lib/copysignl.c: New file.
11106         * m4/copysignl.m4: New file.
11107         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11109         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11110         HAVE_COPYSIGNL.
11111         * modules/copysignl: New file.
11112         * tests/test-math-c++.cc: Check the declaration of copysignl.
11113         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11114         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11115         * doc/posix-functions/copysignl.texi: Mention the new module.
11116
11117 2011-10-09  Bruno Haible  <bruno@clisp.org>
11118
11119         Tests for module 'copysignf'.
11120         * modules/copysignf-tests: New file.
11121         * tests/test-copysignf.c: New file.
11122
11123         New module 'copysignf'.
11124         * lib/math.in.h (copysignf): New declaration.
11125         * lib/copysignf.c: New file.
11126         * m4/copysignf.m4: New file.
11127         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11129         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11130         HAVE_COPYSIGNF.
11131         * modules/copysignf: New file.
11132         * tests/test-math-c++.cc: Check the declaration of copysignf.
11133         * doc/posix-functions/copysignf.texi: Mention the new module.
11134
11135 2011-10-09  Bruno Haible  <bruno@clisp.org>
11136
11137         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11138         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11139         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11140         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11141         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11142         gl_SIGNAL_H_DEFAULTS.
11143
11144 2011-10-09  Bruno Haible  <bruno@clisp.org>
11145
11146         poll: Make macro safer.
11147         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11148         ac_cv_header_poll_h is not set.
11149
11150 2011-10-09  Bruno Haible  <bruno@clisp.org>
11151
11152         copysign: Provide replacement.
11153         * lib/math.in.h (copysign): New declaration.
11154         * lib/copysign.c: New file.
11155         * m4/copysign.m4: New file.
11156         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11158         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11159         HAVE_COPYSIGN.
11160         * modules/copysign (Description): Clarify.
11161         (Files): Add lib/copysign.c, m4/copysign.m4.
11162         (Depends-on): Add math, signbit.
11163         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11164         gl_MATH_MODULE_INDICATOR.
11165         * tests/test-math-c++.cc: Check the declaration of copysign.
11166         * doc/posix-functions/copysign.texi: Mention the effects of the module
11167         on Minix and MSVC.
11168
11169 2011-10-09  Bruno Haible  <bruno@clisp.org>
11170
11171         isinf: Ensure macro on AIX 5.1.
11172         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11173         macro.
11174         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11175
11176 2011-10-09  Bruno Haible  <bruno@clisp.org>
11177
11178         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11179         * modules/snprintf-posix-tests (configure.ac): Require
11180         gl_LONG_DOUBLE_VS_DOUBLE.
11181         * modules/sprintf-posix-tests (configure.ac): Likewise.
11182         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11183         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11184         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11185         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11186         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11187         tests on platforms where 'long double' is the same as 'double'.
11188         * tests/test-sprintf-posix.h (test_function): Likewise.
11189         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11190         * tests/test-vasprintf-posix.c (test_function): Likewise.
11191
11192         *printf: Fix for platforms where 'long double' == 'double'.
11193         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11194         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11195         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11196         * modules/fprintf-posix (Files): Likewise.
11197         * modules/obstack-printf-posix (Files): Likewise.
11198         * modules/snprintf-posix (Files): Likewise.
11199         * modules/sprintf-posix (Files): Likewise.
11200         * modules/vasnprintf (Files): Likewise.
11201         * modules/vasnprintf-posix (Files): Likewise.
11202         * modules/vasprintf-posix (Files): Likewise.
11203         * modules/vdprintf-posix (Files): Likewise.
11204         * modules/vfprintf-posix (Files): Likewise.
11205         * modules/vsnprintf-posix (Files): Likewise.
11206         * modules/vsprintf-posix (Files): Likewise.
11207         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11208         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11209         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11210         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11211         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11212         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11213         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11214
11215         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11216         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11217         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11218         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11219         'long double'.
11220         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11221
11222         isinf: Fix for platforms where 'long double' == 'double'.
11223         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11224         Don't blindly assume 80-bit 'long double'.
11225
11226         isfinite: Fix for platforms where 'long double' == 'double'.
11227         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11228         Don't blindly assume 80-bit 'long double'.
11229
11230         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11231         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11232         * modules/isfinite-tests (configure.ac): Require
11233         gl_LONG_DOUBLE_VS_DOUBLE.
11234         * modules/isinf-tests (configure.ac): Likewise.
11235         * modules/isnan-tests (configure.ac): Likewise.
11236         * modules/isnanl-tests (configure.ac): Likewise.
11237         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11238         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11239         tests on platforms where 'long double' is the same as 'double'.
11240         * tests/test-isinf.c (test_isinfl): Likewise.
11241         * tests/test-isnan.c (test_long_double): Likewise.
11242         * tests/test-isnanl.h (main): Likewise.
11243
11244 2011-10-08  Bruno Haible  <bruno@clisp.org>
11245
11246         Tests for module 'tanhf'.
11247         * modules/tanhf-tests: New file.
11248         * tests/test-tanhf.c: New file.
11249
11250         New module 'tanhf'.
11251         * lib/math.in.h (tanhf): New declaration.
11252         * lib/tanhf.c: New file.
11253         * m4/tanhf.m4: New file.
11254         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11256         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11257         * modules/tanhf: New file.
11258         * tests/test-math-c++.cc: Check the declaration of tanhf.
11259         * doc/posix-functions/tanhf.texi: Mention the new module.
11260
11261         tanh: Use a .m4 file.
11262         * m4/tanh.m4: New file.
11263         * modules/tanh (Files): Add it.
11264         (configure.ac): Just invoke gl_FUNC_TANH.
11265
11266 2011-10-08  Bruno Haible  <bruno@clisp.org>
11267
11268         Tests for module 'coshf'.
11269         * modules/coshf-tests: New file.
11270         * tests/test-coshf.c: New file.
11271
11272         New module 'coshf'.
11273         * lib/math.in.h (coshf): New declaration.
11274         * lib/coshf.c: New file.
11275         * m4/coshf.m4: New file.
11276         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11278         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11279         * modules/coshf: New file.
11280         * tests/test-math-c++.cc: Check the declaration of coshf.
11281         * doc/posix-functions/coshf.texi: Mention the new module.
11282
11283         cosh: Use a .m4 file.
11284         * m4/cosh.m4: New file.
11285         * modules/cosh (Files): Add it.
11286         (configure.ac): Just invoke gl_FUNC_COSH.
11287
11288 2011-10-08  Bruno Haible  <bruno@clisp.org>
11289
11290         Tests for module 'sinhf'.
11291         * modules/sinhf-tests: New file.
11292         * tests/test-sinhf.c: New file.
11293
11294         New module 'sinhf'.
11295         * lib/math.in.h (sinhf): New declaration.
11296         * lib/sinhf.c: New file.
11297         * m4/sinhf.m4: New file.
11298         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11300         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11301         * modules/sinhf: New file.
11302         * tests/test-math-c++.cc: Check the declaration of sinhf.
11303         * doc/posix-functions/sinhf.texi: Mention the new module.
11304
11305         sinh: Use a .m4 file.
11306         * m4/sinh.m4: New file.
11307         * modules/sinh (Files): Add it.
11308         (configure.ac): Just invoke gl_FUNC_SINH.
11309
11310 2011-10-08  Bruno Haible  <bruno@clisp.org>
11311
11312         Tests for module 'atan2f'.
11313         * modules/atan2f-tests: New file.
11314         * tests/test-atan2f.c: New file.
11315
11316         New module 'atan2f'.
11317         * lib/math.in.h (atan2f): New declaration.
11318         * lib/atan2f.c: New file.
11319         * m4/atan2f.m4: New file.
11320         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11322         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11323         * modules/atan2f: New file.
11324         * tests/test-math-c++.cc: Check the declaration of atan2f.
11325         * doc/posix-functions/atan2f.texi: Mention the new module.
11326
11327         atan2: Use a .m4 file.
11328         * m4/atan2.m4: New file.
11329         * modules/atan2 (Files): Add it.
11330         (configure.ac): Just invoke gl_FUNC_ATAN2.
11331
11332 2011-10-08  Bruno Haible  <bruno@clisp.org>
11333
11334         Tests for module 'atanf'.
11335         * modules/atanf-tests: New file.
11336         * tests/test-atanf.c: New file.
11337
11338         New module 'atanf'.
11339         * lib/math.in.h (atanf): New declaration.
11340         * lib/atanf.c: New file.
11341         * m4/atanf.m4: New file.
11342         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11344         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11345         * modules/atanf: New file.
11346         * tests/test-math-c++.cc: Check the declaration of atanf.
11347         * doc/posix-functions/atanf.texi: Mention the new module.
11348
11349         atan: Use a .m4 file.
11350         * m4/atan.m4: New file.
11351         * modules/atan (Files): Add it.
11352         (configure.ac): Just invoke gl_FUNC_ATAN.
11353
11354 2011-10-08  Bruno Haible  <bruno@clisp.org>
11355
11356         Tests for module 'acosf'.
11357         * modules/acosf-tests: New file.
11358         * tests/test-acosf.c: New file.
11359
11360         New module 'acosf'.
11361         * lib/math.in.h (acosf): New declaration.
11362         * lib/acosf.c: New file.
11363         * m4/acosf.m4: New file.
11364         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11366         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11367         * modules/acosf: New file.
11368         * tests/test-math-c++.cc: Check the declaration of acosf.
11369         * doc/posix-functions/acosf.texi: Mention the new module.
11370
11371         acos: Use a .m4 file.
11372         * m4/acos.m4: New file.
11373         * modules/acos (Files): Add it.
11374         (configure.ac): Just invoke gl_FUNC_ACOS.
11375
11376 2011-10-08  Bruno Haible  <bruno@clisp.org>
11377
11378         Tests for module 'asinf'.
11379         * modules/asinf-tests: New file.
11380         * tests/test-asinf.c: New file.
11381
11382         New module 'asinf'.
11383         * lib/math.in.h (asinf): New declaration.
11384         * lib/asinf.c: New file.
11385         * m4/asinf.m4: New file.
11386         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11388         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11389         * modules/asinf: New file.
11390         * tests/test-math-c++.cc: Check the declaration of asinf.
11391         * doc/posix-functions/asinf.texi: Mention the new module.
11392
11393         asin: Use a .m4 file.
11394         * m4/asin.m4: New file.
11395         * modules/asin (Files): Add it.
11396         (configure.ac): Just invoke gl_FUNC_ASIN.
11397
11398 2011-10-08  Bruno Haible  <bruno@clisp.org>
11399
11400         Tests for module 'tanf'.
11401         * modules/tanf-tests: New file.
11402         * tests/test-tanf.c: New file.
11403
11404         New module 'tanf'.
11405         * lib/math.in.h (tanf): New declaration.
11406         * lib/tanf.c: New file.
11407         * m4/tanf.m4: New file.
11408         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11410         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11411         * modules/tanf: New file.
11412         * tests/test-math-c++.cc: Check the declaration of tanf.
11413         * doc/posix-functions/tanf.texi: Mention the new module.
11414
11415         tan: Use a .m4 file.
11416         * m4/tan.m4: New file.
11417         * modules/tan (Files): Add it.
11418         (configure.ac): Just invoke gl_FUNC_TAN.
11419
11420 2011-10-08  Bruno Haible  <bruno@clisp.org>
11421
11422         Tests for module 'cosf'.
11423         * modules/cosf-tests: New file.
11424         * tests/test-cosf.c: New file.
11425
11426         New module 'cosf'.
11427         * lib/math.in.h (cosf): New declaration.
11428         * lib/cosf.c: New file.
11429         * m4/cosf.m4: New file.
11430         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11432         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11433         * modules/cosf: New file.
11434         * tests/test-math-c++.cc: Check the declaration of cosf.
11435         * doc/posix-functions/cosf.texi: Mention the new module.
11436
11437         cos: Use a .m4 file.
11438         * m4/cos.m4: New file.
11439         * modules/cos (Files): Add it.
11440         (configure.ac): Just invoke gl_FUNC_COS.
11441
11442 2011-10-08  Bruno Haible  <bruno@clisp.org>
11443
11444         Tests for module 'sinf'.
11445         * modules/sinf-tests: New file.
11446         * tests/test-sinf.c: New file.
11447
11448         New module 'sinf'.
11449         * lib/math.in.h (sinf): New declaration.
11450         * lib/sinf.c: New file.
11451         * m4/sinf.m4: New file.
11452         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11454         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11455         * modules/sinf: New file.
11456         * tests/test-math-c++.cc: Check the declaration of sinf.
11457         * doc/posix-functions/sinf.texi: Mention the new module.
11458
11459         sin: Use a .m4 file.
11460         * m4/sin.m4: New file.
11461         * modules/sin (Files): Add it.
11462         (configure.ac): Just invoke gl_FUNC_SIN.
11463
11464 2011-10-08  Bruno Haible  <bruno@clisp.org>
11465
11466         Tests for module 'powf'.
11467         * modules/powf-tests: New file.
11468         * tests/test-powf.c: New file.
11469
11470         New module 'powf'.
11471         * lib/math.in.h (powf): New declaration.
11472         * lib/powf.c: New file.
11473         * m4/powf.m4: New file.
11474         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11476         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11477         * modules/powf: New file.
11478         * tests/test-math-c++.cc: Check the declaration of powf.
11479         * doc/posix-functions/powf.texi: Mention the new module.
11480
11481         pow: Use a .m4 file.
11482         * m4/pow.m4: New file.
11483         * modules/pow (Files): Add it.
11484         (configure.ac): Just invoke gl_FUNC_POW.
11485
11486 2011-10-08  Bruno Haible  <bruno@clisp.org>
11487
11488         Tests for module 'log10f'.
11489         * modules/log10f-tests: New file.
11490         * tests/test-log10f.c: New file.
11491
11492         New module 'log10f'.
11493         * lib/math.in.h (log10f): New declaration.
11494         * lib/log10f.c: New file.
11495         * m4/log10f.m4: New file.
11496         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11498         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11499         * modules/log10f: New file.
11500         * tests/test-math-c++.cc: Check the declaration of log10f.
11501         * doc/posix-functions/log10f.texi: Mention the new module.
11502
11503         log10: Use a .m4 file.
11504         * m4/log10.m4: New file.
11505         * modules/log10 (Files): Add it.
11506         (configure.ac): Just invoke gl_FUNC_LOG10.
11507
11508 2011-10-08  Bruno Haible  <bruno@clisp.org>
11509
11510         Tests for module 'logf'.
11511         * modules/logf-tests: New file.
11512         * tests/test-logf.c: New file.
11513
11514         New module 'logf'.
11515         * lib/math.in.h (logf): New declaration.
11516         * lib/logf.c: New file.
11517         * m4/logf.m4: New file.
11518         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11520         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11521         * modules/logf: New file.
11522         * tests/test-math-c++.cc: Check the declaration of logf.
11523         * doc/posix-functions/logf.texi: Mention the new module.
11524
11525         log: Use a .m4 file.
11526         * m4/log.m4: New file.
11527         * modules/log (Files): Add it.
11528         (configure.ac): Just invoke gl_FUNC_LOG.
11529
11530 2011-10-08  Bruno Haible  <bruno@clisp.org>
11531
11532         Tests for module 'expf'.
11533         * modules/expf-tests: New file.
11534         * tests/test-expf.c: New file.
11535
11536         New module 'expf'.
11537         * lib/math.in.h (expf): New declaration.
11538         * lib/expf.c: New file.
11539         * m4/expf.m4: New file.
11540         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11542         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11543         * modules/expf: New file.
11544         * tests/test-math-c++.cc: Check the declaration of expf.
11545         * doc/posix-functions/expf.texi: Mention the new module.
11546
11547         exp: Use a .m4 file.
11548         * m4/exp.m4: New file.
11549         * modules/exp (Files): Add it.
11550         (configure.ac): Just invoke gl_FUNC_EXP.
11551
11552 2011-10-08  Bruno Haible  <bruno@clisp.org>
11553
11554         Tests for module 'sqrtf'.
11555         * modules/sqrtf-tests: New file.
11556         * tests/test-sqrtf.c: New file.
11557
11558         New module 'sqrtf'.
11559         * lib/math.in.h (sqrtf): New declaration.
11560         * lib/sqrtf.c: New file.
11561         * m4/sqrtf.m4: New file.
11562         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11564         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11565         * modules/sqrtf: New file.
11566         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11567         * doc/posix-functions/sqrtf.texi: Mention the new module.
11568
11569 2011-10-08  Bruno Haible  <bruno@clisp.org>
11570
11571         Tests: Avoid link failures w.r.t. libintl.
11572         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11573         $(LIBINTL).
11574         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11575         $(LIBINTL).
11576         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11577         against $(LIBINTL).
11578         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11579         $(LIBINTL).
11580         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11581         $(LIBINTL).
11582         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11583
11584 2011-10-08  Bruno Haible  <bruno@clisp.org>
11585
11586         pow tests: Defeat compiler optimizations.
11587         * tests/test-pow.c (main): Assign arguments to x and y before use.
11588
11589 2011-10-08  Bruno Haible  <bruno@clisp.org>
11590
11591         gnulib-tool: Improve last commit.
11592         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11593         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11594         ignore dependencies that are not among the modules list.
11595
11596 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11597
11598         gnulib-tool: don't follow dependencies to avoided modules
11599         This fixes a bug that is related to the previous one.
11600         * gnulib-tool (func_modules_transitive_closure)
11601         (func_emit_autoconf_snippets):
11602         Check whether a dependency is acceptable before using it.
11603         (--extract-dependencies): Report an error if --avoid is also used,
11604         since this combination of options is not yet supported.
11605
11606         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11607         Problem reported by Peter Dyballa in
11608         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11609         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11610         when echoing "$condition".
11611
11612 2011-10-07  Bruno Haible  <bruno@clisp.org>
11613
11614         Fix documentation about math functions on MacOS X.
11615         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11616         MacOS X 10.5.
11617         * doc/posix-functions/fdim.texi: Likewise.
11618         * doc/posix-functions/feclearexcept.texi: Likewise.
11619         * doc/posix-functions/fegetenv.texi: Likewise.
11620         * doc/posix-functions/fegetround.texi: Likewise.
11621         * doc/posix-functions/feholdexcept.texi: Likewise.
11622         * doc/posix-functions/feraiseexcept.texi: Likewise.
11623         * doc/posix-functions/fesetenv.texi: Likewise.
11624         * doc/posix-functions/fesetround.texi: Likewise.
11625         * doc/posix-functions/fetestexcept.texi: Likewise.
11626         * doc/posix-functions/feupdateenv.texi: Likewise.
11627         * doc/posix-functions/fmax.texi: Likewise.
11628         * doc/posix-functions/fmin.texi: Likewise.
11629         * doc/posix-functions/log2.texi: Likewise.
11630         * doc/posix-functions/modff.texi: Likewise.
11631         * doc/posix-functions/nan.texi: Likewise.
11632         * doc/posix-functions/nanf.texi: Likewise.
11633         * doc/posix-functions/nextafterf.texi: Likewise.
11634         * doc/posix-functions/remquo.texi: Likewise.
11635
11636 2011-10-07  Bruno Haible  <bruno@clisp.org>
11637
11638         modff: Drop assumption about library that defines modff.
11639         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11640         AC_CHECK_FUNCS.
11641         * modules/modff (Files): Add m4/mathfunc.m4.
11642
11643 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11644
11645         raise tests: Avoid a GCC warning.
11646         * tests/test-raise.c (handler): Use _Noreturn.
11647
11648 2011-10-07  Bruno Haible  <bruno@clisp.org>
11649
11650         Tests for module 'ldexpf'.
11651         * modules/ldexpf-tests: New file.
11652         * tests/test-ldexpf.c: New file.
11653
11654         New module 'ldexpf'.
11655         * lib/math.in.h (ldexpf): New declaration.
11656         * lib/ldexpf.c: New file.
11657         * m4/ldexpf.m4: New file.
11658         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11660         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11661         * modules/ldexpf: New file.
11662         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11663         * doc/posix-functions/ldexpf.texi: Mention the new module.
11664
11665 2011-10-06  Bruno Haible  <bruno@clisp.org>
11666
11667         frexpf: Work around problems on IRIX and mingw.
11668         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11670         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11671         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11672         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11673         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11674         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11675
11676 2011-10-06  Bruno Haible  <bruno@clisp.org>
11677
11678         fabsf: Drop assumption about library that defines fabsf.
11679         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11680         AC_CHECK_FUNCS.
11681         * modules/fabsf (Files): Add m4/mathfunc.m4.
11682
11683 2011-10-06  Bruno Haible  <bruno@clisp.org>
11684
11685         frexpf: Drop assumption about library that defines frexpf.
11686         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11687         'int *', 'float *', 'long double *', 'float', 'long double'.
11688         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11689         AC_CHECK_FUNCS.
11690         * modules/frexpf (Files): Add m4/mathfunc.m4.
11691
11692         Tests for module 'frexpf'.
11693         * modules/frexpf-tests: New file.
11694         * tests/test-frexpf.c: New file.
11695
11696         New module 'frexpf'.
11697         * lib/math.in.h (frexpf): New declaration.
11698         * lib/frexpf.c: New file.
11699         * m4/frexpf.m4: New file.
11700         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11702         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11703         * modules/frexpf: New file.
11704         * tests/test-math-c++.cc: Check the declaration of frexpf.
11705         * doc/posix-functions/frexpf.texi: Mention the new module.
11706
11707 2011-10-06  Bruno Haible  <bruno@clisp.org>
11708
11709         math: Sort function declarations of math.in.h.
11710         * lib/math.in.h (frexp, logb): Move declarations.
11711
11712 2011-10-05  Bruno Haible  <bruno@clisp.org>
11713
11714         Tests for module 'modff'.
11715         * modules/modff-tests: New file.
11716         * tests/test-modff.c: New file.
11717
11718         New module 'modff'.
11719         * lib/math.in.h (modff): New declaration.
11720         * lib/modff.c: New file.
11721         * m4/modff.m4: New file.
11722         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11724         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11725         * modules/modff: New file.
11726         * tests/test-math-c++.cc: Check the declaration of modff.
11727         * doc/posix-functions/modff.texi: Mention the new module.
11728
11729         modf tests: Make test sharper.
11730         * tests/test-modf.c (main): Strengthen upper bound.
11731
11732         modf: Use a .m4 file.
11733         * m4/modf.m4: New file.
11734         * modules/modf (Files): Add it.
11735         (configure.ac): Just invoke gl_FUNC_MODF.
11736
11737 2011-10-05  Bruno Haible  <bruno@clisp.org>
11738
11739         Tests for module 'fmodf'.
11740         * modules/fmodf-tests: New file.
11741         * tests/test-fmodf.c: New file.
11742
11743         New module 'fmodf'.
11744         * lib/math.in.h (fmodf): New declaration.
11745         * lib/fmodf.c: New file.
11746         * m4/fmodf.m4: New file.
11747         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11749         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11750         * modules/fmodf: New file.
11751         * tests/test-math-c++.cc: Check the declaration of fmodf.
11752         * doc/posix-functions/fmodf.texi: Mention the new module.
11753
11754         fmod: Use a .m4 file.
11755         * m4/fmod.m4: New file.
11756         * modules/fmod (Files): Add it.
11757         (configure.ac): Just invoke gl_FUNC_FMOD.
11758
11759 2011-10-05  Bruno Haible  <bruno@clisp.org>
11760
11761         Tests for module 'fabsf'.
11762         * modules/fabsf-tests: New file.
11763         * tests/test-fabsf.c: New file.
11764
11765         New module 'fabsf'.
11766         * lib/math.in.h (fabsf): New declaration.
11767         * lib/fabsf.c: New file.
11768         * m4/fabsf.m4: New file.
11769         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11771         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11772         * modules/fabsf: New file.
11773         * tests/test-math-c++.cc: Check the declaration of fabsf.
11774         * doc/posix-functions/fabsf.texi: Mention the new module.
11775
11776         fabs: Use a .m4 file.
11777         * m4/fabs.m4: New file.
11778         * modules/fabs (Files): Add it.
11779         (configure.ac): Just invoke gl_FUNC_FABS.
11780
11781 2011-10-05  Jim Meyering  <meyering@redhat.com>
11782
11783         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11784         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11785         ls -lL regression introduced in coreutils-8.12, it does so at the
11786         cost of an additional stat call in the common case.  Besides, now
11787         that the kernel change that prompted commit 95f7c57f has been reverted
11788         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11789         we have no use for commit 95f7c57f, "file-has-acl: use
11790         acl_extended_file_nofollow if available".
11791
11792 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11793
11794         file-has-acl: revert unintended change in behavior of ls -L
11795         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11796         derived from...
11797         (file_has_acl): ...code here.  Call it.
11798         This problem was introduced with 2011-07-22 commit 95f7c57f,
11799         "file-has-acl: use acl_extended_file_nofollow if available".
11800         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11801
11802 2011-10-03  Bruno Haible  <bruno@clisp.org>
11803
11804         poll: Avoid link errors on MSVC.
11805         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11806         * modules/poll (Depends-on): Add sockets.
11807         (Link): New section.
11808         * NEWS: Mention the change.
11809         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11810         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11811         $(LIB_POLL) instead of $(LIBSOCKET).
11812
11813 2011-10-03  Bruno Haible  <bruno@clisp.org>
11814
11815         sys_select tests: Fix link error on MSVC 9.
11816         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11817         with $(LIB_SELECT) instead of $(LIBSOCKET).
11818
11819 2011-10-03  Bruno Haible  <bruno@clisp.org>
11820
11821         sys_select: Fix compilation error on mingw.
11822         * lib/sys_select.in.h: On native Windows, include <io.h>.
11823
11824 2011-10-03  Bruno Haible  <bruno@clisp.org>
11825
11826         wmemset: Support for MSVC.
11827         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11828         whether wmemset() exists.
11829
11830 2011-10-03  Bruno Haible  <bruno@clisp.org>
11831
11832         wmemmove: Support for MSVC.
11833         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11834         whether wmemmove() exists.
11835
11836 2011-10-03  Bruno Haible  <bruno@clisp.org>
11837
11838         wmemcpy: Support for MSVC.
11839         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11840         whether wmemcpy() exists.
11841
11842 2011-10-03  Bruno Haible  <bruno@clisp.org>
11843
11844         wmemcmp: Support for MSVC.
11845         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11846         whether wmemcmp() exists.
11847
11848 2011-10-03  Bruno Haible  <bruno@clisp.org>
11849
11850         wmemchr: Support for MSVC.
11851         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11852         whether wmemchr() exists.
11853
11854 2011-10-03  Bruno Haible  <bruno@clisp.org>
11855
11856         glthread/*, strsignal: Support for MSVC.
11857         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11858         including <winsock.h> on MSVC 9.
11859         * lib/glthread/lock.h: Likewise.
11860         * lib/glthread/thread.h: Likewise.
11861         * lib/glthread/tls.h: Likewise.
11862         * lib/glthread/yield.h: Likewise.
11863         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11864         if HAVE_UNISTD_H is false.
11865         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11866
11867 2011-10-03  Bruno Haible  <bruno@clisp.org>
11868
11869         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11870         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11871         Set to 100000.
11872
11873 2011-10-03  Bruno Haible  <bruno@clisp.org>
11874
11875         acl: Fix specification.
11876         * lib/file-has-acl.c (file_has_acl): Fix specification.
11877
11878 2011-10-03  Bruno Haible  <bruno@clisp.org>
11879
11880         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11881         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11882         (compute_curr_prefix, shared_library_fullname,
11883         find_shared_library_fullname, get_shared_library_fullname, relocate):
11884         Use it together with PIC && INSTALLDIR.
11885         Reported by <jojelino@gmail.com>
11886         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11887
11888 2011-10-01  Jim Meyering  <meyering@redhat.com>
11889
11890         maint.mk: adjust a release-related rule not to require use of gzip
11891         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11892         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11893         projects that build only .tar.xz files.  Also fix an erroneous test.
11894
11895         test-linkat: don't leave behind a temporary file
11896         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11897         Otherwise, coreutils' "make distcheck" would fail with this:
11898           Only in /c/cu/tests/torture/coreutils/test/\
11899             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11900           make[2]: *** [my-distcheck] Error 1
11901
11902         float, math: add omitted file
11903         * lib/itold.c: Add file, required for yesterday's float change.
11904
11905 2011-10-01  Bruno Haible  <bruno@clisp.org>
11906
11907         isinf: Fix for OpenBSD/x86.
11908         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11909         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11910         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11911
11912 2011-10-01  Bruno Haible  <bruno@clisp.org>
11913
11914         isfinite: Fix syntax error in configure test.
11915         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11916
11917         isfinite: Fix typo.
11918         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11919         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11920
11921 2011-10-01  Bruno Haible  <bruno@clisp.org>
11922
11923         nonblocking tests: Fix test failure on Linux/IA-64.
11924         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11925         Set to 270000.
11926
11927 2011-10-01  Bruno Haible  <bruno@clisp.org>
11928
11929         mkfifoat tests: Fix a test failure on mingw.
11930         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11931         with error ENOSYS.
11932
11933 2011-09-30  Bruno Haible  <bruno@clisp.org>
11934
11935         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11936         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11937         'long double'. Set REPLACE_ITOLD.
11938         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11939         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11940         * lib/itold.c: New file.
11941         * modules/float (Files): Add lib/itold.c.
11942         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11943         (Makefile.am): Substitute REPLACE_ITOLD.
11944         * modules/math (Depends-on): Add float.
11945         (Makefile.am): Substitute REPLACE_ITOLD.
11946         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11947         * doc/posix-headers/math.texi: Likewise.
11948         * doc/posix-functions/logl.texi: Likewise.
11949
11950 2011-09-30  Bruno Haible  <bruno@clisp.org>
11951
11952         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11953         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11954         Set to 140000.
11955
11956 2011-09-30  Bruno Haible  <bruno@clisp.org>
11957
11958         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11959         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11960         invocation, say "right after AC_PROG_CC_STDC", not "right after
11961         AC_PROG_CC".
11962         Reported by Gary V. Vaughan <gary@gnu.org>.
11963
11964 2011-09-30  Bruno Haible  <bruno@clisp.org>
11965
11966         Centralize C99 requirement.
11967         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11968         * modules/stdarg (configure.ac-early): Invoke it instead of
11969         AC_PROG_CC_STDC.
11970         Reported by Gary V. Vaughan and Paul Eggert.
11971
11972 2011-09-29  Bruno Haible  <bruno@clisp.org>
11973
11974         float: Fix LDBL_MAX value on Linux/PowerPC.
11975         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11976         on Linux/PowerPC.
11977         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11978         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11979         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11980         platform.
11981         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11982
11983 2011-09-29  Bruno Haible  <bruno@clisp.org>
11984
11985         doc: Improve doc about gl_EARLY.
11986         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11987         AC_PROG_CC_STDC invocation.
11988         Reported by Gary V. Vaughan <gary@gnu.org>.
11989
11990 2011-09-28  Bruno Haible  <bruno@clisp.org>
11991
11992         fgetc, fputc, fread, fwrite tests: Fix link error.
11993         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11994         on non-MSVC platforms.
11995         * tests/test-fputc.c (main): Likewise.
11996         * tests/test-fread.c (main): Likewise.
11997         * tests/test-fwrite.c (main): Likewise.
11998         Reported by Jim Meyering.
11999
12000 2011-09-27  Bruno Haible  <bruno@clisp.org>
12001
12002         fputc, fwrite tests: Avoid test failure on MSVC.
12003         * tests/test-fgetc.c: Include msvc-inval.h.
12004         (main): Invoke gl_msvc_inval_ensure_handler.
12005         * tests/test-fputc.c: Include msvc-inval.h.
12006         (main): Invoke gl_msvc_inval_ensure_handler.
12007         * tests/test-fread.c: Include msvc-inval.h.
12008         (main): Invoke gl_msvc_inval_ensure_handler.
12009         * tests/test-fwrite.c: Include msvc-inval.h.
12010         (main): Invoke gl_msvc_inval_ensure_handler.
12011         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12012         * modules/fputc-tests (Depends-on): Likewise.
12013         * modules/fread-tests (Depends-on): Likewise.
12014         * modules/fwrite-tests (Depends-on): Likewise.
12015
12016 2011-09-27  Bruno Haible  <bruno@clisp.org>
12017
12018         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12019         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12020         (raise): Remove older, duplicated declaration.
12021         (_gl_raise_SIGPIPE): New declaration.
12022         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12023         (rpl_raise): Remove function.
12024         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12025         a gnulib-defined SIGPIPE here.
12026         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12027         'sigprocmask' has detected missing signal-blocking and the module
12028         'sigpipe' is enabled.
12029         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12030
12031 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12032
12033         base64-tests: avoid memory leak
12034         * tests/test-base64.c (main): Plug memory leak.
12035
12036         base32: new module
12037         * modules/base32: New module.
12038         * lib/base32.c: New file.
12039         * lib/base32.h: Likewise.
12040         * m4/base32.m4: Likewise.
12041         * modules/base32-tests: New test.
12042         * tests/test-base32.c: Likewise.
12043         * MODULES.html.sh (Misc): Mention it.
12044
12045 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12046
12047         gnulib: use more-standard license notice wording
12048         * gnulib-tool (func_emit_copyright_notice): When emitting a
12049         license notice into a file, use the standard wording as suggested
12050         by the current information for GNU maintainers, except say "file"
12051         rather than "program".  The new wording gives a license version
12052         number, which addresses an issue raised by Glenn Morris in
12053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12054         * m4/onceonly.m4: Use that same wording here, too.
12055
12056         dup2: minor simplification
12057         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12058         as lib/dup2.c no longer uses 'inline'.
12059
12060 2011-09-25  Bruno Haible  <bruno@clisp.org>
12061
12062         strings: Fix compilation error on MSVC.
12063         * lib/strings.in.h: Include <stddef.h> for size_t.
12064
12065 2011-09-25  Bruno Haible  <bruno@clisp.org>
12066
12067         fflush et al.: Document limitation on MSVC.
12068         * doc/posix-functions/fflush.texi: Document possible crash in handling
12069         mode other than DEFAULT_HANDLING.
12070         * doc/posix-functions/fgetc.texi: Likewise.
12071         * doc/posix-functions/fputc.texi: Likewise.
12072         * doc/posix-functions/fread.texi: Likewise.
12073         * doc/posix-functions/fwrite.texi: Likewise.
12074
12075 2011-09-25  Bruno Haible  <bruno@clisp.org>
12076
12077         msvc-inval: Allow three invalid parameter handling modes.
12078         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12079         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12080         macros.
12081         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12082         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12083         SANE_LIBRARY_HANDLING as a no-op.
12084         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12085         <stdlib.h>.
12086         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12087
12088 2011-09-25  Bruno Haible  <bruno@clisp.org>
12089
12090         msvc-inval: Make handler multithread-safe.
12091         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12092         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12093         declarations.
12094         (gl_msvc_inval_current): New declaration.
12095         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12096         Operate on the structure returned by gl_msvc_inval_current().
12097         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12098         Remove varaiables.
12099         (tls_index, tls_initialized): New variables.
12100         (not_per_thread): New variable.
12101         (gl_msvc_inval_current): New function.
12102         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12103         returned by gl_msvc_inval_current().
12104
12105 2011-09-25  Bruno Haible  <bruno@clisp.org>
12106
12107         msvc-inval: Install handler globally.
12108         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12109         !_MSC_VER.
12110         (gl_msvc_invalid_parameter_handler): Remove declaration.
12111         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12112         declarations.
12113         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12114         Install the handler globally, don't uninstall it.
12115         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12116         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12117         currently valid, call RaiseException instead.
12118         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12119         for !_MSC_VER.
12120
12121 2011-09-25  Bruno Haible  <bruno@clisp.org>
12122
12123         strerror_r-posix: Fix for MSVC 9.
12124         * lib/strerror_r.c (local_snprintf): New function.
12125         (snprintf): Define to local_snprintf, not to _snprintf.
12126
12127 2011-09-25  Bruno Haible  <bruno@clisp.org>
12128
12129         ftruncate: Support for MSVC 9.
12130         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12131         (chsize_nothrow): New function.
12132         (chsize): Redefine as a macro.
12133         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12134         * modules/ftruncate (Depends-on): Add msvc-inval.
12135
12136 2011-09-25  Bruno Haible  <bruno@clisp.org>
12137
12138         New module 'fstat'.
12139         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12140         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12141         * lib/fchdir.c (rpl_fstat): Remove function.
12142         * m4/fstat.m4: New file.
12143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12145         declared.
12146         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12147         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12148         * modules/fstat: New file.
12149         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12150         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12151         is set.
12152         * doc/posix-functions/fstat.texi: Mention the new module and the
12153         problem on MSVC.
12154         * NEWS: Mention the change.
12155         * modules/acl (Depends-on): Add fstat.
12156         * modules/chdir-safer (Depends-on): Likewise.
12157         * modules/chown (Depends-on): Likewise.
12158         * modules/copy-file (Depends-on): Likewise.
12159         * modules/fchdir (Depends-on): Likewise.
12160         * modules/fdopendir (Depends-on): Likewise.
12161         * modules/fopen (Depends-on): Likewise.
12162         * modules/fts (Depends-on): Likewise.
12163         * modules/getcwd (Depends-on): Likewise.
12164         * modules/isapipe (Depends-on): Likewise.
12165         * modules/linkat (Depends-on): Likewise.
12166         * modules/lseek (Depends-on): Likewise.
12167         * modules/mkdir-p (Depends-on): Likewise.
12168         * modules/open (Depends-on): Likewise.
12169         * modules/openat (Depends-on): Likewise.
12170         * modules/read-file (Depends-on): Likewise.
12171         * modules/renameat (Depends-on): Likewise.
12172         * modules/utimens (Depends-on): Likewise.
12173
12174 2011-09-25  Bruno Haible  <bruno@clisp.org>
12175
12176         linkat: Fix compilation on MSVC 9.
12177         * lib/linkat.c: Don't include <stdint.h>.
12178
12179 2011-09-25  Bruno Haible  <bruno@clisp.org>
12180
12181         fclose: Support for MSVC 9.
12182         * lib/fclose.c: Include msvc-inval.h.
12183         (fclose_nothrow): New function.
12184         (rpl_fclose): Use it.
12185         * modules/fclose (Depends-on): Add msvc-inval.
12186         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12187
12188 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12189
12190         dup2: minor simplifications
12191         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12192         that it's a performance win.
12193         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12194         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12195
12196 2011-09-24  Jim Meyering  <meyering@redhat.com>
12197
12198         test-futimens: avoid a warning from gcc -Wshadow
12199         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12200         to avoid a shadowing warning.
12201
12202 2011-09-24  Bruno Haible  <bruno@clisp.org>
12203
12204         fdopen: Support for MSVC 9.
12205         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12206         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12207         * lib/fdopen.c: Include msvc-inval.h.
12208         (fdopen_nothrow): New function.
12209         (rpl_fdopen): Use it.
12210         * modules/fdopen (Depends-on): Add msvc-inval.
12211         * modules/fclose-tests (Depends-on): Add fdopen.
12212         * modules/fflush-tests (Depends-on): Likewise.
12213         * modules/fgetc-tests (Depends-on): Likewise.
12214         * modules/fputc-tests (Depends-on): Likewise.
12215         * modules/fread-tests (Depends-on): Likewise.
12216         * modules/freopen-tests (Depends-on): Likewise.
12217         * modules/fseeko-tests (Depends-on): Likewise.
12218         * modules/ftello-tests (Depends-on): Likewise.
12219         * modules/fwrite-tests  (Depends-on): Likewise.
12220         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12221
12222 2011-09-24  Bruno Haible  <bruno@clisp.org>
12223
12224         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12225         * modules/fgetc-tests (Depends-on): Add unistd.
12226         * modules/fputc-tests (Depends-on): Likewise.
12227         * modules/fread-tests (Depends-on): Likewise.
12228         * modules/fwrite-tests (Depends-on): Likewise.
12229
12230 2011-09-24  Bruno Haible  <bruno@clisp.org>
12231
12232         dup: Simplify autoconf test.
12233         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12234         on gl_MSVC_INVAL's result.
12235
12236 2011-09-24  Bruno Haible  <bruno@clisp.org>
12237
12238         Tests for function fwrite().
12239         * modules/fwrite-tests: New file.
12240         * tests/test-fwrite.c: New file.
12241         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12242
12243         Tests for function fread().
12244         * modules/fread-tests: New file.
12245         * tests/test-fread.c: New file.
12246         * modules/stdio-tests (Depends-on): Add fread-tests.
12247
12248         Activate fputc tests.
12249         * modules/stdio-tests (Depends-on): Add fputc-tests.
12250
12251         Enhance fgetc, fputc tests.
12252         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12253         * tests/test-fputc.c (main): Likewise.
12254
12255 2011-09-24  Bruno Haible  <bruno@clisp.org>
12256
12257         write: Support for MSVC 9.
12258         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12259         is not 1.
12260         * lib/write.c (write_nothrow): New function.
12261         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12262         not 1. Use write_nothrow.
12263         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12264         invalid parameter handler.
12265         (gl_PREREQ_WRITE): New macro.
12266         * modules/write (Depends-on): Add msvc-inval.
12267         (configure.ac): Invoke gl_PREREQ_WRITE.
12268         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12269
12270 2011-09-24  Bruno Haible  <bruno@clisp.org>
12271
12272         read: Fix last commit.
12273         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12274
12275 2011-09-24  Bruno Haible  <bruno@clisp.org>
12276
12277         dup2: Fix last commit.
12278         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12279         (rpl_dup2): Disable fcntl workaround on native Windows.
12280
12281         sigprocmask: Make code safer.
12282         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12283         section that changes macro definitions for this compilation unit.
12284
12285 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12286
12287         dup2: clarify by coalescing Windows-specific material
12288         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12289         "msvc-nothrow.h"' to the Windows-specific section, so that the
12290         Emacs source need not contain these include files.
12291         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12292         Windows-specific fixes into this function rather than just the
12293         nothrow fix, as this shortens and clarifies the code.  Always
12294         define as a function, as that's a bit cleaner than having it be
12295         sometimes a function and sometimes a macro.
12296         (rpl_dup2): Move the Windows-specific stuff out of here and into
12297         ms_windows_dup2.  Don't protect the Haiku-related fix with
12298         "#if !defined __linux__", as the same code also works around
12299         a Linux kernel bug, and it doesn't add any system calls on any
12300         platform.  Add comment about FreeBSD 6.1.
12301
12302         sigprocmask: move #include directive
12303         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12304         Windows-specific section, so that the Emacs source need not
12305         contain msvc-inval.h.
12306
12307 2011-09-23  Bruno Haible  <bruno@clisp.org>
12308
12309         read: Support for MSVC 9.
12310         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12311         is not 1.
12312         * lib/read.c (read_nothrow): New function.
12313         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12314         read_nothrow.
12315         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12316         invalid parameter handler.
12317         (gl_PREREQ_READ): New macro.
12318         * modules/read (Depends-on): Add msvc-inval.
12319         (configure.ac): Invoke gl_PREREQ_READ.
12320         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12321
12322 2011-09-23  Bruno Haible  <bruno@clisp.org>
12323
12324         close: Support for MSVC 9.
12325         * lib/close.c: Include <errno.h>, msvc-inval.h.
12326         (close_nothrow): New function.
12327         (rpl_close): Use it.
12328         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12329         invalid parameter handler.
12330         * modules/close (Depends-on): Add msvc-inval.
12331         * modules/dup2-tests (Depends-on): Add close.
12332         * modules/dup3-tests (Depends-on): Likewise.
12333         * modules/fcntl-tests (Depends-on): Likewise.
12334         * modules/spawn-pipe-tests (Depends-on): Likewise.
12335         * modules/unistd-safer-tests (Depends-on): Likewise.
12336         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12337
12338 2011-09-23  Bruno Haible  <bruno@clisp.org>
12339
12340         New module 'dup'.
12341         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12342         Allow replacement.
12343         * lib/dup.c: New file.
12344         * lib/fchdir.c (rpl_dup): Remove function.
12345         * m4/dup.m4: New file.
12346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12347         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12348         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12349         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12350         * modules/dup: New file.
12351         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12352         'dup' module is in use.
12353         * modules/fdopendir (Depends-on): Add dup.
12354         * modules/fdutimensat-tests (Depends-on): Likewise.
12355         * modules/fts (Depends-on): Likewise.
12356         * modules/futimens-tests (Depends-on): Likewise.
12357         * modules/posix_spawnp-tests (Depends-on): Likewise.
12358         * modules/unistd-safer-tests (Depends-on): Likewise.
12359         * modules/utimens-tests (Depends-on): Likewise.
12360         * doc/posix-functions/dup.texi: Mention the new module and the problem
12361         on MSVC.
12362
12363 2011-09-23  Bruno Haible  <bruno@clisp.org>
12364
12365         getdtablesize: Support for MSVC 9.
12366         * lib/getdtablesize.c: Include msvc-inval.h.
12367         (_setmaxstdio_nothrow): New function.
12368         (_setmaxstdio): Redefine it.
12369         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12370         * modules/getdtablesize (Depends-on): Add msvc-inval.
12371         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12372
12373 2011-09-23  Bruno Haible  <bruno@clisp.org>
12374
12375         signal-h: Rename from signal.
12376         * modules/signal-h: Renamed from modules/signal.
12377         * modules/pthread_sigmask (Depends-on): Update.
12378         * modules/raise (Depends-on): Likewise.
12379         * modules/sigaction (Depends-on): Likewise.
12380         * modules/sigpipe (Depends-on): Likewise.
12381         * modules/sigprocmask (Depends-on): Likewise.
12382         * modules/sys_select (Depends-on): Likewise.
12383         * modules/signal-h-tests: Renamed from modules/signal-tests.
12384         (Files, Depends-on, Makefile.am): Update.
12385         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12386         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12387         (Files, Makefile.am): Update.
12388         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12389         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12390         * modules/signal: New placeholder file.
12391         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12392         * doc/posix-headers/signal.texi: Update.
12393         * NEWS: Mention the change.
12394
12395 2011-09-23  Bruno Haible  <bruno@clisp.org>
12396
12397         sigprocmask: Avoid crashes through signal() on MSVC 9.
12398         * lib/sigprocmask.c: Include msvc-inval.h.
12399         (signal_nothrow): New function.
12400         (signal): Redefine it.
12401         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12402         * modules/sigprocmask (Depends-on): Add msvc-inval.
12403         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12404
12405 2011-09-23  Bruno Haible  <bruno@clisp.org>
12406
12407         Tests for module 'raise'.
12408         * modules/raise-tests: New file.
12409         * tests/test-raise.c: New file.
12410
12411         raise: Support for MSVC.
12412         * lib/signal.in.h (raise): New declaration.
12413         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12414         for native Windows platforms.
12415         * m4/raise.m4: New file.
12416         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12417         HAVE_RAISE, REPLACE_RAISE.
12418         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12419         REPLACE_RAISE.
12420         * modules/raise (Status, Notice): Remove fields.
12421         (Files): Add m4/raise.m4.
12422         (Depends-on): Add signal, msvc-inval.
12423         (configure.ac): Use the common idioms.
12424         (Maintainer): Add me.
12425         * tests/test-signal-c++.cc: Check the signature of raise.
12426         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12427
12428 2011-09-23  Bruno Haible  <bruno@clisp.org>
12429
12430         pipe2: Fix compilation on pre-C99 compilers.
12431         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12432
12433 2011-09-23  Bruno Haible  <bruno@clisp.org>
12434
12435         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12436         * lib/msvc-nothrow.h: New file.
12437         * lib/msvc-nothrow.c: New file.
12438         * m4/msvc-nothrow.m4: New file.
12439         * modules/msvc-nothrow: New file.
12440         * lib/dup2.c: Include msvc-nothrow.h.
12441         (rpl_dup2): No need to protect _get_osfhandle call here.
12442         * lib/accept4.c: Include msvc-nothrow.h.
12443         * lib/error.c: Likewise.
12444         * lib/fcntl.c: Likewise.
12445         * lib/lseek.c: Likewise.
12446         * lib/nonblocking.c: Likewise.
12447         * lib/poll.c: Likewise.
12448         * lib/read.c: Likewise.
12449         * lib/select.c: Likewise.
12450         * lib/sockets.h: Likewise.
12451         * lib/sockets.c: Likewise.
12452         * lib/stdio-read.c: Likewise.
12453         * lib/stdio-write.c: Likewise.
12454         * lib/write.c: Likewise.
12455         * lib/w32sock.h: Likewise.
12456         * lib/w32spawn.h: Likewise.
12457         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12458         * lib/fsync.c: Likewise.
12459         * lib/isapipe.c: Likewise.
12460         * modules/dup2 (Depends-on): Add msvc-nothrow.
12461         * modules/accept4 (Depends-on): Likewise.
12462         * modules/error (Depends-on): Likewise.
12463         * modules/fcntl (Depends-on): Likewise.
12464         * modules/lseek (Depends-on): Likewise.
12465         * modules/nonblocking (Depends-on): Likewise.
12466         * modules/poll (Depends-on): Likewise.
12467         * modules/read (Depends-on): Likewise.
12468         * modules/select (Depends-on): Likewise.
12469         * modules/sockets (Depends-on): Likewise.
12470         * modules/sigpipe (Depends-on): Likewise.
12471         * modules/write (Depends-on): Likewise.
12472         * modules/accept (Depends-on): Likewise.
12473         * modules/bind (Depends-on): Likewise.
12474         * modules/connect (Depends-on): Likewise.
12475         * modules/gethostname (Depends-on): Likewise.
12476         * modules/getpeername (Depends-on): Likewise.
12477         * modules/getsockname (Depends-on): Likewise.
12478         * modules/getsockopt (Depends-on): Likewise.
12479         * modules/ioctl (Depends-on): Likewise.
12480         * modules/listen (Depends-on): Likewise.
12481         * modules/recv (Depends-on): Likewise.
12482         * modules/recvfrom (Depends-on): Likewise.
12483         * modules/send (Depends-on): Likewise.
12484         * modules/sendto (Depends-on): Likewise.
12485         * modules/setsockopt (Depends-on): Likewise.
12486         * modules/shutdown (Depends-on): Likewise.
12487         * modules/socket (Depends-on): Likewise.
12488         * modules/execute (Depends-on): Likewise.
12489         * modules/spawn-pipe (Depends-on): Likewise.
12490         * modules/flock (Depends-on): Likewise.
12491         * modules/fsync (Depends-on): Likewise.
12492         * modules/isapipe (Depends-on): Likewise.
12493         * tests/test-cloexec.c: Include msvc-nothrow.h.
12494         * tests/test-dup-safer.c: Likewise.
12495         * tests/test-dup2.c: Likewise.
12496         * tests/test-dup3.c: Likewise.
12497         * tests/test-fcntl.c: Likewise.
12498         * tests/test-pipe.c: Likewise.
12499         * tests/test-pipe2.c: Likewise.
12500         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12501         * modules/unistd-safer-tests (Depends-on): Likewise.
12502         * modules/dup2-tests (Depends-on): Likewise.
12503         * modules/dup3-tests (Depends-on): Likewise.
12504         * modules/fcntl-tests (Depends-on): Likewise.
12505         * modules/pipe-posix-tests (Depends-on): Likewise.
12506         * modules/pipe2-tests (Depends-on): Likewise.
12507
12508 2011-09-23  Bruno Haible  <bruno@clisp.org>
12509
12510         dup2: Make code more maintainable.
12511         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12512         (rpl_dup2): Use it.
12513         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12514         * modules/dup2 (configure.ac): Invoke it.
12515         Reported by Paul Eggert.
12516
12517 2011-09-23  Bruno Haible  <bruno@clisp.org>
12518
12519         msvc-inval: Fix compilation error.
12520         * lib/msvc-inval.h: Include <excpt.h>.
12521
12522 2011-09-23  Bruno Haible  <bruno@clisp.org>
12523
12524         mkdir: Tweak for MSVC 9.
12525         * lib/sys_stat.in.h: Update comments.
12526         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12527
12528         Tests for module 'chdir'.
12529         * modules/chdir-tests: New file.
12530         * tests/test-chdir.c: New file.
12531
12532         New module 'chdir'.
12533         * modules/chdir: New file.
12534         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12535         (chdir): New declaration.
12536         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12537         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12538         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12539         * tests/test-unistd-c++.cc: Check signature of chdir.
12540         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12541         * modules/chdir-long (Depends-on): Add chdir.
12542         * modules/fchdir (Depends-on): Likewise.
12543         * modules/rename (Depends-on): Likewise.
12544         * modules/savewd (Depends-on): Likewise.
12545
12546         rmdir: Support for mingw, MSVC 9.
12547         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12548         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12549
12550         getcwd: Tweak for MSVC 9.
12551         * lib/unistd.in.h: Update comments.
12552         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12553
12554 2011-09-22  Bruno Haible  <bruno@clisp.org>
12555
12556         strerror_r-posix: Avoid a link error on MSVC.
12557         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12558         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12559
12560 2011-09-22  Bruno Haible  <bruno@clisp.org>
12561
12562         select: Avoid link errors on MSVC.
12563         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12564         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12565         * modules/pselect (Link): Likewise.
12566         * NEWS: Mention the change.
12567         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12568         test-select-stdin against $(LIB_SELECT).
12569         * modules/pselect-tests (Makefile.am): Link test-pselect against
12570         $(LIB_SELECT).
12571
12572 2011-09-22  Bruno Haible  <bruno@clisp.org>
12573
12574         select: Avoid compilation error on MSVC.
12575         * lib/select.c: Don't include <stdbool.h>.
12576
12577 2011-09-21  Bruno Haible  <bruno@clisp.org>
12578
12579         Consolidate all uses of PATH_MAX in *.m4 files.
12580         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12581         macros.
12582         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12583         and gl_PATHMAX_SNIPPET.
12584         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12585         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12586         * modules/chdir-long (Files): Add m4/pathmax.m4.
12587         * modules/getcwd (Files): Likewise.
12588
12589 2011-09-21  Bruno Haible  <bruno@clisp.org>
12590
12591         ftruncate: Un-deprecate, concentrate on Win32 support.
12592         * modules/ftruncate (Status, Notice): Remove sections.
12593         (Depends-on): Add largefile.
12594         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12595         non-mingw platforms.
12596         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12597         include <io.h>.
12598         * modules/perror-tests (Depends-on): Add ftruncate.
12599         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12600         'ftruncate' module.
12601
12602 2011-09-21  Bruno Haible  <bruno@clisp.org>
12603
12604         Add dependencies to new dirent related modules.
12605         * modules/opendir (Depends-on): Add closedir.
12606         * modules/getcwd (Depends-on): Add opendir, closedir.
12607         * modules/dirent-safer-tests (Depends-on): Likewise.
12608         * modules/fdopendir-tests (Depends-on): Likewise.
12609         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12610         * modules/renameat-tests (Depends-on): Likewise.
12611
12612 2011-09-21  Bruno Haible  <bruno@clisp.org>
12613
12614         opendir: Avoid compilation error on mingw.
12615         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12616         * modules/opendir (Depends-on): Add unistd.
12617
12618 2011-09-21  Bruno Haible  <bruno@clisp.org>
12619
12620         ftruncate tests: Avoid a test failure on mingw.
12621         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12622
12623 2011-09-21  Bruno Haible  <bruno@clisp.org>
12624
12625         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12626         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12627         native Windows.
12628
12629 2011-09-21  Bruno Haible  <bruno@clisp.org>
12630
12631         New module 'fdopen'.
12632         * lib/stdio.in.h (fdopen): New declaration.
12633         * lib/fdopen.c: New file.
12634         * m4/fdopen.m4: New file.
12635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12636         REPLACE_FDOPEN.
12637         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12638         REPLACE_FDOPEN.
12639         * modules/fdopen: New file.
12640         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12641         * tests/test-stdio-c++.cc: Check signature of fdopen.
12642         * doc/posix-functions/fdopen.texi: Mention the new module.
12643
12644 2011-09-21  Bruno Haible  <bruno@clisp.org>
12645
12646         unlockpt tests: Avoid test failure on NetBSD 5.1.
12647         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12648         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12649
12650 2011-09-21  Bruno Haible  <bruno@clisp.org>
12651
12652         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12653         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12654         * tests/test-getlogin_r.c (main): Likewise.
12655
12656 2011-09-20  Bruno Haible  <bruno@clisp.org>
12657
12658         time tests: Don't require pid_t.
12659         * doc/posix-headers/time.texi: Revert last change.
12660         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12661         * tests/test-time.c: Comment out the check for pid_t.
12662
12663 2011-09-20  Bruno Haible  <bruno@clisp.org>
12664
12665         fsync tests: Avoid a test failure on mingw.
12666         * tests/test-fsync.c (main): Allow a failure with EIO.
12667
12668 2011-09-20  Bruno Haible  <bruno@clisp.org>
12669
12670         euidaccess: Update comments.
12671         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12672
12673 2011-09-20  Bruno Haible  <bruno@clisp.org>
12674
12675         Ensure EBADF returns for socket functions on mingw.
12676         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12677         descriptor is invalid.
12678         * lib/bind.c (rpl_bind): Likewise.
12679         * lib/connect.c (rpl_connect): Likewise.
12680         * lib/getpeername.c (rpl_getpeername): Likewise.
12681         * lib/getsockname.c (rpl_getsockname): Likewise.
12682         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12683         * lib/listen.c (rpl_listen): Likewise.
12684         * lib/recv.c (rpl_recv): Likewise.
12685         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12686         * lib/send.c (rpl_send): Likewise.
12687         * lib/sendto.c (rpl_sendto): Likewise.
12688         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12689         * lib/shutdown.c (rpl_shutdown): Likewise.
12690
12691 2011-09-20  Bruno Haible  <bruno@clisp.org>
12692
12693         select tests: EBADF tests.
12694         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12695         test_bad_fd): New functions.
12696         (test_function): Invoke also test_bad_fd.
12697
12698 2011-09-20  Bruno Haible  <bruno@clisp.org>
12699
12700         Tests for module 'posix_spawn_file_actions_addopen.
12701         * modules/posix_spawn_file_actions_addopen-tests: New file.
12702         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12703
12704         Tests for module 'posix_spawn_file_actions_adddup2'.
12705         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12706         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12707
12708         Tests for module 'posix_spawn_file_actions_addclose'.
12709         * modules/posix_spawn_file_actions_addclose-tests: New file.
12710         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12711
12712 2011-09-20  Bruno Haible  <bruno@clisp.org>
12713
12714         Tests for module 'unlockpt'.
12715         * modules/unlockpt-tests: New file.
12716         * tests/test-unlockpt.c: New file.
12717         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12718
12719         Tests for module 'grantpt'.
12720         * modules/grantpt-tests: New file.
12721         * tests/test-grantpt.c: New file.
12722         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12723
12724 2011-09-20  Bruno Haible  <bruno@clisp.org>
12725
12726         freopen tests: EBADF tests.
12727         * tests/test-freopen.c: Include errno.h, unistd.h.
12728         (main): Add tests for EBADF, commented out for the moment.
12729
12730         fclose tests: EBADF tests.
12731         * tests/test-fclose.c (main): Add tests for EBADF.
12732
12733         fflush tests: EBADF tests.
12734         * tests/test-fflush.c: Include errno.h, macros.h.
12735         (main): Add tests for EBADF.
12736
12737         ftello tests: EBADF tests.
12738         * tests/test-ftello4.sh: New file.
12739         * tests/test-ftello4.c: New file.
12740         * modules/ftello-tests (Files): Add them.
12741         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12742
12743         fseeko tests: EBADF tests.
12744         * tests/test-fseeko4.sh: New file.
12745         * tests/test-fseeko4.c: New file.
12746         * modules/fseeko-tests (Files): Add them.
12747         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12748
12749         Tests for function fputc().
12750         * modules/fputc-tests: New file.
12751         * tests/test-fputc.c: New file.
12752         * modules/stdio-tests (Depends-on): Add fputc-tests.
12753
12754         Tests for function fgetc().
12755         * modules/fgetc-tests: New file.
12756         * tests/test-fgetc.c: New file.
12757         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12758
12759         Tests for function fdopen().
12760         * modules/fdopen-tests: New file.
12761         * tests/test-fdopen.c: New file.
12762         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12763
12764         Tests for module 'vdprintf'.
12765         * modules/vdprintf-tests: New file.
12766         * tests/test-vdprintf.c: New file.
12767
12768         Tests for module 'dprintf'.
12769         * modules/dprintf-tests: New file.
12770         * tests/test-dprintf.c: New file.
12771
12772 2011-09-20  Bruno Haible  <bruno@clisp.org>
12773
12774         Tests for module 'ioctl'.
12775         * modules/ioctl-tests: New file.
12776         * tests/test-ioctl.c: New file.
12777
12778 2011-09-20  Bruno Haible  <bruno@clisp.org>
12779
12780         fcntl tests: EBADF tests.
12781         * tests/test-fcntl.c (main): Add more tests for EBADF.
12782
12783 2011-09-20  Bruno Haible  <bruno@clisp.org>
12784
12785         utimensat tests: EBADF tests.
12786         * tests/test-utimensat.c (main): Add tests for EBADF.
12787
12788         renameat tests: EBADF tests.
12789         * tests/test-renameat.c (main): Add tests for EBADF.
12790
12791         mkfifoat tests: EBADF tests.
12792         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12793
12794         readlinkat tests: EBADF tests.
12795         * tests/test-readlinkat.c (main): Add tests for EBADF.
12796
12797         symlinkat tests: EBADF tests.
12798         * tests/test-symlinkat.c (main): Add tests for EBADF.
12799
12800         linkat tests: EBADF tests.
12801         * tests/test-linkat.c (main): Add tests for EBADF.
12802
12803         Tests for module 'faccessat'.
12804         * modules/faccessat-tests: New file.
12805         * tests/test-faccessat.c: New file.
12806
12807         fdopendir tests: EBADF tests.
12808         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12809
12810         openat tests: EBADF tests.
12811         * tests/test-fchownat.c (main): Add tests for EBADF.
12812         * tests/test-fstatat.c (main): Likewise.
12813         * tests/test-mkdirat.c (main): Likewise.
12814         * tests/test-openat.c (main): Likewise.
12815         * tests/test-unlinkat.c (main): Likewise.
12816         * tests/test-fchmodat.c: New file.
12817         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12818         (Makefile.am): Also run 'test-fchmodat'.
12819
12820 2011-09-20  Bruno Haible  <bruno@clisp.org>
12821
12822         utimens, futimens, fdutimensat tests: EBADF tests.
12823         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12824
12825         Tests for function fstat().
12826         * modules/fstat-tests: New file.
12827         * tests/test-fstat.c: New file.
12828         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12829
12830 2011-09-20  Bruno Haible  <bruno@clisp.org>
12831
12832         test-ttyname_r tests: EBADF tests.
12833         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12834
12835         Tests for module 'isatty'.
12836         * modules/isatty-tests: New file.
12837         * tests/test-isatty.c: New file.
12838
12839         Tests for module 'write'.
12840         * modules/write-tests: New file.
12841         * tests/test-write.c: New file.
12842
12843         Tests for module 'read'.
12844         * modules/read-tests: New file.
12845         * tests/test-read.c: New file.
12846
12847         pwrite tests: EBADF tests.
12848         * tests/test-pwrite.c (main): Add tests for EBADF.
12849
12850         pread tests: EBADF tests.
12851         * tests/test-pread.c (main): Add tests for EBADF.
12852
12853         lseek tests: EBADF tests.
12854         * tests/test-lseek.c (main): Add more tests for EBADF.
12855
12856         Tests for module 'ftruncate'.
12857         * modules/ftruncate-tests: New file.
12858         * tests/test-ftruncate.sh: New file.
12859         * tests/test-ftruncate.c: New file.
12860
12861         fsync tests: EBADF tests.
12862         * tests/test-fsync.c (main): Add more tests for EBADF.
12863
12864         fdatasync tests: EBADF tests.
12865         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12866
12867         Tests for module 'fchown'.
12868         * modules/fchown-tests: New file.
12869         * tests/test-fchown.c: New file.
12870
12871         Tests for module 'fchmod'.
12872         * modules/fchmod-tests: New file.
12873         * tests/test-fchmod.c: New file.
12874
12875         fchdir tests: EBADF tests.
12876         * tests/test-fchdir.c (main): Add more tests for EBADF.
12877
12878         dup2 tests: EBADF tests.
12879         * tests/test-dup2.c (main): Add more tests for EBADF.
12880
12881         Tests for module 'dup'.
12882         * modules/dup-tests: New file.
12883         * tests/test-dup.c: New file.
12884
12885         Tests for module 'close'.
12886         * modules/close-tests: New file.
12887         * tests/test-close.c: New file.
12888
12889 2011-09-20  Bruno Haible  <bruno@clisp.org>
12890
12891         Tests for module 'shutdown'.
12892         * modules/shutdown-tests: New file.
12893         * tests/test-shutdown.c: New file.
12894
12895         Tests for module 'setsockopt'.
12896         * modules/setsockopt-tests: New file.
12897         * tests/test-setsockopt.c: New file.
12898
12899         Tests for module 'sendto'.
12900         * modules/sendto-tests: New file.
12901         * tests/test-sendto.c: New file.
12902
12903         Tests for module 'send'.
12904         * modules/send-tests: New file.
12905         * tests/test-send.c: New file.
12906
12907         Tests for module 'recvfrom'.
12908         * modules/recvfrom-tests: New file.
12909         * tests/test-recvfrom.c: New file.
12910
12911         Tests for module 'recv'.
12912         * modules/recv-tests: New file.
12913         * tests/test-recv.c: New file.
12914
12915         Tests for module 'listen'.
12916         * modules/listen-tests: New file.
12917         * tests/test-listen.c: New file.
12918
12919         Tests for module 'getsockopt'.
12920         * modules/getsockopt-tests: New file.
12921         * tests/test-getsockopt.c: New file.
12922
12923         Tests for module 'getsockname'.
12924         * modules/getsockname-tests: New file.
12925         * tests/test-getsockname.c: New file.
12926
12927         Tests for module 'getpeername'.
12928         * modules/getpeername-tests: New file.
12929         * tests/test-getpeername.c: New file.
12930
12931         Tests for module 'connect'.
12932         * modules/connect-tests: New file.
12933         * tests/test-connect.c: New file.
12934
12935         Tests for module 'bind'.
12936         * modules/bind-tests: New file.
12937         * tests/test-bind.c: New file.
12938
12939         accept4 tests: Fix for native Windows.
12940         * tests/test-accept4.c: Include sockets.h.
12941         (main): Invoke gl_sockets_startup.
12942         * modules/accept4-tests (Depends-on): Add sockets.
12943
12944         accept tests: Fix for native Windows.
12945         * tests/test-accept.c: Include sockets.h.
12946         (main): Invoke gl_sockets_startup.
12947         * modules/accept-tests (Depends-on): Add sockets.
12948
12949 2011-09-19  Bruno Haible  <bruno@clisp.org>
12950
12951         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12952         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12953         do...while(0).
12954         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12955         Suggested by Paul Eggert.
12956
12957 2011-09-19  Bruno Haible  <bruno@clisp.org>
12958
12959         sched: Ensure pid_t is defined.
12960         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12961         not define pid_t.
12962         * lib/sched.in.h: Include <sys/types.h>.
12963         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12965
12966 2011-09-19  Bruno Haible  <bruno@clisp.org>
12967
12968         msvc-inval: Ensure the entire expansion is a single statement.
12969         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12970         of braces.
12971
12972 2011-09-19  Jim Meyering  <meyering@redhat.com>
12973
12974         tests: use printf, not echo in init.sh's warn_ function
12975         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12976         misbehave when given strings containing a backslash or starting
12977         with e.g., -n.  James Youngman suggested setting IFS.
12978
12979 2011-09-19  Eric Blake  <eblake@redhat.com>
12980
12981         futimens: enhance test
12982         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12983         closed non-negative fd.
12984
12985         date: accept 'hence' as opposite of 'ago'
12986         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12987         * tests/test-parse-datetime.c (main): Enhance test.
12988         Suggested by Jesse Wilson.
12989
12990 2011-09-19  Jim Meyering  <meyering@redhat.com>
12991
12992         getcwd: don't fail in a deep directory on a system without openat
12993         Before this change, getcwd would fail when called from a directory
12994         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12995         the non-openat implementation used "..", "../..", "../../..", etc.
12996         to access ancestor directories.  With too many, that string would
12997         be longer than PATH_MAX.
12998         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12999         using gnulib's openat replacement.
13000         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13001         we're using the replacement function.
13002
13003 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13004
13005         maint.mk: avoid warnings from perl about missing files
13006         * top/maint.mk (def_sym_regex): Ignore files listed in
13007         $(gl_other_headers_) that do not exist, say because a project
13008         does not use a corresponding module.
13009
13010 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13011
13012         stat: use pathmax.h only if needed
13013         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13014         This is better for Emacs, which does not have a mingw port and
13015         therefore can avoid the pathmax module.
13016
13017         utimens: remove dependency on dup2
13018         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13019         to work around the Linux kernel bug.
13020         * modules/utimens (Depends-on): Remove dup2.
13021
13022 2011-09-18  Bruno Haible  <bruno@clisp.org>
13023
13024         inet_ntop, inet_pton: Look for it also in libresolv.
13025         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13026         libnsl, search for it in libresolv.
13027         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13028         Needed on Solaris 7.
13029
13030 2011-09-18  Bruno Haible  <bruno@clisp.org>
13031
13032         accept, accept4 tests: Avoid link error on Solaris.
13033         * modules/accept-tests (Makefile.am): Link test-accept against
13034         $(LIBSOCKET).
13035         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13036         $(LIBSOCKET).
13037
13038         accept4: Avoid link error on Solaris.
13039         * modules/accept4 (Link): New section.
13040
13041         socket functions: Avoid link errors on Solaris.
13042         * modules/accept (Depends-on): Add socketlib.
13043         (Link): New section.
13044         * modules/bind (Depends-on): Add socketlib.
13045         (Link): New section.
13046         * modules/connect (Depends-on): Add socketlib.
13047         (Link): New section.
13048         * modules/getpeername (Depends-on): Add socketlib.
13049         (Link): New section.
13050         * modules/getsockname (Depends-on): Add socketlib.
13051         (Link): New section.
13052         * modules/getsockopt (Depends-on): Add socketlib.
13053         (Link): New section.
13054         * modules/listen (Depends-on): Add socketlib.
13055         (Link): New section.
13056         * modules/recv (Depends-on): Add socketlib.
13057         (Link): New section.
13058         * modules/recvfrom (Depends-on): Add socketlib.
13059         (Link): New section.
13060         * modules/send (Depends-on): Add socketlib.
13061         (Link): New section.
13062         * modules/sendto (Depends-on): Add socketlib.
13063         (Link): New section.
13064         * modules/setsockopt (Depends-on): Add socketlib.
13065         (Link): New section.
13066         * modules/shutdown (Depends-on): Add socketlib.
13067         (Link): New section.
13068         * modules/socket (Depends-on): Add socketlib.
13069         (Link): New section.
13070
13071 2011-09-18  Bruno Haible  <bruno@clisp.org>
13072
13073         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13074         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13075         than 5 seconds.
13076         * modules/ptsname-tests (configure.ac): Test for alarm.
13077
13078 2011-09-18  Bruno Haible  <bruno@clisp.org>
13079
13080         posix_spawn_file_actions_add*: Fix module dependencies.
13081         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13082         posix_spawn_file_actions_init.
13083         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13084         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13085
13086 2011-09-18  Bruno Haible  <bruno@clisp.org>
13087
13088         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13089         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13090         * tests/test-renameat.c (main): Likewise.
13091
13092 2011-09-18  Bruno Haible  <bruno@clisp.org>
13093
13094         Tests for module 'accept4'.
13095         * modules/accept4-tests: New file.
13096         * tests/test-accept4.c: New file.
13097
13098 2011-09-18  Bruno Haible  <bruno@clisp.org>
13099
13100         Tests for module 'accept'.
13101         * modules/accept-tests: New file.
13102         * tests/test-accept.c: New file.
13103
13104 2011-09-18  Bruno Haible  <bruno@clisp.org>
13105
13106         dup2: Support for MSVC.
13107         * lib/dup2.c: Include msvc-inval.h.
13108         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13109         _get_osfhandle calls.
13110         * modules/dup2 (Depends-on): Add msvc-inval.
13111         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13112
13113         New module 'msvc-inval'.
13114         * lib/msvc-inval.h: New file.
13115         * lib/msvc-inval.c: New file.
13116         * m4/msvc-inval.m4: New file.
13117         * modules/msvc-inval: New file.
13118
13119 2011-09-17  Bruno Haible  <bruno@clisp.org>
13120
13121         Tests for module 'pclose'.
13122         * modules/pclose-tests: New file.
13123
13124         New module 'pclose'.
13125         * lib/stdio.in.h (pclose): New declaration.
13126         * lib/pclose.c: New file.
13127         * m4/pclose.m4: New file.
13128         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13129         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13130         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13131         * modules/pclose: New file.
13132         * modules/popen-tests (Depends-on): Add pclose.
13133         * modules/popen-safer-tests (Depends-on): Likewise.
13134         * doc/posix-functions/pclose.texi: Mention the new module.
13135
13136 2011-09-17  Bruno Haible  <bruno@clisp.org>
13137
13138         popen: Support for MSVC.
13139         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13140         * lib/popen.c (popen): Provide alternate definition for native Windows.
13141         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13143         * modules/popen (Depends-on, configure.ac): Update condition.
13144         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13145         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13146         fixed.
13147
13148 2011-09-17  Bruno Haible  <bruno@clisp.org>
13149
13150         isnanl, isnand, isnanf: Work around MSVC bug.
13151         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13152
13153 2011-09-17  Bruno Haible  <bruno@clisp.org>
13154
13155         sys_socket tests: Fix recent mistake.
13156         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13157
13158 2011-09-17  Bruno Haible  <bruno@clisp.org>
13159
13160         putenv: Support for MSVC.
13161         * modules/putenv (Depends-on): Add environ.
13162         * lib/putenv.c (environ): Disable declaration.
13163         * lib/unistd.in.h: Update comment.
13164
13165 2011-09-17  Bruno Haible  <bruno@clisp.org>
13166
13167         math: Avoid macro redefinition warnings on MSVC.
13168         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13169         Undefine before redefining.
13170
13171 2011-09-17  Bruno Haible  <bruno@clisp.org>
13172
13173         doc: Mention functions which are declared as macros.
13174         * doc/posix-functions/*[fl].texi: Mention that some functions are
13175         defined as macros with arguments only.
13176
13177 2011-09-17  Bruno Haible  <bruno@clisp.org>
13178
13179         Add dependencies to new dirent related modules.
13180         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13181         * modules/fts (Depends-on): Likewise.
13182         * modules/glob (Depends-on): Likewise.
13183         * modules/savedir (Depends-on): Likewise.
13184         * modules/scandir (Depends-on): Likewise.
13185         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13186         * modules/fdopendir (Depends-on): Add opendir.
13187
13188 2011-09-17  Bruno Haible  <bruno@clisp.org>
13189
13190         inet_pton: Support for MSVC on Windows Vista or newer.
13191         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13192         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13193         HAVE_DECL_INET_PTON is defined.
13194         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13195         On platforms with <winsock2.h>, test whether inet_pton is declared in
13196         <ws2tcpip.h>. If so, arrange to replace it.
13197         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13198         REPLACE_INET_PTON.
13199         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13200         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13201         (Depends-on, configure.ac): Update condition.
13202         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13203
13204 2011-09-17  Bruno Haible  <bruno@clisp.org>
13205
13206         inet_ntop: Support for MSVC on Windows Vista or newer.
13207         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13208         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13209         HAVE_DECL_INET_NTOP is defined.
13210         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13211         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13212         <ws2tcpip.h>. If so, arrange to replace it.
13213         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13214         REPLACE_INET_NTOP.
13215         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13216         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13217         (Depends-on, configure.ac): Update condition.
13218         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13219
13220 2011-09-16  Eric Blake  <eblake@redhat.com>
13221
13222         test-fsync: yet another enhancement
13223         * tests/test-fsync.c (main): Also test behavior on read-only text
13224         file.
13225
13226 2011-09-16  Bruno Haible  <bruno@clisp.org>
13227
13228         Enhance fsync, fdatasync tests.
13229         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13230         * tests/test-fdatasync.c (main): Likewise.
13231
13232 2011-09-16  Bruno Haible  <bruno@clisp.org>
13233
13234         Support for MSVC compiler: Ensure mode_t gets defined.
13235         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13236         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13238         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13239         * tests/test-fcntl-h.c: Check that mode_t is defined.
13240         * tests/test-sys_stat.c: Likewise.
13241         * tests/test-sys_types.c: Likewise.
13242         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13243         * doc/posix-headers/sys_stat.texi: Likewise.
13244         * doc/posix-headers/sys_types.texi: Likewise.
13245
13246 2011-09-16  Bruno Haible  <bruno@clisp.org>
13247
13248         sys_stat: Support for MSVC.
13249         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13250         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13251         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13252         MSVC.
13253
13254 2011-09-16  Bruno Haible  <bruno@clisp.org>
13255
13256         Support for MSVC compiler: Ensure off_t gets defined.
13257         * lib/unistd.in.h: Include <sys/types.h>.
13258         * tests/test-fcntl-h.c: Check that off_t is defined.
13259         * tests/test-sys_stat.c: Likewise.
13260         * tests/test-sys_types.c: Likewise.
13261
13262 2011-09-16  Eric Blake  <eblake@redhat.com>
13263
13264         fdatasync: port to Solaris
13265         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13266         * modules/fdatasync (Link): Document it.
13267         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13268
13269         fdatasync: port to MacOS X 10.7
13270         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13271         declared.
13272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13273         * modules/unistd (Makefile.am): Substitute it.
13274         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13275         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13276
13277         fdatasync: minor improvements
13278         * modules/fdatasync (Depends-on): Add condition for fsync.
13279         * lib/fdatasync.c (fdatasync): Add comment.
13280         * tests/test-unistd-c++.cc: Test fdatasync.
13281
13282         unistd: update refs to newer POSIX
13283         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13284         Suggested by Bruno Haible.
13285
13286         fdatasync: new module
13287         * modules/fsync (Description): Document difference to fdatasync.
13288         * modules/fdatasync: New module.
13289         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13290         * lib/fdatasync.c (fdatasync): Likewise.
13291         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13292         defaults.
13293         * modules/unistd (Makefile.am): Set witnesses.
13294         * lib/unistd.in.h (fdatasync): Declare.
13295         * MODULES.html.sh: Document it.
13296         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13297         * modules/fdatasync-tests: New test.
13298         * tests/test-fdatasync.c: Likewise.
13299
13300 2011-09-16  Eric Blake  <eblake@redhat.com>
13301
13302         test-fsync: enhance tests
13303         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13304         * tests/test-fsync.c (main): Enhance test.
13305
13306 2011-09-15  Bruno Haible  <bruno@clisp.org>
13307
13308         Support for MSVC compiler: Ensure ssize_t gets defined.
13309         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13310         * doc/posix-headers/stdio.texi: Likewise.
13311         * modules/stdio (Depends-on): Add ssize_t.
13312         * modules/sys_socket (Depends-on): Likewise.
13313         * modules/sys_types (Depends-on): Likewise.
13314         * modules/sys_uio (Depends-on): Likewise.
13315         * modules/unistd (Depends-on): Likewise.
13316         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13317         * tests/test-sys_types.c: Check that ssize_t is defined.
13318
13319 2011-09-14  Bruno Haible  <bruno@clisp.org>
13320
13321         Avoid using #, the m4 comment starter character, near brackets.
13322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13323         delimiter character in sed expressions.
13324         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13325         Suggested by Eric Blake.
13326
13327         Properly quote AC_CHECK_DECLS' 4th argument.
13328         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13329         argument.
13330         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13331         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13332         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13333         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13334         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13335         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13337         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13338         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13339         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13340         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13341         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13342         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13343         * m4/isinf.m4 (gl_ISINF): Likewise.
13344         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13345         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13346         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13347         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13349         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13350         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13351         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13352         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13353         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13354         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13355         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13357         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13359         Reported by Eric Blake.
13360
13361         Properly quote AC_CHECK_DECL's 4th argument.
13362         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13363         argument.
13364         * m4/argp.m4 (gl_ARGP): Likewise.
13365         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13366         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13367         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13368         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13369         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13370         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13371         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13372         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13373         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13374         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13375         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13376         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13377         Reported by Eric Blake.
13378
13379 2011-09-14  Eric Blake  <eblake@redhat.com>
13380
13381         opendir: avoid compile warning
13382         * lib/opendir.c (includes): Always include errno.h.
13383         Reported by Tatsuro MATSUOKA.
13384
13385 2011-09-14  Jim Meyering  <meyering@redhat.com>
13386
13387         maint.mk: sc_tight_scope: propagate failure from sub-make
13388         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13389         Reported by Martin von Gagern.
13390
13391 2011-09-13  Bruno Haible  <bruno@clisp.org>
13392
13393         tempname: Support for MSVC.
13394         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13395         MSVC.
13396         * modules/tempname (Depends-on): Add fcntl-h.
13397
13398 2011-09-13  Bruno Haible  <bruno@clisp.org>
13399
13400         sys_time: Support for MSVC.
13401         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13402         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13403         include <winsock2.h>.
13404         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13405         function declarations that collide with POSIX.
13406         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13407         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13408
13409 2011-09-13  Bruno Haible  <bruno@clisp.org>
13410
13411         stat: Support for MSVC.
13412         * lib/stat.c: Include pathmax.h.
13413         * modules/stat (Depends-on): Add pathmax.
13414
13415         pathmax: Support for native Windows.
13416         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13417
13418 2011-09-12  Bruno Haible  <bruno@clisp.org>
13419
13420         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13421         * lib/dirent.in.h (struct dirent): New type.
13422         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13423         DT_WHT): New macros.
13424         (DIR): New type.
13425         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13426         (readdir, rewinddir): New declarations.
13427         * lib/dirent-private.h: New file.
13428         * lib/opendir.c: New file.
13429         * lib/readdir.c: New file.
13430         * lib/rewinddir.c: New file.
13431         * lib/closedir.c: New file.
13432         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13433         * m4/opendir.m4: New file.
13434         * m4/readdir.m4: New file.
13435         * m4/rewinddir.m4: New file.
13436         * m4/closedir.m4: New file.
13437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13438         REPLACE_CLOSEDIR here.
13439         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13440         readdir, rewinddir are declared.
13441         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13442         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13443         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13444         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13445         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13446         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13447         * modules/opendir: New file.
13448         * modules/readdir: New file.
13449         * modules/rewinddir: New file.
13450         * modules/closedir: New file.
13451         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13452         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13453         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13454         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13455         * NEWS: Mention the 'fchdir' change.
13456
13457 2011-09-11  Bruno Haible  <bruno@clisp.org>
13458
13459         asm-underscore.m4: Support for MSVC.
13460         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13461         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13462
13463 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13464
13465         Doc about crypt functions.
13466         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13467         needing for _GNU_SOURCE to get crypt.
13468         * doc/posix-functions/encrypt.texi: Likewise.
13469         * doc/posix-functions/setkey.texi: Likewise.
13470
13471 2011-09-11  Bruno Haible  <bruno@clisp.org>
13472
13473         doc: Update regarding MSVC 9.
13474         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13475         tested".
13476         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13477         * doc/posix-headers/*.texi: Likewise.
13478         * doc/pastposix-functions/*.texi: Likewise.
13479         * doc/glibc-functions/*.texi: Likewise.
13480         * doc/glibc-headers/*.texi: Likewise.
13481
13482 2011-09-11  Bruno Haible  <bruno@clisp.org>
13483
13484         unistd et al.: Don't assume <unistd.h> exists.
13485         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13486         does not exist.
13487         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13488         exist. But include <stdlib.h>.
13489         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13490         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13491         symlink() does not exist.
13492         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13493         include <io.h> instead.
13494         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13495         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13496         include <direct.h> instead.
13497         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13498         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13499         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13500         <io.h> instead.
13501         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13502         correctly if the system does not have hard links.
13503         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13504         <direct.h> instead.
13505         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13506         it when looking for function declarations.
13507         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13508         <direct.h> and <io.h> instead.
13509         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13510
13511 2011-09-11  Bruno Haible  <bruno@clisp.org>
13512
13513         strcase: Support for MSVC.
13514         * modules/strcase (Status, Notice): Remove obsoletion mark.
13515         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13516         * doc/posix-functions/strncasecmp.texi: Likewise.
13517
13518         strings: Don't assume <strings.h> exists.
13519         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13520         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13521         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13522         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13523
13524 2011-09-11  Bruno Haible  <bruno@clisp.org>
13525
13526         dirent: Don't assume <dirent.h> exists.
13527         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13528         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13529         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13530         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13531
13532 2011-09-11  Bruno Haible  <bruno@clisp.org>
13533
13534         Fix wint_t on MSVC.
13535         * lib/wchar.in.h (wint_t): On MSVC, override it.
13536         * lib/wctype.in.h (wint_t): Likewise.
13537         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13538         MSVC.
13539         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13540         * doc/posix-headers/wctype.texi: Likewise.
13541
13542 2011-09-11  Bruno Haible  <bruno@clisp.org>
13543
13544         sys_types: Fix typo.
13545         * lib/sys_types.in.h: Fix typo in comment.
13546         Reported by Paul Eggert.
13547
13548         Support for MSVC compiler: Ensure size_t gets defined.
13549         * modules/strings (Depends-on): Add 'sys_types'.
13550         * modules/sys_uio (Depends-on): Likewise.
13551         * lib/sys_uio.in.h: Update comment.
13552
13553         C++ tests for module 'sys_types'.
13554         * modules/sys_types-c++-tests: New file.
13555         * tests/test-sys_types-c++.cc: New file.
13556
13557         Tests for module 'sys_types'.
13558         * modules/sys_types-tests: New file.
13559         * tests/test-sys_types.c: New file.
13560
13561         New module 'sys_types'.
13562         * lib/sys_types.in.h: New file.
13563         * m4/sys_types_h.m4: New file.
13564         * modules/sys_types: New file.
13565         * doc/posix-headers/sys_types.texi: Mention the new module and the
13566         size_t problem on MSVC 9.
13567
13568 2011-09-11  Bruno Haible  <bruno@clisp.org>
13569
13570         Support for MSVC compiler: Avoid division by a literal 0.
13571         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13572         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13573         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13574         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13575         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13576         * tests/infinity.h: New file.
13577         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13578         on MSVC.
13579         * tests/test-ceilf1.c: Include infinity.h.
13580         (main): Use Infinityf.
13581         * tests/test-ceil1.c: Include infinity.h.
13582         (main): Use Infinityd.
13583         * tests/test-ceill.c: Include infinity.h.
13584         (main): Use Infinityl.
13585         * tests/test-dprintf-posix.c: Include infinity.h.
13586         (test_function): Use Infinityd.
13587         * tests/test-floorf1.c: Include infinity.h.
13588         (main): Use Infinityf.
13589         * tests/test-floor1.c: Include infinity.h.
13590         (main): Use Infinityd.
13591         * tests/test-floorl.c: Include infinity.h.
13592         (main): Use Infinityl.
13593         * tests/test-fprintf-posix.c: Include infinity.h.
13594         (test_function): Use Infinityd.
13595         * tests/test-frexp.c: Include infinity.h.
13596         (main): Use Infinityd.
13597         * tests/test-frexpl.c: Include infinity.h.
13598         (main): Use Infinityl.
13599         * tests/test-isfinite.c: Include infinity.h.
13600         (test_isfinitef): Use Infinityf.
13601         (test_isfinited): Use Infinityd.
13602         (test_isfinitel): Use Infinityl.
13603         * tests/test-isinf.c: Include infinity.h.
13604         (test_isinff): Use Infinityf.
13605         (test_isinfd): Use Infinityd.
13606         (test_isinfl): Use Infinityl.
13607         * tests/test-isnan.c: Include infinity.h.
13608         (test_float): Use Infinityf.
13609         (test_double): Use Infinityd.
13610         (test_long_double): Use Infinityl.
13611         * tests/test-isnanf.h: Include infinity.h.
13612         (main): Use Infinityf.
13613         * tests/test-isnand.h: Include infinity.h.
13614         (main): Use Infinityd.
13615         * tests/test-isnanl.h: Include infinity.h.
13616         (main): Use Infinityl.
13617         * tests/test-ldexpl.c: Include infinity.h.
13618         (main): Use Infinityl.
13619         * tests/test-printf-posix.h: Include infinity.h.
13620         (test_function): Use Infinityd.
13621         * tests/test-roundf1.c: Include infinity.h.
13622         (main): Use Infinityf.
13623         * tests/test-round1.c: Include infinity.h.
13624         (main): Use Infinityd.
13625         * tests/test-roundl.c: Include infinity.h.
13626         (main): Use Infinityl.
13627         * tests/test-signbit.c: Include infinity.h.
13628         (test_signbitf): Use Infinityf.
13629         (test_signbitd): Use Infinityd.
13630         (test_signbitl): Use Infinityl.
13631         * tests/test-snprintf-posix.h: Include infinity.h.
13632         (test_function): Use Infinityd, Infinityl.
13633         * tests/test-sprintf-posix.h: Include infinity.h.
13634         (test_function): Use Infinityd, Infinityl.
13635         * tests/test-truncf1.c: Include infinity.h.
13636         (main): Use Infinityf.
13637         * tests/test-trunc1.c: Include infinity.h.
13638         (main): Use Infinityd.
13639         * tests/test-truncl.c: Include infinity.h.
13640         (main): Use Infinityl.
13641         * tests/test-vasnprintf-posix.c: Include infinity.h.
13642         (test_function): Use Infinityd, Infinityl.
13643         * tests/test-vasprintf-posix.c: Include infinity.h.
13644         (test_function): Use Infinityd, Infinityl.
13645         * modules/ceilf-tests (Files): Add tests/infinity.h.
13646         * modules/ceil-tests (Files): Likewise.
13647         * modules/ceill-tests (Files): Likewise.
13648         * modules/dprintf-posix-tests (Files): Likewise.
13649         * modules/floorf-tests (Files): Likewise.
13650         * modules/floor-tests (Files): Likewise.
13651         * modules/floorl-tests (Files): Likewise.
13652         * modules/fprintf-posix-tests (Files): Likewise.
13653         * modules/frexp-tests (Files): Likewise.
13654         * modules/frexp-nolibm-tests (Files): Likewise.
13655         * modules/frexpl-tests (Files): Likewise.
13656         * modules/frexpl-nolibm-tests (Files): Likewise.
13657         * modules/isfinite-tests (Files): Likewise.
13658         * modules/isinf-tests (Files): Likewise.
13659         * modules/isnan-tests (Files): Likewise.
13660         * modules/isnanf-tests (Files): Likewise.
13661         * modules/isnanf-nolibm-tests (Files): Likewise.
13662         * modules/isnand-tests (Files): Likewise.
13663         * modules/isnand-nolibm-tests (Files): Likewise.
13664         * modules/isnanl-tests (Files): Likewise.
13665         * modules/isnanl-nolibm-tests (Files): Likewise.
13666         * modules/ldexpl-tests (Files): Likewise.
13667         * modules/printf-posix-tests (Files): Likewise.
13668         * modules/roundf-tests (Files): Likewise.
13669         * modules/round-tests (Files): Likewise.
13670         * modules/roundl-tests (Files): Likewise.
13671         * modules/signbit-tests (Files): Likewise.
13672         * modules/snprintf-posix-tests (Files): Likewise.
13673         * modules/sprintf-posix-tests (Files): Likewise.
13674         * modules/truncf-tests (Files): Likewise.
13675         * modules/trunc-tests (Files): Likewise.
13676         * modules/truncl-tests (Files): Likewise.
13677         * modules/vasnprintf-posix-tests (Files): Likewise.
13678         * modules/vasprintf-posix-tests (Files): Likewise.
13679         * modules/vdprintf-posix-tests (Files): Likewise.
13680         * modules/vfprintf-posix-tests (Files): Likewise.
13681         * modules/vprintf-posix-tests (Files): Likewise.
13682         * modules/vsnprintf-posix-tests (Files): Likewise.
13683         * modules/vsprintf-posix-tests (Files): Likewise.
13684         * modules/xprintf-posix-tests (Files): Likewise.
13685
13686 2011-09-11  Bruno Haible  <bruno@clisp.org>
13687
13688         Ensure pid_t gets defined.
13689         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13690         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13691         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13692         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13693         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13694         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13695         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13696         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13697         * tests/test-fcntl-h.c: Check that pid_t is defined.
13698         * tests/test-sched.c: Likewise.
13699         * tests/test-termios.c: Likewise.
13700         * tests/test-time.c: Likewise.
13701         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13702         * doc/posix-headers/signal.texi: Likewise.
13703         * doc/posix-headers/sys_types.texi: Likewise.
13704         * doc/posix-headers/time.texi: Likewise.
13705
13706 2011-09-11  Bruno Haible  <bruno@clisp.org>
13707
13708         acl: Fix compilation on Solaris 10 (older version).
13709         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13710         of ACE_EVERYONE.
13711         * lib/set-mode-acl.c (qset_acl): Likewise.
13712         Reported by Christian Jullien <eligis@orange.fr>.
13713
13714 2011-09-10  Bruno Haible  <bruno@clisp.org>
13715
13716         iconv, unsetenv: Add support for MSVC compiler.
13717         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13718         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13719
13720 2011-09-10  Bruno Haible  <bruno@clisp.org>
13721
13722         *printf: Add support for MSVC compiler.
13723         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13724         handles the exception caused by the %n directive. When cross-compiling,
13725         guess no on native Windows.
13726         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13727         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13728         emulate it through vsnprintf.
13729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13730         * doc/posix-functions/dprintf.texi: Update documentation regarding
13731         MSVC 9.
13732         * doc/posix-functions/fprintf.texi: Likewise.
13733         * doc/posix-functions/printf.texi: Likewise.
13734         * doc/posix-functions/snprintf.texi: Likewise.
13735         * doc/posix-functions/sprintf.texi: Likewise.
13736         * doc/posix-functions/swprintf.texi: Likewise.
13737         * doc/posix-functions/vdprintf.texi: Likewise.
13738         * doc/posix-functions/vfprintf.texi: Likewise.
13739         * doc/posix-functions/vprintf.texi: Likewise.
13740         * doc/posix-functions/vsnprintf.texi: Likewise.
13741         * doc/posix-functions/vsprintf.texi: Likewise.
13742         * doc/glibc-functions/asprintf.texi: Likewise.
13743         * doc/glibc-functions/obstack_printf.texi: Likewise.
13744         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13745         * doc/glibc-functions/vasprintf.texi: Likewise.
13746
13747 2011-09-10  Bruno Haible  <bruno@clisp.org>
13748
13749         nocrash: Add support for native Windows.
13750         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13751
13752 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13753             Bruno Haible  <bruno@clisp.org>
13754
13755         absolute-header, include-next: Add support for MSVC compiler.
13756         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13757         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13758         directory separator in #line directives.
13759         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13760         recognize also backslash as directory separator in #line directives.
13761
13762 2011-09-08  Jim Meyering  <meyering@redhat.com>
13763
13764         maint.mk: mark the post-release commit log with "maint: " prefix
13765         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13766         one-line commit-log summary.
13767
13768 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13769             Bruno Haible  <bruno@clisp.org>
13770
13771         Doc about crypt functions.
13772         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13773         systems.
13774         * doc/posix-functions/encrypt.texi: Likewise.
13775         * doc/posix-functions/setkey.texi: Likewise.
13776
13777 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13778
13779         * lib/gc.h: Fix copyright header.
13780
13781 2011-09-07  Bruno Haible  <bruno@clisp.org>
13782
13783         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13784         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13785         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13786
13787 2011-09-07  Bruno Haible  <bruno@clisp.org>
13788
13789         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13790         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13791         * lib/freopen.c: Likewise.
13792         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13793         * lib/lstat.c: Likewise.
13794         * lib/stat.c: Likewise.
13795         * lib/open.c: Use different syntax for include of <fcntl.h>.
13796         * lib/openat.c: Include fcntl.h again, explicitly.
13797
13798 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13799
13800         parse-datetime: document the newly accepted format
13801         * doc/parse-datetime.texi (Combined date and time of day items):
13802         New section.
13803
13804 2011-09-06  Bruno Haible  <bruno@clisp.org>
13805
13806         acl: Fix a test failure on newer Solaris 10 with ZFS.
13807         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13808         ENOSYS as no ACL.
13809         Reported by Jim Meyering.
13810
13811 2011-09-06  Bruno Haible  <bruno@clisp.org>
13812
13813         acl: Update for AIX >= 5.3 with NFS.
13814         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13815         ENOSYS as no ACL.
13816
13817         acl: Fix a test failure on AIX >= 5.3 with NFS.
13818         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13819         as no ACL.
13820
13821 2011-09-06  Bruno Haible  <bruno@clisp.org>
13822
13823         acl: Fix a test failure on IRIX 6.5 with NFS.
13824         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13825         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13826         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13827         * lib/copy-acl.c (qcopy_acl): Likewise.
13828
13829 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13830
13831         openat: port to AIX 7.1 with large files
13832         AIX 7.1 does a "#define openat open64at" if large files are in use,
13833         so we can't simply #undef openat.  Use the orig_openat trick (similar
13834         to orig_open in lib/open.c) to work around the problem.  Problem
13835         reported by Kevin Brott for GNU tar, in the thread containing
13836         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13837         * lib/openat.c (__need_system_fcntl_h): Define first.
13838         Include <fcntl.h> and <sys/types.h> before undefining.
13839         (orig_openat) [HAVE_OPENAT]: New inline function.
13840         (openat) [HAVE_OPENAT]: Do not undef.
13841         (rpl_openat): Use orig_openat, not openat.
13842
13843 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13844             Bruno Haible  <bruno@clisp.org>
13845
13846         acl: Avoid errors on NonStop Kernel.
13847         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13848         ENOTSUP errors.
13849
13850 2011-09-05  Bruno Haible  <bruno@clisp.org>
13851
13852         acl: Clean up Solaris code.
13853         * lib/acl-internal.h: Remove no-op #if.
13854         * lib/file-has-acl.c: Likewise.
13855         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13856         * lib/copy-acl.c (qcopy_acl): Likewise.
13857
13858 2011-09-05  Bruno Haible  <bruno@clisp.org>
13859
13860         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13861         binaries built on the original Solaris 10.
13862         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13863         trivial.
13864
13865 2011-09-05  Bruno Haible  <bruno@clisp.org>
13866
13867         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13868         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13869         10.
13870         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13871         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13872         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13873         instead of acl_get, facl_get, acl_set, facl_set.
13874
13875 2011-09-05  Bruno Haible  <bruno@clisp.org>
13876
13877         copy-file: Try unit tests on more file systems.
13878         * tests/test-copy-file-1.sh: New file.
13879         * tests/test-copy-file-2.sh: New file.
13880         * modules/copy-file-tests (Files): Add them.
13881         (Makefile.am): Add them to TESTS.
13882
13883         acl: Try unit tests on more file systems.
13884         * tests/test-file-has-acl-1.sh: New file.
13885         * tests/test-file-has-acl-2.sh: New file.
13886         * tests/test-set-mode-acl-1.sh: New file.
13887         * tests/test-set-mode-acl-2.sh: New file.
13888         * tests/test-copy-acl-1.sh: New file.
13889         * tests/test-copy-acl-2.sh: New file.
13890         * modules/acl-tests (Files): Add them.
13891         (Makefile.am): Add them to TESTS.
13892
13893 2011-09-04  Bruno Haible  <bruno@clisp.org>
13894
13895         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13896         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13897         10.
13898         (OLD_ALLOW, OLD_DENY): New macros.
13899         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13900         ACE_ACCESS_ALLOWED_ACE_TYPE.
13901         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13902         ACE_ACCESS_DENIED_ACE_TYPE.
13903         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13904         (NEW_ACE_EXECUTE): Fix value.
13905         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13906         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13907         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13908         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13909         NEW_ACE_SYNCHRONIZE): New macros.
13910         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13911         instead of acl_fromtext, acl_set, facl_set.
13912         Fixes a coreutils/tests/cp/perm failure.
13913
13914 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13915
13916         openat: test for fstatat (..., 0) bug
13917         Further testing with tar suggests that fstatat (..., 0)
13918         does not work in general, on AIX 7.1; see
13919         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13920         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13921         replacement fstatat (which is what older AIX releases were using
13922         anyway).
13923         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13924         use is now changed to orig_fstatat.  This was probably the right
13925         thing to do anyway.
13926         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13927         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13928         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13929         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13930         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13931         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13932         if the bug is found.
13933
13934         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13935         This tests for another fstatat bug on AIX 7.1:
13936         fstatat (AT_FDCWD, ..., 0) does not work.  See
13937         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13938         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13939         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13940         (rpl_fstatat): Adjust so that it works around either (or both)
13941         bugs if present.
13942         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13943
13944 2011-09-03  Karl Berry  <karl@gnu.org>
13945
13946         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13947         in index entries.
13948
13949 2011-09-02  Bruno Haible  <bruno@clisp.org>
13950
13951         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13952         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13953         values of AR, ARFLAGS, RANLIB.
13954         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13955
13956 2011-09-02  Bruno Haible  <bruno@clisp.org>
13957
13958         Find 'ar' program that fits with --host argument.
13959         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13960
13961 2011-09-02  Bruno Haible  <bruno@clisp.org>
13962
13963         tests: init.sh: Support any non-GNU diff.
13964         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13965         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13966         Solaris 8.
13967
13968 2011-09-02  Bruno Haible  <bruno@clisp.org>
13969
13970         tests: init.sh: work also with any non-GNU diff that supports -u
13971         * tests/init.sh: Relax check for diff -u support.
13972         Rather than checking for GNU diff via --version, simply check
13973         for support for -u itself.  Useful at least on OpenBSD 4.9,
13974         AIX 7.1, IRIX 6.5, and Solaris 10.
13975
13976 2011-09-01  Bruno Haible  <bruno@clisp.org>
13977
13978         strtoimax, strtoumax: Document problem on HP-UX 11.
13979         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13980         * doc/posix-functions/strtoumax.texi: Likewise.
13981
13982 2011-09-01  Bruno Haible  <bruno@clisp.org>
13983
13984         strtoumax: Avoid link error on OSF/1 with DTK cc.
13985         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13986         defined as a function.
13987         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13988         strtoumax is defined, not whether it is declared.
13989
13990 2011-09-01  Bruno Haible  <bruno@clisp.org>
13991
13992         strtoimax: Avoid link error on OSF/1 with DTK cc.
13993         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13994         defined as a function.
13995         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13996         strtoimax is defined, not whether it is declared.
13997
13998 2011-09-01  Bruno Haible  <bruno@clisp.org>
13999
14000         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14001         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14002         as a function.
14003         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14004         whether it is declared.
14005
14006 2011-09-01  Bruno Haible  <bruno@clisp.org>
14007
14008         imaxabs: Avoid link error on OSF/1 with DTK cc.
14009         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14010         as a function.
14011         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14012         whether it is declared.
14013
14014 2011-09-01  Bruno Haible  <bruno@clisp.org>
14015
14016         Tests for module 'strtoumax'.
14017         * modules/strtoumax-tests: New file.
14018         * tests/test-strtoumax.c: New file.
14019
14020         Tests for module 'strtoimax'.
14021         * modules/strtoimax-tests: New file.
14022         * tests/test-strtoimax.c: New file.
14023
14024         Tests for module 'imaxdiv'.
14025         * modules/imaxdiv-tests: New file.
14026         * tests/test-imaxdiv.c: New file.
14027
14028         Tests for module 'imaxabs'.
14029         * modules/imaxabs-tests: New file.
14030         * tests/test-imaxabs.c: New file.
14031
14032 2011-09-01  Bruno Haible  <bruno@clisp.org>
14033
14034         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14035         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14036         pthread_create.
14037
14038 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14039
14040         openat: work around AIX 7.1 fstatat issue
14041         This should fix the problem that was not properly fixed
14042         in the previous change, dated 2011-08-30.
14043         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14044         __need_system_stat_h defined.
14045         (orig_fstatat) [HAVE_FSTATAT]: New function.
14046         (rpl_fstatat): Go back to the old way of doing things,
14047         except call orig_fstatat instead of fstatat.
14048         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14049         Remove unnecessary check whether fstatat fills in st_size etc.
14050
14051 2011-09-01  Bruno Haible  <bruno@clisp.org>
14052
14053         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14054         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14055         just include the system's header.
14056
14057 2011-08-31  Jim Meyering  <meyering@redhat.com>
14058
14059         tests: avoid spurious assertion failure in test-float.c on ppc64
14060         * tests/test-float.c (test_long_double): Comment out an assertion,
14061         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14062         with gcc-4.4.4.
14063
14064         maint: indent with spaces, not TABs
14065         I need to get in the habit of running gnulib's "make check".
14066         Both of these would have been caught.
14067         * m4/largefile.m4: Indent with spaces, not TABs.
14068         * lib/parse-datetime.y (iso_8601_time): Likewise.
14069         Spotted by Pádraig Brady.
14070
14071         test-parse-datetime.c: accommodate a relatively strict gcc warning
14072         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14073         to avoid a warning from gcc's -Werror=missing-declarations.
14074         Insert a few spaces-before-funcall-parenthesis.
14075
14076 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14077
14078         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14079         The parser now accepts ISO 8601 date-time strings with "T" as the
14080         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14081         with a space between the date and time strings.  Now it also parses
14082         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14083         variants like "2004-02-29T16:21:42.333-07:00"
14084         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14085         of day representation using the 'T' separator character.
14086         * doc/parse-datetime.texi (General date syntax): replace use of
14087         deprecated --iso-8601 option with --rfc-3339 in example of date
14088         command output formats that can be parsed.
14089         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14090         lib/parse-datetime.y.
14091         (gmt_offset): New function.
14092         (main): Add additional test cases to validate ISO8601 extended
14093         date and time of day parsing.
14094
14095 2011-08-31  Bruno Haible  <bruno@clisp.org>
14096
14097         freopen: Documentation.
14098         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14099         name.
14100         Reported by Claudio Bley <claudio.bley@gmail.com>.
14101
14102 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14103
14104         freopen: Don't crash if the filename argument is NULL.
14105         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14106         NULL.
14107
14108 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14109
14110         openat: work around AIX 7.1 fstatat bug
14111         Problem reported by Kevin Brott for GNU tar, in the thread containing
14112         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14113         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14114         FSTATAT_ST_SIZE_ETC_BROKEN.
14115         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14116         rpl_fstatat.
14117         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14118         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14119         AC_CHECK_FUNCS_ONCE for fstatat.
14120         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14121         fchmodat, mkdirat, openat and unlinkat.
14122
14123 2011-08-30  Bruno Haible  <bruno@clisp.org>
14124
14125         Avoid endless recursions if config.h includes some header files.
14126         * lib/fopen.c (__need_FILE): Define already before including config.h.
14127         * lib/freopen.c (__need_FILE): Likewise.
14128         * lib/open.c (__need_system_fcntl_h): Likewise.
14129         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14130         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14131         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14132
14133 2011-08-25  Karl Berry  <karl@gnu.org>
14134
14135         * config/srclist.txt (ylwrap): new try.
14136         * build-aux/ylwrap: new file.
14137
14138 2011-08-23  Bruno Haible  <bruno@clisp.org>
14139
14140         tmpdir: Use a good default directory on native Windows.
14141         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14142         (P_tmpdir): Default to _P_tmpdir on native Windows.
14143         (path_search): On native Windows, try the value returned by GetTempPath
14144         before trying P_tmpdir.
14145         * modules/tmpdir (Depends-on): Add pathmax.
14146         Suggested by John Darrington <john@darrington.wattle.id.au>.
14147
14148 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14149
14150         doc: fix typo in README-release
14151         * top/README-release: Capitalize first word of a sentence.
14152
14153 2011-08-19  Jim Meyering  <meyering@redhat.com>
14154
14155         fts: do not exhaust memory when processing million-entry directories
14156         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14157         directory would require about 256*N bytes of memory.  Thus, it was
14158         easy to construct a directory too large to be processed by any of
14159         those tools.  With this change, fts' maximum memory utilization is
14160         now limited to around 30MB.
14161         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14162         (fts_read): When we've processed the final entry (i.e., when
14163         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14164         using the parent entry to read any remaining entries.  Dispatch
14165         depending on what fts_build returns:
14166         - NULL+stop, aka failure: stop
14167         - NULL otherwise: move up in the dir hierarchy
14168         - non-NULL: handle this new entry
14169         (fts_build): Declare and use new local, continue_readdir.
14170         Prepare to be called from fts_read, when the entries
14171         from a partially-read directory have just been exhausted.
14172         In that case, we'll skip the opendir and instead use the parent's
14173         fts_dirp and derive dir_fd from that.
14174         Finally, in the readdir loop, if we read max_entries entries,
14175         exit the loop ensuring *not* to call closedir.  This is required
14176         so that fts_dirp can be reused on a subsequent call.
14177         Prompted by Ben England's report of memory exhaustion in find
14178         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14179
14180         maint: fts: move decl of `dp' down into while loop; split a long line
14181         * lib/fts.c (fts_build): No semantic change.
14182
14183         fts: add/use new struct member, fts_dirp
14184         We are about to use this to manage any directory with
14185         too many entries to read all of them into memory at once.
14186         To do that, we'll need to save the DIR* pointer in each
14187         affected FTSENT struct.
14188         * lib/fts_.h: Include <dirent.h>.
14189         (struct FTSENT) [fts_dirp]: New member.
14190         * lib/fts.c (closedir_and_clear): Define.
14191         Use it in place of closedir so that we are sure to
14192         clear the new fts_dirp member when done with it.
14193         (fts_alloc): Initialize the new member.
14194         (fts_lfree): Free, if needed.
14195
14196         maint: fts: give __opendir2 a new parameter and rename
14197         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14198         than surreptitiously using sole caller's "dir_fd".
14199         (fts_opendir): Rename from __opendir2.
14200
14201         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14202         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14203
14204         maint: fts.c: correct off-by-one indentation
14205         * lib/fts.c (fts_build): Correct indentation, change style
14206         of a couple of block comments, and bracing style.
14207
14208         maint: fts.c: move __opendir2 #define "up" out of function body
14209         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14210
14211         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14212         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14213         out for a long time and besides was useful only on BSD systems.
14214
14215 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14216
14217         regex: port to Stratus OpenVOS
14218         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14219         define to empty, rather than attempting nonportable optimizations.
14220         Problem reported by Paul Green in:
14221         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14222         and fix suggested by Eric Blake in:
14223         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14224
14225 2011-08-17  Eric Blake  <eblake@redhat.com>
14226
14227         getcwd: fix test failures on mingw
14228         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14229         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14230         test if long directory cannot be created, and allow mingw errno.
14231
14232         getcwd-lgpl: fix m4 to match relaxed test for BSD
14233         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14234         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14235         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14236         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14237         signature problem.
14238
14239         getcwd: fix compilation on mingw64
14240         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14241         getcwd.
14242         Reported by Marc-André Lureau.
14243
14244         pipe2: silence compiler warning
14245         * lib/pipe2.c (pipe2): Hide label if it is not used.
14246
14247 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14248
14249         relocatable-prog: fix link error
14250         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14251         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14252         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14253         into modules/relocatable-lib without noticing that
14254         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14255         also needs to build relocatable.c.
14256
14257 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14258
14259         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14260         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14261         shell code: it contained a 'break' that was not in a loop.
14262         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14263         via a shell-language loop; this may have been true in old Autoconf
14264         versions, but it's not true in Autoconf 2.68.  I found this bug
14265         when testing coreutils git on Solaris 8, whose shell complains
14266         about the syntax error.
14267
14268 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14269
14270         * lib/base64.c: Fix comment to reference RFC 4648.
14271         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14272         <gvtulder@gmail.com>.
14273
14274 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14275
14276         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14277
14278         po/Makefile.in.in: fix make -q problem
14279         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14280         rule, since there's no file named 'check-macro-version' and its
14281         use as a file breaks make -q.
14282         (all): Don't depend on check-macro-version.
14283         (CHECK_MACRO_VERSION): New macro.
14284         (stamp-po): Use it.
14285
14286         configmake: fix make -q problem
14287         * modules/configmake (configmake.h): Update configmake.h's time stamp
14288         even if the file does not change.  Otherwise, 'make -q' fails.
14289         Problem reported by Simon Josefsson in
14290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14291
14292 2011-08-11  Jim Meyering  <meyering@redhat.com>
14293
14294         git-version-gen: correct the advice in a comment
14295         * build-aux/git-version-gen: Correct comment.
14296         Don't recommend to list .tarball-version in .gitignore.
14297
14298 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14299
14300         base64: fix off-by-one buffer size bug
14301         Problem and (trivial) fix reported by Gijs van Tulder in
14302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14303         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14304         * tests/test-base64.c (main): Catch the bug.
14305
14306 2011-08-10  Eric Blake  <eblake@redhat.com>
14307
14308         closein: correct comments
14309         * lib/closein.c (close_stdin): Improve comments.
14310
14311 2011-08-09  Bruno Haible  <bruno@clisp.org>
14312
14313         More tests for 'fseeko'.
14314         * tests/test-fseeko3.c: New file, from Eric Blake.
14315         * tests/test-fseeko3.sh: New file.
14316         * modules/fseeko-tests (Files): Add them.
14317         (TESTS): Add test-fseeko3.sh.
14318         (check_PROGRAMS): Add test-fseeko3.
14319
14320 2011-08-09  Eric Blake  <eblake@redhat.com>
14321
14322         fseeko: remove unneeded hack
14323         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14324
14325         fseeko: fix bug on glibc
14326         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14327         Reported by John W. Eaton.
14328
14329 2011-08-08  Bruno Haible  <bruno@clisp.org>
14330
14331         unictype/base: Fix interoperability with preinstalled libunistring.
14332         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14333         Reported by Simon Josefsson.
14334
14335 2011-08-08  Bruno Haible  <bruno@clisp.org>
14336
14337         iswblank: Detect declaration correctly.
14338         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14339         AC_CHECK_DECLS invocation.
14340
14341 2011-08-08  Bruno Haible  <bruno@clisp.org>
14342
14343         tcgetsid: Detect declaration correctly.
14344         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14345         AC_CHECK_DECLS invocation.
14346         Reported by Simon Josefsson.
14347
14348 2011-08-08  Eric Blake  <eblake@redhat.com>
14349
14350         largefile: fix typo that regressed large file support
14351         * modules/largefile (configure.ac-early): Fix section name.
14352
14353 2011-08-06  Karl Berry  <karl@gnu.org>
14354
14355         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14356         a separate module.
14357
14358 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14359
14360         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14361         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14362         get prototype for free.
14363
14364 2011-08-04  Bruno Haible  <bruno@clisp.org>
14365
14366         Tests for module 'pathmax'.
14367         * modules/pathmax-tests: New file.
14368         * tests/test-pathmax.c: New file.
14369
14370         canonicalize-lgpl: Support larger filenames on the Hurd.
14371         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14372         Reported by Paul Eggert.
14373
14374         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14375         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14376         * lib/chdir-long.h: Include pathmax.h.
14377         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14378         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14379         (PATH_MAX): Remove code that is done by pathmax.h.
14380         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14381         * lib/tmpfile.c: Add a comment.
14382         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14383         * modules/chdir-long (Depends-on): Add pathmax.
14384         * modules/getcwd (Depends-on): Add pathmax.
14385         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14386         is not defined.
14387         * doc/posix-headers/limits.texi: Mention the pathmax module.
14388         * NEWS: Mention the change.
14389
14390 2011-08-02  Bruno Haible  <bruno@clisp.org>
14391
14392         pthread_sigmask: Actually use results of gl_THREADLIB.
14393         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14394         gl_THREADLIB, not gl_[]THREADLIB.
14395         Reported by Eric Blake.
14396
14397 2011-08-02  Jim Meyering  <meyering@redhat.com>
14398
14399         maint.mk: relax the default _gl_TS_function_match regexp
14400         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14401         space between function name and "(" in an "extern" declaration.
14402         That would fail to match a decl with no space there: extern void foo();
14403
14404 2011-07-31  Iain Nicol  <iain@thenicols.net>
14405
14406         git-version-gen: document that EXTRA_DIST must include .version
14407         * build-aux/git-version-gen: In the how-to-use comment, document
14408         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14409         will fail when run from an unpacked distribution tarball.
14410
14411 2011-08-01  Bruno Haible  <bruno@clisp.org>
14412
14413         wctype-h: Fix last change.
14414         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14415         REPLACE_TOWLOWER to 0.
14416         Reported by Sam Steingold <sds@gnu.org>.
14417
14418 2011-07-31  Bruno Haible  <bruno@clisp.org>
14419
14420         frexpl: Update autoconf test.
14421         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14422         according to changes of 2011-06-20.
14423
14424 2011-07-31  Bruno Haible  <bruno@clisp.org>
14425
14426         sys_utsname: Add support for Minix.
14427         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14428         <sys/utsname.h>.
14429         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14430         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14431
14432 2011-07-31  Bruno Haible  <bruno@clisp.org>
14433
14434         strings: Add support for Minix.
14435         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14436         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14437         * doc/posix-headers/strings.texi: Document the Minix problem.
14438
14439 2011-07-31  Bruno Haible  <bruno@clisp.org>
14440
14441         wctype-h: Add support for Minix.
14442         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14443         REPLACE_TOWLOWER.
14444         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14445         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14446         REPLACE_ISWCNTRL.
14447
14448 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14449
14450         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14451         This is a performance improvement for 64-bit hosts: it causes the
14452         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14453
14454 2011-07-31  Bruno Haible  <bruno@clisp.org>
14455
14456         stdioext: Add support for Minix.
14457         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14458         * lib/fpurge.c (fpurge): Likewise.
14459         * lib/freadahead.c (freadahead): Likewise.
14460         * lib/freadable.c (freadable): Likewise.
14461         * lib/freading.c (freading): Likewise.
14462         * lib/freadptr.c (freadptr): Likewise.
14463         * lib/freadseek.c (freadptrinc): Likewise.
14464         * lib/fseeko.c (rpl_fseeko): Likewise.
14465         * lib/fseterr.c (fseterr): Likewise.
14466         * lib/fwritable.c (fwritable): Likewise.
14467         * lib/fwriting.c (fwriting): Likewise.
14468         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14469         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14470
14471 2011-07-31  Bruno Haible  <bruno@clisp.org>
14472
14473         errno: Port to Minix.
14474         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14475         ECONNABORTED are defined.
14476         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14477         GNULIB_defined_ECONNABORTED): New macros.
14478         * lib/strerror-override.h (strerror_override): Test also
14479         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14480         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14481         ECONNABORTED.
14482         * doc/posix-headers/errno.texi: Mention the Minix problem.
14483
14484 2011-07-31  Bruno Haible  <bruno@clisp.org>
14485
14486         Work around declaration collisions on Minix.
14487         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14488         defined, set REPLACE_MBSINIT.
14489         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14490         defined, set REPLACE_MBRTOWC.
14491         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14492         set REPLACE_MBRLEN.
14493         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14494         defined, set REPLACE_MBSRTOWCS.
14495         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14496         defined, set REPLACE_WCRTOMB.
14497         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14498         defined, set REPLACE_WCSRTOMBS.
14499
14500 2011-07-31  Bruno Haible  <bruno@clisp.org>
14501
14502         Add support for Minix with ACK compiler.
14503         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14504         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14505         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14506
14507 2011-07-31  Bruno Haible  <bruno@clisp.org>
14508
14509         Documentation about Minix.
14510         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14511         * doc/glibc-headers/*.texi: Likewise.
14512         * doc/posix-functions/*.texi: Likewise.
14513         * doc/glibc-functions/*.texi: Likewise.
14514
14515 2011-07-31  Bruno Haible  <bruno@clisp.org>
14516
14517         snippet/warn-on-use: Fix indentation.
14518         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14519
14520 2011-07-25  Jim Meyering  <meyering@redhat.com>
14521
14522         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14523         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14524         commands.
14525
14526 2011-07-27  Jim Meyering  <meyering@redhat.com>
14527
14528         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14529         * top/maint.mk (gl_extract_significant_defines_): Now that
14530         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14531         gnulib/lib/signal.in.h, and now that we recommend to
14532         define-if-undefined those two symbols in application code,
14533         we must filter them out of the "significant" list.
14534         This avoids a "make syntax-check" failure in coreutils.
14535
14536 2011-07-26  Eric Blake  <eblake@redhat.com>
14537
14538         warnings: add comments about previous patch
14539         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14540         * m4/include_next.m4: Likewise.
14541         * m4/warn-on-use.m4: Likewise.
14542         * m4/warnings.m4: Likewise, and simplify use.
14543         Suggested by Stefano Lattarini.
14544
14545         include-next, warnings: support older autoconf
14546         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14547         AS_VAR_PUSHDEF in a way that works with older autoconf.
14548         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14549         Reported by Daniel P. Berrange.
14550
14551 2011-07-25  Bruno Haible  <bruno@clisp.org>
14552
14553         fseek, ftell: Fix doc.
14554         * doc/posix-functions/fseek.texi: Reword statement about
14555         AC_SYS_LARGEFILE.
14556         * doc/posix-functions/ftell.texi: Likewise.
14557
14558 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14559             Bruno Haible  <bruno@clisp.org>
14560
14561         Add dependencies to the 'largefile' module.
14562         * modules/fopen (Depends-on): Add 'largefile'.
14563         * modules/freopen (Depends-on): Likewise.
14564         * modules/fseeko (Depends-on): Likewise.
14565         * modules/ftello (Depends-on): Likewise.
14566         * modules/glob (Depends-on): Likewise.
14567         * modules/lseek (Depends-on): Likewise.
14568         * modules/lstat (Depends-on): Likewise.
14569         * modules/mkostemp (Depends-on): Likewise.
14570         * modules/mkostemps (Depends-on): Likewise.
14571         * modules/mkstemp (Depends-on): Likewise.
14572         * modules/mkstemps (Depends-on): Likewise.
14573         * modules/open (Depends-on): Likewise.
14574         * modules/openat (Depends-on): Likewise.
14575         * modules/pread (Depends-on): Likewise.
14576         * modules/pwrite (Depends-on): Likewise.
14577         * modules/scandir (Depends-on): Likewise.
14578         * modules/stat (Depends-on): Likewise.
14579         * modules/tmpfile (Depends-on): Likewise.
14580         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14581         since the containing module now depends on the largefile module.
14582         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14583         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14584         off_t is fixed by gnulib.
14585         * doc/posix-functions/freopen.texi: Likewise.
14586         * doc/posix-functions/fseeko.texi: Likewise.
14587         * doc/posix-functions/fstatat.texi: Likewise.
14588         * doc/posix-functions/ftello.texi: Likewise.
14589         * doc/posix-functions/glob.texi: Likewise.
14590         * doc/posix-functions/lseek.texi: Likewise.
14591         * doc/posix-functions/lstat.texi: Likewise.
14592         * doc/posix-functions/mkstemp.texi: Likewise.
14593         * doc/posix-functions/open.texi: Likewise.
14594         * doc/posix-functions/openat.texi: Likewise.
14595         * doc/posix-functions/pread.texi: Likewise.
14596         * doc/posix-functions/pwrite.texi: Likewise.
14597         * doc/posix-functions/scandir.texi: Likewise.
14598         * doc/posix-functions/stat.texi: Likewise.
14599         * doc/posix-functions/tmpfile.texi: Likewise.
14600         * doc/glibc-functions/mkostemp.texi: Likewise.
14601         * doc/glibc-functions/mkostemps.texi: Likewise.
14602         * doc/glibc-functions/mkstemps.texi: Likewise.
14603
14604 2011-07-25  Bruno Haible  <bruno@clisp.org>
14605
14606         fcntl: Move AC_LIBOBJ invocation to module description.
14607         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14608         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14609
14610         fcntl: Remove call-in from fchdir.m4.
14611         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14613
14614         dup3: Remove potential call-in from fchdir.m4.
14615         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14617
14618         dup2: Move AC_LIBOBJ invocation to module description.
14619         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14620         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14621         Don't invoke AC_LIBOBJ.
14622         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14623
14624         dup2: Remove call-in from fchdir.m4.
14625         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14627
14628         fclose: Move AC_LIBOBJ invocation to module description.
14629         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14630         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14631         to 1.
14632         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14633
14634         fclose: Remove call-in from close.m4.
14635         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14636         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14637
14638         close: Move AC_LIBOBJ invocation to module description.
14639         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14640         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14641         1.
14642         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14643
14644         close: Remove call-in from fchdir.m4.
14645         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14647
14648         open: Move AC_LIBOBJ invocation to module description.
14649         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14650         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14651         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14652
14653         open: Remove call-in from fchdir.m4.
14654         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14656
14657         fchdir: Start to remove gl_REPLACE_* idiom.
14658         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14659         (gl_FUNC_FCHDIR): Invoke it.
14660
14661 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14662
14663         * lib/ftell.c (ftell): Comment out cast.
14664
14665         close: use gl_REPLACE_FCLOSE only if defined
14666         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14667         is defined.  The close module doesn't depend on the fclose module
14668         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14670         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14671
14672 2011-07-24  Jim Meyering  <meyering@redhat.com>
14673
14674         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14675         * tests/test-select.h (test_function): Declare as "static".
14676
14677 2011-07-24  Bruno Haible  <bruno@clisp.org>
14678
14679         doc: Mention the effects of AC_SYS_LARGEFILE.
14680         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14681         on this function.
14682         * doc/posix-functions/aio_error.texi: Likewise.
14683         * doc/posix-functions/aio_fsync.texi: Likewise.
14684         * doc/posix-functions/aio_read.texi: Likewise.
14685         * doc/posix-functions/aio_return.texi: Likewise.
14686         * doc/posix-functions/aio_suspend.texi: Likewise.
14687         * doc/posix-functions/aio_write.texi: Likewise.
14688         * doc/posix-functions/fgetpos.texi: Likewise.
14689         * doc/posix-functions/fopen.texi: Likewise.
14690         * doc/posix-functions/freopen.texi: Likewise.
14691         * doc/posix-functions/fsetpos.texi: Likewise.
14692         * doc/posix-functions/fstatvfs.texi: Likewise.
14693         * doc/posix-functions/ftruncate.texi: Likewise.
14694         * doc/posix-functions/ftw.texi: Likewise.
14695         * doc/posix-functions/getrlimit.texi: Likewise.
14696         * doc/posix-functions/glob.texi: Likewise.
14697         * doc/posix-functions/lio_listio.texi: Likewise.
14698         * doc/posix-functions/lockf.texi: Likewise.
14699         * doc/posix-functions/mkstemp.texi: Likewise.
14700         * doc/posix-functions/mmap.texi: Likewise.
14701         * doc/posix-functions/nftw.texi: Likewise.
14702         * doc/posix-functions/openat.texi: Likewise.
14703         * doc/posix-functions/opendir.texi: Likewise.
14704         * doc/posix-functions/posix_fadvise.texi: Likewise.
14705         * doc/posix-functions/posix_fallocate.texi: Likewise.
14706         * doc/posix-functions/pread.texi: Likewise.
14707         * doc/posix-functions/pwrite.texi: Likewise.
14708         * doc/posix-functions/readdir.texi: Likewise.
14709         * doc/posix-functions/readdir_r.texi: Likewise.
14710         * doc/posix-functions/rewinddir.texi: Likewise.
14711         * doc/posix-functions/scandir.texi: Likewise.
14712         * doc/posix-functions/seekdir.texi: Likewise.
14713         * doc/posix-functions/setrlimit.texi: Likewise.
14714         * doc/posix-functions/statvfs.texi: Likewise.
14715         * doc/posix-functions/telldir.texi: Likewise.
14716         * doc/posix-functions/tmpfile.texi: Likewise.
14717         * doc/posix-functions/truncate.texi: Likewise.
14718         * doc/glibc-functions/fallocate.texi: Likewise.
14719         * doc/glibc-functions/fstatfs.texi: Likewise.
14720         * doc/glibc-functions/fts_children.texi: Likewise.
14721         * doc/glibc-functions/fts_read.texi: Likewise.
14722         * doc/glibc-functions/getdirentries.texi: Likewise.
14723         * doc/glibc-functions/mkostemp.texi: Likewise.
14724         * doc/glibc-functions/mkostemps.texi: Likewise.
14725         * doc/glibc-functions/mkstemps.texi: Likewise.
14726         * doc/glibc-functions/preadv.texi: Likewise.
14727         * doc/glibc-functions/pwritev.texi: Likewise.
14728         * doc/glibc-functions/sendfile.texi: Likewise.
14729         * doc/glibc-functions/statfs.texi: Likewise.
14730
14731 2011-07-24  Bruno Haible  <bruno@clisp.org>
14732
14733         doc: Fix typo.
14734         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14735
14736 2011-07-24  Bruno Haible  <bruno@clisp.org>
14737
14738         doc: Mention fsusage.
14739         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14740
14741 2011-07-24  Bruno Haible  <bruno@clisp.org>
14742
14743         doc: Mention new glibc headers and functions.
14744         * doc/glibc-headers/gshadow.texi: New file.
14745         * doc/glibc-functions/endsgent.texi: New file.
14746         * doc/glibc-functions/fgetsgent.texi: New file.
14747         * doc/glibc-functions/fgetsgent_r.texi: New file.
14748         * doc/glibc-functions/getsgent.texi: New file.
14749         * doc/glibc-functions/getsgent_r.texi: New file.
14750         * doc/glibc-functions/getsgnam.texi: New file.
14751         * doc/glibc-functions/getsgnam_r.texi: New file.
14752         * doc/glibc-functions/putsgent.texi: New file.
14753         * doc/glibc-functions/setsgent.texi: New file.
14754         * doc/glibc-functions/sgetsgent.texi: New file.
14755         * doc/glibc-functions/sgetsgent_r.texi: New file.
14756         * doc/glibc-functions/malloc_info.texi: New file.
14757         * doc/glibc-functions/preadv.texi: New file.
14758         * doc/glibc-functions/pwritev.texi: New file.
14759         * doc/glibc-functions/register_printf_modifier.texi: New file.
14760         * doc/glibc-functions/register_printf_specifier.texi: New file.
14761         * doc/glibc-functions/register_printf_type.texi: New file.
14762         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14763         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14764         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14765         * doc/glibc-functions/pthread_getname_np.texi: New file.
14766         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14767         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14768         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14769         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14770         * doc/glibc-functions/pthread_setname_np.texi: New file.
14771         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14772         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14773         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14774         * doc/glibc-functions/qsort_r.texi: New file.
14775         * doc/glibc-functions/quick_exit.texi: New file.
14776         * doc/glibc-functions/syncfs.texi: New file.
14777         * doc/gnulib.texi: Include them.
14778         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14779         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14780         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14781         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14782         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14783         * doc/glibc-functions/execvpe.texi: Likewise.
14784
14785 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14786
14787         ftell: don't include <unistd.h>
14788         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14789         guaranteed to define off_t, and the ftell module depends on the
14790         stdio module.
14791
14792         ftell: do not assume wraparound signed arithmetic
14793         * lib/ftell.c: Include <limits.h>.
14794         (ftell): Don't assume wraparound signed arithmetic.
14795
14796 2011-07-24  Bruno Haible  <bruno@clisp.org>
14797
14798         close: No longer depend on module 'fclose'.
14799         * modules/close (Depends-on): Remove fclose.
14800         * NEWS: Mention the change.
14801         Suggested by Sam Steingold <sds@gnu.org>.
14802
14803 2011-07-24  Bruno Haible  <bruno@clisp.org>
14804
14805         fsusage: Enable large volume support on AIX >= 5.2.
14806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14807         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14808         instead of STAT_STATVFS.
14809         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14810
14811         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14813         f_blocks field only on MacOS X.
14814
14815         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14817         * modules/fsusage (Depends-on): Add largefile.
14818
14819 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14820
14821         * README: Modernize discussion of signed integers.
14822         Assuming overflow wraparound is no longer safe.
14823         Mention ones' complement and signed magnitude.
14824
14825 2011-07-22  Bruno Haible  <bruno@clisp.org>
14826
14827         select tests, pselect tests: Refactor.
14828         * tests/test-select.h: New file, extracted from tests/test-select.c.
14829         (select_fn): New type.
14830         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14831         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14832         test_pipe): Add my_select argument.
14833         (test_function): Renamed from main. Add my_select argument.
14834         * tests/test-select.c: Move most code to tests/test-select.h. Include
14835         test-select.h.
14836         * modules/select-tests (Files): Add tests/test-select.h.
14837         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14838         (my_select, main): New functions.
14839         * modules/pselect-tests (Files): Add tests/test-select.h,
14840         tests/macros.h, tests/signature.h.
14841         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14842         (configure.ac): Check for <sys/wait.h>.
14843
14844 2011-07-22  Bruno Haible  <bruno@clisp.org>
14845
14846         sys_select tests: Check the signature of FD_*.
14847         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14848         signature tests from here...
14849         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14850         here.
14851         * modules/sys_select-tests (Files): Add tests/signature.h.
14852
14853 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14854
14855         largefile: new module, replacing large-inode
14856         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14857         * MODULES.html.sh: Add largefile, remove large-inode.
14858         * modules/largefile, m4/largefile.m4: New files.
14859         * modules/large-inode, m4/large-inode.m4: Remove.
14860
14861         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14862         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14863         implementations that use only 32 bits to count blocks.
14864         On typical hosts with 1024-byte blocks, this fails with file
14865         systems as small as 4 TiB.  Problem reported by Herb Wartens
14866         <http://debbugs.gnu.org/9140> and this should also fix a similar
14867         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14868
14869         large-inode: New module
14870         * MODULES.html.sh: Add it.
14871         * modules/large-inode, m4/large-inode.m4: New files.
14872
14873         extensions: Enable extensions on MacOS X 10.5 and later.
14874         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14875
14876 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14877
14878         file-has-acl: use acl_extended_file_nofollow if available
14879         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14880         (acl_extended_file): New macro.
14881         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14882         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14883
14884 2011-07-21  Bruno Haible  <bruno@clisp.org>
14885
14886         Declare system functions in a way that works with C++.
14887         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14888         declare fdopendir as extern "C".
14889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14890         declare frexpl as extern "C".
14891         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14892         declare gai_strerror as extern "C".
14893         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14894         programs, declare gai_strerror as extern "C".
14895         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14896         declare getlogin_r as extern "C".
14897         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14898         as extern "C".
14899         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14900         declare ldexpl as extern "C".
14901         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14902         as extern "C".
14903         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14904         program, declare getmntinfo as extern "C".
14905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14906         stpncpy as extern "C".
14907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14908         program, declare __xpg_strerror_r as extern "C".
14909         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14910         strndup as extern "C".
14911         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14912         declare memset and bzero as extern "C".
14913         Reported by Sam Steingold <sds@gnu.org>.
14914
14915 2011-07-12  Jim Meyering  <meyering@redhat.com>
14916
14917         maint.mk: prohibit inclusion of "verify.h" without use
14918         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14919
14920 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14921
14922         timer-time: A new module to check for timer_settime()
14923         * m4/timer_time.m4: Check for the posix function.
14924         * modules/timer-time: Add the new module.
14925         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14926         Mention it.
14927
14928 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14929             Bruno Haible  <bruno@clisp.org>
14930
14931         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14932         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14933         not defined, assume POSIX threads and look for pthread_sigmask in
14934         $LIBS, without changing $CPPFLAGS.
14935
14936 2011-07-19  Bruno Haible  <bruno@clisp.org>
14937
14938         strstr: Update cross-compilation guess.
14939         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14940         CPUs, guess no, in view of glibc
14941         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14942         Suggested by Eric Blake. Reported by Reuben Thomas.
14943
14944 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14945
14946         getopt-gnu: suppress core dumps from detection code
14947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14948         to suppress core dumps that may well occur on glibc systems.
14949         * modules/getopt-gnu: Depend on nocrash.
14950
14951 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14952
14953         pthread_sigmask: ensure usleep is declared
14954         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14955         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14956
14957 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14958
14959         doc: Document NonStop portability issues.
14960         * doc/posix-functions/sigaction.texi (sigaction):
14961         * doc/posix-headers/signal.texi (signal.h):
14962         Document NonStop.  See Joachim Schmitz in
14963         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14964
14965 2011-07-15  Bruno Haible  <bruno@clisp.org>
14966
14967         ffsl, ffsll: Avoid unportable behaviour.
14968         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14969
14970 2011-07-15  Bruno Haible  <bruno@clisp.org>
14971
14972         ffs: More tests.
14973         * tests/test-ffs.c (NBITS): New macro.
14974         (main): Add more tests.
14975         * tests/test-ffsl.c (NBITS): New macro.
14976         (main): Add more tests.
14977         * tests/test-ffsll.c (NBITS): New macro.
14978         (main): Add more tests.
14979
14980 2011-07-15  Eric Blake  <eblake@redhat.com>
14981
14982         ffsl, ffsll: new modules
14983         * modules/ffsl: New file.
14984         * modules/ffsll: Likewise.
14985         * m4/ffsl.m4: Likewise.
14986         * m4/ffsll.m4: Likewise.
14987         * lib/ffsl.c: Likewise.
14988         * lib/ffsl.h: Likewise.
14989         * lib/ffsll.c: Likewise.
14990         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14991         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14992         * modules/string (Makefile.am): Substitute witnesses.
14993         * lib/strings.in.h (ffsl, ffsll): Declare.
14994         * modules/ffsl-tests: New test file.
14995         * modules/ffsll-tests: Likewise.
14996         * tests/test-ffsl.c: Likewise.
14997         * tests/test-ffsll.c: Likewise.
14998         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14999         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15000         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15001
15002         ffs: fix m4 prerequisite
15003         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15004
15005         ffs: avoid undefined behavior
15006         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15007         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15008         Reported by Bruno Haible.
15009
15010 2011-07-12  Bruno Haible  <bruno@clisp.org>
15011
15012         pthread_sigmask: Rely on module 'threadlib'.
15013         * modules/pthread_sigmask (Depends-on): Add threadlib.
15014         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15015         is defined.
15016
15017 2011-07-12  Bruno Haible  <bruno@clisp.org>
15018
15019         regex: Depend on module 'strcase'.
15020         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15021
15022 2011-07-12  Jim Meyering  <meyering@redhat.com>
15023
15024         warn-on-use: fix typo in file name
15025         * modules/snippet/warn-on-use (Files): Correct file name:
15026         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15027
15028 2011-07-12  Bruno Haible  <bruno@clisp.org>
15029
15030         strings: Document module.
15031         * doc/posix-headers/strings.texi: Mention module 'strings'.
15032
15033 2011-07-12  Bruno Haible  <bruno@clisp.org>
15034
15035         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15036         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15037         (Files, Makefile.am): Update.
15038         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15039         * modules/stdlib (Depends-on): Update.
15040
15041 2011-07-12  Bruno Haible  <bruno@clisp.org>
15042
15043         * NEWS: Mention the changes.
15044
15045         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15046         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15047         (Files, Makefile.am): Update.
15048         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15049         * modules/arpa_inet (Depends-on): Update.
15050         * modules/ctype (Depends-on): Update.
15051         * modules/dirent (Depends-on): Update.
15052         * modules/fcntl-h (Depends-on): Update.
15053         * modules/glob (Depends-on): Update.
15054         * modules/iconv-h (Depends-on): Update.
15055         * modules/inttypes-incomplete (Depends-on): Update.
15056         * modules/langinfo (Depends-on): Update.
15057         * modules/locale (Depends-on): Update.
15058         * modules/math (Depends-on): Update.
15059         * modules/netdb (Depends-on): Update.
15060         * modules/poll-h (Depends-on): Update.
15061         * modules/pty (Depends-on): Update.
15062         * modules/search (Depends-on): Update.
15063         * modules/signal (Depends-on): Update.
15064         * modules/spawn (Depends-on): Update.
15065         * modules/stdio (Depends-on): Update.
15066         * modules/stdlib (Depends-on): Update.
15067         * modules/string (Depends-on): Update.
15068         * modules/strings (Depends-on): Update.
15069         * modules/sys_file (Depends-on): Update.
15070         * modules/sys_ioctl (Depends-on): Update.
15071         * modules/sys_select (Depends-on): Update.
15072         * modules/sys_socket (Depends-on): Update.
15073         * modules/sys_stat (Depends-on): Update.
15074         * modules/sys_time (Depends-on): Update.
15075         * modules/sys_times (Depends-on): Update.
15076         * modules/sys_utsname (Depends-on): Update.
15077         * modules/sys_wait (Depends-on): Update.
15078         * modules/termios (Depends-on): Update.
15079         * modules/time (Depends-on): Update.
15080         * modules/unistd (Depends-on): Update.
15081         * modules/wchar (Depends-on): Update.
15082         * modules/wctype-h (Depends-on): Update.
15083         * MODULES.html.sh (Support for building libraries and executables):
15084         Update.
15085
15086         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15087         * modules/snippet/unused-parameter: Renamed from
15088         modules/unused-parameter.
15089         (Files, Makefile.am): Update.
15090         * build-aux/snippet/unused-parameter.h: Renamed from
15091         build-aux/unused-parameter.h.
15092         * modules/selinux-h (Depends-on): Update.
15093         * modules/unistr/base (Depends-on): Update.
15094         * MODULES.html.sh (Core language properties): Update.
15095
15096         Rename module 'link-warning' to 'snippet/link-warning'.
15097         * modules/snippet/link-warning: Renamed from modules/link-warning.
15098         (Files, Makefile.am): Update.
15099         * build-aux/snippet/link-warning.h: Renamed from
15100         build-aux/link-warning.h.
15101         * MODULES.html.sh (Support for building libraries and executables):
15102         Update.
15103
15104         Rename module 'c++defs' to 'snippet/c++defs'.
15105         * modules/snippet/c++defs: Renamed from modules/c++defs.
15106         (Files, Makefile.am): Update.
15107         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15108         * modules/arpa_inet (Depends-on): Update.
15109         * modules/ctype (Depends-on): Update.
15110         * modules/dirent (Depends-on): Update.
15111         * modules/fcntl-h (Depends-on): Update.
15112         * modules/glob (Depends-on): Update.
15113         * modules/iconv-h (Depends-on): Update.
15114         * modules/langinfo (Depends-on): Update.
15115         * modules/locale (Depends-on): Update.
15116         * modules/math (Depends-on): Update.
15117         * modules/netdb (Depends-on): Update.
15118         * modules/poll-h (Depends-on): Update.
15119         * modules/pty (Depends-on): Update.
15120         * modules/search (Depends-on): Update.
15121         * modules/signal (Depends-on): Update.
15122         * modules/spawn (Depends-on): Update.
15123         * modules/stdio (Depends-on): Update.
15124         * modules/stdlib (Depends-on): Update.
15125         * modules/string (Depends-on): Update.
15126         * modules/strings (Depends-on): Update.
15127         * modules/sys_ioctl (Depends-on): Update.
15128         * modules/sys_select (Depends-on): Update.
15129         * modules/sys_socket (Depends-on): Update.
15130         * modules/sys_stat (Depends-on): Update.
15131         * modules/sys_time (Depends-on): Update.
15132         * modules/sys_wait (Depends-on): Update.
15133         * modules/termios (Depends-on): Update.
15134         * modules/time (Depends-on): Update.
15135         * modules/unistd (Depends-on): Update.
15136         * modules/wchar (Depends-on): Update.
15137         * modules/wctype-h (Depends-on): Update.
15138
15139         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15140         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15141         (Files, Makefile.am): Update.
15142         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15143         * modules/argv-iter (Depends-on): Update.
15144         * modules/arpa_inet (Depends-on): Update.
15145         * modules/dirent (Depends-on): Update.
15146         * modules/fcntl-h (Depends-on): Update.
15147         * modules/fnmatch (Depends-on): Update.
15148         * modules/getopt-posix (Depends-on): Update.
15149         * modules/glob (Depends-on): Update.
15150         * modules/iconv-h (Depends-on): Update.
15151         * modules/inttypes-incomplete (Depends-on): Update.
15152         * modules/locale (Depends-on): Update.
15153         * modules/math (Depends-on): Update.
15154         * modules/netdb (Depends-on): Update.
15155         * modules/search (Depends-on): Update.
15156         * modules/signal (Depends-on): Update.
15157         * modules/spawn (Depends-on): Update.
15158         * modules/stdio (Depends-on): Update.
15159         * modules/stdlib (Depends-on): Update.
15160         * modules/string (Depends-on): Update.
15161         * modules/strings (Depends-on): Update.
15162         * modules/sys_socket (Depends-on): Update.
15163         * modules/sys_stat (Depends-on): Update.
15164         * modules/sys_time (Depends-on): Update.
15165         * modules/sys_times (Depends-on): Update.
15166         * modules/sys_utsname (Depends-on): Update.
15167         * modules/time (Depends-on): Update.
15168         * modules/unistd (Depends-on): Update.
15169         * modules/wchar (Depends-on): Update.
15170         * MODULES.html.sh (Support for building libraries and executables):
15171         Update.
15172
15173 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15174
15175         Improvements on _Noreturn and related modules.
15176
15177         modules/_Exit-tests: test _Noreturn too
15178         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15179         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15180         (main): Use them.
15181
15182         stdnoreturn, stdnoreturn-tests: remove modules
15183         They're not needed here and a bit premature for use elsewhere.  See
15184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15185         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15186         * tests/test-stdnoreturn.c: Remove files.
15187         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15188         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15189         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15190         and using noreturn.
15191         * modules/openat, modules/sigpipe-die, modules/xalloc:
15192         * modules/xmemdup0, modules/xstrtol:
15193         Remove dependency on stdnoreturn.
15194
15195         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15196         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15197         Reparenthesize to avoid GCC warning.
15198         Support Microsoft's syntax.
15199         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15200
15201         _Noreturn-tests: remove module
15202         * modules/_Noreturn-tests: Remove.
15203         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15204         * tests/test-_Noreturn.c: Remove.
15205         * tests/test-stdnoreturn.c: Merge from the old
15206         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15207
15208 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15209
15210         _Noreturn, stdnoreturn, and related modules.
15211
15212         * top/maint.mk: Adjust to new noreturn support.
15213         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15214         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15215
15216         xalloc: use stdnoreturn.h
15217         * lib/xalloc.h: Include <stdnoreturn.h>.
15218         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15219         * modules/xalloc (Depends-on): Add stdnoreturn.
15220
15221         xstrtol: use stdnoreturn.h
15222         * lib/xstrtol.h: Include <stdnoreturn.h>.
15223         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15224         * modules/xstrtol (Depends-on): Add stdnoreturn.
15225
15226         xmemdup0: use stdnoreturn.h
15227         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15228         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15229         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15230
15231         sigpipe-die: use stdnoreturn.h
15232         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15233         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15234         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15235
15236         openat: use stdnoreturn.h
15237         * lib/openat.h: Include <stdnoreturn.h>.
15238         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15239         * modules/openat (Depends-on): Add stdnoreturn.
15240
15241         * lib/openat-die.c (openat_save_fail): Modernize comment.
15242
15243         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15244
15245         * lib/glthread/thread.h: Modernize comment.
15246
15247         obstack: use _Noreturn
15248         * lib/obstack.c (__attribute__): Remove macro.
15249         (print_and_abort): Use _Noreturn.
15250
15251         c-stack: use _Noreturn
15252         * lib/c-stack.c (die, overflow_handler, segv_handler):
15253         Use _Noreturn rather than __attribute__((noreturn)).
15254
15255         argmatch-tests, exclude_tests: use _Noreturn
15256         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15257         Remove.
15258         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15259
15260         stdlib: use _Noreturn
15261         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15262         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15263         * modules/stdlib (Depends-on): Add _Noreturn.
15264         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15265
15266         stdnoreturn-tests: new module
15267         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15268
15269         stdnoreturn: new module
15270         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15271         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15272
15273         _Noreturn-tests: new module
15274         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15275
15276         _Noreturn: new module
15277         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15278         New section, mentioning it.
15279         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15280
15281         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15282
15283 2011-07-11  Eric Blake  <eblake@redhat.com>
15284
15285         ffs: new module
15286         * modules/ffs: New file.
15287         * m4/ffs.m4: Likewise.
15288         * lib/ffs.c: Likewise.
15289         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15290         * modules/strings (Makefile.am): Substitute witness.
15291         (Depends-on): Add c++defs.
15292         * lib/strings.in.h (ffs): Declare.
15293         * modules/ffs-tests: New test file.
15294         * tests/test-ffs.c: Test new module.
15295         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15296         * doc/posix-functions/ffs.texi (ffs): Likewise.
15297
15298         regex: avoid compiler warning
15299         * lib/regex.c (includes): Include <strings.h>, for use of
15300         strcasecmp in regcomp.c.
15301         Reported by Joachim Schmitz.
15302
15303 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15304
15305         stdint: respect system's intmax_t if INTMAX_MAX
15306         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15307         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15308         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15309         long but int64_t is long long, and where we will clash with the
15310         system intmax_t if we override it.  See
15311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15312         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15313         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15314         similarly for UINTMAX_C.
15315
15316 2011-07-08  Bruno Haible  <bruno@clisp.org>
15317
15318         pthread_sigmask tests: Avoid a compiler warning.
15319         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15320         non-zero.
15321
15322         sigprocmask tests: A better way to avoid a compiler warning.
15323         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15324         (main): Complain if system() returns non-zero.
15325         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15326
15327 2011-07-08  Bruno Haible  <bruno@clisp.org>
15328
15329         pthread_sigmask: Work around IRIX bug.
15330         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15331         bug.
15332         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15333         there may be unblocked pending signals.
15334         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15335
15336 2011-07-08  Bruno Haible  <bruno@clisp.org>
15337
15338         pthread_sigmask: Work around Cygwin bug.
15339         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15340         bug.
15341         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15342         the system's pthread_sigmask function.
15343         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15344
15345 2011-07-08  Bruno Haible  <bruno@clisp.org>
15346
15347         pthread_sigmask: Work around bug in single-threaded implementation.
15348         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15349         FreeBSD, HP-UX, Solaris bug.
15350         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15351         * lib/pthread_sigmask.c: Include <stddef.h>.
15352         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15353         the system's pthread_sigmask function.
15354         * modules/pthread_sigmask (configure.ac): Invoke
15355         gl_PREREQ_PTHREAD_SIGMASK.
15356         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15357         HP-UX, Solaris.
15358
15359 2011-07-08  Eric Blake  <eblake@redhat.com>
15360
15361         test-sigprocmask: avoid compiler warning
15362         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15363         * tests/test-sigprocmask.c (main): Use it to silence warning.
15364         Reported by Jim Meyering.
15365
15366         test-snprintf: avoid compiler warning
15367         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15368         * tests/test-vsnprintf.c (main): Likewise.
15369         Reported by Jim Meyering.
15370
15371 2011-07-08  Bruno Haible  <bruno@clisp.org>
15372
15373         Tests for module 'pthread_sigmask'.
15374         * modules/pthread_sigmask-tests: New file.
15375         * tests/test-pthread_sigmask1.c: New file, based on
15376         tests/test-sigprocmask.c.
15377         * tests/test-pthread_sigmask2.c: New file.
15378
15379 2011-07-08  Jim Meyering  <meyering@redhat.com>
15380
15381         test-getopt.h: avoid warning about an unused variable
15382         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15383
15384 2011-07-07  Jim Meyering  <meyering@redhat.com>
15385
15386         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15387         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15388         now that it no longer contains leading TABs.
15389         Remove unused "url=FIXME" statement.
15390
15391 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15392
15393         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15394         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15395         When gl_THREADLIB is not in use, assume that the POSIX sematics
15396         are desired.  This is better for Emacs, which uses POSIX semantics
15397         on GNUish and/or POSIXish platforms, and does not use threads at
15398         all otherwise.
15399
15400         pthread_sigmask: fix typo when testing for libraries
15401         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15402         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15403
15404 2011-07-08  Eric Blake  <eblake@redhat.com>
15405
15406         fts: introduce FTS_NOATIME
15407         * lib/fts_.h (FTS_NOATIME): New bit flag.
15408         (FTS_OPTIONMASK): Adjust.
15409         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15410         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15411
15412 2011-07-08  Bruno Haible  <bruno@clisp.org>
15413
15414         Tests for module 'thread'.
15415         * modules/thread-tests: New file.
15416         * tests/test-thread_self.c: New file.
15417         * tests/test-thread_create.cc: New file.
15418
15419 2011-07-08  Bruno Haible  <bruno@clisp.org>
15420
15421         thread: Avoid gcc warnings when using gl_thread_self().
15422         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15423         'void *'.
15424         (gl_thread_self_pointer): Update.
15425
15426 2011-07-07  Bruno Haible  <bruno@clisp.org>
15427
15428         signal-c++-tests: Check declaration of pthread_sigmask.
15429         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15430         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15431         $(LIB_PTHREAD_SIGMASK).
15432
15433 2011-07-07  Bruno Haible  <bruno@clisp.org>
15434
15435         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15436         * lib/signal.in.h (pthread_sigmask): Override if
15437         REPLACE_PTHREAD_SIGMASK is 1.
15438         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15439         REPLACE_PTHREAD_SIGMASK.
15440         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15441         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15442         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15443         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15444         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15445
15446 2011-07-07  Bruno Haible  <bruno@clisp.org>
15447
15448         pthread_sigmask: Ensure declaration in <signal.h>.
15449         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15450         include <pthread.h>.
15451         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15452         problem.
15453
15454 2011-07-07  Bruno Haible  <bruno@clisp.org>
15455
15456         pthread_sigmask: Document the module.
15457         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15458
15459 2011-07-07  Bruno Haible  <bruno@clisp.org>
15460
15461         pthread_sigmask: Follow gnulib conventions.
15462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15463         gl_PTHREAD_SIGMASK.
15464         * modules/pthread_sigmask (configure.ac): Update.
15465
15466 2011-07-07  Bruno Haible  <bruno@clisp.org>
15467
15468         pthread_sigmask: Make declaration C++ safe.
15469         * lib/signal.in.h: In two special conditions, just do an #include_next.
15470         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15471         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15472         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15473         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15474         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15475         not REPLACE_PTHREAD_MASK.
15476         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15477         not REPLACE_PTHREAD_MASK.
15478         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15479
15480 2011-07-07  Bruno Haible  <bruno@clisp.org>
15481
15482         pthread_sigmask: Fix return value.
15483         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15484         * lib/pthread_sigmask.c: New file.
15485         * modules/pthread_sigmask (Files): Add it.
15486         (configure.ac): Invoke AC_LIBOBJ.
15487
15488 2011-07-07  Eric Blake  <eblake@redhat.com>
15489
15490         getopt: more portable argv creation
15491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15492         const, use char arrays rather than strings.
15493         Suggested by Paul Eggert.
15494
15495 2011-07-07  Bruno Haible  <bruno@clisp.org>
15496
15497         Tests for module 'sigprocmask'.
15498         * modules/sigprocmask-tests: New file.
15499         * tests/test-sigprocmask.c: New file.
15500
15501 2011-07-07  Bruno Haible  <bruno@clisp.org>
15502
15503         float tests: Tweak.
15504         * tests/test-float.c (main): Tweak skip message.
15505
15506 2011-07-07  Eric Blake  <eblake@redhat.com>
15507
15508         getopt: avoid compiler warning during configure
15509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15510         assigning string literals to non-const pointer.
15511
15512         getopt-gnu: avoid crash in glibc getopt
15513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15514         * tests/test-getopt.h (test_getopt): Enhance test.
15515         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15516         * doc/posix-functions/getopt.texi (getopt): Document it.
15517         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15518         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15519         Likewise.
15520
15521 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15522
15523         getopt: handle W; without long options in getopt [BZ #12922]
15524         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15525         but no long options are defined, just return 'W'.
15526
15527 2011-07-07  Bruno Haible  <bruno@clisp.org>
15528
15529         Avoid literal tabs.
15530         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15531         variable containing a tab instead of a literal tab.
15532         Reported by Jim Meyering.
15533
15534 2011-07-07  Bruno Haible  <bruno@clisp.org>
15535
15536         Comments.
15537         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15538
15539 2011-07-06  Bruno Haible  <bruno@clisp.org>
15540
15541         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15542         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15543         <winsock2.h>.
15544         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15545         lib/sys_socket.in.h.
15546         (close, gethostname): Hide declarations from <winsock2.h>.
15547         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15548         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15549         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15550         (select): Don't override if gnulib's <sys/select.h> was already
15551         included.
15552         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15553         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15554         setsockopt, shutdown, select): Tweak indentation.
15555
15556 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15557
15558         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15559         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15560         in an application that does not use the sys_select module.
15561
15562 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15563
15564         poll: do not return 0 on timeout=-1
15565         * lib/poll.c: Loop with yield if no events occurred.
15566
15567 2011-07-06  Eric Blake  <eblake@redhat.com>
15568
15569         pthread_sigmask: always replace when not using pthread
15570         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15571         replacement when using some threading other than pthread.  Fix
15572         logic bug.
15573
15574 2011-07-06  Bruno Haible  <bruno@clisp.org>
15575
15576         Comments.
15577         * m4/printf.m4: Update comments about mingw.
15578
15579 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15580
15581         sys_select: define sigset_t more portably
15582         * lib/sys_select.in.h: Always include <sys/types.h>, since
15583         we now need sigset_t and mingw defines it there.
15584         Include <signal.h> before split inclusion guard, to avoid
15585         mishaps on Solaris, whose <signal.h> eventually includes us.
15586         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15587         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15588         which come from ...
15589         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15590         gl_CHECK_TYPE_SIGSET_T.
15591         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15592         does the real work.
15593         * modules/sys_select (Depends-on): Add 'signal'.
15594
15595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15596         Suggested by Bruno Haible.
15597
15598         pselect: Use pthread_sigmask, not sigprocmask.
15599         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15600         multithreaded apps better than sigprocmask does.
15601         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15602         sigprocmask directly.
15603
15604 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15605
15606         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15607         Don't #undef,  since we don't need any underlying pselect.
15608         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15609         (Depends-on): Add select.
15610         (Link): Add $(LIBSOCKET).
15611         These changes suggested by Bruno Haible.
15612
15613         pselect: document better
15614         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15615         * doc/posix-functions/pselect.texi (pselect): Document new module.
15616
15617         pthread_sigmask: new module
15618         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15619         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15620         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15621         This is done only as a macro; I don't know how well that'll
15622         work for C++.  Move <sys/types.h> include before the include_next,
15623         to avoid mishap on Solaris.
15624         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15625         * modules/signal (Makefile.am): Substitute the check's results.
15626         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15627
15628         test-pselect: new module
15629         * modules/pselect-tests, tests/test-pselect.c: New files.
15630         * tests/test-select.c, tests/test-sys_select-c++.cc:
15631         If TEST_PSELECT is defined, test pselect instead of testing select.
15632
15633         * tests/test-sys_select.c (sigset_t): Test for it, too.
15634         Suggested by Bruno Haible.
15635
15636 2011-07-05  Eric Blake  <eblake@redhat.com>
15637
15638         snprintf: guarantee %1$d, for libintl
15639         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15640         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15641         * doc/posix-functions/snprintf.texi (snprintf): Update.
15642         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15643         * tests/test-snprintf.c (main): Enhance test.
15644         * tests/test-vsnprintf.c (main): Likewise.
15645
15646 2011-07-05  Jim Meyering  <meyering@redhat.com>
15647
15648         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15649         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15650         per Bruno's request, to accommodate this idiom (no space after "#")
15651         even when the function is inside an #if block:
15652         char *
15653         gets (char *s)
15654         #undef gets
15655         {
15656           ...
15657         }
15658
15659 2011-07-04  Jim Meyering  <meyering@redhat.com>
15660
15661         maint: indent with spaces, not TABs, and add a rule to check this
15662         * tests/test-userspec.c: Indent with spaces, not TABs.
15663         * tests/test-argp.c: Likewise.
15664         * tests/test-c-stack2.sh: Likewise.
15665         * tests/test-parse-duration.sh: Likewise
15666         * m4/strtod.m4: Likewise.
15667         * m4/alloca.m4: Likewise.
15668         * m4/pselect.m4: Likewise.
15669         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15670
15671 2011-07-03  Jim Meyering  <meyering@redhat.com>
15672
15673         maint.mk: correct omissions in prohibit_argmatch_without_use check
15674         This rule would mistakenly report that argmatch.h is included without
15675         use even when both the argmatch and invalid_arg macro were used.
15676         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15677         of argmatch and invalid_arg.
15678
15679 2011-07-03  Bruno Haible  <bruno@clisp.org>
15680
15681         Comments about EINTR.
15682         * lib/safe-read.h: Explain the purpose of this module.
15683         * lib/safe-write.h: Likewise.
15684         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15685         module.
15686         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15687         module.
15688         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15689
15690 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15691
15692         xnanosleep: Rewrite to use new dtotimespec module.
15693         It has the conversion code that used to be in xnanosleep.
15694         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15695         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15696         (TIME_T_MAX): Remove.
15697         (xnanosleep): Rewrite in terms of dtotimespec.
15698         * modules/xnanosleep (Depends-on): Add dtotimespec.
15699         Remove intprops, stdbool.
15700
15701         timespec-add, timespec-sub: new modules
15702         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15703         * lib/timespec-add.c, lib/timespec-sub.c:
15704         * modules/timespec-add, modules/timespec-sub: New files.
15705
15706         dtotimespec: new module
15707         * lib/timespec.h (dtotimespec): New decl.
15708         * lib/dtotimespec.c, modules/dtotimespec: New files.
15709
15710         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15711
15712         pselect: new module
15713         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15714         (pselect): New decls.
15715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15716         since the standard pselect decl uses 'restrict'.
15717         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15718         HAVE_PSELECT, REPLACE_PSELECT.
15719         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15720         HAVE_PSELECT, REPLACE_PSELECT.
15721         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15722
15723         sys_select: don't depend on sys_socket
15724         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15726         This fix works on GNU and GNU-like platforms, but has not been tested
15727         on native Windows.
15728         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15729         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15730         gl_HEADER_SYS_SOCKET.
15731         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15732         gl_PREREQ_SYS_H_WINSOCK2.
15733
15734 2011-06-29  Eric Blake  <eblake@redhat.com>
15735
15736         pipe2: fix C89 compile problem
15737         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15738         Reported by Bruno Haible.
15739
15740         pipe, pipe2: don't corrupt fd on error
15741         * lib/pipe.c (pipe): Leave fd unchanged on error.
15742         * lib/pipe2.c (pipe2): Likewise.
15743         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15744         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15745
15746 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15747
15748         mmap-anon: do not use regular expressions inadvertently
15749         * m4/mmap-anon.m4: Remove trailing period from strings sought
15750         in the output.
15751
15752 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15753
15754         nanosleep: fix integer overflow problem
15755         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15756         arithmetic wraps around on overflow.
15757
15758         nanosleep: simplify carrying
15759         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15760         first call to the underyling nanosleep, not for the last one.
15761         This doesn't fix any bugs, but it simplifies the computation of
15762         the remaining delay.  Found while auditing integer overflow issues.
15763
15764         dup2: remove test for existence of fcntl
15765         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15766         "#if HAVE_FCNTL", in the configure-time test program.
15767         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15768         and therefore speeds up "configure" a bit.  Found while
15769         adding the dup2 module to Emacs.
15770
15771 2011-06-24  Eric Blake  <eblake@redhat.com>
15772
15773         maint.mk: enhance useless header checks
15774         * top/maint.mk (_sc_header_without_use): Check both include
15775         styles.
15776         (sc_prohibit_assert_without_use)
15777         (sc_prohibit_close_stream_without_use)
15778         (sc_prohibit_getopt_without_use)
15779         (sc_prohibit_quotearg_without_use)
15780         (sc_prohibit_quote_without_use)
15781         (sc_prohibit_long_options_without_use)
15782         (sc_prohibit_inttostr_without_use)
15783         (sc_prohibit_ignore_value_without_use)
15784         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15785         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15786         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15787         (sc_prohibit_hash_pjw_without_use)
15788         (sc_prohibit_safe_read_without_use)
15789         (sc_prohibit_argmatch_without_use)
15790         (sc_prohibit_canonicalize_without_use)
15791         (sc_prohibit_root_dev_ino_without_use)
15792         (sc_prohibit_openat_without_use)
15793         (sc_prohibit_c_ctype_without_use)
15794         (sc_prohibit_signal_without_use)
15795         (sc_prohibit_stdio--_without_use)
15796         (sc_prohibit_stdio-safer_without_use)
15797         (sc_prohibit_strings_without_use)
15798         (sc_prohibit_intprops_without_use)
15799         (sc_prohibit_stddef_without_use)
15800         (sc_prohibit_xfreopen_without_use): Update clients.
15801
15802 2011-06-24  Jim Meyering  <meyering@redhat.com>
15803
15804         syntax-check: keep one maint.mk rule in sync with its header
15805         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15806         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15807         I prefer to avoid temporary files here, so use <(...), but that
15808         is not supported by /bin/sh, so...
15809         (SHELL): Define to /bin/bash.
15810
15811 2011-06-24  Eric Blake  <eblake@redhat.com>
15812
15813         maint.mk: update sc_prohibit_intprops_without_use
15814         * top/maint.mk (_intprops_names): Match recent changes.
15815
15816 2011-06-24  Bruno Haible  <bruno@clisp.org>
15817
15818         strerror-override: No-op tweak.
15819         * lib/strerror-override.h (strerror_override): Reorder conditions,
15820         for consistency with lib/strerror-override.c.
15821
15822 2011-06-23  Eric Blake  <eblake@redhat.com>
15823
15824         maint.mk: test further PATH_MAX issues
15825         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15826         (sc_prohibit_path_max_allocation): ...and also test alloca.
15827         Suggested by Jim Meyering.
15828
15829 2011-06-22  Eric Blake  <eblake@redhat.com>
15830
15831         maint.mk: add syntax-check to avoid char[PATH_MAX]
15832         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15833
15834         stat: be robust to PATH_MAX definition
15835         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15836         * modules/stat (Depends-on): Add verify.
15837
15838         link: work around IRIX bug
15839         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15840         * lib/link.c (rpl_link): Work around it.
15841         * tests/test-link.h (test_link): Enhance test.
15842         * doc/posix-functions/link.texi (link): Document the bug.
15843
15844         getopt: silence clang warning
15845         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15846         dereference.
15847         Reported by Gustavo Martin Domato.
15848
15849 2011-06-22  Jim Meyering  <meyering@redhat.com>
15850
15851         bootstrap: do not insert a blank line into each .gitignore file
15852         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15853
15854 2011-06-21  Eric Blake  <eblake@redhat.com>
15855
15856         perror: test for output mismatch
15857         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15858         perror on IRIX.
15859
15860         strerror_r: fix OpenBSD behavior on out-of-range
15861         * lib/strerror_r.c (strerror_r): Always use maximal string.
15862         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15863
15864         strerror_r: fix OpenBSD behavior on 0
15865         * lib/strerror-override.c (strerror_override): Also override 0
15866         when needed.
15867         * lib/strerror-override.h (strerror_override): Likewise.
15868         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15869         earlier.
15870         * lib/strerror_r.c (strerror_r): Likewise.
15871         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15872         behavior...
15873         (gl_FUNC_STRERROR_0): ...into new macro.
15874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15875         is overridden.
15876         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15877         * modules/strerror-override (Files): Add strerror.m4.
15878         (configure.ac): Also provide override for 0 when needed.
15879         * doc/posix-functions/strerror.texi (strerror): Document this.
15880         * doc/posix-functions/perror.texi (perror): Likewise.
15881
15882         perror: adjust array size
15883         * modules/perror (Depends-on): Add strerror-override.
15884         * lib/perror.c (perror): Use it to avoid magic number.
15885
15886         strerror-override: reduce size
15887         * lib/strerror-override.c (strerror_override): Use fewer lines.
15888
15889 2011-06-20  Bruno Haible  <bruno@clisp.org>
15890
15891         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15892         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15893
15894 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15895
15896         alloca: port to compilers that can optimize like GCC 4.6.0
15897         * lib/alloca.c (find_stack_direction): New signature, taken from
15898         Autoconf git.  This works with GCC 4.6.0.  This code should never
15899         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15900         be used with other compilers that optimize as well as GCC 4.6.0 does.
15901         (alloca): Adjust to new signature.
15902         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15903         New macro, which patches Autoconf in a similar way.
15904
15905         c-stack: stop worrying about stack direction
15906         * lib/c-stack.c (find_stack_direction): Remove.
15907         (segv_handler): Don't worry about stack direction growth, as it's
15908         too much of a pain to configure this correctly, given how compilers
15909         are optimizing-away our stack-growth detection code.  Instead, assume
15910         that any access to just before or just after the stack is OK.
15911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15912         Don't require AC_FUNC_ALLOCA; no longer needed.
15913
15914 2011-06-20  Eric Blake  <eblake@redhat.com>
15915
15916         test-stat: don't allocate PATH_MAX bytes
15917         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15918         PATH_MAX-sized buffer.
15919         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15920         * modules/stat-tests (Depends-on): Likewise.
15921         * tests/test-fstatat.c (includes): Drop pathmax.h.
15922         * tests/test-stat.c (includes): Likewise.
15923         Reported by Bruno Haible.
15924
15925 2011-06-20  Bruno Haible  <bruno@clisp.org>
15926
15927         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15928         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15929         * lib/float.c: New file.
15930         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15931         REPLACE_FLOAT_LDBL.
15932         * modules/float (Files): Add lib/float.c.
15933         (configure.ac): Invoke AC_LIBOBJ.
15934         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15935
15936 2011-06-20  Bruno Haible  <bruno@clisp.org>
15937
15938         Tests for module 'float'.
15939         * modules/float-tests: New file.
15940         * tests/test-float.c: New file.
15941
15942 2011-06-19  Bruno Haible  <bruno@clisp.org>
15943
15944         isinf: Coding style.
15945         * lib/isinf.c: Use GNU coding style.
15946
15947 2011-06-19  Bruno Haible  <bruno@clisp.org>
15948
15949         linkat test: Avoid test failure on AIX 7.1.
15950         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15951         * tests/test-link.h (test_link): Likewise.
15952
15953 2011-06-19  Bruno Haible  <bruno@clisp.org>
15954
15955         pread test: Avoid test failure on OpenBSD 4.9.
15956         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15957
15958 2011-06-19  Bruno Haible  <bruno@clisp.org>
15959
15960         sprintf-posix: Fix test failure on AIX 7.1.
15961         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15962         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15963         on AIX.
15964         * doc/posix-functions/fprintf.texi: Likewise.
15965         * doc/posix-functions/printf.texi: Likewise.
15966         * doc/posix-functions/snprintf.texi: Likewise.
15967         * doc/posix-functions/sprintf.texi: Likewise.
15968         * doc/posix-functions/vdprintf.texi: Likewise.
15969         * doc/posix-functions/vfprintf.texi: Likewise.
15970         * doc/posix-functions/vprintf.texi: Likewise.
15971         * doc/posix-functions/vsnprintf.texi: Likewise.
15972         * doc/posix-functions/vsprintf.texi: Likewise.
15973
15974 2011-06-19  Bruno Haible  <bruno@clisp.org>
15975
15976         roundl-ieee: Fix test failure on AIX 7.1.
15977         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15978         * doc/posix-functions/roundl.texi: Mention problem with negative
15979         arguments.
15980
15981 2011-06-19  Bruno Haible  <bruno@clisp.org>
15982
15983         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15984         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15985         * doc/posix-functions/round.texi: Mention problem with negative
15986         arguments.
15987         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15988
15989 2011-06-19  Bruno Haible  <bruno@clisp.org>
15990
15991         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15992         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15993         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15994         * doc/posix-functions/roundf.texi: Mention problem with negative
15995         arguments.
15996         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15997
15998 2011-06-19  Bruno Haible  <bruno@clisp.org>
15999
16000         ceilf-ieee: Work around bug on MacOS X 10.5.
16001         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16002
16003         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16004         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16005         IEEE compliant, avoid compiler optimizations.
16006         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16007         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16008         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16009         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16010         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16011         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16012         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16013         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16014         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16015         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16016
16017 2011-06-19  Bruno Haible  <bruno@clisp.org>
16018
16019         ceilf-ieee: Work around bug on AIX 7.1.
16020         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16021         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16022
16023 2011-06-19  Bruno Haible  <bruno@clisp.org>
16024
16025         ceil-ieee: Work around bug on AIX 7.1.
16026         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16027         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16028
16029 2011-06-18  Bruno Haible  <bruno@clisp.org>
16030
16031         fsync test: Avoid test failure on MacOS X and AIX.
16032         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16033         EINVAL.
16034
16035 2011-06-18  Bruno Haible  <bruno@clisp.org>
16036
16037         openat, fdopendir tests: Fix link errors.
16038         * modules/openat-tests (Depends-on): Add progname.
16039         * modules/fdopendir-tests (Depends-on): Likewise.
16040         * tests/test-fchownat.c: Include progname.h.
16041         (main): Call set_program_name.
16042         * tests/test-fstatat.c: Include progname.h.
16043         (main): Call set_program_name.
16044         * tests/test-mkdirat.c: Include progname.h.
16045         (main): Call set_program_name.
16046         * tests/test-openat.c: Include progname.h.
16047         (main): Call set_program_name.
16048         * tests/test-unlinkat.c: Include progname.h.
16049         (main): Call set_program_name.
16050         * tests/test-fdopendir.c: Include progname.h.
16051         (main): Call set_program_name.
16052
16053 2011-06-18  Bruno Haible  <bruno@clisp.org>
16054
16055         Doc update.
16056         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16057         HP-UX.
16058         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16059
16060 2011-06-18  Bruno Haible  <bruno@clisp.org>
16061
16062         getcwd tests: Avoid compilation error on HP-UX 11.31.
16063         * modules/getcwd-tests (Depends-on): Add pathmax.
16064         * tests/test-getcwd.c: Include pathmax.h.
16065
16066 2011-06-18  Bruno Haible  <bruno@clisp.org>
16067
16068         isfinite, isinf: Fix link error on AIX 6 and 7.
16069         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16070         needed, also test the macro with a 'float' argument.
16071         * m4/isinf.m4 (gl_ISINF): Likewise.
16072
16073 2011-06-18  Bruno Haible  <bruno@clisp.org>
16074
16075         getloadavg: Don't clobber LIBS. Regression from previous commit.
16076         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16077         AC_CHECK_LIB from here...
16078         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16079         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16080         gl_func_getloadavg_done.
16081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16082
16083 2011-06-18  Bruno Haible  <bruno@clisp.org>
16084
16085         clean-temp: Improve documentation.
16086         * lib/clean-temp.h: Explain better how to use this module.
16087         Reported by John Darrington <john@darrington.wattle.id.au>.
16088
16089 2011-06-17  Bruno Haible  <bruno@clisp.org>
16090
16091         pread, pwrite: Avoid cc warning on AIX.
16092         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16093         (pwrite): Likewise.
16094
16095 2011-06-17  Bruno Haible  <bruno@clisp.org>
16096
16097         spawn-pipe tests: Fix link error.
16098         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16100
16101 2011-06-17  Bruno Haible  <bruno@clisp.org>
16102
16103         Tests: Remove unnecessary dependency.
16104         * modules/canonicalize-tests (Depends-on): Remove progname.
16105         * modules/chown-tests (Depends-on): Likewise.
16106         * modules/dirname-tests (Depends-on): Likewise.
16107         * modules/fdopendir-tests (Depends-on): Likewise.
16108         * modules/fdutimensat-tests (Depends-on): Likewise.
16109         * modules/hash-tests (Depends-on): Likewise.
16110         * modules/lchown-tests (Depends-on): Likewise.
16111         * modules/linkat-tests (Depends-on): Likewise.
16112         * modules/renameat-tests (Depends-on): Likewise.
16113         * modules/spawn-pipe-tests (Depends-on): Likewise.
16114         * modules/utimensat-tests (Depends-on): Likewise.
16115
16116 2011-06-17  Bruno Haible  <bruno@clisp.org>
16117
16118         spawn-pipe tests: Fix link error.
16119         * tests/test-spawn-pipe-child.c: Undefine fflush.
16120
16121 2011-06-17  Bruno Haible  <bruno@clisp.org>
16122
16123         Fix tests link errors.
16124         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16125         * modules/chown-tests (Makefile.am): Don't link test-chown with
16126         LIBINTL.
16127         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16128         LIBINTL.
16129         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16130         LIBINTL.
16131         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16132         LIBINTL.
16133
16134 2011-06-16  Bruno Haible  <bruno@clisp.org>
16135
16136         crypto/gc-sha1: Fix recent regression.
16137         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16138         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16139
16140         crypto/gc-md5: Fix recent regression.
16141         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16142
16143         crypto/gc-md4: Fix recent regression.
16144         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16145         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16146
16147         crypto/gc-arctwo: Fix recent regression.
16148         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16149         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16150
16151         crypto/gc-rijndael: Fix recent regression.
16152         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16153         (configure.ac): Invoke AC_LIBOBJ here.
16154         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16156
16157         crypto/gc-hmac-sha1: Fix recent regression.
16158         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16159         (configure.ac): Invoke AC_LIBOBJ here.
16160         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16162
16163         crypto/gc-hmac-md5: Fix recent regression.
16164         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16165         (configure.ac): Invoke AC_LIBOBJ here.
16166         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16168
16169         crypto/gc-des: Fix recent regression.
16170         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16171         (configure.ac): Invoke AC_LIBOBJ here.
16172         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16174
16175         crypto/gc-arcfour: Fix recent regression.
16176         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16177         (configure.ac): Invoke AC_LIBOBJ here.
16178         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16180
16181 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16182
16183         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16184         After the 2011-05-21 change, this macro requires
16185         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16186         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16187
16188 2011-06-16  Bruno Haible  <bruno@clisp.org>
16189
16190         fprintftime: Move AC_LIBOBJ invocations to module description.
16191         * m4/fprintftime.m4: Remove file.
16192         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16193         (configure.ac): Remove gl_FPRINTFTIME call.
16194         (Makefile.am): Augment lib_SOURCES.
16195         Reported by Jim Meyering.
16196
16197 2011-06-16  Bruno Haible  <bruno@clisp.org>
16198
16199         tmpfile-safer: Finish 2011-05-23 commit.
16200         * m4/stdio-safer.m4: Really remove file.
16201         Reported by Jim Meyering.
16202
16203 2011-06-16  Bruno Haible  <bruno@clisp.org>
16204
16205         syntax-check: Fix typo.
16206         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16207         printf-posix.m4.
16208         Reported by Jim Meyering.
16209
16210 2011-06-13  Jim Meyering  <meyering@redhat.com>
16211
16212         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16213         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16214
16215 2011-05-23  Bruno Haible  <bruno@clisp.org>
16216
16217         yesno: Move AC_LIBOBJ invocations to module description.
16218         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16219         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16220
16221 2011-05-23  Bruno Haible  <bruno@clisp.org>
16222
16223         xstrtol: Move AC_LIBOBJ invocations to module description.
16224         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16225         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16226
16227 2011-05-23  Bruno Haible  <bruno@clisp.org>
16228
16229         xstrtold: Move AC_LIBOBJ invocations to module description.
16230         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16231         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16232
16233 2011-05-23  Bruno Haible  <bruno@clisp.org>
16234
16235         xstrtod: Move AC_LIBOBJ invocations to module description.
16236         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16237         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16238
16239 2011-05-23  Bruno Haible  <bruno@clisp.org>
16240
16241         xnanosleep: Move AC_LIBOBJ invocations to module description.
16242         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16243         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16244
16245 2011-05-23  Bruno Haible  <bruno@clisp.org>
16246
16247         xgetcwd: Move AC_LIBOBJ invocations to module description.
16248         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16249         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16250
16251 2011-05-23  Bruno Haible  <bruno@clisp.org>
16252
16253         xalloc: Move AC_LIBOBJ invocations to module description.
16254         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16255         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16256
16257 2011-05-23  Bruno Haible  <bruno@clisp.org>
16258
16259         write-any-file: Move AC_LIBOBJ invocations to module description.
16260         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16261         invocation.
16262         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16263
16264 2011-05-23  Bruno Haible  <bruno@clisp.org>
16265
16266         utimens: Move AC_LIBOBJ invocations to module description.
16267         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16268         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16269
16270 2011-05-23  Bruno Haible  <bruno@clisp.org>
16271
16272         utimecmp: Move AC_LIBOBJ invocations to module description.
16273         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16274         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16275
16276 2011-05-23  Bruno Haible  <bruno@clisp.org>
16277
16278         userspec: Move AC_LIBOBJ invocations to module description.
16279         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16280         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16281
16282 2011-05-23  Bruno Haible  <bruno@clisp.org>
16283
16284         unlinkdir: Move AC_LIBOBJ invocations to module description.
16285         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16286         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16287
16288 2011-05-23  Bruno Haible  <bruno@clisp.org>
16289
16290         unistd-safer: Move AC_LIBOBJ invocations to module description.
16291         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16292         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16293
16294 2011-05-23  Bruno Haible  <bruno@clisp.org>
16295
16296         tempname: Move AC_LIBOBJ invocations to module description.
16297         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16298         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16299
16300 2011-05-23  Bruno Haible  <bruno@clisp.org>
16301
16302         strftime: Move AC_LIBOBJ invocations to module description.
16303         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16304         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16305
16306 2011-05-23  Bruno Haible  <bruno@clisp.org>
16307
16308         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16309         * m4/stdlib-safer.m4: Remove file.
16310         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16311         (configure.ac): Remove gl_STDLIB_SAFER call.
16312         (Makefile.am): Augment lib_SOURCES.
16313
16314 2011-05-23  Bruno Haible  <bruno@clisp.org>
16315
16316         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16317         * m4/stdio-safer.m4: Remove file.
16318         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16319         (configure.ac): Remove gl_TMPFILE_SAFER call.
16320         (Makefile.am): Augment lib_SOURCES.
16321
16322 2011-05-23  Bruno Haible  <bruno@clisp.org>
16323
16324         popen-safer: Move AC_LIBOBJ invocations to module description.
16325         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16326         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16327         (configure.ac): Remove gl_POPEN_SAFER call.
16328         (Makefile.am): Augment lib_SOURCES.
16329
16330 2011-05-23  Bruno Haible  <bruno@clisp.org>
16331
16332         freopen-safer: Move AC_LIBOBJ invocations to module description.
16333         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16334         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16335         (configure.ac): Remove gl_FREOPEN_SAFER call.
16336         (Makefile.am): Augment lib_SOURCES.
16337
16338 2011-05-23  Bruno Haible  <bruno@clisp.org>
16339
16340         fopen-safer: Move AC_LIBOBJ invocations to module description.
16341         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16342         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16343         (configure.ac): Remove gl_FOPEN_SAFER call.
16344         (Makefile.am): Augment lib_SOURCES.
16345
16346 2011-05-23  Bruno Haible  <bruno@clisp.org>
16347
16348         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16349         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16350         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16351
16352 2011-05-23  Bruno Haible  <bruno@clisp.org>
16353
16354         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16355         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16356         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16357
16358 2011-05-23  Bruno Haible  <bruno@clisp.org>
16359
16360         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16361         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16362         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16363
16364 2011-05-23  Bruno Haible  <bruno@clisp.org>
16365
16366         settime: Move AC_LIBOBJ invocations to module description.
16367         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16368         * modules/settime (Makefile.am): Augment lib_SOURCES.
16369
16370 2011-05-23  Bruno Haible  <bruno@clisp.org>
16371
16372         savedir: Move AC_LIBOBJ invocations to module description.
16373         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16374         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16375
16376 2011-05-23  Bruno Haible  <bruno@clisp.org>
16377
16378         save-cwd: Move AC_LIBOBJ invocations to module description.
16379         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16380         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16381
16382 2011-05-23  Bruno Haible  <bruno@clisp.org>
16383
16384         same: Move AC_LIBOBJ invocations to module description.
16385         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16386         * modules/same (Makefile.am): Augment lib_SOURCES.
16387
16388 2011-05-23  Bruno Haible  <bruno@clisp.org>
16389
16390         safe-write: Move AC_LIBOBJ invocations to module description.
16391         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16392         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16393         instead of gl_SAFE_WRITE.
16394         (Makefile.am): Augment lib_SOURCES.
16395
16396 2011-05-23  Bruno Haible  <bruno@clisp.org>
16397
16398         safe-read: Move AC_LIBOBJ invocations to module description.
16399         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16400         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16401         of gl_SAFE_READ.
16402         (Makefile.am): Augment lib_SOURCES.
16403
16404 2011-05-23  Bruno Haible  <bruno@clisp.org>
16405
16406         safe-alloc: Move AC_LIBOBJ invocations to module description.
16407         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16408         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16409
16410 2011-05-23  Bruno Haible  <bruno@clisp.org>
16411
16412         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16413         * m4/rijndael.m4: Remove file.
16414         * modules/crypto/rijndael (Files): Remove it.
16415         (configure.ac): Remove gl_RIJNDAEL call.
16416         (Makefile.am): Augment lib_SOURCES.
16417
16418 2011-05-23  Bruno Haible  <bruno@clisp.org>
16419
16420         readtokens: Move AC_LIBOBJ invocations to module description.
16421         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16422         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16423
16424 2011-05-23  Bruno Haible  <bruno@clisp.org>
16425
16426         read-file: Move AC_LIBOBJ invocations to module description.
16427         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16428         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16429         of gl_FUNC_READ_FILE.
16430         (Makefile.am): Augment lib_SOURCES.
16431
16432 2011-05-23  Bruno Haible  <bruno@clisp.org>
16433
16434         quotearg: Move AC_LIBOBJ invocations to module description.
16435         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16436         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16437
16438 2011-05-23  Bruno Haible  <bruno@clisp.org>
16439
16440         quote: Move AC_LIBOBJ invocations to module description.
16441         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16442         * modules/quote (Makefile.am): Augment lib_SOURCES.
16443
16444 2011-05-23  Bruno Haible  <bruno@clisp.org>
16445
16446         posixver: Move AC_LIBOBJ invocations to module description.
16447         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16448         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16449
16450 2011-05-23  Bruno Haible  <bruno@clisp.org>
16451
16452         posixtm: Move AC_LIBOBJ invocations to module description.
16453         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16454         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16455
16456 2011-05-23  Bruno Haible  <bruno@clisp.org>
16457
16458         physmem: Move AC_LIBOBJ invocations to module description.
16459         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16460         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16461
16462 2011-05-23  Bruno Haible  <bruno@clisp.org>
16463
16464         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16465         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16466         invocation.
16467         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16468
16469 2011-05-23  Bruno Haible  <bruno@clisp.org>
16470
16471         mpsort: Move AC_LIBOBJ invocations to module description.
16472         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16473         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16474
16475 2011-05-23  Bruno Haible  <bruno@clisp.org>
16476
16477         modechange: Move AC_LIBOBJ invocations to module description.
16478         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16479         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16480
16481 2011-05-23  Bruno Haible  <bruno@clisp.org>
16482
16483         mkdir-p: Move AC_LIBOBJ invocations to module description.
16484         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16485         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16486
16487 2011-05-23  Bruno Haible  <bruno@clisp.org>
16488
16489         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16490         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16491         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16492
16493 2011-05-23  Bruno Haible  <bruno@clisp.org>
16494
16495         mgetgroups: Move AC_LIBOBJ invocations to module description.
16496         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16497         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16498
16499 2011-05-23  Bruno Haible  <bruno@clisp.org>
16500
16501         memxor: Move AC_LIBOBJ invocations to module description.
16502         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16503         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16504
16505 2011-05-23  Bruno Haible  <bruno@clisp.org>
16506
16507         memcoll: Move AC_LIBOBJ invocations to module description.
16508         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16509         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16510
16511 2011-05-23  Bruno Haible  <bruno@clisp.org>
16512
16513         memcasecmp: Move AC_LIBOBJ invocations to module description.
16514         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16515         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16516
16517 2011-05-23  Bruno Haible  <bruno@clisp.org>
16518
16519         crypto/md5: Move AC_LIBOBJ invocations to module description.
16520         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16521         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16522
16523 2011-05-23  Bruno Haible  <bruno@clisp.org>
16524
16525         crypto/md4: Move AC_LIBOBJ invocations to module description.
16526         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16527         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16528
16529 2011-05-23  Bruno Haible  <bruno@clisp.org>
16530
16531         crypto/md2: Move AC_LIBOBJ invocations to module description.
16532         * m4/md2.m4: Remove file.
16533         * modules/crypto/md2 (Files): Remove it.
16534         (configure.ac): Remove gl_MD2 call.
16535         (Makefile.am): Augment lib_SOURCES.
16536
16537 2011-05-23  Bruno Haible  <bruno@clisp.org>
16538
16539         long-options: Move AC_LIBOBJ invocations to module description.
16540         * m4/long-options.m4: Remove file.
16541         * modules/long-options (Files): Remove it.
16542         (configure.ac): Remove gl_LONG_OPTIONS call.
16543         (Makefile.am): Augment lib_SOURCES.
16544
16545 2011-05-23  Bruno Haible  <bruno@clisp.org>
16546
16547         i-ring: Move AC_LIBOBJ invocations to module description.
16548         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16549         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16550
16551 2011-05-23  Bruno Haible  <bruno@clisp.org>
16552
16553         idcache: Move AC_LIBOBJ invocations to module description.
16554         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16555         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16556
16557 2011-05-23  Bruno Haible  <bruno@clisp.org>
16558
16559         human: Move AC_LIBOBJ invocations to module description.
16560         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16561         * modules/human (Makefile.am): Augment lib_SOURCES.
16562
16563 2011-05-23  Bruno Haible  <bruno@clisp.org>
16564
16565         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16566         * m4/hmac-sha1.m4: Remove file.
16567         * modules/crypto/hmac-sha1 (Files): Remove it.
16568         (configure.ac): Remove gl_HMAC_SHA1 call.
16569         (Makefile.am): Augment lib_SOURCES.
16570
16571 2011-05-23  Bruno Haible  <bruno@clisp.org>
16572
16573         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16574         * m4/hmac-md5.m4: Remove file.
16575         * modules/crypto/hmac-md5 (Files): Remove it.
16576         (configure.ac): Remove gl_HMAC_MD5 call.
16577         (Makefile.am): Augment lib_SOURCES.
16578
16579 2011-05-23  Bruno Haible  <bruno@clisp.org>
16580
16581         hash: Move AC_LIBOBJ invocations to module description.
16582         * m4/hash.m4: Remove file.
16583         * modules/hash (Files): Remove it.
16584         (configure.ac): Remove gl_HASH call.
16585         (Makefile.am): Augment lib_SOURCES.
16586
16587 2011-05-23  Bruno Haible  <bruno@clisp.org>
16588
16589         hard-locale: Move AC_LIBOBJ invocations to module description.
16590         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16591         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16592
16593 2011-05-23  Bruno Haible  <bruno@clisp.org>
16594
16595         getugroups: Move AC_LIBOBJ invocations to module description.
16596         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16597         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16598
16599 2011-05-23  Bruno Haible  <bruno@clisp.org>
16600
16601         gettime: Move AC_LIBOBJ invocations to module description.
16602         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16603         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16604
16605 2011-05-23  Bruno Haible  <bruno@clisp.org>
16606
16607         getndelim2: Move AC_LIBOBJ invocations to module description.
16608         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16609         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16610
16611 2011-05-23  Bruno Haible  <bruno@clisp.org>
16612
16613         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16614         * m4/gc-pbkdf2-sha1.m4: Remove file.
16615         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16616         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16617         (Makefile.am): Augment lib_SOURCES.
16618
16619 2011-05-23  Bruno Haible  <bruno@clisp.org>
16620
16621         fts: Move AC_LIBOBJ invocations to module description.
16622         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16623         * modules/fts (configure.ac): ... to here.
16624
16625 2011-05-23  Bruno Haible  <bruno@clisp.org>
16626
16627         file-type: Move AC_LIBOBJ invocations to module description.
16628         * m4/file-type.m4: Remove file.
16629         * modules/file-type (Files): Remove it.
16630         (configure.ac): Remove gl_FILE_TYPE call.
16631         (Makefile.am): Augment lib_SOURCES.
16632
16633 2011-05-23  Bruno Haible  <bruno@clisp.org>
16634
16635         filenamecat*: Respect rules for use of AC_LIBOBJ.
16636         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16637         Remove AC_LIBOBJ invocation.
16638         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16639         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16640
16641 2011-05-23  Bruno Haible  <bruno@clisp.org>
16642
16643         filemode: Move AC_LIBOBJ invocations to module description.
16644         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16645         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16646
16647 2011-05-23  Bruno Haible  <bruno@clisp.org>
16648
16649         openat-safer: Move AC_LIBOBJ invocations to module description.
16650         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16651         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16652
16653 2011-05-23  Bruno Haible  <bruno@clisp.org>
16654
16655         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16656         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16657         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16658
16659 2011-05-23  Bruno Haible  <bruno@clisp.org>
16660
16661         exclude: Move AC_LIBOBJ invocations to module description.
16662         * m4/exclude.m4: Remove file.
16663         * modules/exclude (Files): Remove it.
16664         (configure.ac): Remove gl_EXCLUDE call.
16665         (Makefile.am): Augment lib_SOURCES.
16666
16667 2011-05-23  Bruno Haible  <bruno@clisp.org>
16668
16669         dirname*: Respect rules for use of AC_LIBOBJ.
16670         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16671         invocations.
16672         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16673         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16674
16675 2011-05-23  Bruno Haible  <bruno@clisp.org>
16676
16677         dirent-safer: Move AC_LIBOBJ invocations to module description.
16678         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16679         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16680
16681 2011-05-23  Bruno Haible  <bruno@clisp.org>
16682
16683         crypto/des: Move AC_LIBOBJ invocations to module description.
16684         * m4/des.m4: Remove file.
16685         * modules/crypto/des (Files): Remove it.
16686         (configure.ac): Remove gl_DES call.
16687         (Makefile.am): Augment lib_SOURCES.
16688
16689 2011-05-23  Bruno Haible  <bruno@clisp.org>
16690
16691         cycle-check: Move AC_LIBOBJ invocations to module description.
16692         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16693         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16694
16695 2011-05-23  Bruno Haible  <bruno@clisp.org>
16696
16697         c-strtold: Move AC_LIBOBJ invocations to module description.
16698         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16699         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16700
16701 2011-05-23  Bruno Haible  <bruno@clisp.org>
16702
16703         c-strtod: Move AC_LIBOBJ invocations to module description.
16704         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16705         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16706
16707 2011-05-23  Bruno Haible  <bruno@clisp.org>
16708
16709         crc: Move AC_LIBOBJ invocations to module description.
16710         * m4/crc.m4: Remove file.
16711         * modules/crc (Files): Remove it.
16712         (configure.ac): Remove gl_CRC call.
16713         (Makefile.am): Augment lib_SOURCES.
16714
16715 2011-05-23  Bruno Haible  <bruno@clisp.org>
16716
16717         close-stream: Move AC_LIBOBJ invocations to module description.
16718         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16719         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16720
16721 2011-05-23  Bruno Haible  <bruno@clisp.org>
16722
16723         closeout: Move AC_LIBOBJ invocations to module description.
16724         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16725         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16726
16727 2011-05-23  Bruno Haible  <bruno@clisp.org>
16728
16729         closein: Move AC_LIBOBJ invocations to module description.
16730         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16731         * modules/closein (Makefile.am): Augment lib_SOURCES.
16732
16733 2011-05-23  Bruno Haible  <bruno@clisp.org>
16734
16735         cloexec: Move AC_LIBOBJ invocations to module description.
16736         * m4/cloexec.m4: Remove file.
16737         * modules/cloexec (Files): Remove it.
16738         (configure.ac): Remove gl_CLOEXEC call.
16739         (Makefile.am): Augment lib_SOURCES.
16740
16741 2011-05-23  Bruno Haible  <bruno@clisp.org>
16742
16743         check-version: Move AC_LIBOBJ invocations to module description.
16744         * m4/check-version.m4: Remove file.
16745         * modules/check-version (Files): Remove it.
16746         (configure.ac): Remove gl_CHECK_VERSION call.
16747         (Makefile.am): Augment lib_SOURCES.
16748
16749 2011-05-23  Bruno Haible  <bruno@clisp.org>
16750
16751         chdir-safer: Move AC_LIBOBJ invocations to module description.
16752         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16753         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16754
16755 2011-05-23  Bruno Haible  <bruno@clisp.org>
16756
16757         canonicalize: Move AC_LIBOBJ invocations to module description.
16758         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16759         AC_LIBOBJ invocation.
16760         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16761
16762 2011-05-23  Bruno Haible  <bruno@clisp.org>
16763
16764         canon-host: Move AC_LIBOBJ invocations to module description.
16765         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16766         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16767         instead of gl_CANON_HOST.
16768         (Makefile.am): Augment lib_SOURCES.
16769
16770 2011-05-23  Bruno Haible  <bruno@clisp.org>
16771
16772         backupfile: Move AC_LIBOBJ invocations to module description.
16773         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16774         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16775
16776 2011-05-23  Bruno Haible  <bruno@clisp.org>
16777
16778         argmatch: Move AC_LIBOBJ invocations to module description.
16779         * m4/argmatch.m4: Remove file.
16780         * modules/argmatch (Files): Remove it.
16781         (configure.ac): Remove gl_ARGMATCH call.
16782         (Makefile.am): Augment lib_SOURCES.
16783
16784 2011-05-23  Bruno Haible  <bruno@clisp.org>
16785
16786         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16787         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16788         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16789
16790 2011-05-23  Bruno Haible  <bruno@clisp.org>
16791
16792         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16793         * m4/arcfour.m4: Remove file.
16794         * modules/crypto/arcfour (Files): Remove it.
16795         (configure.ac): Remove gl_ARCFOUR call.
16796         (Makefile.am): Augment lib_SOURCES.
16797
16798 2011-05-22  Bruno Haible  <bruno@clisp.org>
16799
16800         write: Move AC_LIBOBJ invocations to module description.
16801         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16802         * modules/write (configure.ac): ... to here.
16803
16804 2011-05-22  Bruno Haible  <bruno@clisp.org>
16805
16806         wmemset: Move AC_LIBOBJ invocations to module description.
16807         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16808         here...
16809         * modules/wmemset (configure.ac): ... to here.
16810
16811 2011-05-22  Bruno Haible  <bruno@clisp.org>
16812
16813         wmemmove: Move AC_LIBOBJ invocations to module description.
16814         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16815         here...
16816         * modules/wmemmove (configure.ac): ... to here.
16817
16818 2011-05-22  Bruno Haible  <bruno@clisp.org>
16819
16820         wmemcpy: Move AC_LIBOBJ invocations to module description.
16821         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16822         here...
16823         * modules/wmemcpy (configure.ac): ... to here.
16824
16825 2011-05-22  Bruno Haible  <bruno@clisp.org>
16826
16827         wmemcmp: Move AC_LIBOBJ invocations to module description.
16828         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16829         here...
16830         * modules/wmemcmp (configure.ac): ... to here.
16831
16832 2011-05-22  Bruno Haible  <bruno@clisp.org>
16833
16834         wmemchr: Move AC_LIBOBJ invocations to module description.
16835         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16836         here...
16837         * modules/wmemchr (configure.ac): ... to here.
16838
16839 2011-05-22  Bruno Haible  <bruno@clisp.org>
16840
16841         wcswidth: Move AC_LIBOBJ invocations to module description.
16842         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16843         here...
16844         * modules/wcswidth (configure.ac): ... to here.
16845
16846 2011-05-22  Bruno Haible  <bruno@clisp.org>
16847
16848         wcwidth: Respect rules for use of AC_LIBOBJ.
16849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16850         invocation from here...
16851         * modules/wcwidth (configure.ac): ... to here.
16852         (Depends-on): Update conditions.
16853
16854 2011-05-22  Bruno Haible  <bruno@clisp.org>
16855
16856         wctype: Move AC_LIBOBJ invocations to module description.
16857         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16858         invocation from here...
16859         * modules/wctype (configure.ac): ... to here.
16860         (Depends-on): Update conditions.
16861
16862 2011-05-22  Bruno Haible  <bruno@clisp.org>
16863
16864         wctrans: Move AC_LIBOBJ invocations to module description.
16865         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16866         invocation from here...
16867         * modules/wctrans (configure.ac): ... to here.
16868
16869 2011-05-22  Bruno Haible  <bruno@clisp.org>
16870
16871         wctomb: Move AC_LIBOBJ invocations to module description.
16872         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16873         invocations from here...
16874         * modules/wctomb (configure.ac): ... to here.
16875
16876 2011-05-22  Bruno Haible  <bruno@clisp.org>
16877
16878         wctob: Move AC_LIBOBJ invocations to module description.
16879         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16880         gl_PREREQ_WCTOB invocations from here...
16881         * modules/wctob (configure.ac): ... to here.
16882         (Depends-on): Update conditions.
16883
16884 2011-05-22  Bruno Haible  <bruno@clisp.org>
16885
16886         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16887         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16888         here...
16889         * modules/wcsxfrm (configure.ac): ... to here.
16890
16891 2011-05-22  Bruno Haible  <bruno@clisp.org>
16892
16893         wcstok: Move AC_LIBOBJ invocations to module description.
16894         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16895         * modules/wcstok (configure.ac): ... to here.
16896
16897 2011-05-22  Bruno Haible  <bruno@clisp.org>
16898
16899         wcsstr: Move AC_LIBOBJ invocations to module description.
16900         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16901         * modules/wcsstr (configure.ac): ... to here.
16902
16903 2011-05-22  Bruno Haible  <bruno@clisp.org>
16904
16905         wcsspn: Move AC_LIBOBJ invocations to module description.
16906         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16907         * modules/wcsspn (configure.ac): ... to here.
16908
16909 2011-05-22  Bruno Haible  <bruno@clisp.org>
16910
16911         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16912         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16913         gl_PREREQ_WCSRTOMBS invocations from here...
16914         * modules/wcsrtombs (configure.ac): ... to here.
16915
16916 2011-05-22  Bruno Haible  <bruno@clisp.org>
16917
16918         wcsrchr: Move AC_LIBOBJ invocations to module description.
16919         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16920         here...
16921         * modules/wcsrchr (configure.ac): ... to here.
16922
16923 2011-05-22  Bruno Haible  <bruno@clisp.org>
16924
16925         wcspbrk: Move AC_LIBOBJ invocations to module description.
16926         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16927         here...
16928         * modules/wcspbrk (configure.ac): ... to here.
16929
16930 2011-05-22  Bruno Haible  <bruno@clisp.org>
16931
16932         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16933         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16934         gl_PREREQ_WCSNRTOMBS invocations from here...
16935         * modules/wcsnrtombs (configure.ac): ... to here.
16936
16937 2011-05-22  Bruno Haible  <bruno@clisp.org>
16938
16939         wcsnlen: Move AC_LIBOBJ invocations to module description.
16940         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16941         here...
16942         * modules/wcsnlen (configure.ac): ... to here.
16943
16944 2011-05-22  Bruno Haible  <bruno@clisp.org>
16945
16946         wcsncpy: Move AC_LIBOBJ invocations to module description.
16947         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16948         here...
16949         * modules/wcsncpy (configure.ac): ... to here.
16950
16951 2011-05-22  Bruno Haible  <bruno@clisp.org>
16952
16953         wcsncmp: Move AC_LIBOBJ invocations to module description.
16954         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16955         here...
16956         * modules/wcsncmp (configure.ac): ... to here.
16957
16958 2011-05-22  Bruno Haible  <bruno@clisp.org>
16959
16960         wcsncat: Move AC_LIBOBJ invocations to module description.
16961         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16962         here...
16963         * modules/wcsncat (configure.ac): ... to here.
16964
16965 2011-05-22  Bruno Haible  <bruno@clisp.org>
16966
16967         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16968         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16969         from here...
16970         * modules/wcsncasecmp (configure.ac): ... to here.
16971
16972 2011-05-22  Bruno Haible  <bruno@clisp.org>
16973
16974         wcslen: Move AC_LIBOBJ invocations to module description.
16975         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16976         * modules/wcslen (configure.ac): ... to here.
16977
16978 2011-05-22  Bruno Haible  <bruno@clisp.org>
16979
16980         wcsdup: Move AC_LIBOBJ invocations to module description.
16981         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16982         * modules/wcsdup (configure.ac): ... to here.
16983
16984 2011-05-22  Bruno Haible  <bruno@clisp.org>
16985
16986         wcscspn: Move AC_LIBOBJ invocations to module description.
16987         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16988         here...
16989         * modules/wcscspn (configure.ac): ... to here.
16990
16991 2011-05-22  Bruno Haible  <bruno@clisp.org>
16992
16993         wcscpy: Move AC_LIBOBJ invocations to module description.
16994         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16995         * modules/wcscpy (configure.ac): ... to here.
16996
16997 2011-05-22  Bruno Haible  <bruno@clisp.org>
16998
16999         wcscoll: Move AC_LIBOBJ invocations to module description.
17000         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17001         here...
17002         * modules/wcscoll (configure.ac): ... to here.
17003
17004 2011-05-22  Bruno Haible  <bruno@clisp.org>
17005
17006         wcscmp: Move AC_LIBOBJ invocations to module description.
17007         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17008         * modules/wcscmp (configure.ac): ... to here.
17009
17010 2011-05-22  Bruno Haible  <bruno@clisp.org>
17011
17012         wcschr: Move AC_LIBOBJ invocations to module description.
17013         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17014         * modules/wcschr (configure.ac): ... to here.
17015
17016 2011-05-22  Bruno Haible  <bruno@clisp.org>
17017
17018         wcscat: Move AC_LIBOBJ invocations to module description.
17019         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17020         * modules/wcscat (configure.ac): ... to here.
17021
17022 2011-05-22  Bruno Haible  <bruno@clisp.org>
17023
17024         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17025         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17026         here...
17027         * modules/wcscasecmp (configure.ac): ... to here.
17028
17029 2011-05-22  Bruno Haible  <bruno@clisp.org>
17030
17031         wcrtomb: Move AC_LIBOBJ invocations to module description.
17032         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17033         invocations from here...
17034         * modules/wcrtomb (configure.ac): ... to here.
17035
17036 2011-05-22  Bruno Haible  <bruno@clisp.org>
17037
17038         wcpncpy: Move AC_LIBOBJ invocations to module description.
17039         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17040         here...
17041         * modules/wcpncpy (configure.ac): ... to here.
17042
17043 2011-05-22  Bruno Haible  <bruno@clisp.org>
17044
17045         wcpcpy: Move AC_LIBOBJ invocations to module description.
17046         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17047         * modules/wcpcpy (configure.ac): ... to here.
17048
17049 2011-05-22  Bruno Haible  <bruno@clisp.org>
17050
17051         waitpid: Move AC_LIBOBJ invocations to module description.
17052         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17053         invocation from here...
17054         * modules/waitpid (configure.ac): ... to here.
17055
17056 2011-05-22  Bruno Haible  <bruno@clisp.org>
17057
17058         utimensat: Move AC_LIBOBJ invocations to module description.
17059         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17060         here...
17061         * modules/utimensat (configure.ac): ... to here.
17062
17063 2011-05-22  Bruno Haible  <bruno@clisp.org>
17064
17065         usleep: Move AC_LIBOBJ invocations to module description.
17066         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17067         here...
17068         * modules/usleep (configure.ac): ... to here.
17069
17070 2011-05-22  Bruno Haible  <bruno@clisp.org>
17071
17072         unlockpt: Move AC_LIBOBJ invocations to module description.
17073         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17074         gl_PREREQ_UNLOCKPT invocations from here...
17075         * modules/unlockpt (configure.ac): ... to here.
17076
17077 2011-05-22  Bruno Haible  <bruno@clisp.org>
17078
17079         unlink: Respect rules for use of AC_LIBOBJ.
17080         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17081         * modules/unlink (configure.ac): ... to here.
17082
17083 2011-05-22  Bruno Haible  <bruno@clisp.org>
17084
17085         uname: Move AC_LIBOBJ invocations to module description.
17086         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17087         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17088         here...
17089         * modules/uname (configure.ac): ... to here.
17090
17091 2011-05-22  Bruno Haible  <bruno@clisp.org>
17092
17093         ttyname_r: Move AC_LIBOBJ invocations to module description.
17094         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17095         gl_PREREQ_TTYNAME_R invocations from here...
17096         * modules/ttyname_r (configure.ac): ... to here.
17097
17098 2011-05-22  Bruno Haible  <bruno@clisp.org>
17099
17100         tsearch: Move AC_LIBOBJ invocations to module description.
17101         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17102         invocations from here...
17103         * modules/tsearch (configure.ac): ... to here.
17104
17105 2011-05-22  Bruno Haible  <bruno@clisp.org>
17106
17107         towctrans: Move AC_LIBOBJ invocations to module description.
17108         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17109         AC_LIBOBJ invocation from here...
17110         * modules/towctrans (configure.ac): ... to here.
17111
17112 2011-05-22  Bruno Haible  <bruno@clisp.org>
17113
17114         tmpfile: Move AC_LIBOBJ invocations to module description.
17115         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17116         invocations from here...
17117         * modules/tmpfile (configure.ac): ... to here.
17118
17119 2011-05-22  Bruno Haible  <bruno@clisp.org>
17120
17121         times: Move AC_LIBOBJ invocations to module description.
17122         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17123         * modules/times (configure.ac): ... to here.
17124
17125 2011-05-22  Bruno Haible  <bruno@clisp.org>
17126
17127         time_r: Move AC_LIBOBJ invocations to module description.
17128         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17129         invocations from here...
17130         * modules/time_r (configure.ac): ... to here.
17131
17132 2011-05-22  Bruno Haible  <bruno@clisp.org>
17133
17134         timegm: Move AC_LIBOBJ invocations to module description.
17135         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17136         invocations from here...
17137         * modules/timegm (configure.ac): ... to here.
17138
17139 2011-05-22  Bruno Haible  <bruno@clisp.org>
17140
17141         tcgetsid: Move AC_LIBOBJ invocations to module description.
17142         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17143         and gl_PREREQ_TCGETSID invocations from here...
17144         * modules/tcgetsid (configure.ac): ... to here.
17145         (Depends-on): Update conditions.
17146
17147 2011-05-22  Bruno Haible  <bruno@clisp.org>
17148
17149         symlinkat: Move AC_LIBOBJ invocations to module description.
17150         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17151         here...
17152         * modules/symlinkat (configure.ac): ... to here.
17153
17154 2011-05-22  Bruno Haible  <bruno@clisp.org>
17155
17156         symlink: Move AC_LIBOBJ invocations to module description.
17157         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17158         here...
17159         * modules/symlink (configure.ac): ... to here.
17160
17161 2011-05-22  Bruno Haible  <bruno@clisp.org>
17162
17163         strverscmp: Move AC_LIBOBJ invocations to module description.
17164         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17166         from here...
17167         * modules/strverscmp (configure.ac): ... to here.
17168
17169 2011-05-22  Bruno Haible  <bruno@clisp.org>
17170
17171         strtok_r: Move AC_LIBOBJ invocations to module description.
17172         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17173         and gl_PREREQ_STRTOK_R invocations from here...
17174         * modules/strtok_r (configure.ac): ... to here.
17175         (Depends-on): Update conditions.
17176
17177 2011-05-22  Bruno Haible  <bruno@clisp.org>
17178
17179         strtoumax: Move AC_LIBOBJ invocations to module description.
17180         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17181         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17182         from here...
17183         * modules/strtoumax (configure.ac): ... to here.
17184
17185 2011-05-22  Bruno Haible  <bruno@clisp.org>
17186
17187         strtoimax: Move AC_LIBOBJ invocations to module description.
17188         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17189         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17190         from here...
17191         * modules/strtoimax (configure.ac): ... to here.
17192
17193 2011-05-22  Bruno Haible  <bruno@clisp.org>
17194
17195         strtoull: Move AC_LIBOBJ invocations to module description.
17196         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17198         from here...
17199         * modules/strtoull (configure.ac): ... to here.
17200
17201 2011-05-22  Bruno Haible  <bruno@clisp.org>
17202
17203         strtoll: Move AC_LIBOBJ invocations to module description.
17204         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17205         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17206         here...
17207         * modules/strtoll (configure.ac): ... to here.
17208
17209 2011-05-22  Bruno Haible  <bruno@clisp.org>
17210
17211         strtoul: Move AC_LIBOBJ invocations to module description.
17212         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17213         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17214         * modules/strtoul (configure.ac): ... to here.
17215
17216 2011-05-22  Bruno Haible  <bruno@clisp.org>
17217
17218         strtol: Move AC_LIBOBJ invocations to module description.
17219         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17220         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17221         * modules/strtol (configure.ac): ... to here.
17222
17223 2011-05-22  Bruno Haible  <bruno@clisp.org>
17224
17225         strtod: Move AC_LIBOBJ invocations to module description.
17226         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17227         invocations from here...
17228         * modules/strtod (configure.ac): ... to here.
17229
17230 2011-05-22  Bruno Haible  <bruno@clisp.org>
17231
17232         strstr*: Move AC_LIBOBJ invocations to module description.
17233         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17234         invocations from here...
17235         * modules/strstr-simple (configure.ac): ... to here.
17236         * modules/strstr (configure.ac): ... and here.
17237
17238 2011-05-22  Bruno Haible  <bruno@clisp.org>
17239
17240         strsignal: Move AC_LIBOBJ invocations to module description.
17241         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17242         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17243         * modules/strsignal (configure.ac): ... to here.
17244         (Depends-on): Update conditions.
17245
17246 2011-05-22  Bruno Haible  <bruno@clisp.org>
17247
17248         strsep: Move AC_LIBOBJ invocations to module description.
17249         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17250         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17251         here...
17252         * modules/strsep (configure.ac): ... to here.
17253
17254 2011-05-22  Bruno Haible  <bruno@clisp.org>
17255
17256         strptime: Move AC_LIBOBJ invocations to module description.
17257         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17258         gl_PREREQ_STRPTIME invocations from here...
17259         * modules/strptime (configure.ac): ... to here.
17260
17261 2011-05-22  Bruno Haible  <bruno@clisp.org>
17262
17263         strpbrk: Move AC_LIBOBJ invocations to module description.
17264         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17266         here...
17267         * modules/strpbrk (configure.ac): ... to here.
17268
17269 2011-05-22  Bruno Haible  <bruno@clisp.org>
17270
17271         strnlen: Move AC_LIBOBJ invocations to module description.
17272         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17273         invocations from here...
17274         * modules/strnlen (configure.ac): ... to here.
17275
17276 2011-05-22  Bruno Haible  <bruno@clisp.org>
17277
17278         strndup: Move AC_LIBOBJ invocations to module description.
17279         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17280         invocations from here...
17281         * modules/strndup (configure.ac): ... to here.
17282         (Depends-on): Update conditions.
17283
17284 2011-05-22  Bruno Haible  <bruno@clisp.org>
17285
17286         strncat: Move AC_LIBOBJ invocations to module description.
17287         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17288         invocations from here...
17289         * modules/strncat (configure.ac): ... to here.
17290
17291 2011-05-22  Bruno Haible  <bruno@clisp.org>
17292
17293         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17294         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17295         invocations from here...
17296         * modules/strdup (configure.ac): ... to here.
17297         * modules/strdup-posix (configure.ac): ... and here.
17298
17299 2011-05-22  Bruno Haible  <bruno@clisp.org>
17300
17301         strcspn: Move AC_LIBOBJ invocations to module description.
17302         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17304         here...
17305         * modules/strcspn (configure.ac): ... to here.
17306
17307 2011-05-22  Bruno Haible  <bruno@clisp.org>
17308
17309         strchrnul: Move AC_LIBOBJ invocations to module description.
17310         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17311         gl_PREREQ_STRCHRNUL invocations from here...
17312         * modules/strchrnul (configure.ac): ... to here.
17313
17314 2011-05-22  Bruno Haible  <bruno@clisp.org>
17315
17316         strcasestr*: Move AC_LIBOBJ invocations to module description.
17317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17318         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17319         * modules/strcasestr-simple (configure.ac): ... to here.
17320         * modules/strcasestr (configure.ac): ... and here.
17321
17322 2011-05-22  Bruno Haible  <bruno@clisp.org>
17323
17324         strcase: Move AC_LIBOBJ invocations to module description.
17325         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17326         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17327         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17328         gl_PREREQ_STRNCASECMP invocations from here...
17329         * modules/strcase (configure.ac): ... to here.
17330
17331 2011-05-22  Bruno Haible  <bruno@clisp.org>
17332
17333         stpncpy: Move AC_LIBOBJ invocations to module description.
17334         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17335         here...
17336         * modules/stpncpy (configure.ac): ... to here.
17337
17338 2011-05-22  Bruno Haible  <bruno@clisp.org>
17339
17340         stpcpy: Move AC_LIBOBJ invocations to module description.
17341         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17342         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17343         here...
17344         * modules/stpcpy (configure.ac): ... to here.
17345
17346 2011-05-21  Bruno Haible  <bruno@clisp.org>
17347
17348         stat: Move AC_LIBOBJ invocations to module description.
17349         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17350         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17351         here...
17352         * modules/stat (configure.ac): ... to here.
17353
17354 2011-05-21  Bruno Haible  <bruno@clisp.org>
17355
17356         sleep: Move AC_LIBOBJ invocations to module description.
17357         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17358         * modules/sleep (configure.ac): ... to here.
17359
17360 2011-05-21  Bruno Haible  <bruno@clisp.org>
17361
17362         signbit: Move AC_LIBOBJ invocations to module description.
17363         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17364         * modules/signbit (configure.ac): ... to here.
17365
17366 2011-05-21  Bruno Haible  <bruno@clisp.org>
17367
17368         sigprocmask: Move AC_LIBOBJ invocations to module description.
17369         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17370         gl_PREREQ_SIGPROMASK invocations from here...
17371         * modules/sigprocmask (configure.ac): ... to here.
17372
17373 2011-05-21  Bruno Haible  <bruno@clisp.org>
17374
17375         sigaction: Move AC_LIBOBJ invocations to module description.
17376         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17377         gl_PREREQ_SIGACTION invocations from here...
17378         * modules/sigaction (configure.ac): ... to here.
17379
17380 2011-05-21  Bruno Haible  <bruno@clisp.org>
17381
17382         sig2str: Move AC_LIBOBJ invocations to module description.
17383         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17385         here...
17386         * modules/sig2str (configure.ac): ... to here.
17387
17388 2011-05-21  Bruno Haible  <bruno@clisp.org>
17389
17390         setlocale: Move AC_LIBOBJ invocations to module description.
17391         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17392         gl_PREREQ_SETLOCALE invocations from here...
17393         * modules/setlocale (configure.ac): ... to here.
17394
17395 2011-05-21  Bruno Haible  <bruno@clisp.org>
17396
17397         unsetenv: Move AC_LIBOBJ invocations to module description.
17398         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17399         and gl_PREREQ_UNSETENV invocations from here...
17400         * modules/unsetenv (configure.ac): ... to here.
17401         (Depends-on): Update.
17402
17403 2011-05-21  Bruno Haible  <bruno@clisp.org>
17404
17405         setenv: Move AC_LIBOBJ invocations to module description.
17406         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17407         here...
17408         * modules/setenv (configure.ac): ... to here.
17409
17410 2011-05-21  Bruno Haible  <bruno@clisp.org>
17411
17412         selinux-h: Move AC_LIBOBJ invocations to module description.
17413         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17414         AC_LIBOBJ invocation from here...
17415         * modules/selinux-h (configure.ac): ... to here.
17416
17417 2011-05-21  Bruno Haible  <bruno@clisp.org>
17418
17419         select: Respect rules for use of AC_LIBOBJ.
17420         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17421         here...
17422         * modules/select (configure.ac): ... to here.
17423
17424 2011-05-21  Bruno Haible  <bruno@clisp.org>
17425
17426         scandir: Move AC_LIBOBJ invocations to module description.
17427         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17428         invocations from here...
17429         * modules/scandir (configure.ac): ... to here.
17430
17431 2011-05-21  Bruno Haible  <bruno@clisp.org>
17432
17433         rpmatch: Move AC_LIBOBJ invocations to module description.
17434         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17436         here...
17437         * modules/rpmatch (configure.ac): ... to here.
17438
17439 2011-05-21  Bruno Haible  <bruno@clisp.org>
17440
17441         rmdir: Respect rules for use of AC_LIBOBJ.
17442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17443         * modules/rmdir (configure.ac): ... to here.
17444
17445 2011-05-21  Bruno Haible  <bruno@clisp.org>
17446
17447         renameat: Move AC_LIBOBJ invocations to module description.
17448         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17449         here...
17450         * modules/renameat (configure.ac): ... to here.
17451
17452 2011-05-21  Bruno Haible  <bruno@clisp.org>
17453
17454         rename: Respect rules for use of AC_LIBOBJ.
17455         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17456         here...
17457         * modules/rename (configure.ac): ... to here.
17458
17459 2011-05-21  Bruno Haible  <bruno@clisp.org>
17460
17461         remove: Move AC_LIBOBJ invocations to module description.
17462         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17463         here...
17464         * modules/remove (configure.ac): ... to here.
17465
17466 2011-05-21  Bruno Haible  <bruno@clisp.org>
17467
17468         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17469         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17470         macro.
17471         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17472         * modules/relocatable-lib (configure.ac): ... to here.
17473         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17474         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17475
17476 2011-05-21  Bruno Haible  <bruno@clisp.org>
17477
17478         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17479         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17480         here...
17481         * modules/relocatable-prog (configure.ac): ... to here.
17482
17483 2011-05-21  Bruno Haible  <bruno@clisp.org>
17484
17485         regex: Move AC_LIBOBJ invocations to module description.
17486         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17487         invocations from here...
17488         * modules/regex (configure.ac): ... to here.
17489
17490 2011-05-21  Bruno Haible  <bruno@clisp.org>
17491
17492         realloc-*: Move AC_LIBOBJ invocations to module description.
17493         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17494         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17495         AC_LIBOBJ invocations from here...
17496         * modules/realloc-gnu (configure.ac): ... to here.
17497         * modules/realloc-posix (configure.ac): ... and here.
17498
17499 2011-05-21  Bruno Haible  <bruno@clisp.org>
17500
17501         readutmp: Move AC_LIBOBJ invocations to module description.
17502         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17503         * modules/readutmp (configure.ac): ... to here.
17504
17505 2011-05-21  Bruno Haible  <bruno@clisp.org>
17506
17507         readlinkat: Move AC_LIBOBJ invocations to module description.
17508         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17509         here...
17510         * modules/readlinkat (configure.ac): ... to here.
17511
17512 2011-05-21  Bruno Haible  <bruno@clisp.org>
17513
17514         readlink: Move AC_LIBOBJ invocations to module description.
17515         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17516         gl_PREREQ_READLINK invocations from here...
17517         * modules/readlink (configure.ac): ... to here.
17518
17519 2011-05-21  Bruno Haible  <bruno@clisp.org>
17520
17521         readline: Move AC_LIBOBJ invocations to module description.
17522         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17523         gl_PREREQ_READLINE invocations from here...
17524         * modules/readline (configure.ac): ... to here.
17525
17526 2011-05-21  Bruno Haible  <bruno@clisp.org>
17527
17528         read: Move AC_LIBOBJ invocations to module description.
17529         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17530         * modules/read (configure.ac): ... to here.
17531
17532 2011-05-21  Bruno Haible  <bruno@clisp.org>
17533
17534         rawmemchr: Move AC_LIBOBJ invocations to module description.
17535         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17536         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17537         from here...
17538         * modules/rawmemchr (configure.ac): ... to here.
17539
17540 2011-05-21  Bruno Haible  <bruno@clisp.org>
17541
17542         random_r: Move AC_LIBOBJ invocations to module description.
17543         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17544         gl_PREREQ_RANDOM_R invocations from here...
17545         * modules/random_r (configure.ac): ... to here.
17546
17547 2011-05-21  Bruno Haible  <bruno@clisp.org>
17548
17549         pwrite: Move AC_LIBOBJ invocations to module description.
17550         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17551         * modules/pwrite (configure.ac): ... to here.
17552
17553 2011-05-21  Bruno Haible  <bruno@clisp.org>
17554
17555         putenv: Move AC_LIBOBJ invocations to module description.
17556         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17557         * modules/putenv (configure.ac): ... to here.
17558
17559 2011-05-21  Bruno Haible  <bruno@clisp.org>
17560
17561         login_tty: Move AC_LIBOBJ invocations to module description.
17562         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17563         * modules/login_tty (configure.ac): ... to here.
17564
17565 2011-05-21  Bruno Haible  <bruno@clisp.org>
17566
17567         openpty: Move AC_LIBOBJ invocations to module description.
17568         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17569         * modules/openpty (configure.ac): ... to here.
17570
17571 2011-05-21  Bruno Haible  <bruno@clisp.org>
17572
17573         forkpty: Move AC_LIBOBJ invocations to module description.
17574         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17575         * modules/forkpty (configure.ac): ... to here.
17576
17577 2011-05-21  Bruno Haible  <bruno@clisp.org>
17578
17579         ptsname: Move AC_LIBOBJ invocations to module description.
17580         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17581         invocations from here...
17582         * modules/ptsname (configure.ac): ... to here.
17583
17584 2011-05-21  Bruno Haible  <bruno@clisp.org>
17585
17586         pread: Move AC_LIBOBJ invocations to module description.
17587         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17588         * modules/pread (configure.ac): ... to here.
17589
17590 2011-05-21  Bruno Haible  <bruno@clisp.org>
17591
17592         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17593         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17594         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17595         * modules/posix_spawn (configure.ac): ... to here.
17596         * modules/posix_spawnp (configure.ac): ... and here.
17597
17598 2011-05-21  Bruno Haible  <bruno@clisp.org>
17599
17600         popen: Move AC_LIBOBJ invocations to module description.
17601         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17602         invocations from here...
17603         * modules/popen (configure.ac): ... to here.
17604
17605 2011-05-21  Bruno Haible  <bruno@clisp.org>
17606
17607         poll: Move AC_LIBOBJ invocations to module description.
17608         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17609         invocations from here...
17610         * modules/poll (configure.ac): ... to here.
17611
17612 2011-05-21  Bruno Haible  <bruno@clisp.org>
17613
17614         pipe-posix: Move AC_LIBOBJ invocations to module description.
17615         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17616         * modules/pipe-posix (configure.ac): ... to here.
17617
17618 2011-05-21  Bruno Haible  <bruno@clisp.org>
17619
17620         openat: Respect rules for use of AC_LIBOBJ.
17621         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17622         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17623         * modules/openat (configure.ac): ... to here.
17624
17625 2011-05-21  Bruno Haible  <bruno@clisp.org>
17626
17627         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17628         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17629         invocation from here...
17630         * modules/obstack-printf (configure.ac): ... to here.
17631         * modules/obstack-printf-posix (configure.ac): ... and here.
17632
17633 2011-05-21  Bruno Haible  <bruno@clisp.org>
17634
17635         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17636         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17637         from here...
17638         * modules/nl_langinfo (configure.ac): ... to here.
17639
17640 2011-05-21  Bruno Haible  <bruno@clisp.org>
17641
17642         nanosleep: Move AC_LIBOBJ invocations to module description.
17643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17644         gl_PREREQ_NANOSLEEP invocations from here...
17645         * modules/nanosleep (configure.ac): ... to here.
17646
17647 2011-05-21  Bruno Haible  <bruno@clisp.org>
17648
17649         mountlist: Move AC_LIBOBJ invocations to module description.
17650         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17651         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17652         * modules/mountlist (configure.ac): ... to here.
17653
17654 2011-05-21  Bruno Haible  <bruno@clisp.org>
17655
17656         mktime: Respect rules for use of AC_LIBOBJ.
17657         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17658         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17659         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17660         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17661         * modules/mktime (configure.ac): ... to here.
17662         * modules/mktime-internal (configure.ac): ... and here.
17663         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17664
17665 2011-05-21  Bruno Haible  <bruno@clisp.org>
17666
17667         mkstemps: Move AC_LIBOBJ invocations to module description.
17668         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17669         here...
17670         * modules/mkstemps (configure.ac): ... to here.
17671
17672 2011-05-21  Bruno Haible  <bruno@clisp.org>
17673
17674         mkstemp: Move AC_LIBOBJ invocations to module description.
17675         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17676         gl_PREREQ_MKSTEMP invocations from here...
17677         * modules/mkstemp (configure.ac): ... to here.
17678
17679 2011-05-21  Bruno Haible  <bruno@clisp.org>
17680
17681         mkostemps: Move AC_LIBOBJ invocations to module description.
17682         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17683         here...
17684         * modules/mkostemps (configure.ac): ... to here.
17685
17686 2011-05-21  Bruno Haible  <bruno@clisp.org>
17687
17688         mkostemp: Move AC_LIBOBJ invocations to module description.
17689         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17690         gl_PREREQ_MKOSTEMP invocations from here...
17691         * modules/mkostemp (configure.ac): ... to here.
17692
17693 2011-05-21  Bruno Haible  <bruno@clisp.org>
17694
17695         mknod: Move AC_LIBOBJ invocations to module description.
17696         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17697         * modules/mknod (configure.ac): ... to here.
17698
17699 2011-05-21  Bruno Haible  <bruno@clisp.org>
17700
17701         mkfifoat: Move AC_LIBOBJ invocations to module description.
17702         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17703         here...
17704         * modules/mkfifoat (configure.ac): ... to here.
17705
17706 2011-05-21  Bruno Haible  <bruno@clisp.org>
17707
17708         mkfifo: Respect rules for use of AC_LIBOBJ.
17709         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17710         here...
17711         * modules/mkfifo (configure.ac): ... to here.
17712
17713 2011-05-21  Bruno Haible  <bruno@clisp.org>
17714
17715         mkdtemp: Move AC_LIBOBJ invocations to module description.
17716         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17717         invocations from here...
17718         * modules/mkdtemp (configure.ac): ... to here.
17719
17720 2011-05-21  Bruno Haible  <bruno@clisp.org>
17721
17722         mkdir: Move AC_LIBOBJ invocations to module description.
17723         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17724         * modules/mkdir (configure.ac): ... to here.
17725
17726 2011-05-21  Bruno Haible  <bruno@clisp.org>
17727
17728         memset: Move AC_LIBOBJ invocations to module description.
17729         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17731         here...
17732         * modules/memset (configure.ac): ... to here.
17733
17734 2011-05-21  Bruno Haible  <bruno@clisp.org>
17735
17736         memrchr: Move AC_LIBOBJ invocations to module description.
17737         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17739         here...
17740         * modules/memrchr (configure.ac): ... to here.
17741
17742 2011-05-21  Bruno Haible  <bruno@clisp.org>
17743
17744         mempcpy: Move AC_LIBOBJ invocations to module description.
17745         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17746         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17747         here...
17748         * modules/mempcpy (configure.ac): ... to here.
17749
17750 2011-05-21  Bruno Haible  <bruno@clisp.org>
17751
17752         memmove: Move AC_LIBOBJ invocations to module description.
17753         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17754         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17755         here...
17756         * modules/memmove (configure.ac): ... to here.
17757
17758 2011-05-21  Bruno Haible  <bruno@clisp.org>
17759
17760         memmem*: Move AC_LIBOBJ invocations to module description.
17761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17762         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17763         here...
17764         (gl_FUNC_MEMMEM): ... and here...
17765         * modules/memmem-simple (configure.ac): ... to here.
17766         * modules/memmem (configure.ac): ... and here.
17767
17768 2011-05-21  Bruno Haible  <bruno@clisp.org>
17769
17770         memcpy: Move AC_LIBOBJ invocations to module description.
17771         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17773         here...
17774         * modules/memcpy (configure.ac): ... to here.
17775
17776 2011-05-21  Bruno Haible  <bruno@clisp.org>
17777
17778         memcmp: Simplify autoconf macro.
17779         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17780         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17781         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17782
17783 2011-05-21  Bruno Haible  <bruno@clisp.org>
17784
17785         memcmp: Move AC_LIBOBJ invocations to module description.
17786         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17787         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17788         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17789         * modules/memcmp (configure.ac): ... to here.
17790         (Depends-on): Update conditions.
17791
17792 2011-05-21  Bruno Haible  <bruno@clisp.org>
17793
17794         memchr: Respect rules for use of AC_LIBOBJ.
17795         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17796         invocations from here...
17797         * modules/memchr (configure.ac): ... to here.
17798
17799 2011-05-21  Bruno Haible  <bruno@clisp.org>
17800
17801         mbtowc: Move AC_LIBOBJ invocations to module description.
17802         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17803         invocations from here...
17804         * modules/mbtowc (configure.ac): ... to here.
17805
17806 2011-05-21  Bruno Haible  <bruno@clisp.org>
17807
17808         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17809         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17810         gl_PREREQ_MBSRTOWCS invocations from here...
17811         * modules/mbsrtowcs (configure.ac): ... to here.
17812
17813 2011-05-21  Bruno Haible  <bruno@clisp.org>
17814
17815         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17816         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17817         gl_PREREQ_MBSNRTOWCS invocations from here...
17818         * modules/mbsnrtowcs (configure.ac): ... to here.
17819
17820 2011-05-21  Bruno Haible  <bruno@clisp.org>
17821
17822         mbsinit: Move AC_LIBOBJ invocations to module description.
17823         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17824         invocations from here...
17825         * modules/mbsinit (configure.ac): ... to here.
17826
17827 2011-05-21  Bruno Haible  <bruno@clisp.org>
17828
17829         mbrlen: Move AC_LIBOBJ invocations to module description.
17830         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17831         invocations from here...
17832         * modules/mbrlen (configure.ac): ... to here.
17833
17834 2011-05-21  Bruno Haible  <bruno@clisp.org>
17835
17836         mbrtowc: Respect rules for use of AC_LIBOBJ.
17837         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17838         invocations from here...
17839         * modules/mbrtowc (configure.ac): ... to here.
17840
17841 2011-05-21  Bruno Haible  <bruno@clisp.org>
17842
17843         malloc-*: Move AC_LIBOBJ invocations to module description.
17844         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17845         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17846         AC_LIBOBJ invocations from here...
17847         * modules/malloc-gnu (configure.ac): ... to here.
17848         * modules/malloc-posix (configure.ac): ... and here.
17849
17850 2011-05-21  Bruno Haible  <bruno@clisp.org>
17851
17852         lstat, openat: Respect rules for use of AC_LIBOBJ.
17853         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17854         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17855         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17856         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17857         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17858         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17859         here.
17860         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17861
17862 2011-05-21  Bruno Haible  <bruno@clisp.org>
17863
17864         lseek: Move AC_LIBOBJ invocations to module description.
17865         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17866         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17867         * modules/lseek (configure.ac): ... to here.
17868
17869 2011-05-21  Bruno Haible  <bruno@clisp.org>
17870
17871         linkat: Move AC_LIBOBJ invocations to module description.
17872         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17873         here...
17874         * modules/linkat (configure.ac): ... to here.
17875
17876 2011-05-21  Bruno Haible  <bruno@clisp.org>
17877
17878         link: Respect rules for use of AC_LIBOBJ.
17879         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17880         * modules/link (configure.ac): ... to here.
17881
17882 2011-05-21  Bruno Haible  <bruno@clisp.org>
17883
17884         lchown: Move AC_LIBOBJ invocations to module description.
17885         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17886         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17887         * modules/lchown (configure.ac): ... to here.
17888
17889 2011-05-21  Bruno Haible  <bruno@clisp.org>
17890
17891         iswctype: Move AC_LIBOBJ invocations to module description.
17892         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17893         here...
17894         * modules/iswctype (configure.ac): ... to here.
17895
17896 2011-05-21  Bruno Haible  <bruno@clisp.org>
17897
17898         iswblank: Move AC_LIBOBJ invocations to module description.
17899         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17900         here...
17901         * modules/iswblank (configure.ac): ... to here.
17902
17903 2011-05-21  Bruno Haible  <bruno@clisp.org>
17904
17905         atanl: Move AC_LIBOBJ invocations to module description.
17906         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17907         * modules/atanl (configure.ac): ... to here.
17908
17909 2011-05-21  Bruno Haible  <bruno@clisp.org>
17910
17911         acosl: Move AC_LIBOBJ invocations to module description.
17912         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17913         * modules/acosl (configure.ac): ... to here.
17914
17915 2011-05-21  Bruno Haible  <bruno@clisp.org>
17916
17917         asinl: Respect rules for use of AC_LIBOBJ.
17918         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17919         * modules/asinl (configure.ac): ... to here.
17920
17921 2011-05-21  Bruno Haible  <bruno@clisp.org>
17922
17923         tanl: Move AC_LIBOBJ invocations to module description.
17924         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17925         * modules/tanl (configure.ac): ... to here.
17926
17927 2011-05-21  Bruno Haible  <bruno@clisp.org>
17928
17929         cosl: Move AC_LIBOBJ invocations to module description.
17930         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17931         * modules/cosl (configure.ac): ... to here.
17932
17933 2011-05-21  Bruno Haible  <bruno@clisp.org>
17934
17935         sinl: Move AC_LIBOBJ invocations to module description.
17936         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17937         * modules/sinl (configure.ac): ... to here.
17938
17939 2011-05-21  Bruno Haible  <bruno@clisp.org>
17940
17941         logl: Move AC_LIBOBJ invocations to module description.
17942         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17943         * modules/logl (configure.ac): ... to here.
17944
17945 2011-05-21  Bruno Haible  <bruno@clisp.org>
17946
17947         expl: Move AC_LIBOBJ invocations to module description.
17948         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17949         * modules/expl (configure.ac): ... to here.
17950
17951 2011-05-21  Bruno Haible  <bruno@clisp.org>
17952
17953         roundl: Move AC_LIBOBJ invocations to module description.
17954         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17955         * modules/roundl (configure.ac): ... to here.
17956
17957 2011-05-21  Bruno Haible  <bruno@clisp.org>
17958
17959         round: Move AC_LIBOBJ invocations to module description.
17960         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17961         * modules/round (configure.ac): ... to here.
17962
17963 2011-05-21  Bruno Haible  <bruno@clisp.org>
17964
17965         roundf: Move AC_LIBOBJ invocations to module description.
17966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17967         * modules/roundf (configure.ac): ... to here.
17968
17969 2011-05-21  Bruno Haible  <bruno@clisp.org>
17970
17971         truncl: Move AC_LIBOBJ invocations to module description.
17972         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17973         * modules/truncl (configure.ac): ... to here.
17974
17975 2011-05-21  Bruno Haible  <bruno@clisp.org>
17976
17977         trunc: Move AC_LIBOBJ invocations to module description.
17978         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17979         * modules/trunc (configure.ac): ... to here.
17980
17981 2011-05-21  Bruno Haible  <bruno@clisp.org>
17982
17983         truncf: Move AC_LIBOBJ invocations to module description.
17984         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17985         * modules/truncf (configure.ac): ... to here.
17986
17987 2011-05-21  Bruno Haible  <bruno@clisp.org>
17988
17989         ceill: Move AC_LIBOBJ invocations to module description.
17990         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17991         * modules/ceill (configure.ac): ... to here.
17992
17993 2011-05-21  Bruno Haible  <bruno@clisp.org>
17994
17995         ceil: Move AC_LIBOBJ invocations to module description.
17996         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17997         * modules/ceil (configure.ac): ... to here.
17998
17999 2011-05-21  Bruno Haible  <bruno@clisp.org>
18000
18001         ceilf: Move AC_LIBOBJ invocations to module description.
18002         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18003         * modules/ceilf (configure.ac): ... to here.
18004
18005 2011-05-21  Bruno Haible  <bruno@clisp.org>
18006
18007         floorl: Respect rules for use of AC_LIBOBJ.
18008         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18009         * modules/floorl (configure.ac): ... to here.
18010
18011 2011-05-21  Bruno Haible  <bruno@clisp.org>
18012
18013         floor: Respect rules for use of AC_LIBOBJ.
18014         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18015         * modules/floor (configure.ac): ... to here.
18016
18017 2011-05-21  Bruno Haible  <bruno@clisp.org>
18018
18019         floorf: Move AC_LIBOBJ invocations to module description.
18020         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18021         * modules/floorf (configure.ac): ... to here.
18022
18023 2011-05-20  Bruno Haible  <bruno@clisp.org>
18024
18025         sqrtl: Respect rules for use of AC_LIBOBJ.
18026         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18027         * modules/sqrtl (configure.ac): ... to here.
18028
18029 2011-05-20  Bruno Haible  <bruno@clisp.org>
18030
18031         ldexpl: Respect rules for use of AC_LIBOBJ.
18032         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18033         * modules/ldexpl (configure.ac): ... to here.
18034
18035 2011-05-20  Bruno Haible  <bruno@clisp.org>
18036
18037         frexpl*: Respect rules for use of AC_LIBOBJ.
18038         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18039         invocation from here...
18040         * modules/frexpl (configure.ac): ... to here.
18041         * modules/frexpl-nolibm (configure.ac): ... and here.
18042
18043 2011-05-20  Bruno Haible  <bruno@clisp.org>
18044
18045         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18046         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18047         invocation from here...
18048         * modules/frexp (configure.ac): ... to here.
18049         * modules/frexp-nolibm (configure.ac): ... and here.
18050
18051 2011-05-20  Bruno Haible  <bruno@clisp.org>
18052
18053         isnan: Respect rules for use of AC_LIBOBJ.
18054         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18055         invocations here.
18056         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18057         REPLACE_ISNAN.
18058         * modules/isnand (configure.ac): Likewise.
18059         * modules/isnanl (configure.ac): Likewise.
18060
18061 2011-05-20  Bruno Haible  <bruno@clisp.org>
18062
18063         isnanl*: Respect rules for use of AC_LIBOBJ.
18064         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18065         invocation from here...
18066         * modules/isnanl (configure.ac): ... to here.
18067         * modules/isnanl-nolibm (configure.ac): ... and here.
18068
18069 2011-05-20  Bruno Haible  <bruno@clisp.org>
18070
18071         isnand*: Move AC_LIBOBJ invocations to module description.
18072         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18073         invocation from here...
18074         * modules/isnand (configure.ac): ... to here.
18075         * modules/isnand-nolibm (configure.ac): ... and here.
18076
18077 2011-05-20  Bruno Haible  <bruno@clisp.org>
18078
18079         isnanf*: Move AC_LIBOBJ invocations to module description.
18080         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18081         invocation from here...
18082         * modules/isnanf (configure.ac): ... to here.
18083         * modules/isnanf-nolibm (configure.ac): ... and here.
18084
18085 2011-05-20  Bruno Haible  <bruno@clisp.org>
18086
18087         isnan*: Separate the AC_LIBOBJ invocations.
18088         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18089         AC_LIBOBJ invocation.
18090         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18091         here.
18092         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18093         AC_LIBOBJ invocation.
18094         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18095         here.
18096         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18097         AC_LIBOBJ invocation.
18098         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18099         here.
18100         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18101
18102 2011-05-08  Bruno Haible  <bruno@clisp.org>
18103
18104         isinf: Move AC_LIBOBJ invocations to module description.
18105         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18106         * modules/isinf (configure.ac): ... to here.
18107
18108 2011-05-08  Bruno Haible  <bruno@clisp.org>
18109
18110         isfinite: Move AC_LIBOBJ invocations to module description.
18111         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18112         * modules/isfinite (configure.ac): ... to here.
18113
18114 2011-05-08  Bruno Haible  <bruno@clisp.org>
18115
18116         isblank: Move AC_LIBOBJ invocations to module description.
18117         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18118         here...
18119         * modules/isblank (configure.ac): ... to here.
18120
18121 2011-05-08  Bruno Haible  <bruno@clisp.org>
18122
18123         isapipe: Move AC_LIBOBJ invocations to module description.
18124         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18125         gl_PREREQ_ISAPIPE invocations from here...
18126         * modules/isapipe (configure.ac): ... to here.
18127         (Depends-on): Update condition.
18128
18129 2011-05-08  Bruno Haible  <bruno@clisp.org>
18130
18131         ioctl: Move AC_LIBOBJ invocations to module description.
18132         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18133         invocations from here...
18134         * modules/ioctl (configure.ac): ... to here.
18135         (Depends-on): Update condition.
18136
18137 2011-05-08  Bruno Haible  <bruno@clisp.org>
18138
18139         imaxdiv: Move AC_LIBOBJ invocations to module description.
18140         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18141         invocations from here...
18142         * modules/imaxdiv (configure.ac): ... to here.
18143
18144 2011-05-08  Bruno Haible  <bruno@clisp.org>
18145
18146         imaxabs: Move AC_LIBOBJ invocations to module description.
18147         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18148         invocations from here...
18149         * modules/imaxabs (configure.ac): ... to here.
18150
18151 2011-05-08  Bruno Haible  <bruno@clisp.org>
18152
18153         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18155         AC_LIBOBJ invocations from here...
18156         * modules/getaddrinfo (configure.ac): ... to here.
18157         (Depends-on): Add conditions.
18158
18159 2011-05-08  Bruno Haible  <bruno@clisp.org>
18160
18161         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18162         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18163         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18164         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18165         (gl_PREREQ_INET_PTON): ... from here.
18166         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18167         gl_PREREQ_INET_PTON here.
18168         (Depends-on): Update condition.
18169
18170 2011-05-08  Bruno Haible  <bruno@clisp.org>
18171
18172         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18173         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18174         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18175         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18176         (gl_PREREQ_INET_NTOP): ... from here.
18177         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18178         gl_PREREQ_INET_NTOP here.
18179         (Depends-on): Update condition.
18180
18181 2011-05-08  Bruno Haible  <bruno@clisp.org>
18182
18183         iconv_open: Move AC_LIBOBJ invocations to module description.
18184         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18185         AC_LIBOBJ invocations from here...
18186         * modules/iconv_open (configure.ac): ... to here.
18187
18188 2011-05-08  Bruno Haible  <bruno@clisp.org>
18189
18190         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18191         If module 'iconv_open' is among the main modules and module
18192         'iconv_open-utf' is among the tests dependencies, then
18193         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18194         return the special iconv_t values. Therefore iconv() and iconv_close()
18195         must support these special iconv_t values, already in lib, not only in
18196         tests.
18197         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18198         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18199         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18200         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18201         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18202         (Depends-on): Add the dependencies of iconv_open-utf.
18203         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18204         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18205         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18206
18207 2011-05-08  Bruno Haible  <bruno@clisp.org>
18208
18209         group-member: Move AC_LIBOBJ invocations to module description.
18210         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18211         gl_PREREQ_GROUP_MEMBER invocations from here...
18212         * modules/group-member (configure.ac): ... to here.
18213
18214 2011-05-08  Bruno Haible  <bruno@clisp.org>
18215
18216         grantpt: Move AC_LIBOBJ invocations to module description.
18217         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18218         invocations from here...
18219         * modules/grantpt (configure.ac): ... to here.
18220
18221 2011-05-08  Bruno Haible  <bruno@clisp.org>
18222
18223         glob: Move AC_LIBOBJ invocations to module description.
18224         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18225         from here...
18226         * modules/glob (configure.ac): ... to here.
18227
18228 2011-05-08  Bruno Haible  <bruno@clisp.org>
18229
18230         getusershell: Move AC_LIBOBJ invocations to module description.
18231         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18232         Move AC_LIBOBJ invocation from here...
18233         * modules/getusershell (configure.ac): ... to here.
18234         (Depends-on): Update condition.
18235
18236 2011-05-08  Bruno Haible  <bruno@clisp.org>
18237
18238         gettimeofday: Move AC_LIBOBJ invocations to module description.
18239         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18240         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18241         gl_PREREQ_GETTIMEOFDAY invocations from here...
18242         * modules/gettimeofday (configure.ac): ... to here.
18243
18244 2011-05-08  Bruno Haible  <bruno@clisp.org>
18245
18246         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18247         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18248         just gl_FUNC_TZSET.
18249         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18250         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18251         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18252         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18253
18254 2011-05-08  Bruno Haible  <bruno@clisp.org>
18255
18256         getsubopt: Move AC_LIBOBJ invocations to module description.
18257         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18258         gl_PREREQ_GETSUBOPT invocations from here...
18259         * modules/getsubopt (configure.ac): ... to here.
18260
18261 2011-05-08  Bruno Haible  <bruno@clisp.org>
18262
18263         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18264         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18265         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18266         * modules/getpass-gnu (configure.ac): ... to here.
18267
18268 2011-05-08  Bruno Haible  <bruno@clisp.org>
18269
18270         getpass: Move AC_LIBOBJ invocations to module description.
18271         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18272         gl_PREREQ_GETPASS invocations from here...
18273         * modules/getpass (configure.ac): ... to here.
18274
18275 2011-05-08  Bruno Haible  <bruno@clisp.org>
18276
18277         getpagesize: Move AC_LIBOBJ invocations to module description.
18278         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18279         from here...
18280         * modules/getpagesize (configure.ac): ... to here.
18281
18282 2011-05-08  Bruno Haible  <bruno@clisp.org>
18283
18284         getopt: Move AC_LIBOBJ invocations to module description.
18285         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18286         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18287         invocations from here...
18288         * modules/getopt-gnu (configure.ac): ... to here.
18289         * modules/getopt-posix (configure.ac): ... and here.
18290         (Depends-on): Update condition.
18291
18292 2011-05-08  Bruno Haible  <bruno@clisp.org>
18293
18294         getopt, argp: Respect rules for use of AC_LIBOBJ.
18295         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18296         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18297         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18298         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18299
18300 2011-05-08  Bruno Haible  <bruno@clisp.org>
18301
18302         getlogin_r: Move AC_LIBOBJ invocations to module description.
18303         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18304         gl_PREREQ_GETLOGIN_R invocations from here...
18305         * modules/getlogin_r (configure.ac): ... to here.
18306
18307 2011-05-08  Bruno Haible  <bruno@clisp.org>
18308
18309         getlogin: Move AC_LIBOBJ invocations to module description.
18310         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18311         here...
18312         * modules/getlogin (configure.ac): ... to here.
18313
18314 2011-05-08  Bruno Haible  <bruno@clisp.org>
18315
18316         getloadavg: Move AC_LIBOBJ invocations to module description.
18317         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18318         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18319         * modules/getloadavg (configure.ac): ... to here.
18320
18321 2011-05-08  Bruno Haible  <bruno@clisp.org>
18322
18323         gethrxtime: Move AC_LIBOBJ invocations to module description.
18324         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18325         LIB_GETHRXTIME from here...
18326         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18327         invocations from here...
18328         * modules/gethrxtime (configure.ac): ... to here.
18329
18330 2011-05-08  Bruno Haible  <bruno@clisp.org>
18331
18332         gethostname: Move AC_LIBOBJ invocations to module description.
18333         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18334         gl_PREREQ_GETHOSTNAME invocations from here...
18335         * modules/gethostname (configure.ac): ... to here.
18336
18337 2011-05-08  Bruno Haible  <bruno@clisp.org>
18338
18339         getgroups: Move AC_LIBOBJ invocations to module description.
18340         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18341         here...
18342         * modules/getgroups (configure.ac): ... to here.
18343
18344 2011-05-08  Bruno Haible  <bruno@clisp.org>
18345
18346         getdtablesize: Move AC_LIBOBJ invocations to module description.
18347         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18348         invocation from here...
18349         * modules/getdtablesize (configure.ac): ... to here.
18350
18351 2011-05-08  Bruno Haible  <bruno@clisp.org>
18352
18353         getdomainname: Move AC_LIBOBJ invocations to module description.
18354         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18355         gl_PREREQ_GETDOMAINNAME invocations from here...
18356         * modules/getdomainname (configure.ac): ... to here.
18357
18358 2011-05-08  Bruno Haible  <bruno@clisp.org>
18359
18360         getline: Move AC_LIBOBJ invocations to module description.
18361         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18362         invocations from here...
18363         * modules/getline (configure.ac): ... to here.
18364
18365 2011-05-08  Bruno Haible  <bruno@clisp.org>
18366
18367         getline: Simplify.
18368         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18369         It's already handled through the module dependency.
18370
18371 2011-05-08  Bruno Haible  <bruno@clisp.org>
18372
18373         getdelim: Move AC_LIBOBJ invocations to module description.
18374         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18375         and gl_PREREQ_GETDELIM invocations from here...
18376         * modules/getdelim (configure.ac): ... to here.
18377         (Depends-on): Fix condition.
18378
18379 2011-05-08  Bruno Haible  <bruno@clisp.org>
18380
18381         getcwd: Move AC_LIBOBJ invocations to module description.
18382         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18383         invocations from here...
18384         * modules/getcwd (configure.ac): ... to here.
18385
18386 2011-05-08  Bruno Haible  <bruno@clisp.org>
18387
18388         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18389         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18390         here...
18391         * modules/getcwd-lgpl (configure.ac): ... to here.
18392
18393 2011-05-07  Bruno Haible  <bruno@clisp.org>
18394
18395         crypto/gc: Move AC_LIBOBJ invocations to module description.
18396         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18397         * modules/crypto/gc (configure.ac): ... to here.
18398
18399 2011-05-07  Bruno Haible  <bruno@clisp.org>
18400
18401         fwriting: Move AC_LIBOBJ invocations to module description.
18402         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18403         here...
18404         * modules/fwriting (configure.ac): ... to here.
18405
18406 2011-05-07  Bruno Haible  <bruno@clisp.org>
18407
18408         fwritable: Move AC_LIBOBJ invocations to module description.
18409         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18410         here...
18411         * modules/fwritable (configure.ac): ... to here.
18412
18413 2011-05-07  Bruno Haible  <bruno@clisp.org>
18414
18415         futimens: Move AC_LIBOBJ invocations to module description.
18416         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18417         here...
18418         * modules/futimens (configure.ac): ... to here.
18419
18420 2011-05-07  Bruno Haible  <bruno@clisp.org>
18421
18422         ftruncate: Move AC_LIBOBJ invocations to module description.
18423         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18424         gl_PREREQ_FTRUNCATE invocations from here...
18425         * modules/ftruncate (configure.ac): ... to here.
18426
18427 2011-05-07  Bruno Haible  <bruno@clisp.org>
18428
18429         fsync: Move AC_LIBOBJ invocations to module description.
18430         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18431         invocations from here...
18432         * modules/fsync (configure.ac): ... to here.
18433
18434 2011-05-07  Bruno Haible  <bruno@clisp.org>
18435
18436         fsusage: Move AC_LIBOBJ invocations to module description.
18437         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18438         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18439         * modules/fsusage (configure.ac): ... to here.
18440
18441 2011-05-07  Bruno Haible  <bruno@clisp.org>
18442
18443         freopen: Move AC_LIBOBJ invocations to module description.
18444         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18445         invocations from here...
18446         * modules/freopen (configure.ac): ... to here.
18447
18448 2011-05-07  Bruno Haible  <bruno@clisp.org>
18449
18450         free: Move AC_LIBOBJ invocations to module description.
18451         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18452         invocations from here...
18453         * modules/free (configure.ac): ... to here.
18454
18455 2011-05-07  Bruno Haible  <bruno@clisp.org>
18456
18457         freadable: Move AC_LIBOBJ invocations to module description.
18458         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18459         here...
18460         * modules/freadable (configure.ac): ... to here.
18461
18462 2011-05-07  Bruno Haible  <bruno@clisp.org>
18463
18464         fpurge: Move AC_LIBOBJ invocations to module description.
18465         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18466         invocations from here...
18467         * modules/fpurge (configure.ac): ... to here.
18468
18469 2011-05-07  Bruno Haible  <bruno@clisp.org>
18470
18471         fpending: Move AC_LIBOBJ invocations to module description.
18472         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18473         gl_FUNC_FPENDING.
18474         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18475         invocations from here...
18476         * modules/fpending (configure.ac): ... to here.
18477
18478 2011-05-07  Bruno Haible  <bruno@clisp.org>
18479
18480         fopen: Move AC_LIBOBJ invocations to module description.
18481         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18482         invocations from here...
18483         * modules/fopen (configure.ac): ... to here.
18484
18485 2011-05-07  Bruno Haible  <bruno@clisp.org>
18486
18487         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18488         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18489         gl_FUNC_FNMATCH_POSIX.
18490         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18491         invocations from here...
18492         * modules/fnmatch (configure.ac): ... to here.
18493         * modules/fnmatch-gnu (configure.ac): ... and here.
18494
18495 2011-05-07  Bruno Haible  <bruno@clisp.org>
18496
18497         flock: Move AC_LIBOBJ invocations to module description.
18498         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18499         invocations from here...
18500         * modules/flock (configure.ac): ... to here.
18501
18502 2011-05-07  Bruno Haible  <bruno@clisp.org>
18503
18504         fileblocks: Move AC_LIBOBJ invocations to module description.
18505         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18506         gl_PREREQ_FILEBLOCKS invocations from here...
18507         * modules/fileblocks (configure.ac): ... to here.
18508
18509 2011-05-06  Bruno Haible  <bruno@clisp.org>
18510
18511         fflush: Move AC_LIBOBJ invocations to module description.
18512         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18513         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18514         invocations from here...
18515         * modules/fflush (configure.ac): ... to here.
18516
18517 2011-05-06  Bruno Haible  <bruno@clisp.org>
18518
18519         fdopendir: Move AC_LIBOBJ invocations to module description.
18520         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18521         here...
18522         * modules/fdopendir (configure.ac): ... to here.
18523         (Depends-on): Improve conditions.
18524
18525 2011-05-06  Bruno Haible  <bruno@clisp.org>
18526
18527         _Exit: Move AC_LIBOBJ invocations to module description.
18528         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18529         invocations from here...
18530         * modules/_Exit (configure.ac): ... to here.
18531
18532 2011-05-21  Bruno Haible  <bruno@clisp.org>
18533
18534         euidaccess: Respect rules for use of AC_LIBOBJ.
18535         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18536         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18537         from here...
18538         * modules/euidaccess (configure.ac): ... to here.
18539
18540 2011-05-06  Bruno Haible  <bruno@clisp.org>
18541
18542         error: Move AC_LIBOBJ invocations to module description.
18543         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18544         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18545         invocations from here...
18546         * modules/error (configure.ac): ... to here.
18547
18548 2011-05-06  Bruno Haible  <bruno@clisp.org>
18549
18550         duplocale: Move AC_LIBOBJ invocations to module description.
18551         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18552         gl_PREREQ_DUPLOCALE invocations from here...
18553         * modules/duplocale (configure.ac): ... to here.
18554
18555 2011-05-05  Bruno Haible  <bruno@clisp.org>
18556
18557         dirfd: Move AC_LIBOBJ invocations to module description.
18558         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18559         gl_FUNC_DIRFD.
18560         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18561         here...
18562         * modules/dirfd (configure.ac): ... to here.
18563         (Depends-on): Fix condition.
18564
18565 2011-05-05  Bruno Haible  <bruno@clisp.org>
18566
18567         chown: Respect rules for use of AC_LIBOBJ.
18568         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18569         * modules/chown (configure.ac): ... to here.
18570
18571 2011-05-05  Bruno Haible  <bruno@clisp.org>
18572
18573         chdir-long: Move AC_LIBOBJ invocations to module description.
18574         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18575         gl_PREREQ_CHDIR_LONG invocations from here...
18576         * modules/chdir-long (configure.ac): ... to here.
18577
18578 2011-05-05  Bruno Haible  <bruno@clisp.org>
18579
18580         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18581         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18582         from here...
18583         * modules/canonicalize-lgpl (configure.ac): ... to here.
18584
18585 2011-05-05  Bruno Haible  <bruno@clisp.org>
18586
18587         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18588         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18589         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18590         REPLACE_CALLOC.
18591         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18592         * modules/calloc-gnu (configure.ac): Likewise.
18593
18594 2011-05-05  Bruno Haible  <bruno@clisp.org>
18595
18596         btowc: Move AC_LIBOBJ invocations to module description.
18597         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18598         invocations from here...
18599         * modules/btowc (configure.ac): ... to here.
18600
18601 2011-05-21  Bruno Haible  <bruno@clisp.org>
18602
18603         atexit: Move AC_LIBOBJ invocations to module description.
18604         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18605         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18606         here...
18607         * modules/atexit (configure.ac): ... to here.
18608
18609 2011-05-05  Bruno Haible  <bruno@clisp.org>
18610
18611         atoll: Move AC_LIBOBJ invocations to module description.
18612         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18613         invocations from here...
18614         * modules/atoll (configure.ac): ... to here.
18615
18616 2011-05-05  Bruno Haible  <bruno@clisp.org>
18617
18618         argz: Move AC_LIBOBJ invocations to module description.
18619         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18620         * modules/argz (configure.ac): ... to here.
18621
18622 2011-05-05  Bruno Haible  <bruno@clisp.org>
18623
18624         alphasort: Move AC_LIBOBJ invocations to module description.
18625         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18626         gl_PREREQ_ALPHASORT invocations from here...
18627         * modules/alphasort (configure.ac): ... to here.
18628
18629 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18630
18631         verify: new macro verify_expr; verify_true deprecated
18632         * NEWS: Mention this.
18633         * doc/verify.texi (Compile-time Assertions): Document this.
18634         * lib/verify.h (verify_true): Deprecate.
18635         (verify_expr): New macro.
18636         * tests/test-verify.c (function): Test verify_expr.
18637
18638 2011-06-14  Jim Meyering  <meyering@redhat.com>
18639
18640         init.sh: give more portable redirection-related advice in a comment
18641         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18642         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18643         for lots of discussion.  Stefano Lattarini suggested the solution
18644         of putting "9>&2" after the command.  Reported by Bruno Haible.
18645
18646 2011-06-13  Bruno Haible  <bruno@clisp.org>
18647
18648         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18649         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18650         'none'.
18651
18652 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18653
18654         ftoastr: use strtof only if HAVE_STRTOF
18655         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18657         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18658         * modules/ftoastr (configure.ac): Check for strtof.
18659
18660 2011-06-13  Bruno Haible  <bruno@clisp.org>
18661
18662         gnulib-tool: Addendum to 2011-06-08 commit.
18663         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18664         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18665
18666 2011-06-13  Bruno Haible  <bruno@clisp.org>
18667
18668         fseeko: Provide a non-inline replacement of fseek().
18669         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18670         * modules/fseeko (Depends-on): Add fseek.
18671         * modules/fseek (License): Change to LGPLv2+.
18672
18673 2011-06-13  Bruno Haible  <bruno@clisp.org>
18674
18675         ftello: Provide a non-inline replacement of ftell().
18676         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18677         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18678         not have ftello() (such as on mingw).
18679         * modules/ftello (Depends-on): Add ftell.
18680         * modules/ftell (License): Change to LGPLv2+.
18681
18682 2011-05-07  Bruno Haible  <bruno@clisp.org>
18683
18684         ftell: Move AC_LIBOBJ invocations to module description.
18685         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18686         * modules/ftell (configure.ac): ... to here.
18687
18688 2011-05-07  Bruno Haible  <bruno@clisp.org>
18689
18690         ftello: Respect rules for use of AC_LIBOBJ.
18691         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18692         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18693         here...
18694         * modules/ftello (configure.ac): ... to here.
18695
18696 2011-05-07  Bruno Haible  <bruno@clisp.org>
18697
18698         fseeko: Simplify.
18699         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18700         (gl_FUNC_FSEEKO): Inline it here.
18701
18702 2011-05-07  Bruno Haible  <bruno@clisp.org>
18703
18704         fseek: Move AC_LIBOBJ invocations to module description.
18705         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18706         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18707         * modules/fseek (configure.ac): ... to here.
18708
18709 2011-05-07  Bruno Haible  <bruno@clisp.org>
18710
18711         fseek: Respect rules for use of AC_LIBOBJ.
18712         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18713         here...
18714         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18715
18716 2011-05-07  Bruno Haible  <bruno@clisp.org>
18717
18718         fseeko: Respect rules for use of AC_LIBOBJ.
18719         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18720         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18721         here...
18722         * modules/fseeko (configure.ac): ... to here.
18723
18724 2011-06-13  Bruno Haible  <bruno@clisp.org>
18725
18726         gnulib-tool: Allow comments in the 'Depends-on' section.
18727         * doc/gnulib.texi (Module description): Mention comment syntax in the
18728         Depends-on section.
18729         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18730
18731 2011-06-13  Bruno Haible  <bruno@clisp.org>
18732
18733         file-set.h: guard __attibute__ use, now that it's not always defined
18734         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18735         versions that support it.  This fixes a coreutils build failure with
18736         the vendor cc on HP-UX 11.31.
18737
18738 2011-06-12  Bruno Haible  <bruno@clisp.org>
18739
18740         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18741         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18742         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18743         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18744         (acl, aclsort): New declarations.
18745         (aclv_nontrivial): New declaration.
18746         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18747         (file_has_acl): Read also the second kind of HP-UX ACLs.
18748         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18749         kind of HP-UX ACLs if the first kind fails.
18750         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18751         second kind of HP-UX ACLs.
18752         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18753         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18754         agree.
18755         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18756         hpuxjfs.
18757         Handle hpuxjfs.
18758         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18759         hpuxjfs.
18760         Handle hpuxjfs.
18761         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18762         (func_test_same_acls): Use both lsacl and getacl.
18763         Handle hpuxjfs.
18764         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18765         (func_test_same_acls): Use both lsacl and getacl.
18766         Handle hpuxjfs.
18767
18768 2011-06-12  Bruno Haible  <bruno@clisp.org>
18769
18770         acl: Complete the 2010-08-10 fix.
18771         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18772         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18773         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18774         explicitly.
18775         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18776         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18777
18778 2011-06-12  Bruno Haible  <bruno@clisp.org>
18779
18780         spawn-pipe tests: Comments.
18781         * tests/test-spawn-pipe-child.c (main): Update comment.
18782         Reported by James Youngman <jay@gnu.org>.
18783
18784 2011-06-11  James Youngman  <jay@gnu.org>
18785
18786         New module 'stat-size'.
18787         * modules/stat-size: New module.  Provides macros for accessing
18788         file size information in instances of struct stat.  Depends on the
18789         fileblocks module because it calls st_blocks.
18790         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18791         * doc/gnulib.texi: Include stat-size.texi.
18792         * doc/stat-size.texi: Documentation for this module.
18793         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18794         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18795         AC_STRUCT_ST_BLOCKS.
18796
18797 2011-06-09  Bruno Haible  <bruno@clisp.org>
18798
18799         thread: Support pthreads-win32.
18800         * lib/glthread/thread.h (gl_thread_self): Define differently on
18801         pthreads-win32.
18802         (gl_null_thread): New declaration.
18803         (gl_thread_self_pointer): New macro.
18804         * lib/glthread/thread.c (gl_null_thread): New constant.
18805         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18806         gl_thread_self.
18807         * tests/test-tls.c: Likewise.
18808         Suggested by Paul Eggert. Reported by Eric Blake.
18809
18810 2011-06-09  Bruno Haible  <bruno@clisp.org>
18811
18812         thread: Fix confusion between NULL and 0.
18813         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18814         Reported by Paul Eggert.
18815
18816 2011-06-09  Bruno Haible  <bruno@clisp.org>
18817
18818         spawn-pipe tests: Avoid test failure on HP-UX 11.
18819         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18820         is closed.
18821
18822 2011-06-09  Bruno Haible  <bruno@clisp.org>
18823
18824         acl tests: Fix compilation error on HP-UX 11.
18825         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18826
18827 2011-06-09  Bruno Haible  <bruno@clisp.org>
18828
18829         rmdir: Avoid test failure on HP-UX 10.20.
18830         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18831         EEXIST.
18832
18833 2011-06-08  Eric Blake  <eblake@redhat.com>
18834
18835         perror: fix test on mingw
18836         * modules/perror-tests (Depends-on): Add dup2.
18837
18838         strerror_r-posix: fix on MacOS
18839         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18840         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18841         logic bug.
18842         * lib/strerror_r.c (strerror_r): Fix the bug.
18843         * lib/strerror.c (strerror): Likewise.
18844         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18845         problem.
18846         * doc/posix-functions/strerror.texi (strerror): Likewise.
18847         * doc/posix-functions/perror.texi (perror): Likewise.
18848         * tests/test-strerror.c (main): Enhance test.
18849         * tests/test-strerror_r.c (main): Likewise.
18850
18851 2011-06-08  Bruno Haible  <bruno@clisp.org>
18852
18853         gnulib-tool: Better isolation between different gnulib-tool invocations.
18854         * gnulib-tool: New option --witness-c-macro.
18855         (witness_c_macro): New variable.
18856         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18857         AM_CPPFLAGS define it as a C macro.
18858         (func_emit_tests_Makefile_am): Likewise.
18859         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18860         read it from there.
18861         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18862         m4_define, not AC_DEFUN.
18863         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18864         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18865         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18866         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18867         s|...|...|, to substitute the values of the GNULIB_* module indicator
18868         variables.
18869         * modules/dirent (Makefile.am): Likewise.
18870         * modules/fcntl-h (Makefile.am): Likewise.
18871         * modules/iconv-h (Makefile.am): Likewise.
18872         * modules/langinfo (Makefile.am): Likewise.
18873         * modules/locale (Makefile.am): Likewise.
18874         * modules/math (Makefile.am): Likewise.
18875         * modules/netdb (Makefile.am): Likewise.
18876         * modules/poll-h (Makefile.am): Likewise.
18877         * modules/pty (Makefile.am): Likewise.
18878         * modules/search (Makefile.am): Likewise.
18879         * modules/signal (Makefile.am): Likewise.
18880         * modules/spawn (Makefile.am): Likewise.
18881         * modules/stdio (Makefile.am): Likewise.
18882         * modules/stdlib (Makefile.am): Likewise.
18883         * modules/string (Makefile.am): Likewise.
18884         * modules/sys_ioctl (Makefile.am): Likewise.
18885         * modules/sys_select (Makefile.am): Likewise.
18886         * modules/sys_socket (Makefile.am): Likewise.
18887         * modules/sys_stat (Makefile.am): Likewise.
18888         * modules/sys_times (Makefile.am): Likewise.
18889         * modules/sys_utsname (Makefile.am): Likewise.
18890         * modules/sys_wait (Makefile.am): Likewise.
18891         * modules/termios (Makefile.am): Likewise.
18892         * modules/time (Makefile.am): Likewise.
18893         * modules/unistd (Makefile.am): Likewise.
18894         * modules/wchar (Makefile.am): Likewise.
18895
18896 2011-06-08  Eric Blake  <eblake@redhat.com>
18897
18898         strerror: simplify replacement
18899         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18900         * modules/strerror (configure.ac): No prereqs needed here...
18901         * modules/strerror-override (configure.ac): ...but this needs it.
18902         (Files): Add file for needed prereq macro.
18903
18904 2011-06-08  Bruno Haible  <bruno@clisp.org>
18905
18906         strerror_r-posix: Tweaks.
18907         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18908         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18909         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18910         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18911         (gl_FUNC_STRERROR_R): ... to here.
18912         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18913
18914 2011-06-07  Eric Blake  <eblake@redhat.com>
18915
18916         perror: document fixed bugs
18917         * doc/posix-functions/perror.texi (perror): Document recent
18918         patches.
18919
18920 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18921
18922         stat-time: get_stat_birthtime failure is better-defined
18923         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18924         return a timestamp whose tv_sec and tv_nsec values are both -1.
18925         Previously, the spec said only that the tv_nsec value was negative.
18926         This upward-compatible change simplifies GNU tar a bit.
18927
18928 2011-06-07  Eric Blake  <eblake@redhat.com>
18929
18930         strerror_r-posix: work around cygwin 1.7.9
18931         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18932         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18933         bug without replacing strerror_r.
18934         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18935         strerror_r is buggy, but without requiring strerror_r compilation.
18936         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18937
18938         test-perror: relax test to ignore cygwin bug
18939         * tests/test-perror2.c (main): Relax test on requiring detection
18940         of stream errors, and use unbuffered stream.
18941         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18942         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18943         * doc/posix-functions/fputc.texi (fputc): Likewise.
18944         * doc/posix-functions/fputs.texi (fputs): Likewise.
18945         * doc/posix-functions/fputws.texi (fputws): Likewise.
18946         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18947         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18948         * doc/posix-functions/getopt.texi (getopt): Likewise.
18949         * doc/posix-functions/perror.texi (perror): Likewise.
18950         * doc/posix-functions/printf.texi (printf): Likewise.
18951         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18952         * doc/posix-functions/psignal.texi (psignal): Likewise.
18953         * doc/posix-functions/putc.texi (putc): Likewise.
18954         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18955         Likewise.
18956         * doc/posix-functions/putchar.texi (putchar): Likewise.
18957         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18958         Likewise.
18959         * doc/posix-functions/puts.texi (puts): Likewise.
18960         * doc/posix-functions/putwc.texi (putwc): Likewise.
18961         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18962         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18963         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18964         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18965         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18966         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18967         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18968         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18969
18970 2011-05-22  Bruno Haible  <bruno@clisp.org>
18971
18972         strerror: Move AC_LIBOBJ invocations to module description.
18973         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18974         gl_PREREQ_STRERROR invocations from here...
18975         * modules/strerror (configure.ac): ... to here.
18976
18977 2011-05-21  Bruno Haible  <bruno@clisp.org>
18978
18979         perror: Use common idiom.
18980         * modules/perror (configure.ac): Reorder statements.
18981
18982 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18983
18984         tests: fix usage message in 'mktempd_'
18985         * tests/init.sh (mktempd_): In the usage message, use literal
18986         'mktempd_', not '$ME' (which is even undefined), as the name of
18987         the subroutine.
18988
18989 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18990
18991         tests init: new function 'fatal_', for hard errors
18992         Before this patch, the only way offered by tests/init.sh to
18993         properly signal a hard error was the `framework_failure_'
18994         function.  But the error message issued by that function,
18995         as its name would suggest, refers to a set-up failure in the
18996         testsuite, while hard errors can obviously also be due to
18997         other reasons.  The best way to fix this inconsistency is to
18998         introduce a new function with a more general error message.
18999         * tests/init.sh (fatal_): New function.
19000
19001 2011-06-06  Eric Blake  <eblake@redhat.com>
19002
19003         canonicalize-lgpl: use common idiom
19004         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19005         over newer POSIX -Rf.
19006         Reported by Bruno Haible.
19007
19008         canonicalize-lgpl: work around AIX realpath bug
19009         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19010         * doc/posix-functions/realpath.texi (realpath): Document it.
19011         Reported by Bruno Haible.
19012
19013         strerror: work around FreeBSD bug
19014         * lib/strerror.c (strerror): Special case 0.
19015         Reported by Bruno Haible.
19016
19017         strerror-override: avoid bloating errno module
19018         * modules/errno (Files, configure.ac): Move replacement strings...
19019         * modules/strerror-override: ...to new module.
19020         * modules/strerror (Depends-on): Add strerror-override.
19021         * modules/strerror_r-posix (Depends-on): Likewise.
19022         * MODULES.html.sh: Document new module.
19023         Reported by Bruno Haible.
19024
19025 2011-06-06  Bruno Haible  <bruno@clisp.org>
19026
19027         spawn-pipe tests: Rename program.
19028         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19029         * tests/test-spawn-pipe-child.c: Update comment.
19030         * tests/test-spawn-pipe.sh: Update.
19031         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19032
19033         spawn-pipe tests: Link the child program only against libc.
19034         * tests/test-spawn-pipe-child.c: New file, extracted from
19035         tests/test-spawn-pipe.c.
19036         (main): Expect only one argument.
19037         (is_open): New function, copied from tests/test-pipe.c.
19038         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19039         (child_main): Remove function.
19040         (test_pipe): Pass only one argument to the child program.
19041         (main): Remove child process code. Expect the child program's name as
19042         first argument.
19043         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19044         argument.
19045         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19046         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19047         test-spawn-pipe-child against no libraries.
19048
19049 2011-06-06  Bruno Haible  <bruno@clisp.org>
19050
19051         careadlinkat: Avoid mismatch between ssize_t and int.
19052         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19053         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19054
19055 2011-06-06  Jim Meyering  <meyering@redhat.com>
19056
19057         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19058         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19059         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19060
19061 2011-06-05  Bruno Haible  <bruno@clisp.org>
19062
19063         ansi-c++-opt: Interoperability with libtool.
19064         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19065         set the variable to "no", not to ":".
19066         * NEWS: Mention the change.
19067
19068 2011-06-05  Bruno Haible  <bruno@clisp.org>
19069
19070         acl: Fix test failure on AIX 7.
19071         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19072         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19073
19074 2011-06-05  Bruno Haible  <bruno@clisp.org>
19075
19076         pipe-filter-ii: Fix test failure on AIX and IRIX.
19077         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19078         with EAGAIN, retry with a smaller buffer size.
19079
19080 2011-06-05  Bruno Haible  <bruno@clisp.org>
19081
19082         localename: Fix link dependencies.
19083         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19084         * modules/localename-tests (Makefile.am): Link test-localename with
19085         $(LIBTHREAD).
19086
19087 2011-06-05  Bruno Haible  <bruno@clisp.org>
19088
19089         error: Avoid gcc warning.
19090         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19091
19092 2011-06-05  Bruno Haible  <bruno@clisp.org>
19093
19094         unsetenv: Avoid gcc warning.
19095         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19096
19097 2011-06-05  Bruno Haible  <bruno@clisp.org>
19098
19099         setenv: Avoid gcc warning.
19100         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19101
19102 2011-06-05  Bruno Haible  <bruno@clisp.org>
19103
19104         sys_select: Ensure memset is declared also on AIX 7.
19105         * lib/sys_select.in.h: Include <string.h> also on AIX.
19106         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19107         self-contained also on AIX 7.1.
19108
19109 2011-06-04  Jim Meyering  <meyering@redhat.com>
19110
19111         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19112         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19113         function name, "error".
19114         (_gl_translatable_diag_func_re): New configurable variable.
19115
19116 2011-06-04  Bruno Haible  <bruno@clisp.org>
19117
19118         getopt: Avoid gcc warning.
19119         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19120
19121 2011-06-04  Bruno Haible  <bruno@clisp.org>
19122
19123         strerror_r: Fix comments.
19124         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19125         commit.
19126
19127 2011-06-04  Bruno Haible  <bruno@clisp.org>
19128
19129         perror: Fix compilation error.
19130         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19131         Undefine fprintf, not sprintf.
19132         * modules/perror (Depends-on): Remove intprops, verify.
19133
19134 2011-06-04  Bruno Haible  <bruno@clisp.org>
19135
19136         setlocale: Enable replacement on Cygwin 1.5.
19137         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19138         Cygwin 1.5.x.
19139         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19140         LC_CTYPE category also exists on Cygwin 1.5.x.
19141
19142 2011-06-04  Bruno Haible  <bruno@clisp.org>
19143
19144         strerror-override: Don't disable symbol renamings.
19145         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19146         * lib/strerror-override.c: Include config.h.
19147         (strerror_override): Don't undefine.
19148
19149 2011-06-03  Bruno Haible  <bruno@clisp.org>
19150
19151         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19152         * lib/localename.h: Update copyright header.
19153         * lib/localename.c: Likewise.
19154         * lib/relocatable.h: Likewise.
19155         * lib/relocatable.c: Likewise.
19156
19157 2011-06-02  Bruno Haible  <bruno@clisp.org>
19158
19159         doc: Fix a module name.
19160         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19161
19162 2011-06-02  Bruno Haible  <bruno@clisp.org>
19163
19164         pipe2: Remove dependency on 'nonblocking' module.
19165         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19166         O_NONBLOCK is defined by gnulib.
19167         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19168         is zero.
19169         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19170         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19171         defined by gnulib.
19172         (get_nonblocking_flag): New function.
19173         (main): Test O_NONBLOCK flag only if it is nonzero.
19174         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19175
19176 2011-06-03  Jim Meyering  <meyering@redhat.com>
19177
19178         maint: three new prohibit-header-without-use rules
19179         Prohibit use of cloexec.h, posixver.h, same.h without use.
19180         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19181         (sc_prohibit_posixver_without_use): Likewise.
19182         (sc_prohibit_same_without_use): Likewise.
19183
19184 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19185
19186         allocator: 'die' routine is now given requested size
19187         * lib/allocator.h (struct allocator.die): New size arg.
19188         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19189         If the actual problem is an ssize_t limitation, not a size_t or
19190         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19191
19192 2011-06-01  Eric Blake  <eblake@redhat.com>
19193
19194         strerror: drop strerror_r dependency
19195         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19196         * lib/strerror-override.c (strerror_override): ...to new file.
19197         * lib/strerror-override.h: Add prototype.
19198         * lib/strerror-impl.h: Delete.
19199         * lib/strerror.c (strerror): New implementation.
19200         * modules/errno (Files): Add new files.
19201         (configure.ac): Compile new file as appropriate.
19202         * modules/strerror (Files): Drop unused file.
19203         (Depends-on): Drop strerror_r-posix.
19204         * MODULES.html.sh: Document strerror_r-posix.
19205         Requested by Sam Steingold.
19206
19207         perror: call strerror_r directly
19208         * modules/perror (Files): Drop strerror-impl.h.
19209         * lib/perror.c (perror): Use our own stack buffer, rather than
19210         calling a wrapper that uses static storage.
19211         * doc/posix-functions/perror.texi (perror): Document a limitation
19212         of our replacement.
19213
19214         strerror_r: fix includes for FreeBSD
19215         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19216         since we use abort on some platforms.
19217         Reported by Matthias Bolte.
19218
19219 2011-05-31  Bruno Haible  <bruno@clisp.org>
19220
19221         Fix link errors in tests: openat-die uses gettext-h.
19222         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19223         against $(LIBINTL).
19224         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19225         against $(LIBINTL).
19226         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19227         $(LIBINTL).
19228         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19229         against $(LIBINTL).
19230         * modules/linkat-tests (Makefile.am): Link test-linkat against
19231         $(LIBINTL).
19232         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19233         $(LIBINTL).
19234         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19235         against $(LIBINTL).
19236         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19237         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19238         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19239         $(LIBINTL).
19240         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19241         $(LIBINTL).
19242         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19243         $(LIBINTL).
19244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19245
19246 2011-05-31  Bruno Haible  <bruno@clisp.org>
19247
19248         Fix link errors in tests: wait-process uses gettext-h.
19249         * modules/nonblocking-pipe-tests (Makefile.am): Set
19250         test_nonblocking_pipe_main_LDADD.
19251         * modules/nonblocking-socket-tests (Makefile.am): Link
19252         test-nonblocking-socket-main against $(LIBINTL).
19253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19254
19255 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19256
19257         assert-h: work around 'verify' incompatibility
19258         * lib/verify.h: Use @...@ directives, not ifdef.
19259         * modules/assert-h (assert.h): Implement the directives.
19260         (assert.h): Substitute the symbol-prefix more consistently.
19261
19262 2011-05-29  Jim Meyering  <meyering@redhat.com>
19263
19264         trim: remove three superfluous assignments
19265         * lib/trim.c (trim2): Remove three superfluous assignments
19266         and correct brace positioning.
19267
19268 2011-05-29  Bruno Haible  <bruno@clisp.org>
19269
19270         wctype-h: Avoid namespace pollution on Solaris 2.6.
19271         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19272         identifiers.
19273         * doc/posix-headers/wctype.texi: Mention the problem.
19274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19275
19276 2011-05-28  Jim Meyering  <meyering@redhat.com>
19277
19278         parse-datetime.y: accommodate -Wstrict-overflow
19279         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19280         placate -Wstrict-overflow.
19281
19282         trim: avoid a warning from -O2 -Wstrict-overflow
19283         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19284
19285 2011-05-29  Bruno Haible  <bruno@clisp.org>
19286
19287         gnulib-tool: Fix bug in yesterday's commit.
19288         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19289         twice.
19290
19291 2011-05-29  Bruno Haible  <bruno@clisp.org>
19292
19293         Allow multiple gnulib generated include files to be combined.
19294         * gnulib-tool (func_compute_include_guard_prefix): New function.
19295         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19296         ${gl_include_guard_prefix} references.
19297         (func_import, func_create_testdir): Invoke
19298         func_compute_include_guard_prefix.
19299         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19300         * lib/ctype.in.h: Likewise.
19301         * lib/dirent.in.h: Likewise.
19302         * lib/errno.in.h: Likewise.
19303         * lib/fcntl.in.h: Likewise.
19304         * lib/float.in.h: Likewise.
19305         * lib/getopt.in.h: Likewise.
19306         * lib/iconv.in.h: Likewise.
19307         * lib/langinfo.in.h: Likewise.
19308         * lib/locale.in.h: Likewise.
19309         * lib/math.in.h: Likewise.
19310         * lib/netdb.in.h: Likewise.
19311         * lib/netinet_in.in.h: Likewise.
19312         * lib/poll.in.h: Likewise.
19313         * lib/pthread.in.h: Likewise.
19314         * lib/pty.in.h: Likewise.
19315         * lib/sched.in.h: Likewise.
19316         * lib/se-selinux.in.h: Likewise.
19317         * lib/search.in.h: Likewise.
19318         * lib/signal.in.h: Likewise.
19319         * lib/spawn.in.h: Likewise.
19320         * lib/stdarg.in.h: Likewise.
19321         * lib/stddef.in.h: Likewise.
19322         * lib/stdint.in.h: Likewise.
19323         * lib/stdio.in.h: Likewise.
19324         * lib/stdlib.in.h: Likewise.
19325         * lib/string.in.h: Likewise.
19326         * lib/strings.in.h: Likewise.
19327         * lib/sys_file.in.h: Likewise.
19328         * lib/sys_ioctl.in.h: Likewise.
19329         * lib/sys_select.in.h: Likewise.
19330         * lib/sys_socket.in.h: Likewise.
19331         * lib/sys_stat.in.h: Likewise.
19332         * lib/sys_time.in.h: Likewise.
19333         * lib/sys_times.in.h: Likewise.
19334         * lib/sys_uio.in.h: Likewise.
19335         * lib/sys_utsname.in.h: Likewise.
19336         * lib/sys_wait.in.h: Likewise.
19337         * lib/sysexits.in.h: Likewise.
19338         * lib/termios.in.h: Likewise.
19339         * lib/time.in.h: Likewise.
19340         * lib/unistd.in.h: Likewise.
19341         * lib/wchar.in.h: Likewise.
19342         * lib/wctype.in.h: Likewise.
19343         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19344         * modules/ctype (Makefile.am): Likewise.
19345         * modules/dirent (Makefile.am): Likewise.
19346         * modules/errno (Makefile.am): Likewise.
19347         * modules/fcntl-h (Makefile.am): Likewise.
19348         * modules/float (Makefile.am): Likewise.
19349         * modules/getopt-posix (Makefile.am): Likewise.
19350         * modules/iconv-h (Makefile.am): Likewise.
19351         * modules/langinfo (Makefile.am): Likewise.
19352         * modules/locale (Makefile.am): Likewise.
19353         * modules/math (Makefile.am): Likewise.
19354         * modules/netdb (Makefile.am): Likewise.
19355         * modules/netinet_in (Makefile.am): Likewise.
19356         * modules/poll-h (Makefile.am): Likewise.
19357         * modules/pthread (Makefile.am): Likewise.
19358         * modules/pty (Makefile.am): Likewise.
19359         * modules/sched (Makefile.am): Likewise.
19360         * modules/search (Makefile.am): Likewise.
19361         * modules/selinux-h (Makefile.am): Likewise.
19362         * modules/signal (Makefile.am): Likewise.
19363         * modules/spawn (Makefile.am): Likewise.
19364         * modules/stdarg (Makefile.am): Likewise.
19365         * modules/stddef (Makefile.am): Likewise.
19366         * modules/stdint (Makefile.am): Likewise.
19367         * modules/stdio (Makefile.am): Likewise.
19368         * modules/stdlib (Makefile.am): Likewise.
19369         * modules/string (Makefile.am): Likewise.
19370         * modules/strings (Makefile.am): Likewise.
19371         * modules/sys_file (Makefile.am): Likewise.
19372         * modules/sys_ioctl (Makefile.am): Likewise.
19373         * modules/sys_select (Makefile.am): Likewise.
19374         * modules/sys_socket (Makefile.am): Likewise.
19375         * modules/sys_stat (Makefile.am): Likewise.
19376         * modules/sys_time (Makefile.am): Likewise.
19377         * modules/sys_times (Makefile.am): Likewise.
19378         * modules/sys_uio (Makefile.am): Likewise.
19379         * modules/sys_utsname (Makefile.am): Likewise.
19380         * modules/sys_wait (Makefile.am): Likewise.
19381         * modules/sysexits (Makefile.am): Likewise.
19382         * modules/termios (Makefile.am): Likewise.
19383         * modules/time (Makefile.am): Likewise.
19384         * modules/unistd (Makefile.am): Likewise.
19385         * modules/wchar (Makefile.am): Likewise.
19386         * modules/wctype-h (Makefile.am): Likewise.
19387         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19388
19389 2011-05-29  Bruno Haible  <bruno@clisp.org>
19390
19391         assert-h: Allow multiple gnulib generated replacements to coexist.
19392         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19393
19394 2011-05-29  Bruno Haible  <bruno@clisp.org>
19395
19396         argp: Allow coexistence with strerror_r-posix module.
19397         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19398         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19399         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19400         not the glibc signature.
19401
19402 2011-05-28  Bruno Haible  <bruno@clisp.org>
19403
19404         gnulib-tool: Alternative structure of testdirs, similar to --import.
19405         * gnulib-tool: New option --single-configure.
19406         (func_usage): Document it.
19407         (single_configure): New variable.
19408         (func_modules_transitive_closure_separately,
19409         func_modules_transitive_closure_separately,
19410         func_determine_use_libtests, func_modules_add_dummy_separately,
19411         func_modules_to_filelist_separately): New functions, extracted from
19412         func_import.
19413         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19414         (func_import): Use the new functions.
19415         (func_create_testdir): Set final_modules. Handle $single_configure =
19416         true case.
19417
19418 2011-05-28  Bruno Haible  <bruno@clisp.org>
19419
19420         getloadavg: Remove an unreliable safety check.
19421         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19422         getloadavg.c is in place.
19423         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19424         Reported by Sam Steingold <sds@gnu.org>.
19425
19426 2011-05-28  Bruno Haible  <bruno@clisp.org>
19427
19428         doc: Cleanup yet another file produced by texinfo.tex.
19429         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19430
19431 2011-05-28  Bruno Haible  <bruno@clisp.org>
19432
19433         Finish the conditional dependencies mechanism.
19434         * gnulib-tool: New option --no-conditional-dependencies.
19435         (func_usage): Document it. Don't mark --conditional-dependencies as
19436         experimental.
19437         (cond_dependencies): The possible values can now be true, false, empty.
19438         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19439         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19440         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19441
19442 2011-05-28  Bruno Haible  <bruno@clisp.org>
19443
19444         doc: Use a recent texinfo.tex.
19445         * doc/Makefile (tex_opts): New variable.
19446         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19447
19448 2011-05-28  Jim Meyering  <meyering@redhat.com>
19449
19450         intprops.h: adjust comment to match code change
19451         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19452         only once, it *may* have side effects.  Also fix an unrelated typo.
19453         (_GL_INT_SIGNED): Likewise.
19454
19455 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19456
19457         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19458
19459 2011-05-26  Bruno Haible  <bruno@clisp.org>
19460
19461         mbsrchr: Avoid collision with system function on Interix.
19462         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19463         Reported by Markus Duft <mduft@gentoo.org>.
19464
19465 2011-05-15  James Youngman  <jay@gnu.org>
19466
19467         getopt: for ambiguous options, enumerate the possibilities.
19468         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19469         the ambiguous options when an ambiguous prefix is given. This was
19470         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19471         glibc change was
19472         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19473
19474 2011-05-25  Eric Blake  <eblake@redhat.com>
19475
19476         getcwd: work around mingw bug
19477         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19478         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19479         Reported by Matthias Bolte.
19480
19481 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19482
19483         test-intprops: disable -Wtype-limits diagnostics
19484         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19485         diagnostics.  Otherwise, the integer overflow macros generate many
19486         diagnostics.  Reported by Jim Meyering in
19487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19488
19489         intprops: shorten, to pacify gcc -Woverlength-strings
19490         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19491         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19492         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19493         likely to run afoul of C compiler limits for string constant lengths.
19494         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19495
19496 2011-05-24  Eric Blake  <eblake@redhat.com>
19497
19498         docs: document recently fixed glibc printf bug
19499         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19500         * doc/posix-functions/printf.texi (printf): Likewise.
19501         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19502         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19503
19504         closein-tests: convert to init.sh
19505         * modules/closein-tests (Files): Add init.sh
19506         * tests/test-closein.sh Use it.
19507
19508         yesno-tests: convert to init.sh
19509         * modules/yesno-tests (Files): Add init.sh.
19510         * tests/test-yesno.sh: Use it.
19511
19512         atexit-tests: ensure reliable exit status
19513         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19514         Reported by Bruno Haible.
19515
19516 2011-05-24  Bruno Haible  <bruno@clisp.org>
19517
19518         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19519         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19520         gl_PREREQ_STRERROR_R invocations from here...
19521         * modules/strerror_r-posix (configure.ac): ... to here.
19522
19523 2011-05-24  Eric Blake  <eblake@redhat.com>
19524
19525         strerror_r: fix missing header
19526         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19527
19528         strerror_r: fix AIX test failures
19529         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19530         ERANGE failure.
19531
19532         strerror_r: fix Solaris test failures
19533         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19534         failures.
19535         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19536
19537         strerror_r: enforce POSIX recommendations
19538         * lib/strerror_r.c (safe_copy): New helper method.
19539         (strerror_r): Guarantee a non-empty string.
19540         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19541         recent POSIX rulings and to match our strerror guarantees.
19542         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19543
19544 2011-05-24  Jim Meyering  <meyering@redhat.com>
19545
19546         test-perror2.c: avoid warning about unused variable
19547         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19548
19549 2011-05-24  Eric Blake  <eblake@redhat.com>
19550
19551         perror: avoid spurious test failure on HP-UX
19552         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19553
19554         tests: fix logic bug in init.sh
19555         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19556         shell.
19557
19558 2011-05-24  Jim Meyering  <meyering@redhat.com>
19559
19560         utimensat: do not reference an out-of-scope buffer
19561         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19562         declared in an inner scope, yet "times" would be dereferenced outside
19563         the scope in which "ts" was valid.
19564         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19565         of ts[2] "out/up", so that the use of aliased "times" (via
19566         "times = ts;") does not end up referencing an out-of-scope "ts"
19567
19568         opendir-safer.c: don't clobber errno; don't close negative FD
19569         * lib/opendir-safer.c (opendir_safer):
19570         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19571         file descriptor, and more importantly, don't clobber the
19572         offending errno value with EINVAL.  Before, upon failure
19573         of dup_safer, we would pass the negative file descriptor to
19574         fdopendir, which would clobber errno.
19575
19576 2011-05-23  Bruno Haible  <bruno@clisp.org>
19577
19578         idcache: Fix module description.
19579         * modules/idcache (Include): Set to "idcache.h".
19580
19581 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19582
19583         gnulib-tool: fix portability problem with MacOS sed
19584         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19585         before the "}".  Problem reported by Leo in
19586         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19587         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19588         sed_extract_condition1, sed_extract_condition2.
19589
19590 2011-05-23  Bruno Haible  <bruno@clisp.org>
19591
19592         hash: Simplify autoconf macro.
19593         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19594
19595 2011-05-23  Bruno Haible  <bruno@clisp.org>
19596
19597         getugroups: Fix module description.
19598         * modules/getugroups (Include): Set to "getugroups.h".
19599
19600 2011-05-23  Bruno Haible  <bruno@clisp.org>
19601
19602         linkat: Simplify autoconf macro.
19603         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19604
19605 2011-05-23  Bruno Haible  <bruno@clisp.org>
19606             Eric Blake  <eblake@redhat.com>
19607
19608         linkat, renameat: Update dependencies.
19609         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19610         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19611         symlinkat.
19612
19613 2011-05-23  Jim Meyering  <meyering@redhat.com>
19614
19615         maint.mk: more tight_scope improvements
19616         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19617         (_gl_TS_headers): Define only in if-0'd block.
19618         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19619         sometimes we must *not* use it.  Adjust uses accordingly.
19620         (sc_tight_scope): Use much simpler grep-based test to determine
19621         whether we skip this rule.
19622
19623         maint.mk: generalize/improve the tight-scope rule
19624         * top/maint.mk: Emit a warning when the test is skipped.
19625         (_gl_TS_dir): Add $(srcdir)/ prefix.
19626         (_gl_TS_function_match): Simplify, rather than trying
19627         to enumerate common types.  Otherwise, it would fail to match an
19628         "extern unsigned char const *" declaration in idutils.
19629         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19630         a way to support use of that type of macro.
19631         (_gl_TS_var_match): Simplify regexp.
19632         (_gl_TS_obj_files): New configurable variable.
19633         (_gl_TS_headers): Likewise.
19634
19635 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19636
19637         verify: fix bug when gnulib <assert.h> is also included
19638         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19639         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19640         Perhaps there's a better way, but this fixes the immediate problem.
19641         Problem reported by Bruno Haible in
19642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19643
19644 2011-05-22  Bruno Haible  <bruno@clisp.org>
19645
19646         xgetcwd: Simplify autoconf macro.
19647         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19648
19649 2011-05-22  Bruno Haible  <bruno@clisp.org>
19650
19651         New module 'mktime-internal'.
19652         * modules/mktime-internal: New file.
19653         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19654         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19655         mktime_internal as a C macro if libc has __mktime_internal.
19656         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19657         conditions.
19658         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19659
19660 2011-05-22  Bruno Haible  <bruno@clisp.org>
19661
19662         timegm: Correct mktime replacement statements.
19663         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19664         defining mktime as a C macro. This completes a 2009-07-28 commit.
19665
19666 2011-05-22  Bruno Haible  <bruno@clisp.org>
19667
19668         timegm: Simplify autoconf macro.
19669         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19670
19671 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19672
19673         clock-time: change to LGPLv2+.
19674         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19675         BSD-like but we have no mark for that; this is good enough for now.
19676
19677 2011-05-21  Bruno Haible  <bruno@clisp.org>
19678
19679         strerror_r: Fix comments.
19680         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19681
19682 2011-05-21  Bruno Haible  <bruno@clisp.org>
19683
19684         relocatable-prog-wrapper: Fix possible link error.
19685         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19686         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19687         (gl_FUNC_SETENV): ... to here.
19688         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19689         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19690
19691 2011-05-21  Bruno Haible  <bruno@clisp.org>
19692
19693         relocatable-prog-wrapper: Assume strerror() exists.
19694         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19695         m4/strerror.m4.
19696         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19697         * lib/relocwrapper.c: Remove mention of strerror module.
19698         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19699         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19700         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19701         C macro.
19702
19703 2011-05-21  Bruno Haible  <bruno@clisp.org>
19704
19705         select: Simplify replacement idiom.
19706         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19707         Win32 platforms.
19708         * lib/sys_select.in.h (select): Simplify accordingly.
19709         * modules/select (Depends-on): Likewise.
19710
19711 2011-05-21  Bruno Haible  <bruno@clisp.org>
19712
19713         mkdir-p: Simplify autoconf macro.
19714         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19715         gl_FUNC_LCHOWN.
19716
19717 2011-05-21  Eric Blake  <eblake@redhat.com>
19718
19719         strerror_r: avoid clobbering strerror on cygwin
19720         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19721         fall back instead to sys_errlist.
19722         * modules/strerror (configure.ac): Add witness.
19723         * tests/test-strerror_r.c (main): Enhance test.
19724         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19725         * tests/test-perror2.c (main): Free memory before exit.
19726
19727 2011-05-21  Bruno Haible  <bruno@clisp.org>
19728
19729         mkdtemp: Use gnulib naming conventions.
19730         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19731         * modules/mkdtemp (configure.ac): Update.
19732
19733 2011-05-20  Eric Blake  <eblake@redhat.com>
19734
19735         strerror_r: avoid corrupting errno on Solaris
19736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19737         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19738
19739         strerror_r: avoid compiler warning
19740         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19741
19742         strerror_r: simplify AIX code
19743         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19744
19745         test-perror: avoid spurious failure on FreeBSD
19746         * modules/perror-tests (Depends-on): Add strerror, now that
19747         strerror_r no longer pulls it in.
19748
19749 2011-05-20  Bruno Haible  <bruno@clisp.org>
19750
19751         strerror_r-posix: Remove unused dependencies.
19752         * modules/strerror_r-posix (Depends-on): Remove strerror.
19753         Reported by Eric Blake.
19754
19755 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19756
19757         intprops: remove assumption about A|B representation
19758         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19759         is a valid integer if both A and B are.  Although this is true for
19760         all known practical hosts, the C standard doesn't guarantee it,
19761         and the code need not assume it.  Also, this change may work around
19762         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19764
19765 2011-05-20  Eric Blake  <eblake@redhat.com>
19766
19767         perror: work around FreeBSD bug
19768         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19769         is broken.  Move AC_LIBOBJ...
19770         * modules/perror (configure.ac): Here.
19771         * doc/posix-functions/perror.texi (perror): Document this.
19772         * tests/test-perror2.c (main): Enhance test.
19773
19774         test-perror: check for strerror interactions
19775         * tests/macros.h (STREQ): Add macro.
19776         * modules/perror-tests (Files): Add second test.
19777         * tests/test-perror2.c (main): New file.
19778         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19779
19780         test-perror: rewrite to use init script
19781         * modules/perror-tests (Files): Add init.sh.
19782         * tests/test-perror.sh: Use temporary directory.
19783
19784 2011-05-20  Jim Meyering  <meyering@redhat.com>
19785
19786         maint: replace misused "a" with "an"
19787         * doc/intprops.texi: "a integer"
19788         * doc/regex.texi: "a explanation"
19789         * lib/alignof.h: "a object"
19790         * lib/argmatch.h: "a explanation"
19791         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19792         * lib/stdint.in.h: "a integer"
19793         * lib/userspec.c: "a owner"
19794         * doc/gnulib.texi: Fix "a idea", and reword.
19795
19796 2011-05-19  Jim Meyering  <meyering@redhat.com>
19797
19798         maint: correct misuse of "a" and "an"
19799         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19800         * lib/argp-help.c: "an docum...": s/an/a/
19801         * lib/argp-parse.c: "An vector": s/An/A/
19802         * lib/execute.c: "an native": s/an/a/
19803         * lib/spawn-pipe.c: Likewise.
19804         * lib/gc.h: "an Gc_rc": s/an/a/
19805         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19806         * lib/fts.c: "an stat.st_dev": s/an/a/
19807
19808 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19809
19810         intprops-tests: work around HP-UX 11.23 cc bug with constants
19811         * tests/test-intprops.c (VERIFY): New macro.
19812         (main): Use it, instead of verify, to work around the compiler bug; see
19813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19814
19815         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19816         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19817         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19818         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19819         (_GL_REMAINDER_OVERFLOW): Use it.
19820
19821         intprops-tests: revert unsigned part of previous change
19822         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19823         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19824         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19826
19827 2011-05-19  Bruno Haible  <bruno@clisp.org>
19828
19829         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19830         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19831         strerror_r() returned without filling the buffer.
19832         Reported by Eric Blake.
19833
19834 2011-05-19  Eric Blake  <eblake@redhat.com>
19835
19836         strerror_r: guarantee unchanged errno
19837         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19838         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19839         failure.
19840         * tests/test-strerror_r.c (main): Enhance test.
19841
19842 2011-05-19  Bruno Haible  <bruno@clisp.org>
19843
19844         strerror_r: Reorder #if blocks.
19845         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19846         for consistency with the previous commit.
19847
19848 2011-05-19  Bruno Haible  <bruno@clisp.org>
19849
19850         perror: Avoid clobbering the strerror buffer when possible.
19851         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19852         * lib/strerror.c: Include it.
19853         * modules/strerror (Files): Add lib/strerror-impl.h.
19854         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19855         (my_strerror): New function, defined through lib/strerror-impl.h.
19856         (perror): Use it instead of strerror.
19857         * modules/perror (Files): Add lib/strerror-impl.h.
19858         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19859
19860 2011-05-19  Eric Blake  <eblake@redhat.com>
19861
19862         strerror_r: fix on newer cygwin
19863         * lib/strerror_r.c (strerror_r): Cygwin now has
19864         __xpg_strerror_r, use it.
19865
19866 2011-05-19  Bruno Haible  <bruno@clisp.org>
19867
19868         strerror_r: Avoid clobbering the strerror buffer when possible.
19869         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19870         (sys_nerr, sys_errlist): New declarations.
19871         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19872         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19873         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19874
19875 2011-05-19  Bruno Haible  <bruno@clisp.org>
19876
19877         strerror_r: Fix test failure on mingw.
19878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19879         EXTEND_STRERROR_R.
19880         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19881         macros from errno.in.h instead.
19882
19883 2011-05-19  Eric Blake  <eblake@redhat.com>
19884
19885         strerror: relax test for Solaris
19886         * tests/test-strerror.c (main): Permit Solaris behavior.
19887         * tests/test-strerror_r.c (main): Likewise.
19888
19889         strerror: enforce POSIX ruling on strerror(0)
19890         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19891         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19892         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19893         * doc/posix-functions/strerror.texi (strerror): Document it.
19894         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19895         * tests/test-strerror.c (main): Strengthen test.
19896         * tests/test-strerror_r.c (main): Likewise.
19897
19898 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19899
19900         intprop-tests: port to older and more-pedantic compilers
19901         * modules/intprops-tests (Files): Add tests/macros.h.
19902         * tests/test-intprops.c: Include macros.h.
19903         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19904         it's no longer documented to expand to an integer constant expression.
19905         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19906         argument is floating point, as it's no longer documented to expand
19907         to an integer constant expression in that case.
19908         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19909         compiler bugs reported by Bruno Haible.  See
19910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19911         (U0, U1): New constants, to work around the same bugs.  Also,
19912         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19913
19914         intprops: work around C compiler bugs
19915         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19916         bug in Sun C 5.11 2010/08/13 and other compilers; see
19917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19918
19919         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19920         * doc/intprops.texi (Integer Type Determination): Fix
19921         documentation for TYPE_IS_INTEGER: it returns an constant
19922         expression, not an integer constant expression.  Fix doc for
19923         TYPE_SIGNED: it returns an integer constant expression only if its
19924         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19925         hardly worth documented that way....)
19926
19927 2011-05-18  Bruno Haible  <bruno@clisp.org>
19928
19929         strerror_r: Avoid clobbering the strerror buffer when possible.
19930         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19931         Handle gnulib defined errno values here. When strerror() returns NULL
19932         or an empty string, return EINVAL.
19933         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19934         gnulib defined errno values here.
19935         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19936
19937 2011-05-18  Eric Blake  <eblake@redhat.com>
19938
19939         fnmatch: avoid compiler warning
19940         * lib/fnmatch_loop.c (FCT): Use correct type.
19941         Reported by Matthias Bolte.
19942
19943 2011-05-13  Jim Meyering  <meyering@redhat.com>
19944
19945         maint.mk: three new prohibit_<HDR>_without_use rules
19946         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19947         (sc_prohibit_stdio-safer_without_use): Likewise.
19948         (sc_prohibit_xfreopen_without_use): Likewise.
19949
19950 2011-05-17  Jim Meyering  <meyering@redhat.com>
19951
19952         announce-gen: fail if the NEWS delta is empty
19953         If there's nothing noteworthy in NEWS, then either you forgot
19954         or you shouldn't be releasing.
19955         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19956
19957 2011-05-17  Pádraig Brady <P@draigBrady.com>
19958
19959         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19960         reserved symbols starting with double underscore from the check.
19961
19962 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19963
19964         intprops: add doc
19965         * doc/intprops.texi: New file, documenting intprops.
19966         * doc/gnulib.texi (Particular Modules): Include it.
19967
19968         verify: add doc to gnulib manual and fix example
19969         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19970         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19971         (Compile-time Assertions): Fix example so it can't overflow.
19972
19973 2011-05-17  Jim Meyering  <meyering@redhat.com>
19974
19975         warnings.m4: don't usurp save_CPPFLAGS variable name
19976         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19977
19978         doc: fix typo
19979         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19980
19981 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19982             Bruno Haible  <bruno@clisp.org>
19983
19984         doc: Tweak recent change.
19985         * README (Portability guidelines): Tweak new text.
19986         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19987         Interix 6.1.
19988
19989 2011-05-16  Eric Blake  <eblake@redhat.com>
19990
19991         inttypes: avoid autoconf warning
19992         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19993         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19994
19995 2011-05-16  Sam Steingold <sds@gnu.org>
19996         and Eric Blake  <eblake@redhat.com>
19997
19998         vc-list-files: accept multiple directory operands
19999         * build-aux/vc-list-files: Iterate over all remaining operands.
20000
20001 2011-05-16  Bruno Haible  <bruno@clisp.org>
20002
20003         Fix confusion regarding deprecated modules.
20004         * modules/calloc (Status, Notice): Mark module as deprecated, not
20005         obsolete.
20006         * modules/fnmatch-posix (Status, Notice): Likewise.
20007         * modules/getdate (Status, Notice): Likewise.
20008         * modules/getopt (Status, Notice): Likewise.
20009         * modules/malloc (Status, Notice): Likewise.
20010         * modules/pipe (Status, Notice): Likewise.
20011         * modules/realloc (Status, Notice): Likewise.
20012         * modules/rename-dest-slash (Status, Notice): Likewise.
20013         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20014         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20015         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20016         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20017         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20018
20019 2011-05-16  Bruno Haible  <bruno@clisp.org>
20020
20021         doc: List the target platforms.
20022         * doc/gnulib-intro.texi (Target Platforms): New section.
20023         * doc/gnulib.texi (Introduction): Update menu.
20024         * README (Portability guidelines): Refer to the new section. Update
20025         statement about oldest supported environment. Remove rationale why
20026         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20027         unportable C89 function.
20028         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20029         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20030
20031 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20032
20033         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20034
20035 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20036
20037         intprops-tests: new module
20038         * modules/intprops-tests, tests/test-intprops.c: New files.
20039
20040         intprops: add safe, portable integer overflow checking
20041         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20042         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20043         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20044         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20045         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20046         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20047         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20048         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20049         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20050         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20051         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20052
20053 2011-05-12  James Youngman  <jay@gnu.org>
20054
20055         Add a test for glibc's Bugzilla bug #12378.
20056         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20057         doesn't allow the literal matching of a lone "[" (which is
20058         required by POSIX).
20059         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20060
20061 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20062
20063         Sync glibc change fixing Bugzilla bug #12378.
20064         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20065         beginning and fall back to matching as normal character if the
20066         string ends before the matching ']' is found.  This is what POSIX
20067         requires.
20068
20069 2011-05-13  Eric Blake  <eblake@redhat.com>
20070
20071         getcwd-lgpl: relax test for FreeBSD
20072         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20073         issue.
20074         * tests/test-getcwd-lgpl.c (main): Relax test.
20075         Reported by Matthias Bolte.
20076
20077 2011-05-11  Eric Blake  <eblake@redhat.com>
20078
20079         test-fflush: silence compiler warning
20080         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20081
20082 2011-05-11  Bruno Haible  <bruno@clisp.org>
20083
20084         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20085         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20086         * modules/canonicalize (Depends-on): Add 'nocrash'.
20087         * modules/canonicalize-lgpl (Depends-on): Likewise.
20088         * doc/posix-functions/realpath.texi: Update platforms list.
20089         Reported by Ryan Schmidt <ryandesign@macports.org>.
20090
20091 2011-05-11  Bruno Haible  <bruno@clisp.org>
20092
20093         group-member: Declare function in <unistd.h>.
20094         * lib/unistd.in.h (group_member): New declaration.
20095         * lib/group-member.h: Remove file.
20096         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20097         * tests/test-unistd-c++.cc: Check signature of group_member.
20098         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20099         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20100         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20101         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20102         HAVE_GROUP_MEMBER.
20103         * modules/group-member (Files): Remove lib/group-member.h.
20104         (Depends-on): Add unistd. Specify conditions.
20105         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20106         (Include): Change to <unistd.h>.
20107         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20108         HAVE_GROUP_MEMBER.
20109         * NEWS: Mention the change.
20110         * lib/euidaccess.c: Don't include group-member.h.
20111
20112 2011-05-11  Bruno Haible  <bruno@clisp.org>
20113
20114         group-member: Document module.
20115         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20116         module.
20117
20118 2011-05-11  Bruno Haible  <bruno@clisp.org>
20119
20120         fclose: Fix mistake earlier today.
20121         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20122
20123 2011-05-11  Eric Blake  <eblake@redhat.com>
20124
20125         fclose: preserve fflush errors
20126         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20127         Reported by Jim Meyering.
20128
20129         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20130         * build-aux/bootstrap (check_versions): When no specific version
20131         is required, merely check that the app produces an exit status
20132         that indicates its existence.
20133
20134         maint.mk: drop redundant check
20135         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20136         the same but better.
20137
20138 2011-05-11  Bruno Haible  <bruno@clisp.org>
20139
20140         fclose: Fix possible link error.
20141         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20142         unregister_shadow_fd. Improve comments.
20143         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20144         Eric Blake.
20145
20146 2011-05-11  Jim Meyering  <meyering@redhat.com>
20147
20148         maint.mk: improve "can not" detection and generalize rule name
20149         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20150         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20151         Use the same technique as in sc_prohibit_doubled_word, so that
20152         we recognize "can not" also when the words are separated by a newline.
20153         Suggested by Eric Blake.
20154         (perl_filename_lineno_text_): Define.  Factored out of...
20155         (prohibit_doubled_word_): ...here.  Use the new definition.
20156         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20157         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20158         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20159
20160 2011-05-10  Eric Blake  <eblake@redhat.com>
20161
20162         fclose: avoid double close race when possible
20163         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20164         all but WINDOWS_SOCKETS.
20165
20166 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20167
20168         openat: correct new comment
20169         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20170
20171 2011-05-10  Jim Meyering  <meyering@redhat.com>
20172
20173         openat: add comments
20174         * lib/openat-proc.c (openat_proc_name): Add comments,
20175         mostly from Eric Blake.
20176
20177 2011-05-09  Eric Blake  <eblake@redhat.com>
20178
20179         openat: reduce syscalls in first probe of /proc
20180         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20181         be a directory.  Simplify the probe for .. bugs.
20182         * modules/openat (Depends-on): Drop same-inode.
20183         Reported by Bastien ROUCARIES.
20184
20185 2011-05-09  Jim Meyering  <meyering@redhat.com>
20186
20187         maint.mk: change semantics/name of tight_scope variables
20188         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20189         Rename variables to align with semantics that make them more useful.
20190
20191         maint.mk: tweak new rule's name not to impinge
20192         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20193         (sc_tight_scope): Use new rule name rather than $@-0.
20194
20195         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20196         * top/maint.mk (sc_tight_scope): New rule.
20197         (sc_tight_scope-0): New rule, ifdef'd out.
20198         (_gl_TS_dir): Default.
20199         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20200         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20201
20202 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20203
20204         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20205         Haible <bruno@clisp.org>.
20206
20207 2011-05-08  Bruno Haible  <bruno@clisp.org>
20208
20209         Comments.
20210         * m4/isnanf.m4: Add comment.
20211         * m4/isnanl.m4: Likewise.
20212
20213 2011-05-08  Bruno Haible  <bruno@clisp.org>
20214
20215         glob: Remove obsolete macro.
20216         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20217
20218 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20219
20220         intprops: Sun C 5.11 supports __typeof__
20221         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20222         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20223         which is new.
20224         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20225
20226         intprops: switch to usual gnulib indenting and naming
20227         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20228         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20229
20230         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20231
20232 2011-05-08  Jim Meyering  <meyering@redhat.com>
20233
20234         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20235         * top/maint.mk (release-prep): Use make's --no-print-directory
20236         option when generating the announcement.  This eliminates the
20237         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20238         generated announcement template.
20239
20240 2011-05-08  Bruno Haible  <bruno@clisp.org>
20241
20242         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20243         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20244         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20245
20246 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20247
20248         ignore-value, verify: Omit include files from lib_SOURCES.
20249         * modules/ignore-value, modules/verify (Makefile.am):
20250         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20251         that leads Automake to duplicate use of am__objects_... variables
20252         in Makefile.in.  See
20253         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20254
20255 2011-05-07  Bruno Haible  <bruno@clisp.org>
20256
20257         fclose: Simplify autoconf macro.
20258         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20259         defined.
20260
20261 2011-05-07  Bruno Haible  <bruno@clisp.org>
20262
20263         canonicalize-lgpl: Fix autoconf macro ordering bug.
20264         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20265         gl_STDLIB_H_DEFAULTS.
20266
20267 2011-05-06  Eric Blake  <eblake@redhat.com>
20268
20269         maintainer-makefile: make sc_po_check easier to tune
20270         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20271         to probe for strings, such as an alternate location for gnulib.
20272
20273         fclose: guarantee behavior on seekable stdin
20274         * modules/fclose (Depends-on): Add fflush.
20275         * doc/posix-functions/fclose.texi (fclose): Document this.
20276         * tests/test-fclose.c (main): Make test for this unconditional.
20277
20278 2011-05-06  Bruno Haible  <bruno@clisp.org>
20279
20280         fflush, fpurge: Relicense under LGPLv2+.
20281         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20282         * modules/fpurge (License): Likewise.
20283         With permission from Eric Blake and Jim Meyering.
20284         Suggested by Eric Blake.
20285
20286 2011-05-06  Karl Berry  <karl@gnu.org>
20287
20288         * MODULES.html.sh (func_all_modules): remove exit.
20289
20290 2011-05-06  Jim Meyering  <meyering@redhat.com>
20291
20292         maint.mk: use info-gnu@ as the default only for a stable release
20293         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20294         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20295         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20297
20298 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20299
20300         assert-h: new module, which supports C1X-style static_assert
20301         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20302         * lib/verify.h: Revamp so that this can be copied into assert.h,
20303         while retaining the ability to use it standalone as before.
20304         Rename private identifiers so as not to encroach on the
20305         standard C namespace, since this is now used by assert.h.
20306         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20307         the old verify_true.
20308         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20309         the old verify_true.  Use _GL_VERIFY_TYPE.
20310         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20311         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20312         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20313         defined when this file is copied into the replacement assert.h.
20314         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20315         and _Static_assert is not built in.
20316         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20317         defined, and use the new macros mentioned above.
20318         * doc/posix-headers/assert.texi: Document this.
20319
20320 2011-05-05  Bruno Haible  <bruno@clisp.org>
20321
20322         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20323         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20324         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20325         gl_REPLACE_FCLOSE here.
20326         * modules/fflush (Depends-on): Remove fclose.
20327         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20328         combination with module 'fclose'.
20329
20330 2011-05-05  Bruno Haible  <bruno@clisp.org>
20331
20332         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20333         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20334         gl_FUNC_FFLUSH.
20335         (gl_FUNC_FFLUSH): Use it.
20336         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20338         gl_REPLACE_FSEEKO here.
20339
20340 2011-05-05  Bruno Haible  <bruno@clisp.org>
20341
20342         tzset: Relicense under LGPL.
20343         * modules/tzset (License): Change to LGPL.
20344         No agreement needed; it's a no-op.
20345
20346         strtoimax, strtoumax: Relicense under LGPL.
20347         * modules/strtoimax (License): Change to LGPL.
20348         * modules/strtoumax (License): Likewise.
20349         With permission from Jim Meyering, Paul Eggert:
20350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20352
20353         getgroups: Relicense under LGPL.
20354         * modules/getgroups (License): Change to LGPL.
20355         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20359
20360         nanosleep: Relicense under LGPL.
20361         * modules/nanosleep (License): Change to LGPL.
20362         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20363         Haible:
20364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20368
20369         futimens: Relicense under LGPL.
20370         * modules/futimens (License): Change to LGPL.
20371         With permission from Eric Blake:
20372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20373
20374         fflush: Relicense under LGPL.
20375         * modules/fflush (License): Change to LGPL.
20376         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20380
20381         tmpfile: Relicense under LGPL.
20382         * modules/tmpfile (License): Change to LGPL.
20383         With permission from Ben Pfaff:
20384         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20385
20386         isfinite: Relicense under LGPL.
20387         * modules/isfinite (License): Change to LGPL.
20388         With permission from Ben Pfaff, Bruno Haible:
20389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20391
20392         acosl..tanl: Relicense under LGPL.
20393         * modules/acosl (License): Change to LGPL.
20394         * modules/asinl (License): Likewise.
20395         * modules/atanl (License): Likewise.
20396         * modules/cosl (License): Likewise.
20397         * modules/expl (License): Likewise.
20398         * modules/logl (License): Likewise.
20399         * modules/sinl (License): Likewise.
20400         * modules/sqrtl (License): Likewise.
20401         * modules/tanl (License): Likewise.
20402         Source code originally from glibc and Paolo Bonzini. Agreements:
20403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20405
20406 2011-05-05  Bruno Haible  <bruno@clisp.org>
20407
20408         signal: Define sighandler_t.
20409         * lib/signal.in.h (sighandler_t): New type.
20410         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20411         whether sighandler_t is defined.
20412         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20413         * modules/signal (Depends-on): Add extensions.
20414         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20415         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20416         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20417
20418 2011-05-05  Eric Blake  <eblake@redhat.com>
20419
20420         maint: remove useless REPLACE_*_H macros
20421         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20422         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20423         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20424         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20425         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20426         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20427         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20428         * m4/btowc.m4: Update callers.
20429         * m4/dirfd.m4: Likewise.
20430         * m4/duplocale.m4: Likewise.
20431         * m4/fchdir.m4: Likewise.
20432         * m4/fdopendir.m4: Likewise.
20433         * m4/inet_ntop.m4: Likewise.
20434         * m4/inet_pton.m4: Likewise.
20435         * m4/ioctl.m4: Likewise.
20436         * m4/mbrlen.m4: Likewise.
20437         * m4/mbrtowc.m4: Likewise.
20438         * m4/mbsinit.m4: Likewise.
20439         * m4/mbsnrtowcs.m4: Likewise.
20440         * m4/mbsrtowcs.m4: Likewise.
20441         * m4/poll.m4: Likewise.
20442         * m4/setlocale.m4: Likewise.
20443         * m4/wcrtomb.m4: Likewise.
20444         * m4/wcsnrtombs.m4: Likewise.
20445         * m4/wcsrtombs.m4: Likewise.
20446         * m4/wctob.m4: Likewise.
20447         * m4/wcwidth.m4: Likewise.
20448         * modules/posix_spawn: Likewise.
20449         * modules/posix_spawn_file_actions_addclose: Likewise.
20450         * modules/posix_spawn_file_actions_adddup2: Likewise.
20451         * modules/posix_spawn_file_actions_addopen: Likewise.
20452         * modules/posix_spawn_file_actions_destroy: Likewise.
20453         * modules/posix_spawn_file_actions_init: Likewise.
20454         * modules/posix_spawnattr_destroy: Likewise.
20455         * modules/posix_spawnattr_getflags: Likewise.
20456         * modules/posix_spawnattr_getpgroup: Likewise.
20457         * modules/posix_spawnattr_getschedparam: Likewise.
20458         * modules/posix_spawnattr_getschedpolicy: Likewise.
20459         * modules/posix_spawnattr_getsigdefault: Likewise.
20460         * modules/posix_spawnattr_getsigmask: Likewise.
20461         * modules/posix_spawnattr_init: Likewise.
20462         * modules/posix_spawnattr_setflags: Likewise.
20463         * modules/posix_spawnattr_setpgroup: Likewise.
20464         * modules/posix_spawnattr_setschedparam: Likewise.
20465         * modules/posix_spawnattr_setschedpolicy: Likewise.
20466         * modules/posix_spawnattr_setsigdefault: Likewise.
20467         * modules/posix_spawnattr_setsigmask: Likewise.
20468         * modules/posix_spawnp: Likewise.
20469
20470 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20471
20472         Add option to do-release-commit-and-tag to specify branch.
20473         * build-aux/do-release-commit-and-tag: Add --branch.
20474
20475 2011-05-03  Bruno Haible  <bruno@clisp.org>
20476
20477         Avoid unnecessary compilation units, through conditional dependencies.
20478         * modules/accept (Depends-on): Add conditions to the dependencies.
20479         * modules/acosl (Depends-on): Likewise.
20480         * modules/argz (Depends-on): Likewise.
20481         * modules/asinl (Depends-on): Likewise.
20482         * modules/atanl (Depends-on): Likewise.
20483         * modules/atoll (Depends-on): Likewise.
20484         * modules/bind (Depends-on): Likewise.
20485         * modules/btowc (Depends-on): Likewise.
20486         * modules/canonicalize-lgpl (Depends-on): Likewise.
20487         * modules/ceil (Depends-on): Likewise.
20488         * modules/ceilf (Depends-on): Likewise.
20489         * modules/ceill (Depends-on): Likewise.
20490         * modules/chdir-long (Depends-on): Likewise.
20491         * modules/chown (Depends-on): Likewise.
20492         * modules/close (Depends-on): Likewise.
20493         * modules/connect (Depends-on): Likewise.
20494         * modules/cosl (Depends-on): Likewise.
20495         * modules/dirfd (Depends-on): Likewise.
20496         * modules/dprintf (Depends-on): Likewise.
20497         * modules/dprintf-posix (Depends-on): Likewise.
20498         * modules/error (Depends-on): Likewise.
20499         * modules/euidaccess (Depends-on): Likewise.
20500         * modules/expl (Depends-on): Likewise.
20501         * modules/faccessat (Depends-on): Likewise.
20502         * modules/fchdir (Depends-on): Likewise.
20503         * modules/fclose (Depends-on): Likewise.
20504         * modules/fcntl (Depends-on): Likewise.
20505         * modules/fdopendir (Depends-on): Likewise.
20506         * modules/fflush (Depends-on): Likewise.
20507         * modules/floor (Depends-on): Likewise.
20508         * modules/floorf (Depends-on): Likewise.
20509         * modules/floorl (Depends-on): Likewise.
20510         * modules/fnmatch (Depends-on): Likewise.
20511         * modules/fopen (Depends-on): Likewise.
20512         * modules/fprintf-posix (Depends-on): Likewise.
20513         * modules/frexp (Depends-on): Likewise.
20514         * modules/frexp-nolibm (Depends-on): Likewise.
20515         * modules/frexpl (Depends-on): Likewise.
20516         * modules/frexpl-nolibm (Depends-on): Likewise.
20517         * modules/fseek (Depends-on): Likewise.
20518         * modules/fsusage (Depends-on): Likewise.
20519         * modules/ftell (Depends-on): Likewise.
20520         * modules/ftello (Depends-on): Likewise.
20521         * modules/futimens (Depends-on): Likewise.
20522         * modules/getcwd (Depends-on): Likewise.
20523         * modules/getcwd-lgpl (Depends-on): Likewise.
20524         * modules/getdelim (Depends-on): Likewise.
20525         * modules/getdomainname (Depends-on): Likewise.
20526         * modules/getgroups (Depends-on): Likewise.
20527         * modules/gethostname (Depends-on): Likewise.
20528         * modules/getline (Depends-on): Likewise.
20529         * modules/getlogin_r (Depends-on): Likewise.
20530         * modules/getopt-posix (Depends-on): Likewise.
20531         * modules/getpeername (Depends-on): Likewise.
20532         * modules/getsockname (Depends-on): Likewise.
20533         * modules/getsockopt (Depends-on): Likewise.
20534         * modules/getsubopt (Depends-on): Likewise.
20535         * modules/getusershell (Depends-on): Likewise.
20536         * modules/glob (Depends-on): Likewise.
20537         * modules/grantpt (Depends-on): Likewise.
20538         * modules/iconv_open (Depends-on): Likewise.
20539         * modules/iconv_open-utf (Depends-on): Likewise.
20540         * modules/inet_ntop (Depends-on): Likewise.
20541         * modules/inet_pton (Depends-on): Likewise.
20542         * modules/ioctl (Depends-on): Likewise.
20543         * modules/isapipe (Depends-on): Likewise.
20544         * modules/isfinite (Depends-on): Likewise.
20545         * modules/isinf (Depends-on): Likewise.
20546         * modules/lchown (Depends-on): Likewise.
20547         * modules/ldexpl (Depends-on): Likewise.
20548         * modules/link (Depends-on): Likewise.
20549         * modules/linkat (Depends-on): Likewise.
20550         * modules/listen (Depends-on): Likewise.
20551         * modules/logl (Depends-on): Likewise.
20552         * modules/lstat (Depends-on): Likewise.
20553         * modules/mbrlen (Depends-on): Likewise.
20554         * modules/mbrtowc (Depends-on): Likewise.
20555         * modules/mbsinit (Depends-on): Likewise.
20556         * modules/mbsnrtowcs (Depends-on): Likewise.
20557         * modules/mbsrtowcs (Depends-on): Likewise.
20558         * modules/mbtowc (Depends-on): Likewise.
20559         * modules/memcmp (Depends-on): Likewise.
20560         * modules/mkdir (Depends-on): Likewise.
20561         * modules/mkdtemp (Depends-on): Likewise.
20562         * modules/mkfifo (Depends-on): Likewise.
20563         * modules/mkfifoat (Depends-on): Likewise.
20564         * modules/mknod (Depends-on): Likewise.
20565         * modules/mkostemp (Depends-on): Likewise.
20566         * modules/mkostemps (Depends-on): Likewise.
20567         * modules/mkstemp (Depends-on): Likewise.
20568         * modules/mkstemps (Depends-on): Likewise.
20569         * modules/mktime (Depends-on): Likewise.
20570         * modules/nanosleep (Depends-on): Likewise.
20571         * modules/open (Depends-on): Likewise.
20572         * modules/openat (Depends-on): Likewise.
20573         * modules/perror (Depends-on): Likewise.
20574         * modules/poll (Depends-on): Likewise.
20575         * modules/popen (Depends-on): Likewise.
20576         * modules/posix_spawn (Depends-on): Likewise.
20577         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20578         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20579         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20580         * modules/posix_spawnp (Depends-on): Likewise.
20581         * modules/pread (Depends-on): Likewise.
20582         * modules/printf-posix (Depends-on): Likewise.
20583         * modules/ptsname (Depends-on): Likewise.
20584         * modules/putenv (Depends-on): Likewise.
20585         * modules/pwrite (Depends-on): Likewise.
20586         * modules/readline (Depends-on): Likewise.
20587         * modules/readlink (Depends-on): Likewise.
20588         * modules/readlinkat (Depends-on): Likewise.
20589         * modules/recv (Depends-on): Likewise.
20590         * modules/recvfrom (Depends-on): Likewise.
20591         * modules/regex (Depends-on): Likewise.
20592         * modules/remove (Depends-on): Likewise.
20593         * modules/rename (Depends-on): Likewise.
20594         * modules/renameat (Depends-on): Likewise.
20595         * modules/rmdir (Depends-on): Likewise.
20596         * modules/round (Depends-on): Likewise.
20597         * modules/roundf (Depends-on): Likewise.
20598         * modules/roundl (Depends-on): Likewise.
20599         * modules/rpmatch (Depends-on): Likewise.
20600         * modules/select (Depends-on): Likewise.
20601         * modules/send (Depends-on): Likewise.
20602         * modules/sendto (Depends-on): Likewise.
20603         * modules/setenv (Depends-on): Likewise.
20604         * modules/setlocale (Depends-on): Likewise.
20605         * modules/setsockopt (Depends-on): Likewise.
20606         * modules/shutdown (Depends-on): Likewise.
20607         * modules/sigaction (Depends-on): Likewise.
20608         * modules/signbit (Depends-on): Likewise.
20609         * modules/sigprocmask (Depends-on): Likewise.
20610         * modules/sinl (Depends-on): Likewise.
20611         * modules/sleep (Depends-on): Likewise.
20612         * modules/snprintf (Depends-on): Likewise.
20613         * modules/snprintf-posix (Depends-on): Likewise.
20614         * modules/socket (Depends-on): Likewise.
20615         * modules/sprintf-posix (Depends-on): Likewise.
20616         * modules/sqrtl (Depends-on): Likewise.
20617         * modules/stat (Depends-on): Likewise.
20618         * modules/strchrnul (Depends-on): Likewise.
20619         * modules/strdup-posix (Depends-on): Likewise.
20620         * modules/strerror (Depends-on): Likewise.
20621         * modules/strerror_r-posix (Depends-on): Likewise.
20622         * modules/strndup (Depends-on): Likewise.
20623         * modules/strnlen (Depends-on): Likewise.
20624         * modules/strptime (Depends-on): Likewise.
20625         * modules/strsep (Depends-on): Likewise.
20626         * modules/strsignal (Depends-on): Likewise.
20627         * modules/strstr-simple (Depends-on): Likewise.
20628         * modules/strtod (Depends-on): Likewise.
20629         * modules/strtoimax (Depends-on): Likewise.
20630         * modules/strtok_r (Depends-on): Likewise.
20631         * modules/strtoumax (Depends-on): Likewise.
20632         * modules/symlink (Depends-on): Likewise.
20633         * modules/symlinkat (Depends-on): Likewise.
20634         * modules/tanl (Depends-on): Likewise.
20635         * modules/tcgetsid (Depends-on): Likewise.
20636         * modules/tmpfile (Depends-on): Likewise.
20637         * modules/trunc (Depends-on): Likewise.
20638         * modules/truncf (Depends-on): Likewise.
20639         * modules/truncl (Depends-on): Likewise.
20640         * modules/uname (Depends-on): Likewise.
20641         * modules/unlink (Depends-on): Likewise.
20642         * modules/unlockpt (Depends-on): Likewise.
20643         * modules/unsetenv (Depends-on): Likewise.
20644         * modules/usleep (Depends-on): Likewise.
20645         * modules/utimensat (Depends-on): Likewise.
20646         * modules/vasprintf (Depends-on): Likewise.
20647         * modules/vdprintf (Depends-on): Likewise.
20648         * modules/vdprintf-posix (Depends-on): Likewise.
20649         * modules/vfprintf-posix (Depends-on): Likewise.
20650         * modules/vprintf-posix (Depends-on): Likewise.
20651         * modules/vsnprintf (Depends-on): Likewise.
20652         * modules/vsnprintf-posix (Depends-on): Likewise.
20653         * modules/vsprintf-posix (Depends-on): Likewise.
20654         * modules/wcrtomb (Depends-on): Likewise.
20655         * modules/wcscasecmp (Depends-on): Likewise.
20656         * modules/wcscspn (Depends-on): Likewise.
20657         * modules/wcsdup (Depends-on): Likewise.
20658         * modules/wcsncasecmp (Depends-on): Likewise.
20659         * modules/wcsnrtombs (Depends-on): Likewise.
20660         * modules/wcspbrk (Depends-on): Likewise.
20661         * modules/wcsrtombs (Depends-on): Likewise.
20662         * modules/wcsspn (Depends-on): Likewise.
20663         * modules/wcsstr (Depends-on): Likewise.
20664         * modules/wcstok (Depends-on): Likewise.
20665         * modules/wcswidth (Depends-on): Likewise.
20666         * modules/wctob (Depends-on): Likewise.
20667         * modules/wctomb (Depends-on): Likewise.
20668         * modules/wctype (Depends-on): Likewise.
20669         * modules/wcwidth (Depends-on): Likewise.
20670         * modules/write (Depends-on): Likewise.
20671
20672 2011-05-03  Bruno Haible  <bruno@clisp.org>
20673
20674         Support for conditional dependencies.
20675         * doc/gnulib.texi (Module description): Document the syntax of
20676         conditional dependencies.
20677         * gnulib-tool: New option --conditional-dependencies.
20678         (func_usage): Document it.
20679         (cond_dependencies): New variable.
20680         (func_get_automake_snippet_conditional,
20681         func_get_automake_snippet_unconditional): New functions, extracted from
20682         func_get_automake_snippet.
20683         (func_get_automake_snippet): Use them.
20684         (sed_first_32_chars): New variable.
20685         (func_module_shellfunc_name): New function.
20686         (func_module_shellvar_name): New function.
20687         (func_module_conditional_name): New function.
20688         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20689         func_cond_module_condition): New functions.
20690         (func_modules_transitive_closure): Add support for conditional
20691         dependencies.
20692         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20693         conditional automake snippet in an automake conditional.
20694         (func_emit_autoconf_snippets): Emit shell functions that contain the
20695         code for conditional modules.
20696         (func_import, func_create_testdir): Update specification.
20697
20698 2011-05-03  Eric Blake  <eblake@redhat.com>
20699
20700         test-getaddrinfo: report error information
20701         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20702
20703 2011-05-03  Jim Meyering  <meyering@redhat.com>
20704
20705         bootstrap: avoid build failure when $GZIP is set
20706         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20707         program name.  If defined at all, it is supposed to list gzip options.
20708         Reported by Alan Curry in http://debbugs.gnu.org/8609
20709
20710 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20711
20712         readme-release: new module with release instructions
20713         * modules/readme-release: New module.
20714         * top/README-release: New file, from coreutils, grep, diffutils.
20715         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20716
20717 2011-05-02  Eric Blake  <eblake@redhat.com>
20718
20719         fflush: also replace fclose when fixing fflush
20720         * modules/fflush (Depends-on): Add fclose.
20721         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20722         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20723         memstreams with no backing fd.
20724         * doc/posix-functions/fclose.texi (fclose): Document the use of
20725         fflush module to fix the bug.
20726         * tests/test-fclose.c (main): Relax test when fclose is used in
20727         isolation.
20728
20729         fclose: add some tests
20730         * modules/fclose-tests: New test module.
20731         * tests/test-fclose.c: New file.
20732         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20733
20734         fclose: reduced dependencies
20735         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20736         simpler lseek.
20737         * lib/fclose.c (rpl_fclose): Likewise.
20738         Reported by Simon Josefsson.
20739
20740         exit: drop remaining clients
20741         * modules/argmatch (Depends-on): Replace exit with stdlib.
20742         * modules/copy-file (Depends-on): Likewise.
20743         * modules/execute (Depends-on): Likewise.
20744         * modules/exitfail (Depends-on): Likewise.
20745         * modules/obstack (Depends-on): Likewise.
20746         * modules/pagealign_alloc (Depends-on): Likewise.
20747         * modules/pipe-filter-gi (Depends-on): Likewise.
20748         * modules/pipe-filter-ii (Depends-on): Likewise.
20749         * modules/savewd (Depends-on): Likewise.
20750         * modules/spawn-pipe (Depends-on): Likewise.
20751         * modules/wait-process (Depends-on): Likewise.
20752         * modules/xsetenv (Depends-on): Likewise.
20753         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20754         * modules/git-merge-changelog (Depends-on): Likewise.
20755         * modules/long-options (Depends-on): Likewise.
20756         * modules/pt_chown (Depends-on): Likewise.
20757         * modules/sysexits (Depends-on): Likewise.
20758
20759         freading: relax license from LGPLv3+ to LGPLv2+
20760         * modules/freading (License): Relax LGPL version.
20761
20762 2011-05-02  Bruno Haible  <bruno@clisp.org>
20763
20764         fchdir: Remove unused dependencies.
20765         * modules/fchdir (Depends-on): Remove include_next.
20766
20767 2011-05-02  Bruno Haible  <bruno@clisp.org>
20768
20769         gnulib-tool: Refactor.
20770         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20771         from func_emit_autoconf_snippets.
20772         (func_emit_autoconf_snippets): Use it.
20773
20774 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20775
20776         * NEWS: Document removal of 'exit'.
20777         * modules/exit: Remove file.
20778
20779 2011-05-01  Bruno Haible  <bruno@clisp.org>
20780
20781         Update DEPENDENCIES.
20782         * DEPENDENCIES (gettext): Recommend the newest release.
20783         Reported by Simon Josefsson.
20784
20785 2011-05-01  Bruno Haible  <bruno@clisp.org>
20786
20787         gnulib-tool: Reduce code duplication.
20788         * gnulib-tool (func_emit_autoconf_snippets): New function.
20789         (func_import, func_create_testdir): Use it.
20790
20791 2011-04-30  Eric Blake  <eblake@redhat.com>
20792
20793         fclose: don't fail on non-seekable input stream
20794         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20795         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20796         since fflush is allowed to fail in that case.
20797
20798 2011-04-30  Bruno Haible  <bruno@clisp.org>
20799
20800         dup3: cleanup
20801         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20802
20803 2011-04-30  Bruno Haible  <bruno@clisp.org>
20804
20805         netdb: Make it work in C++ mode.
20806         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20807         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20808         module.
20809         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20810         gl_MODULE_INDICATOR_FOR_TESTS.
20811         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20812         * modules/netdb-c++-tests: New file.
20813         * tests/test-netdb-c++.cc: New file.
20814
20815 2011-04-30  Bruno Haible  <bruno@clisp.org>
20816
20817         New modules 'vfscanf', 'vscanf'.
20818         * modules/vfscanf: New file.
20819         * modules/vscanf: New file.
20820         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20821         here.
20822         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20823         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20824
20825 2011-04-30  Bruno Haible  <bruno@clisp.org>
20826
20827         passfd: Add comments.
20828         * lib/passfd.c: Add comments about platforms.
20829
20830 2011-04-30  Bruno Haible  <bruno@clisp.org>
20831
20832         sys_uio: Make <sys/uio.h> self-contained.
20833         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20834         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20835
20836 2011-04-30  Bruno Haible  <bruno@clisp.org>
20837
20838         sys_socket: Ensure 'struct iovec' definition.
20839         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20840         <sys/socket.h>.
20841         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20842
20843 2011-04-30  Bruno Haible  <bruno@clisp.org>
20844
20845         sys_uio: Protect definition of 'struct iovec'.
20846         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20847         it as a C struct.
20848
20849 2011-04-30  Bruno Haible  <bruno@clisp.org>
20850
20851         manywarnings: fix indentation
20852         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20853
20854 2011-04-30  Pádraig Brady <P@draigBrady.com>
20855
20856         manywarnings: add -Wno-missing-field-initializers if needed.
20857         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20858         option if it's needed to allow initialization with { 0, }
20859
20860 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20861
20862         announce-gen: cosmetic improvement
20863         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20864
20865 2011-04-29  Jim Meyering  <meyering@redhat.com>
20866
20867         vc-list-files: indent with spaces, not TABs
20868         * build-aux/vc-list-files: Convert leading TABs to spaces,
20869         to match the style of most other files in gnulib.
20870
20871         announce-gen: indent with spaces, not TABs
20872         * build-aux/announce-gen: Convert all TABs to spaces, to match
20873         the style of most other files in gnulib.
20874
20875 2011-04-29  Eric Blake  <eblake@redhat.com>
20876
20877         quotearg: avoid uninitialized variable use
20878         * lib/quotearg.c (quoting_options_from_style): Initialize
20879         remaining fields, and ensure that custom styles are only used via
20880         quoting_options rather than quoting_style.
20881
20882 2011-04-29  Jim Meyering  <meyering@redhat.com>
20883
20884         maint.mk: remove unused VC-tag variable
20885         * top/maint.mk (VC-tag): Remove unused variable.
20886
20887 2011-04-29  Bruno Haible  <bruno@clisp.org>
20888
20889         netdb: fix gai_strerror replacements
20890         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20891         * modules/netdb: Substitute it.
20892
20893 2011-04-29  Jim Meyering  <meyering@redhat.com>
20894
20895         test-getcwd.c: avoid new set-but-not-used warning
20896         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20897         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20898         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20899         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20900
20901         test-hash.c: avoid a new shadowing warning
20902         * tests/test-hash.c (main): Don't shadow "dup".
20903
20904 2011-04-28  Eric Blake  <eblake@redhat.com>
20905
20906         getaddrinfo: fix gai_strerror signature
20907         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20908         and work around mingw with UNICODE defined.
20909         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20910         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20911         * modules/netdb (Makefile.am): Substitute it.
20912         * lib/netdb.in.h (gai_strerror): Declare replacement.
20913         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20914         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20915         the fix.
20916
20917         getsockopt: avoid compiler warning
20918         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20919         Reported by Matthias Bolte.
20920
20921         tests: drop unused link dependency
20922         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20923         * modules/dirent-safer-tests (Makefile.am): Likewise.
20924         * modules/fdopendir-tests (Makefile.am): Likewise.
20925         * modules/mkfifoat-tests (Makefile.am): Likewise.
20926         * modules/openat-safer-tests (Makefile.am): Likewise.
20927         * modules/openat-tests (Makefile.am): Likewise.
20928         * modules/readlinkat-tests (Makefile.am): Likewise.
20929         * modules/symlinkat-tests (Makefile.am): Likewise.
20930         * modules/linkat-tests (Makefile.am): Likewise.
20931         (Depends-on): Switch to filenamecat-lgpl.
20932         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20933         LIBINTL.
20934         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20935         * tests/test-linkat.c (main): Don't require xalloc.
20936
20937         hash, mgetgroups: drop xalloc dependency
20938         * lib/hash.c (includes): Adjust includes.
20939         * lib/mgetgroups.c (includes): Likewise.
20940         (xgetgroups): Move...
20941         * lib/xgetgroups.c: ...to new file.
20942         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20943         * modules/xgetgroups: New file, split from...
20944         * modules/mgetgroups: ...here.
20945         (Depends-on): Add xalloc-oversized.
20946         * modules/hash (Depends-on): Likewise.
20947         * modules/hash-tests (Depends-on): Drop xalloc.
20948         (test_hash_LDADD): Drop unused library.
20949         * tests/test-hash.c (main): Break xalloc dependency.
20950         (includes): Drop unused include.
20951
20952         xalloc-oversized: new module
20953         * modules/xalloc-oversized: New module.
20954         * modules/xalloc (Depends-on): Add it.
20955         * lib/xalloc.h (xalloc_oversized): Move...
20956         * lib/xalloc-oversized.h: ...into new file.
20957
20958         utimecmp: drop dependency on xmalloc
20959         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20960         due to memory pressure.
20961         * modules/utimecmp (Depends-on): Drop xalloc.
20962
20963 2011-04-27  Eric Blake  <eblake@redhat.com>
20964
20965         getcwd: fix mingw bugs
20966         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20967         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20968         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20969
20970 2011-04-27  Bruno Haible  <bruno@clisp.org>
20971
20972         mkstemps: Ensure declaration on MacOS X 10.5.
20973         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20974         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20975         MacOS X.
20976
20977 2011-04-27  Bruno Haible  <bruno@clisp.org>
20978
20979         mkstemp: More documentation.
20980         * doc/posix-functions/mkstemp.texi: Document header file problem on
20981         MacOS X.
20982
20983 2011-04-27  Bruno Haible  <bruno@clisp.org>
20984
20985         mkstemp: Tweak configure message when cross-compiling.
20986         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20987         result as a guess.
20988
20989 2011-04-27  Bruno Haible  <bruno@clisp.org>
20990
20991         clean-temp: Clarify what it does.
20992         * lib/clean-temp.h: Add more comments.
20993         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20994         module.
20995         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20996         * doc/glibc-functions/mkstemps.texi: Likewise.
20997         * doc/glibc-functions/mkostemps.texi: Likewise.
20998
20999 2011-04-27  Eric Blake  <eblake@redhat.com>
21000
21001         fchdir: avoid extra chdir and fix test
21002         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21003         getcwd-lgpl.
21004         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21005         have to be canonical.
21006         (canonicalize_file_name): Drop unused macro.
21007         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21008
21009         filenamecat-lgpl: fix licence
21010         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21011         when it was first created.
21012
21013         linkat, renameat: add missing dependency
21014         * modules/linkat (Depends-on): Require getcwd-lgpl.
21015         * modules/renameat (Depends-on): Likewise.
21016
21017         tests: reduce dependencies
21018         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21019         * tests/test-renameat.c (main): Likewise.
21020         * modules/linkat-tests (Depends-on): Relax dependency.
21021         * modules/renameat-tests (Depends-on): Likewise.
21022         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21023         dependency explicit.
21024
21025         save-cwd: reduce default dependency
21026         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21027         * lib/save-cwd.c: Update comments.
21028         * NEWS: Document the semantic change.
21029
21030         getcwd: enhance tests
21031         * tests/test-getcwd-lgpl.c: New file, taken from...
21032         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21033         repeat long path stress tests from m4 probe.
21034         * modules/getcwd-lgpl-tests: New module.
21035         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21036         * m4/getcwd-abort-bug.m4: Update comment.
21037         * m4/getcwd-path-max.m4: Likewise.
21038
21039         getcwd-lgpl: new module
21040         * modules/getcwd-lgpl: New module.
21041         * lib/getcwd-lgpl.c: New file.
21042         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21043         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21044         * modules/getcwd (configure.ac): Set C witness.
21045         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21046
21047         getcwd: tweak comments
21048         * m4/getcwd-abort-bug.m4: Fix comments.
21049         * m4/getcwd-path-max.m4: Likewise.
21050         * m4/getcwd.m4: Likewise.
21051
21052 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21053         and Eric Blake  <eblake@redhat.com>
21054
21055         mkstemp: replace if system version uses wrong permissions
21056         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21057         read/write mode bits set in file created by mkstemp.
21058         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21059
21060 2011-04-27  Eric Blake  <eblake@redhat.com>
21061
21062         passfd: avoid compiler warning
21063         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21064         Reported by Laine Stump.
21065
21066 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21067
21068         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21069         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21070
21071 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21072         and Eric Blake  <eblake@redhat.com>
21073
21074         mkstemp: mention clean-temp module
21075         * lib/mkstemp.c: Add comment.
21076         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21077
21078 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21079
21080         inttypes: also provide default values for 32-bit tests
21081         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21082         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21083
21084 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21085
21086         strtoumax: remove dependency on strtoimax
21087         This is like the strtoull change of yesterday.
21088         * modules/strtoumax (Files): Add lib/strtoimax.c.
21089         (Depends-on): Remove strtoimax and add verify.
21090
21091         inttypes-incomplete: new module
21092         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21093         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21094         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21095         of gl_INTTYPES_H.
21096         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21097         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21098         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21099         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21100         * modules/strtoumax, modules/xstrtol (Depends-on):
21101         Depend on inttypes-incomplete, not inttypes.
21102         * modules/inttypes-incomplete: New module, containing the contents
21103         of the old modules/inttypes module, except that the Files: section
21104         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21105         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21106         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21107         (Depends-on): Depend only on inttypes-incomplete.
21108         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21109
21110         inttypes: omit now-redundant strtoimax and strtoumax work
21111         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21112         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21113
21114         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21115         This supports apps that need pointers to strtoimax and strtoumax,
21116         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21117         nonexistent functions.  See
21118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21119         et seq.
21120         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21121         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21122         a macro.
21123         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21124
21125 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21126
21127         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21128
21129 2011-04-25  Bruno Haible  <bruno@clisp.org>
21130
21131         strtol, strtoul: Mark modules as obsolete.
21132         * modules/strtol (Status, Notice): New sections.
21133         * modules/strtoul (Status, Notice): New sections.
21134
21135 2011-04-25  Bruno Haible  <bruno@clisp.org>
21136
21137         strtod: Remove check for strtod, unless supporting old platforms.
21138         * modules/strtod-obsolete: New file.
21139         * m4/strtod-obsolete.m4: New file.
21140         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21141         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21142         * modules/strtod (Depends-on): Add strtod-obsolete.
21143         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21144
21145 2011-04-25  Bruno Haible  <bruno@clisp.org>
21146
21147         strcase: Make module obsolete.
21148         * modules/strcase (Status, Notice): New sections.
21149
21150 2011-04-25  Bruno Haible  <bruno@clisp.org>
21151
21152         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21153         * modules/dup2-obsolete: New file.
21154         * m4/dup2-obsolete.m4: New file.
21155         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21156         gl_FUNC_DUP2_OBSOLETE is not also defined.
21157         * modules/dup2 (Depends-on): Add dup2-obsolete.
21158         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21159
21160 2011-04-25  Bruno Haible  <bruno@clisp.org>
21161
21162         strnlen: Avoid memchr related link error on old obsolete platforms.
21163         * modules/memchr-obsolete: New file.
21164         * m4/memchr-obsolete.m4: New file.
21165         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21166         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21167         * modules/memchr (Depends-on): Add memchr-obsolete.
21168         * modules/strnlen (Depends-on): Likewise.
21169         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21170
21171 2011-04-25  Jim Meyering  <meyering@redhat.com>
21172
21173         maint.mk: makefile_at_at_check extend and clean up
21174         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21175         in addition to */Makefile.am.
21176         Exempt legitimate uses of @VAR@ notation, e.g.,
21177         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21178         Remove obsolete coreutils-specific comment.
21179         Prompted by discussion here:
21180         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21181
21182 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21183
21184         strtoul: remove dependency on strtol
21185         This is so that 'configure' need not check for strtol merely because
21186         the application needs strtoul.
21187         * modules/strtoul (Files): Add lib/strtol.c.
21188         (Depends-on): Remove strtol.
21189
21190         strtoull: remove dependency on strtoul
21191         This is like the strtoll change.
21192         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21193         (Depends-on): Remove strtoul.
21194
21195         strtoll: remove dependency on strtol
21196         This is so that 'configure' need not check for strtol merely because
21197         the application needs strtoll.
21198         * modules/strtoll (Files): Add lib/strtol.c.
21199         (Depends-on): Remove strtol.
21200
21201 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21202
21203         inttypes: Move some configure check to module 'imaxdiv'.
21204         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21205         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21206         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21207
21208 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21209
21210         inttypes: Move some configure check to module 'imaxabs'.
21211         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21212         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21213         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21214
21215 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21216
21217         inttypes: Remove configure tests that are not needed since 2009-12-31.
21218         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21219         gl_cv_header_working_inttypes_h.
21220
21221 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21222
21223         * modules/strnlen (Depends-on): Remove memchr.
21224         The strnlen implementation doesn't need the memchr module's fixes; see
21225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21226
21227         strtol: remove dependency on wchar
21228         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21229         * modules/strtol (Depends-on): Remove wchar.
21230
21231 2011-04-21  Eric Blake  <eblake@redhat.com>
21232
21233         passfd: fix test regression on Linux
21234         * modules/passfd-tests (configure.ac): Correct socketpair check.
21235
21236         passfd: speed up configure and drop unused code
21237         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21238         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21239         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21240         Instead of probing at configure for unix_scm_rights_bsd44_way,
21241         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21242         check to a struct member probe.
21243         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21244         (sendfd, recvfd): Update preprocessor checks.
21245         * modules/passfd (Files): Reflect rename, and drop unused file.
21246         (Depends-on): Drop unused dependency.
21247
21248         passfd: allow compilation on mingw
21249         * modules/sys_socket (Depends-on): Add sys_uio.
21250         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21251         iovec and a minimal struct msghdr.
21252         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21253         * tests/test-sys_socket.c (main): Enhance test.
21254         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21255         guaranteed to provide what we need.
21256         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21257         * modules/passfd-tests (Depends-on): Add sys_wait.
21258         * tests/test-passfd.c (main): Skip test on mingw, for now.
21259         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21260         partial 'struct msghdr' implementation.
21261
21262         sys_uio: new module
21263         * modules/sys_uio: New module.
21264         * modules/sys_uio-tests: Likewise.
21265         * lib/sys_uio.in.h: New file.
21266         * m4/sys_uio_h.m4: Likewise.
21267         * tests/test-sys_uio.c: Likewise.
21268         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21269         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21270
21271 2011-04-20  Jim Meyering  <meyering@redhat.com>
21272
21273         useless-if-before-free: avoid false-positive
21274         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21275         disjunct so that it too requires a terminating ";".  Without that,
21276         this script would identify as useless one statement from gcc that
21277         was not:
21278           if (aligned_ptr)
21279             free (((void **) aligned_ptr) [-1]);
21280
21281 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21282
21283         doc: update users.txt.
21284         * users.txt: Add barcode.
21285
21286 2011-04-19  Bruno Haible  <bruno@clisp.org>
21287
21288         ioctl: Remove link dependency on native Windows.
21289         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21290         (gl_close_fn, gl_ioctl_fn): New types.
21291         (struct fd_hook): Renamed from struct close_hook. Change type of
21292         private_close_fn field. Add private_ioctl_fn field.
21293         (close_hook_fn): Add parameter for primary close method.
21294         (execute_close_hooks, execute_all_close_hooks): Likewise.
21295         (ioctl_hook_fn): New type.
21296         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21297         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21298         argument.
21299         (unregister_fd_hook): Renamed from unregister_close_hook.
21300         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21301         Don't include <unistd.h>.
21302         (close): Remove undef.
21303         (anchor): Update.
21304         (execute_close_hooks): Add argument for primary close method.
21305         (execute_all_close_hooks): Likewise.
21306         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21307         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21308         argument. Allow each argument to be NULL.
21309         (unregister_fd_hook): Renamed from unregister_close_hook.
21310         * lib/close.c (rpl_close): Pass 'close' function pointer to
21311         execute_all_close_hooks.
21312         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21313         (primary_ioctl): New function.
21314         (ioctl): Don't call ioctlsocket here. Instead, call
21315         execute_all_ioctl_hooks.
21316         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21317         close method.
21318         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21319         (fd_sockets_hook): Renamed from close_sockets_hook.
21320         (gl_sockets_startup, gl_sockets_cleanup): Update.
21321         * modules/fd-hook: Renamed from modules/close-hook. Update.
21322         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21323         * modules/sockets (Depends-on): Likewise.
21324         * modules/ioctl (Depends-on): Add fd-hook.
21325         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21326         GNULIB_SOCKET.
21327
21328 2011-04-19  Bruno Haible  <bruno@clisp.org>
21329
21330         Move the support of O_NONBLOCK in open() to the 'open' module.
21331         * modules/nonblocking (Depends-on): Remove 'open'.
21332         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21333         gl_cv_have_open_O_NONBLOCK.
21334         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21335         O_NONBLOCK support.
21336         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21337
21338 2011-04-17  Bruno Haible  <bruno@clisp.org>
21339
21340         pipe2: Simplify code.
21341         * lib/pipe2.c (pipe2): Reduce code duplication.
21342
21343 2011-04-17  Bruno Haible  <bruno@clisp.org>
21344
21345         nonblocking: Add comment.
21346         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21347
21348 2011-04-17  Bruno Haible  <bruno@clisp.org>
21349
21350         nonblocking: Add tests for sockets.
21351         * tests/test-nonblocking-socket.sh: New file.
21352         * tests/test-nonblocking-socket-main.c: New file.
21353         * tests/test-nonblocking-socket-child.c: New file.
21354         * tests/test-nonblocking-socket.h: New file.
21355         * tests/socket-server.h: New file.
21356         * tests/socket-client.h: New file.
21357         * modules/nonblocking-socket-tests: New file.
21358         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21359
21360 2011-04-17  Bruno Haible  <bruno@clisp.org>
21361
21362         nonblocking: Add tests for pipes.
21363         * tests/test-nonblocking-pipe.sh: New file.
21364         * tests/test-nonblocking-pipe-main.c: New file.
21365         * tests/test-nonblocking-pipe-child.c: New file.
21366         * tests/test-nonblocking-pipe.h: New file.
21367         * tests/test-nonblocking-writer.h: New file.
21368         * tests/test-nonblocking-reader.h: New file.
21369         * tests/test-nonblocking-misc.h: New file.
21370         * modules/nonblocking-pipe-tests: New file.
21371         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21372
21373 2011-04-16  Bruno Haible  <bruno@clisp.org>
21374
21375         gettext: Clarify the needed programmer actions.
21376         * modules/gettext (Notice): New field.
21377         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21378
21379 2011-04-16  Bruno Haible  <bruno@clisp.org>
21380
21381         strchrnul: Tweak last commit.
21382         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21383         bug.
21384         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21385         as in _GL_FUNCDECL_SYS.
21386         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21387         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21388
21389 2011-04-15  Eric Blake  <eblake@redhat.com>
21390
21391         strchrnul: work around cygwin bug
21392         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21393         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21395         * modules/string (Makefile.am): Substitute it.
21396         * lib/string.in.h (strchrnul): Use it.
21397
21398 2011-04-15  Bruno Haible  <bruno@clisp.org>
21399
21400         Don't require lib/stdio-write.c when only module 'stdio' is used.
21401         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21402         invocation.
21403         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21404
21405 2011-04-14  Bruno Haible  <bruno@clisp.org>
21406
21407         Support non-blocking pipe I/O in read() on native Windows.
21408         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21409         (read): New declaration.
21410         * lib/read.c: New file.
21411         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21412         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21413         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21414         vscanf): New declarations.
21415         * lib/stdio-read.c: New file.
21416         * m4/read.m4: New file.
21417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21418         REPLACE_READ.
21419         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21420         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21421         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21422         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21423         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21424         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21425         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21426         * modules/read: New file.
21427         * modules/nonblocking (Files): Add lib/stdio-read.c.
21428         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21429         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21430         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21431         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21432         * modules/pread (Depends-on): Add read.
21433         * modules/safe-read (Depends-on): Likewise.
21434         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21435         gets, scanf, vfscanf, vscanf): Verify signatures.
21436         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21437         problem with non-blocking pipes.
21438         * doc/posix-functions/fgetc.texi: Likewise.
21439         * doc/posix-functions/fgets.texi: Likewise.
21440         * doc/posix-functions/fread.texi: Likewise.
21441         * doc/posix-functions/fscanf.texi: Likewise.
21442         * doc/posix-functions/getc.texi: Likewise.
21443         * doc/posix-functions/getchar.texi: Likewise.
21444         * doc/posix-functions/gets.texi: Likewise.
21445         * doc/posix-functions/scanf.texi: Likewise.
21446         * doc/posix-functions/vfscanf.texi: Likewise.
21447         * doc/posix-functions/vscanf.texi: Likewise.
21448
21449 2011-04-14  Bruno Haible  <bruno@clisp.org>
21450
21451         Support non-blocking pipe I/O in write() on native Windows.
21452         * lib/write.c (rpl_write): Split a write request that failed merely
21453         because the byte count was larger than the pipe buffer's size.
21454         * doc/posix-functions/write.texi: Mention the problem with large byte
21455         counts.
21456
21457 2011-04-14  Bruno Haible  <bruno@clisp.org>
21458
21459         wchar: Ensure that wchar_t gets defined on uClibc.
21460         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21461         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21462
21463 2011-04-13  Bruno Haible  <bruno@clisp.org>
21464
21465         safe-write, full-read: Avoid unnecessary compilation units.
21466         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21467         (Depends-on): Remove safe-read. Add ssize_t.
21468         * modules/full-read (Files): Add lib/full-write.c.
21469         (Depends-on): Add full-write.
21470
21471 2011-04-13  Bruno Haible  <bruno@clisp.org>
21472
21473         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21474         * modules/pwrite (Depends-on): Add 'write'.
21475
21476 2011-04-13  Bruno Haible  <bruno@clisp.org>
21477
21478         Support non-blocking pipe I/O in write() on native Windows.
21479         * lib/unistd.in.h (write): Enable replacement also if
21480         GNULIB_UNISTD_H_NONBLOCKING is 1.
21481         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21482         (rpl_write): When failing to write on a non-blocking pipe, change
21483         errno from ENOSPC to EAGAIN.
21484         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21485         putchar, puts, vfprintf, vprintf): Enable replacement also if
21486         GNULIB_STDIO_H_NONBLOCKING is 1.
21487         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21488         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21489         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21490         CALL_WITH_SIGPIPE_EMULATION.
21491         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21492         * m4/nonblocking.m4: New file.
21493         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21494         for non-blocking I/O support.
21495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21496         GNULIB_UNISTD_H_NONBLOCKING.
21497         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21498         required for non-blocking I/O support.
21499         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21500         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21501         lib/stdio-write.c, m4/asm-underscore.m4.
21502         (Depends-on): Add stdio, unistd.
21503         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21504         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21505         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21506         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21507         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21508         problem with non-blocking pipes.
21509         * doc/posix-functions/fputc.texi: Likewise.
21510         * doc/posix-functions/fputs.texi: Likewise.
21511         * doc/posix-functions/fwrite.texi: Likewise.
21512         * doc/posix-functions/printf.texi: Likewise.
21513         * doc/posix-functions/putc.texi: Likewise.
21514         * doc/posix-functions/putchar.texi: Likewise.
21515         * doc/posix-functions/puts.texi: Likewise.
21516         * doc/posix-functions/vfprintf.texi: Likewise.
21517         * doc/posix-functions/vprintf.texi: Likewise.
21518         * doc/posix-functions/write.texi: Likewise.
21519
21520 2011-04-10  Jim Meyering  <meyering@redhat.com>
21521
21522         maint.mk: prohibit doubled words
21523         Detect them also when they're separated by a newline.
21524         There are 3 ways to customize it:
21525           - disable the test on a per file basis, as usual with rules using
21526             $(VC_LIST_EXCEPT)
21527           - replace the default doubled-word-selecting regexp (affects all files)
21528           - ignore a particular file-vs-doubled-word match
21529         I nearly used that last one to ignore the "is is" match in
21530         coreutils' NEWS file, since the text was "ls -is is ..."
21531         To do that, I would have added this line to cfg.mk:
21532           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21533         but it would have ignored any "is is" match in NEWS.
21534         Low probability, but still...
21535         Instead, I changed the text, slightly:
21536           -  ls -is is now consistent with ls -lis in ignoring values returned
21537           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21538         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21539         (prohibit_doubled_word_): Define.
21540         (sc_prohibit_doubled_word): New rule.
21541         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21542
21543 2011-04-10  Jim Meyering  <meyering@redhat.com>
21544
21545         maint: fix doubled-word typo in comment
21546         * m4/gethostname.m4: s/is is/it is/
21547         * m4/getdomainname.m4: Likewise.
21548
21549 2011-04-10  Jim Meyering  <meyering@redhat.com>
21550
21551         maint: remove doubled word: s/it it/it/
21552         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21553
21554 2011-04-10  Jim Meyering  <meyering@redhat.com>
21555
21556         maint.mk: remove useless semicolon and backslash
21557         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21558         semicolon and backslash.
21559
21560 2011-04-10  Bruno Haible  <bruno@clisp.org>
21561
21562         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21563         * modules/stdint-tests (Depends-on): Add wchar.
21564
21565 2011-04-10  Jim Meyering  <meyering@redhat.com>
21566
21567         maint: remove doubled words in comments, e.g., s/a a/a/
21568         * lib/strptime.c (day_of_the_week): s/the the/the/
21569         * tests/test-chown.h (test_chown): s/a a/a/
21570
21571         test-chown.h: correct a cast
21572         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21573         when the destination is a stat.st_gid.
21574
21575 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21576
21577         getaddrinfo: Fix test for sa_len member.
21578         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21579         include <sys/types.h> before <sys/socket.h>.
21580
21581 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21582
21583         maint: change "can not" to "cannot"
21584         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21585         boundaries.
21586
21587 2011-04-09  Jim Meyering  <meyering@redhat.com>
21588
21589         maint: change "a a" to "a"
21590         * tests/test-lchown.h (test_lchown): s/a a/a/
21591
21592         maint.mk: prohibit \<the the\>
21593         * top/maint.mk (sc_prohibit_the_the): New rule.
21594
21595         maint: fix "the the" in comment
21596         * lib/count-one-bits.h: s/the the/the/
21597
21598         maint: change "can not" to "cannot"
21599         But do not change the occurrences in maintain.texi or in
21600         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21601         * doc/gnulib-tool.texi: s/can not/cannot/
21602         * doc/posix-functions/accept.texi (accept): Likewise.
21603         * doc/posix-functions/socket.texi (socket): Likewise.
21604         * lib/mbrtowc.c: Likewise.
21605
21606         maint.mk: prohibit use of "can not"
21607         * top/maint.mk (sc_prohibit_can_not): New rule.
21608         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21609
21610 2011-04-09  Bruno Haible  <bruno@clisp.org>
21611
21612         careadlinkat: Guard against misuse of careadlinkatcwd.
21613         * lib/careadlinkat.c: Include <stdlib.h>.
21614         (careadlinkatcwd): Check that the fd argument is as expected.
21615
21616 2011-04-09  Bruno Haible  <bruno@clisp.org>
21617
21618         careadlinkat: Use common coding style.
21619         * lib/careadlinkat.c: Move gnulib includes after system includes.
21620
21621 2011-04-09  Bruno Haible  <bruno@clisp.org>
21622
21623         careadlinkat: Clarify specification.
21624         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21625         (careadlinkatcwd): Add comment.
21626         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21627
21628 2011-04-09  Bruno Haible  <bruno@clisp.org>
21629
21630         areadlinkat: Avoid link error on many platforms.
21631         * modules/areadlinkat (Depends-on): Add areadlink.
21632
21633 2011-04-09  Bruno Haible  <bruno@clisp.org>
21634
21635         allocator, careadlinkat: Fix double-inclusion guard.
21636         * lib/allocator.h: Fix double-inclusion guard.
21637         * lib/careadlinkat.h: Likewise.
21638
21639 2011-04-09  Bruno Haible  <bruno@clisp.org>
21640
21641         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21642         * lib/relocwrapper.c: Update dependencies hierarchy.
21643         * build-aux/install-reloc: Update list of files to be compiled.
21644         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21645         lib/allocator.[hc].
21646
21647 2011-04-08  Eric Blake  <eblake@redhat.com>
21648
21649         strftime: silence gnulib-tool warning
21650         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21651
21652 2011-04-08  Bruno Haible  <bruno@clisp.org>
21653
21654         verify: Fix syntax error with GCC 4.6 in C++ mode.
21655         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21656         (HAVE_STATIC_ASSERT): New macro.
21657         (verify_true, verify): Use 'static_assert' if it is supported and
21658         '_Static_assert' is not supported.
21659
21660 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21661
21662         allocator: New module.
21663         * modules/allocator, lib/allocator.c: New files.
21664         * lib/allocator.h (stdlib_allocator): New decl.
21665         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21666         Remove.  Do not include <stdlib.h>.
21667         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21668         * modules/careadlinkat (Files): Remove lib/allocator.h.
21669         (Depends-on): Add allocator.
21670
21671         stdlib: let modules use system malloc, realloc
21672         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21673         if !_GL_USE_STDLIB_ALLOC.
21674         (malloc, realloc): Limit this change to a smaller scope.
21675
21676         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21677         (malloc, realloc): Don't #undef; no longer needed.
21678         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21679         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21680         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21681         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21682         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21683         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21684         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21685         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21686
21687         careadlinkat: rename members to avoid problem
21688         * lib/allocator.h (struct allocator): Rename members from
21689         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21690         and realloc are #define'd.  Reported by Eric Blake in
21691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21692         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21693
21694 2011-04-08  Eric Blake  <eblake@redhat.com>
21695
21696         nonblocking: reduce dependency
21697         * tests/test-nonblocking.c: Only test sockets when in use.
21698         * modules/nonblocking-tests (Depends-on): Drop socket.
21699         (Makefile.am): Link even if sockets are not present.
21700         * modules/pipe2-tests (Makefile.am): Likewise.
21701         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21702
21703         pipe2: fix O_NONBLOCK support on mingw
21704         * modules/pipe2 (Depends-on): Add nonblocking.
21705         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21706         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21707         * tests/test-nonblocking.c (main): Likewise.
21708         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21709
21710         fcntl-h: fix O_ACCMODE on cygwin
21711         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21712         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21713
21714         pipe-filter: drop O_NONBLOCK workarounds
21715         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21716         * modules/pipe-filter-ii (Depends-on): Likewise.
21717         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21718
21719         nonblocking: provide O_NONBLOCK for mingw
21720         * modules/nonblocking (Depends-on): Add open.
21721         (configure.ac): Set new witness macro.
21722         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21723         * modules/fcntl-h (Makefile.am): Substitute it.
21724         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21725         nonblocking module is in use.
21726         * lib/nonblocking.c: Adjust portability test.
21727         * lib/open.c (open): Don't let native open see gnulib flag.
21728         * tests/test-fcntl-h.c (main): Enhance test.
21729         * tests/test-open.h (test_open): Likewise.
21730         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21731
21732         careadlinkat: fix compilation error on mingw
21733         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21734         within struct allocator.
21735
21736 2011-04-06  Eric Blake  <eblake@redhat.com>
21737
21738         binary-io: relicense under LGPLv2+
21739         * modules/binary-io (License): Relax to LGPLv2+.
21740         Requested for libvirt, and required by pipe2.
21741
21742 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21743
21744         verify: use _Static_assert if available
21745         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21746         (verify_true, verify): Use it if available.  This generates better
21747         diagnostics with GCC 4.6.0 and later.
21748
21749 2011-04-05  Bruno Haible  <bruno@clisp.org>
21750
21751         Remove leftover generated .h files after config.status changed.
21752
21753         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21754         GL_GENERATE_ALLOCA_H.
21755         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21756         GL_GENERATE_ALLOCA_H evaluates to false.
21757
21758         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21759         GL_GENERATE_ARGZ_H.
21760         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21761         evaluates to false.
21762
21763         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21764         GL_GENERATE_BYTESWAP_H.
21765         * modules/byteswap (Makefile.am): Remove byteswap.h if
21766         GL_GENERATE_BYTESWAP_H evaluates to false.
21767
21768         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21769         GL_GENERATE_ERRNO_H.
21770         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21771         evaluates to false.
21772
21773         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21774         GL_GENERATE_FLOAT_H.
21775         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21776         evaluates to false.
21777
21778         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21779         GL_GENERATE_FNMATCH_H.
21780         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21781         GL_GENERATE_FNMATCH_H evaluates to false.
21782
21783         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21784         GL_GENERATE_GLOB_H.
21785         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21786         evaluates to false.
21787
21788         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21789         automake conditional GL_GENERATE_ICONV_H.
21790         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21791         evaluates to false.
21792
21793         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21794         GL_GENERATE_NETINET_IN_H.
21795         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21796         GL_GENERATE_NETINET_IN_H evaluates to false.
21797
21798         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21799         conditional GL_GENERATE_PTHREAD_H.
21800         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21801         * modules/pthread (Makefile.am): Remove pthread.h if
21802         GL_GENERATE_PTHREAD_H evaluates to false.
21803
21804         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21805         GL_GENERATE_SCHED_H.
21806         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21807         evaluates to false.
21808
21809         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21810         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21811         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21812         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21813
21814         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21815         GL_GENERATE_STDARG_H.
21816         * modules/stdarg (Makefile.am): Remove stdarg.h if
21817         GL_GENERATE_STDARG_H evaluates to false.
21818
21819         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21820         GL_GENERATE_STDBOOL_H.
21821         * modules/stdbool (Makefile.am): Remove stdbool.h if
21822         GL_GENERATE_STDBOOL_H evaluates to false.
21823
21824         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21825         conditional GL_GENERATE_STDDEF_H.
21826         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21827         * modules/stddef (Makefile.am): Remove stddef.h if
21828         GL_GENERATE_STDDEF_H evaluates to false.
21829
21830         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21831         GL_GENERATE_STDINT_H.
21832         * modules/stdint (Makefile.am): Remove stdint.h if
21833         GL_GENERATE_STDINT_H evaluates to false.
21834
21835         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21836         GL_GENERATE_SYSEXITS_H.
21837         * modules/sysexits (Makefile.am): Remove sysexits.h if
21838         GL_GENERATE_SYSEXITS_H evaluates to false.
21839
21840         Reported by Karl Berry and Ralf Wildenhues.
21841
21842 2011-04-05  Bruno Haible  <bruno@clisp.org>
21843
21844         Ensure to rebuild generated .h files when config.status has changed.
21845         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21846         config.status.
21847         * modules/ctype (Makefile.am): Likewise.
21848         * modules/dirent (Makefile.am): Likewise.
21849         * modules/errno (Makefile.am): Likewise.
21850         * modules/fcntl-h (Makefile.am): Likewise.
21851         * modules/float (Makefile.am): Likewise.
21852         * modules/getopt-posix (Makefile.am): Likewise.
21853         * modules/glob (Makefile.am): Likewise.
21854         * modules/iconv-h (Makefile.am): Likewise.
21855         * modules/inttypes (Makefile.am): Likewise.
21856         * modules/langinfo (Makefile.am): Likewise.
21857         * modules/locale (Makefile.am): Likewise.
21858         * modules/math (Makefile.am): Likewise.
21859         * modules/netdb (Makefile.am): Likewise.
21860         * modules/netinet_in (Makefile.am): Likewise.
21861         * modules/poll-h (Makefile.am): Likewise.
21862         * modules/pthread (Makefile.am): Likewise.
21863         * modules/pty (Makefile.am): Likewise.
21864         * modules/sched (Makefile.am): Likewise.
21865         * modules/search (Makefile.am): Likewise.
21866         * modules/selinux-h (Makefile.am): Likewise.
21867         * modules/signal (Makefile.am): Likewise.
21868         * modules/spawn (Makefile.am): Likewise.
21869         * modules/stdarg (Makefile.am): Likewise.
21870         * modules/stdbool (Makefile.am): Likewise.
21871         * modules/stddef (Makefile.am): Likewise.
21872         * modules/stdint (Makefile.am): Likewise.
21873         * modules/stdio (Makefile.am): Likewise.
21874         * modules/stdlib (Makefile.am): Likewise.
21875         * modules/string (Makefile.am): Likewise.
21876         * modules/strings (Makefile.am): Likewise.
21877         * modules/sys_file (Makefile.am): Likewise.
21878         * modules/sys_ioctl (Makefile.am): Likewise.
21879         * modules/sys_select (Makefile.am): Likewise.
21880         * modules/sys_socket (Makefile.am): Likewise.
21881         * modules/sys_stat (Makefile.am): Likewise.
21882         * modules/sys_time (Makefile.am): Likewise.
21883         * modules/sys_times (Makefile.am): Likewise.
21884         * modules/sys_utsname (Makefile.am): Likewise.
21885         * modules/sys_wait (Makefile.am): Likewise.
21886         * modules/sysexits (Makefile.am): Likewise.
21887         * modules/termios (Makefile.am): Likewise.
21888         * modules/time (Makefile.am): Likewise.
21889         * modules/unistd (Makefile.am): Likewise.
21890         * modules/wchar (Makefile.am): Likewise.
21891         * modules/wctype-h (Makefile.am): Likewise.
21892         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21893
21894 2011-04-05  Bruno Haible  <bruno@clisp.org>
21895
21896         pipe2: Relicense under LGPLv2+.
21897         * modules/pipe2 (License): Change to LGPLv2+.
21898         Requested by Eric Blake, for libvirt.
21899
21900 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21901
21902         bootstrap: compute gnulib_extra_files after updating build_aux
21903         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21904         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21905
21906 2011-04-05  Eric Blake  <eblake@redhat.com>
21907
21908         bootstrap: preserve git whitelist item sorting
21909         * build-aux/bootstrap (sort_patterns): New function.
21910         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21911
21912 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21913
21914         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21915         sc_space_tab check.
21916
21917 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21918
21919         areadlink, areadlinkat: rewrite in terms of careadlinkat
21920         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21921         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21922         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21923         (malloc, realloc): Remove #undefs.
21924         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21925         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21926         readlink, ssize_t, stdint, unistd.
21927         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21928         areadlink, stdint.
21929
21930         careadlinkat: new module
21931         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21932         * modules/careadlinkat: New files, written by me with
21933         a review and feedback from Ben Pfaff in
21934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21935
21936 2011-04-01  Bruno Haible  <bruno@clisp.org>
21937
21938         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21939         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21940         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21941         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21942         Reported by Bruce Korb <bruce.korb@gmail.com>.
21943
21944 2011-04-01  Bruno Haible  <bruno@clisp.org>
21945
21946         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21947         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21948         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21949         * modules/wcpcpy (Depends-on): Add extensions.
21950         * modules/wcpncpy (Depends-on): Likewise.
21951         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21952         systems.
21953         * doc/posix-functions/wcpncpy.texi: Likewise.
21954         * doc/posix-functions/wcwidth.texi: Likewise.
21955
21956 2011-03-31  Eric Blake  <eblake@redhat.com>
21957
21958         nonblocking: fix mingw test failures
21959         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21960         non-blocking flag on regular file.
21961         (get_nonblocking_flag): Set errno on invalid fd.
21962         * tests/test-nonblocking.c (main): Avoid test failure on
21963         directories if fchdir is not active.
21964         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21965
21966 2011-03-31  Bruno Haible  <bruno@clisp.org>
21967
21968         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21969         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21970         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21971         Reported by Simon Josefsson <simon@josefsson.org>.
21972
21973 2011-03-31  Bruno Haible  <bruno@clisp.org>
21974         and Eric Blake  <eblake@redhat.com>
21975
21976         nonblocking: new module
21977         * modules/nonblocking: New module.
21978         * modules/nonblocking-tests: Likewise.
21979         * lib/nonblocking.h: New file.
21980         * lib/nonblocking.c: Likewise.
21981         * tests/test-nonblocking.c: New test.
21982         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21983
21984 2011-03-30  Bruno Haible  <bruno@clisp.org>
21985
21986         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21987         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21988         instead of 'printf' format for GCC >= 4.4.
21989         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21990         (fprintf, printf, vfprintf, vprintf): Declare with
21991         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21992         the system's vfprintf() function.
21993         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21994
21995 2011-03-30  Eric Blake  <eblake@redhat.com>
21996
21997         passfd: fix scoping bug
21998         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21999         before sendmsg/recvmsg.
22000
22001         passfd: standardize coding conventions
22002         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22003         can be learned at compile time.
22004         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22005         ifdefs.
22006         (sendfd, recvfd): Follow gnulib code conventions.
22007
22008         passfd: fix incorrect sendmsg arguments
22009         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22010         incorrect msg_controllen value.
22011         * modules/passfd-tests (Depends-on): Check for alarm.
22012         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22013         Reported by Bastien ROUCARIES.
22014
22015 2011-03-30  Bruno Haible  <bruno@clisp.org>
22016
22017         c-strcasestr: Relicense under LGPLv2+.
22018         * modules/c-strcasestr (License): Change to LGPLv2+.
22019         Requested by Eric Blake, for libvirt.
22020
22021 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22022
22023         * users.txt: Add libidn2.  Fix libtasn1 link.
22024
22025 2011-03-30  Jim Meyering  <meyering@redhat.com>
22026
22027         tests: readlink* ("",... fails with EINVAL on newer kernels
22028         readlink and readlinkat have typically failed with ENOENT for
22029         the invalid, empty file name,  "".  However, with the advent
22030         of linux-2.6.39, they fail with EINVAL.
22031         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22032         when operating on the empty file name.
22033         * tests/test-readlink.h (test_readlink): Likewise.
22034
22035 2011-03-29  Bruno Haible  <bruno@clisp.org>
22036
22037         Relicense some modules under LGPLv2+, for libidn2.
22038         * modules/array-mergesort (License): Change to LGPLv2+.
22039         * modules/c-strcaseeq (License): Likewise.
22040         * modules/striconveh (License): Likewise.
22041         * modules/striconveha (License): Likewise.
22042         * modules/uniconv/base (License): Likewise.
22043         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22044         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22045         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22046         * modules/unictype/base (License): Likewise.
22047         * modules/unictype/bidiclass-of (License): Likewise.
22048         * modules/unictype/category-M (License): Likewise.
22049         * modules/unictype/category-none (License): Likewise.
22050         * modules/unictype/category-of (License): Likewise.
22051         * modules/unictype/category-test (License): Likewise.
22052         * modules/unictype/category-test-withtable (License): Likewise.
22053         * modules/unictype/combining-class (License): Likewise.
22054         * modules/unictype/joiningtype-of (License): Likewise.
22055         * modules/unictype/scripts (License): Likewise.
22056         * modules/uninorm/base (License): Likewise.
22057         * modules/uninorm/canonical-decomposition (License): Likewise.
22058         * modules/uninorm/composition (License): Likewise.
22059         * modules/uninorm/decompose-internal (License): Likewise.
22060         * modules/uninorm/decomposition-table (License): Likewise.
22061         * modules/uninorm/nfc (License): Likewise.
22062         * modules/uninorm/nfd (License): Likewise.
22063         * modules/uninorm/u32-normalize (License): Likewise.
22064         * modules/unistr/base (License): Likewise.
22065         * modules/unistr/u32-cpy (License): Likewise.
22066         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22067         * modules/unistr/u32-to-u8 (License): Likewise.
22068         * modules/unistr/u32-uctomb (License): Likewise.
22069         * modules/unistr/u8-check (License): Likewise.
22070         * modules/unistr/u8-mblen (License): Likewise.
22071         * modules/unistr/u8-mbtouc (License): Likewise.
22072         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22073         * modules/unistr/u8-mbtoucr (License): Likewise.
22074         * modules/unistr/u8-prev (License): Likewise.
22075         * modules/unistr/u8-strlen (License): Likewise.
22076         * modules/unistr/u8-to-u32 (License): Likewise.
22077         * modules/unistr/u8-uctomb (License): Likewise.
22078         * modules/unitypes (License): Likewise.
22079         Requested by Simon Josefsson.
22080
22081 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22082
22083         lib-symbol-visibility: Add a notice.
22084         * modules/lib-symbol-visibility (Notice): New field.
22085
22086 2011-03-29  Bruno Haible  <bruno@clisp.org>
22087
22088         getaddrinfo: Doc fix.
22089         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22090         section "fixed in Gnulib".
22091
22092 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22093
22094         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22095         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22096
22097 2011-03-26  Bruno Haible  <bruno@clisp.org>
22098
22099         unictype/property-byname: Reduce the number of load-time relocations.
22100         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22101         (UC_PROPERTY_INDEX_*): New enumeration values.
22102         (uc_property_byname): Convert an index from the lookup table to an
22103         uc_property_t.
22104         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22105         values.
22106
22107 2011-03-26  Bruno Haible  <bruno@clisp.org>
22108
22109         unictype/property-byname: Allow omitted word separators and aliases.
22110         * lib/unictype/pr_byname.gperf: Add property names without word
22111         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22112         for 'space'.
22113
22114 2011-03-26  Bruno Haible  <bruno@clisp.org>
22115
22116         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22117         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22118         also hyphens to space.
22119         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22120         without spaces.
22121         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22122
22123 2011-03-26  Bruno Haible  <bruno@clisp.org>
22124
22125         unictype/joiningtype-byname: Recognize long names as well.
22126         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22127         a long name.
22128         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22129         unictype/joiningtype_byname.h.
22130         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22131         * lib/unictype/joiningtype_byname.gperf: New file.
22132         * modules/unictype/joiningtype-byname (Files): Add
22133         lib/unictype/joiningtype_byname.gperf.
22134         (Depends-on): Add gperf.
22135         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22136         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22137         long names.
22138
22139         Tests for module 'unictype/joiningtype-longname'.
22140         * modules/unictype/joiningtype-longname-tests: New file.
22141         * tests/unictype/test-joiningtype_longname.c: New file.
22142
22143         New module 'unictype/joiningtype-longname'.
22144         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22145         * lib/unictype/joiningtype_longname.c: New file.
22146         * modules/unictype/joiningtype-longname: New file.
22147         * modules/unictype/joiningtype-all (Depends-on): Add
22148         unictype/joiningtype-longname.
22149
22150 2011-03-26  Bruno Haible  <bruno@clisp.org>
22151
22152         unictype/bidiclass-byname: Recognize long names as well.
22153         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22154         name.
22155         * lib/unictype/bidi_byname.c: Include <string.h>,
22156         unictype/bidi_byname.h.
22157         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22158         * lib/unictype/bidi_byname.gperf: New file.
22159         * modules/unictype/bidiclass-byname (Files): Add
22160         lib/unictype/bidi_byname.gperf.
22161         (Depends-on): Add gperf.
22162         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22163         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22164         long names.
22165
22166         Tests for module 'unictype/bidiclass-longname'.
22167         * modules/unictype/bidiclass-longname-tests: New file.
22168         * tests/unictype/test-bidi_longname.c: New file.
22169
22170         New module 'unictype/bidiclass-longname'.
22171         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22172         * lib/unictype/bidi_longname.c: New file.
22173         * modules/unictype/bidiclass-longname: New file.
22174         * modules/unictype/bidiclass-all (Depends-on): Add
22175         unictype/bidiclass-longname.
22176
22177 2011-03-26  Bruno Haible  <bruno@clisp.org>
22178
22179         unictype/bidi*: Rename modules.
22180         * modules/unictype/bidiclass-all: Renamed from
22181         modules/unictype/bidicategory-all.
22182         * modules/unictype/bidiclass-name: Renamed from
22183         modules/unictype/bidiclass-name.
22184         (Description): Update.
22185         * modules/unictype/bidiclass-name-tests: Renamed from
22186         modules/unictype/bidicategory-name-tests.
22187         * modules/unictype/bidiclass-byname: Renamed from
22188         modules/unictype/bidicategory-byname.
22189         (Description): Update.
22190         * modules/unictype/bidiclass-byname-tests: Renamed from
22191         modules/unictype/bidicategory-byname-tests.
22192         * modules/unictype/bidiclass-of: Renamed from
22193         modules/unictype/bidicategory-of.
22194         (Description): Update.
22195         * modules/unictype/bidiclass-of-tests: Renamed from
22196         modules/unictype/bidicategory-of-tests.
22197         * modules/unictype/bidiclass-test: Renamed from
22198         modules/unictype/bidicategory-test.
22199         (Description): Update.
22200         * modules/unictype/bidiclass-test-tests: Renamed from
22201         modules/unictype/bidicategory-test-tests.
22202         * modules/unictype/bidicategory-all: New file, a simple redirection.
22203         * modules/unictype/bidicategory-name: Likewise.
22204         * modules/unictype/bidicategory-byname: Likewise.
22205         * modules/unictype/bidicategory-of: Likewise.
22206         * modules/unictype/bidicategory-test: Likewise.
22207         * modules/unictype/property-bidi-* (Dependencies): Update.
22208         * lib/unictype/bidi_*.c: Update comment.
22209
22210 2011-03-26  Bruno Haible  <bruno@clisp.org>
22211
22212         unictype/bidi*: Rename functions, part 2.
22213         * modules/unictype/bidicategory-name (configure.ac): Update required
22214         libunistring version.
22215         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22216
22217 2011-03-25  Bruno Haible  <bruno@clisp.org>
22218
22219         New module 'unictype/combining-class-all'.
22220         * modules/unictype/combining-class-all: New file.
22221
22222         Tests for module 'unictype/combining-class-byname'.
22223         * modules/unictype/combining-class-byname-tests: New file.
22224         * tests/unictype/test-combiningclass_byname.c: New file.
22225
22226         New module 'unictype/combining-class-byname'.
22227         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22228         * lib/unictype/combiningclass_byname.c: New file.
22229         * lib/unictype/combiningclass_byname.gperf: New file.
22230         * modules/unictype/combining-class-byname: New file.
22231
22232         Tests for module 'unictype/combining-class-longname'.
22233         * modules/unictype/combining-class-longname-tests: New file.
22234         * tests/unictype/test-combiningclass_longname.c: New file.
22235
22236         New module 'unictype/combining-class-longname'.
22237         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22238         * lib/unictype/combiningclass_longname.c: New file.
22239         * modules/unictype/combining-class-longname: New file.
22240
22241         Tests for module 'unictype/combining-class-name'.
22242         * modules/unictype/combining-class-name-tests: New file.
22243         * tests/unictype/test-combiningclass_name.c: New file.
22244
22245         New module 'unictype/combining-class-name'.
22246         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22247         * lib/unictype/combiningclass_name.c: New file.
22248         * modules/unictype/combining-class-name: New file.
22249
22250 2011-03-25  Bruno Haible  <bruno@clisp.org>
22251
22252         unictype/combining-class: Rename source files.
22253         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22254         of unictype/combining.h.
22255         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22256         Update.
22257         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22258         * modules/unictype/combining-class (Description): Fix.
22259         (Files, Makefile.am): Update.
22260         * tests/unictype/test-combiningclass.c: Renamed from
22261         tests/unictype/test-combining.c.
22262         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22263
22264 2011-03-25  Bruno Haible  <bruno@clisp.org>
22265
22266         unictype: Update list of canonical combining classes.
22267         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22268
22269 2011-03-25  Bruno Haible  <bruno@clisp.org>
22270
22271         unictype/category-byname: Recognize long names as well.
22272         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22273         a long name.
22274         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22275         unictype/categ_byname.h.
22276         (UC_CATEGORY_INDEX_*): New enumeration values.
22277         (uc_general_category_byname): Use uc_general_category_lookup and
22278         convert from index to value.
22279         * lib/unictype/categ_byname.gperf: New file.
22280         * modules/unictype/category-byname (Files): Add
22281         lib/unictype/categ_byname.gperf.
22282         (Depends-on): Add gperf.
22283         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22284         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22285         long names.
22286
22287         Tests for module 'unictype/category-longname'.
22288         * modules/unictype/category-longname-tests: New file.
22289         * tests/unictype/test-categ_longname.c: New file.
22290
22291         New module 'unictype/category-longname'.
22292         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22293         * lib/unictype/categ_longname.c: New file.
22294         * modules/unictype/category-longname: New file.
22295         * modules/unictype/category-all (Depends-on): Add it.
22296
22297 2011-03-25  Bruno Haible  <bruno@clisp.org>
22298
22299         Tests for module 'unictype/category-LC'.
22300         * modules/unictype/category-LC-tests: New file.
22301         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22302
22303         New module 'unictype/category-LC'.
22304         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22305         (UC_CATEGORY_LC): New declaration.
22306         (UC_CASED_LETTER): New macro.
22307         * lib/gen-uni-tables.c (is_category_LC): New function.
22308         (output_categories): Also handle category LC.
22309         (UC_CATEGORY_MASK_LC): New enumeration value.
22310         (general_category_byname): Also handle category LC.
22311         * lib/unictype/categ_LC.c: New file.
22312         * lib/unictype/categ_LC.h: New file, automatically generated.
22313         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22314         category LC.
22315         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22316         * modules/unictype/category-LC: New file.
22317         * modules/unictype/category-byname (Depends-on): Add
22318         unictype/category-LC.
22319         * modules/unictype/category-all (Depends-on): Likewise.
22320
22321 2011-03-25  Eric Blake  <eblake@redhat.com>
22322
22323         xmalloc: revert yesterday's regression
22324         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22325         realloc's underlying behavior (allowing allocation of zero-size
22326         objects, especially if malloc-gnu is also in use).
22327
22328 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22329
22330         maint.mk: add missing version to VC-tag
22331         * top/maint.mk: git tag was missing actual tag name; add it.
22332
22333         valgrind: do leak checking, and exit with code 1 on error (not 0)
22334         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22335         to VALGRIND.
22336
22337 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22338
22339         posix-modules: say what it does.
22340         * posix-modules: Add a line to the --help output saying what it does.
22341
22342 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22343
22344         xmalloc: Do not leak if underlying realloc is C99 compatible.
22345         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22346         This avoids a leak on C99-based systems.  See
22347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22348
22349 2011-03-24  Eric Blake  <eblake@redhat.com>
22350
22351         realloc: document portability problem
22352         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22353         passing 0 size to realloc.
22354
22355 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22356
22357         doc: update users.txt
22358         * users.txt: Add cvsps, tmpwatch
22359
22360 2011-03-23  Matt Rice  <ratmice@gmail.com>
22361
22362         doc: update users.txt
22363         * users.txt: Add gdb.
22364
22365 2011-03-23  Jim Meyering  <meyering@redhat.com>
22366
22367         doc: update users.txt
22368         Looking through matches up to the following URL (there are still
22369         several more pages), I found several projects that use gnulib:
22370         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22371         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22372         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22373
22374 2011-03-22  Bruno Haible  <bruno@clisp.org>
22375
22376         unictype/bidi*: Rename functions.
22377         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22378         uc_bidi_class, uc_is_bidi_class): New declarations.
22379         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22380         uc_bidi_category_byname.
22381         (uc_bidi_category_byname): New function.
22382         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22383         u_bidi_category_name.
22384         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22385         (uc_bidi_category_name): New function.
22386         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22387         uc_bidi_category.
22388         (uc_bidi_category): New function.
22389         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22390         uc_is_bidi_category. Invoke uc_bidi_class.
22391         (uc_is_bidi_category): New function.
22392         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22393         instead of uc_bidi_category_byname.
22394         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22395         instead of uc_bidi_category_name.
22396         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22397         uc_bidi_category.
22398         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22399         instead of uc_is_bidi_category.
22400
22401 2011-03-21  Bruno Haible  <bruno@clisp.org>
22402
22403         New module 'unictype/joininggroup-all'.
22404         * modules/unictype/joininggroup-all: New file.
22405
22406         Tests for module 'unictype/joininggroup-of'.
22407         * modules/unictype/joininggroup-of-tests: New file.
22408         * tests/unictype/test-joininggroup_of.c: New file.
22409         * tests/unictype/test-joininggroup_of.h: New file, automatically
22410         generated by gen-uni-tables.
22411
22412         New module 'unictype/joininggroup-of'.
22413         * modules/unictype/joininggroup-of: New file.
22414         * lib/unictype/joininggroup_of.c: New file.
22415         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22416         gen-uni-tables.
22417
22418         Tests for module 'unictype/joininggroup-byname'.
22419         * modules/unictype/joininggroup-byname-tests: New file.
22420         * tests/unictype/test-joininggroup_byname.c: New file.
22421
22422         New module 'unictype/joininggroup-byname'.
22423         * modules/unictype/joininggroup-byname: New file.
22424         * lib/unictype/joininggroup_byname.c: New file.
22425         * lib/unictype/joininggroup_byname.gperf: New file.
22426
22427         Tests for module 'unictype/joininggroup-name'.
22428         * modules/unictype/joininggroup-name-tests: New file.
22429         * tests/unictype/test-joininggroup_name.c: New file.
22430
22431         New module 'unictype/joininggroup-name'.
22432         * modules/unictype/joininggroup-name: New file.
22433         * lib/unictype/joininggroup_name.c: New file.
22434         * lib/unictype/joininggroup_name.h: New file.
22435
22436         New module 'unictype/joiningtype-all'.
22437         * modules/unictype/joiningtype-all: New file.
22438
22439         Tests for module 'unictype/joiningtype-of'.
22440         * modules/unictype/joiningtype-of-tests: New file.
22441         * tests/unictype/test-joiningtype_of.c: New file.
22442         * tests/unictype/test-joiningtype_of.h: New file, automatically
22443         generated by gen-uni-tables.
22444
22445         New module 'unictype/joiningtype-of'.
22446         * modules/unictype/joiningtype-of: New file.
22447         * lib/unictype/joiningtype_of.c: New file.
22448         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22449         gen-uni-tables.
22450
22451         Tests for module 'unictype/joiningtype-byname'.
22452         * modules/unictype/joiningtype-byname-tests: New file.
22453         * tests/unictype/test-joiningtype_byname.c: New file.
22454
22455         New module 'unictype/joiningtype-byname'.
22456         * modules/unictype/joiningtype-byname: New file.
22457         * lib/unictype/joiningtype_byname.c: New file.
22458
22459         Tests for module 'unictype/joiningtype-name'.
22460         * modules/unictype/joiningtype-name-tests: New file.
22461         * tests/unictype/test-joiningtype_name.c: New file.
22462
22463         New module 'unictype/joiningtype-name'.
22464         * modules/unictype/joiningtype-name: New file.
22465         * lib/unictype/joiningtype_name.c: New file.
22466
22467         unictype: Add support for Arabic shaping properties.
22468         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22469         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22470         declarations.
22471         (UC_JOINING_GROUP_*): New enumeration values.
22472         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22473         declarations.
22474         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22475         (unicode_joining_type): New variable.
22476         (UC_JOINING_GROUP_*): New enumeration values.
22477         (unicode_joining_group): New variable.
22478         (fill_arabicshaping, joining_type_as_c_identifier,
22479         output_joining_type_test, output_joining_type,
22480         joining_group_as_c_identifier, output_joining_group_test,
22481         output_joining_group): New functions.
22482         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22483         fill_arabicshaping and output_joining_type_test, output_joining_type,
22484         output_joining_group_test, output_joining_group.
22485         Reported by Simon Josefsson.
22486
22487 2011-03-21  Jim Meyering  <meyering@redhat.com>
22488
22489         strftime: fix a bug in yesterday's change
22490         * lib/strftime.c (add): Accommodate width's initial value of -1.
22491         Otherwise, nstrftime would copy uninitialized data into
22492         the result buffer.
22493
22494 2011-03-21  Jim Meyering  <meyering@redhat.com>
22495
22496         tests: add strftime-tests module
22497         * tests/test-strftime.c: New file.
22498         * modules/strftime-tests: New module.
22499
22500 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22501
22502         strftime: don't assume a byte count fits in 'int'
22503         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22504         found this problem by static analysis, using gcc -Wstrict-overflow
22505         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22506         on an integer overflow having undefined behavior, but it turns out
22507         that the argument is a size, which might not fit in 'int' anyway,
22508
22509 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22510
22511         stdio: don't require ignore_value around fwrite
22512
22513         This patch works around libc bug 11959
22514         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22515         Without this patch, applications must often write
22516         ignore_value (fwrite (...)) even though the ignore_value is
22517         not helpful here.  It's common to write many objects, using
22518         fwrite/printf/etc., and then use ferror to detect output error.
22519
22520         I considered making this patch optional, but decided against it,
22521         because libc is obviously being inconsistent here: there is no
22522         reason libc should insist that user code must inspect fwrite
22523         return's value without also insisting that it inspect printf's,
22524         putchar's, etc.  If user code wants to have a strict style where
22525         all these functions' values are checked (so that ferror need not
22526         be checked), we could add support for that style in a new gnulib
22527         module, but in the meantime it's better to be consistent and to
22528         support common usage.
22529
22530         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22531         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22532         that we are compiling in checking mode, and if not C++, and
22533         if not already wrapping fwrite for some other reason.
22534         (fwrite): #define to rpl_fwrite if the latter is defined.
22535
22536 2011-03-20  Bruno Haible  <bruno@clisp.org>
22537
22538         verror: Fix compilation error introduced on 2011-02-13.
22539         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22540         instead of __attribute__.
22541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22542
22543 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22544             Bruno Haible  <bruno@clisp.org>
22545
22546         socklen: do not depend on sys_socket
22547         While trying to modify Emacs to use gnulib's socklen module,
22548         I discovered a circular dependency: socklen depends on sys_socket
22549         and vice versa.  Emacs can use socklen, but it does not need
22550         sys_socket because it has its own substitute for sys/socket.h.
22551         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22552         gl_TYPE_SOCKLEN_T.
22553         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22554         gl_PREREQ_SYS_H_SOCKET.
22555         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22556         gl_PREREQ_SYS_H_SOCKET.
22557         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22558         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22559         * modules/socklen (Depends-on): Do not depend on sys_socket.
22560         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22561
22562 2011-03-20  Jim Meyering  <meyering@redhat.com>
22563
22564         maint.mk: sort file names *after* new transformation
22565         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22566         prefix would have led to an unwarranted failure in GNU parted.
22567         Sort after that transformation.
22568
22569 2011-03-19  Jim Meyering  <meyering@redhat.com>
22570
22571         maint.mk: fix po-file syntax-check rule
22572         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22573         Patch by Bruno Haible.
22574
22575 2011-03-19  Bruno Haible  <bruno@clisp.org>
22576
22577         socklen: Update comment.
22578         * m4/socklen.m4: Update comment about platforms.
22579
22580 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22581             Bruno Haible  <bruno@clisp.org>
22582
22583         inet_ntop, inet_pton: Simplify.
22584         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22585         documented to provide socklen_t and we already depend on sys_socket.
22586         * modules/inet_pton (Depends-on): Likewise.
22587         * lib/arpa_inet.in.h: Adjust comment.
22588
22589 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22590             Bruno Haible  <bruno@clisp.org>
22591
22592         netdb: Simplify.
22593         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22594         documented to provide socklen_t and we already depend on sys_socket.
22595         * lib/netdb.in.h: Adjust comment.
22596
22597 2011-03-19  Bruno Haible  <bruno@clisp.org>
22598
22599         sys_socket, netdb: Document problem with socklen_t.
22600         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22601         platforms.
22602         * doc/posix-headers/netdb.texi: Likewise.
22603
22604 2011-03-18  Eric Blake  <eblake@redhat.com>
22605
22606         maint.mk: let po check work in VPATH build
22607         * top/maint.mk (po_file): Allow cfg.mk override.
22608         (sc_po_check): Allow VPATH use.
22609         Reported by Jiri Denemark.
22610
22611 2011-03-16  Jim Meyering  <meyering@redhat.com>
22612
22613         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22614         Before, you would have had to create one .x-sc_ file per rule in order
22615         to exempt offending files.  Now, you may instead use a Make variable --
22616         usually defined in cfg.mk -- whose name identifies the affected rule.
22617         * top/maint.mk (_sc_excl): Define.
22618         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22619         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22620
22621 2011-03-13  Bruno Haible  <bruno@clisp.org>
22622
22623         ignore-value tests: Avoid warnings.
22624         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22625         empty for gcc < 3.4.
22626
22627 2011-03-13  Bruno Haible  <bruno@clisp.org>
22628
22629         passfd: Fix link error on Solaris.
22630         * modules/passfd (Description): Correct.
22631         (Depends-on): Add socketlib.
22632         (Link): New section.
22633         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22634
22635 2011-03-13  Bruno Haible  <bruno@clisp.org>
22636
22637         passfd: Fix link error on AIX 5.2.
22638         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22639
22640 2011-03-13  Bruno Haible  <bruno@clisp.org>
22641
22642         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22643         * lib/sys_socket.in.h: Include <stddef.h>.
22644         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22645         CMSG_FIRSTHDR. Remove unused variable.
22646
22647 2011-03-13  Bruno Haible  <bruno@clisp.org>
22648
22649         passfd: Fix compilation error on OpenBSD.
22650         * lib/passfd.c: Include <sys/uio.h>.
22651
22652 2011-03-13  Bruno Haible  <bruno@clisp.org>
22653
22654         passfd test: Fix warnings.
22655         * tests/test-passfd.c: Include <sys/wait.h>.
22656         (main): Fix typo.
22657
22658 2011-03-13  Bruno Haible  <bruno@clisp.org>
22659
22660         passfd module, part 4, tweaks.
22661         * tests/test-passfd.c: Reorder includes.
22662         (main): Fix perror and printf calls.
22663
22664 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22665
22666         passfd module, part 4.
22667         * modules/passfd-tests: New file.
22668         * tests/test-passfd.c: New file.
22669
22670 2011-03-13  Jim Meyering  <meyering@redhat.com>
22671
22672         Makefile: rely on GNU make; derive syntax-check rule names
22673         Rather than requiring that each sc_ rule be listed as a dependent
22674         of "check", use features of GNU make to derive the list.
22675         * Makefile (syntax-check-rules): Define.
22676         (check): Depend on the new variable, not the hard-coded list.
22677
22678 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22679             Bruno Haible  <bruno@clisp.org>
22680
22681         passfd module, part 3.
22682         * lib/passfd.h (recvfd): Add a flags argument.
22683         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22684         (recvfd): Add a flags argument.
22685         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22686         exists.
22687         * modules/passfd (Depends-on): Add cloexec.
22688         Suggested by Eric Blake.
22689
22690 2011-03-13  Bruno Haible  <bruno@clisp.org>
22691
22692         passfd module, part 2, tweaks.
22693         * modules/passfd (Files): Reorder.
22694         (Depends-on): Remove errno.
22695         (Include): Remove <sys/socket.h>, <sys/un.h>.
22696         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22697         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22698         specification header. Include <sys/socket.h> always. Don't include
22699         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22700         (sendfd): Clarify that it sets errno when it fails.
22701         (recvfd): Fix specification.
22702
22703 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22704
22705         passfd module, part 2.
22706         * modules/passfd: New file.
22707         * lib/passfd.h: New file.
22708         * lib/passfd.c: New file.
22709
22710 2011-03-12  Bruno Haible  <bruno@clisp.org>
22711
22712         wcswidth, mbswidth: Avoid integer overflow.
22713         * lib/wcswidth.c: Include <limits.h>.
22714         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22715         * lib/mbswidth.c: Include <limits.h>.
22716         (mbsnwidth): Avoid 'int' overflow.
22717         Reported by Jim Meyering.
22718
22719 2011-03-12  Bruno Haible  <bruno@clisp.org>
22720
22721         futimens, utimensat: Avoid endless recursion on Solaris 10.
22722         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22723         Solaris.
22724         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22725         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22726
22727 2011-03-11  Jim Meyering  <meyering@redhat.com>
22728
22729         maint.mk: relax a regexp to accommodate other formatting styles
22730         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22731         between "ngettext" and the following "(".
22732
22733 2011-03-11  Pádraig Brady <P@draigBrady.com>
22734
22735         maint.mk: suppress a false positive warning
22736         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22737         diagnostics are marked with ngettext.
22738
22739 2011-03-10  Eric Blake  <eblake@redhat.com>
22740
22741         wchar: add explicit dependencies, for Tru64
22742         * modules/mbmemcasecoll (Depends-on): Add wchar.
22743         * modules/mbtowc (Depends-on): Likewise.
22744         * modules/vasnprintf (Depends-on): Likewise.
22745         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22746         * modules/wctomb (Depends-on): Likewise.
22747         Reported by Peter O'Gorman.
22748
22749 2011-03-08  Bruno Haible  <bruno@clisp.org>
22750
22751         passfd module, part 1, tweaks.
22752         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22753         Improve indentation. Improve AC_MSG_CHECKING messages.
22754         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22755         gl_SOCKET_FAMILIES.
22756
22757 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22758
22759         passfd module, part 1.
22760         * m4/afunix.m4: New file.
22761         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22762         sockets.
22763
22764 2011-03-08  Bruno Haible  <bruno@clisp.org>
22765
22766         regex-quote: New API.
22767         * lib/regex-quote.h: Include <stdbool.h>.
22768         (struct regex_quote_spec): New type.
22769         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22770         New declarations.
22771         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22772         'const struct regex_quote_spec *' argument.
22773         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22774         (pcre_special): New constant.
22775         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22776         New functions.
22777         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22778         'const struct regex_quote_spec *' argument.
22779         * modules/regex-quote (Depends-on): Add stdbool.
22780         * tests/test-regex-quote.c (check): Update for new API. Add test for
22781         anchored results.
22782         * NEWS: Mention the API change.
22783         Reported by Reuben Thomas and Eric Blake.
22784
22785 2011-03-06  Bruno Haible  <bruno@clisp.org>
22786
22787         regex-quote: Fix creation of POSIX extended regular expressions.
22788         * lib/regex-quote.c (ere_special): Add grouping and alternation
22789         operators.
22790
22791 2011-03-05  Bruno Haible  <bruno@clisp.org>
22792
22793         doc: Improve doc regarding autopoint vs. gnulib.
22794         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22795         disable autopoint while running autoreconf.
22796         Suggested by Ralf Wildenhues.
22797
22798 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22799
22800         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22801         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22802
22803 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22804
22805         parse-duration: remove xalloc.h dependency
22806         * lib/parse-duration.c (parse_period): handle NULL return from
22807         strdup instead of calling xstrdup().
22808         * modules/parse-duration: remove "xalloc" dependency
22809
22810 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22811
22812         bootstrap: honor m4_base when running aclocal
22813         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22814
22815 2011-03-02  Jim Meyering  <meyering@redhat.com>
22816
22817         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22818         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22819         on request from Matt Booth.
22820
22821 2011-03-01  Eric Blake  <eblake@redhat.com>
22822
22823         test-link: work on Hurd
22824         * tests/test-link.h (test_link): Hurd rejects linking directories
22825         with EISDIR instead of the POSIX-mandated EPERM.
22826
22827 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22828
22829         stdio: simplify by moving files to printf-posix, sigpipe
22830         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22831         since this symbol is needed only if printf is replaced.
22832         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22833         Require gl_ASM_SYMBOL_PREFIX.
22834         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22835         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22836         (Depends-on): Add 'raise'.
22837         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22838         * modules/stdio (Files): Remove lib/stdio-write.c,
22839         m4/asm-underscore.m4.
22840         (Depends-on): Remove 'raise'.
22841
22842         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22843         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22844         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22845         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22846
22847 2011-02-28  Bruno Haible  <bruno@clisp.org>
22848
22849         localcharset: Assume ANSI C behaviour of free().
22850         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22851         calling free().
22852         Suggested by Simon Josefsson <simon@josefsson.org>.
22853
22854 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22855             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22856             Bruno Haible  <bruno@clisp.org>  (tiny change)
22857
22858         On Cygwin, use /proc file system instead of win32 API.
22859         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22860         Win32 file names.
22861         (DllMain): Simplify by removing Cygwin specific code.
22862         (find_shared_library_fullname): Use Linux specific implementation also
22863         for Cygwin.
22864         (get_shared_library_fullname): Update accordingly.
22865         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22866         Win32 file names.
22867         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22868         Cygwin specific code.
22869
22870 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22871             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22872
22873         Fix OpenMP flag detection for various Fortran compilers.
22874         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22875         OpenMP-conditional compilation construct, to force compile
22876         failure with missing OpenMP flag.
22877         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22878
22879 2011-02-25  Eric Blake  <eblake@redhat.com>
22880
22881         strstr: expand test coverage
22882         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22883         compilation.
22884         * tests/test-memmem.c (main): Duplicate tests.
22885         * tests/test-strcasestr.c (main): Likewise.
22886         * tests/test-c-strcasestr.c (main): Likewise.
22887
22888 2011-02-25  Jim Meyering  <meyering@redhat.com>
22889
22890         maint.mk: detect missing-NL-at-EOF, too
22891         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22892         it also detects when a file lacks a newline at EOF.
22893         (require_exactly_one_NL_at_EOF_): Renamed from
22894         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22895         since people may well have .x-sc_... file names tied to the
22896         existing name.  Suggested by Eric Blake.
22897
22898 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22899
22900         dirname: move m4/dos.m4 functionality into lib/dosname.h
22901
22902         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22903         extracts symbols from it, puts them into config.h; but it's much
22904         easier to use the symbols directly.  filename.h already does this,
22905         but it disagrees with dos.m4 in some respects.  This patch
22906         introduces a different include file dosname.h that packages up
22907         dos.m4, and then later we can work on merging filename.h and
22908         dosname.h.  Applications that need only the easy-to-configure
22909         symbols should consider including dosname.h rather than dirname.h.
22910         * NEWS: Mention incompatible changes.
22911         * m4/dos.m4: Remove.
22912         * lib/dosname.h, modules/dosname: New files.
22913         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22914         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22915         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22916         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22917         Include dosname.h, not dirname.h.
22918         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22919         Include dosname.h, for definitions of symbols like ISSLASH
22920         that used to be in config.h.
22921         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22922         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22923         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22924         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22925         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22926         * modules/rmdir (Files): Likewise.
22927         * modules/stat (Files): Likewise.
22928         * modules/unlink (Files): Likewise.
22929         * modules/dirname-lgpl (Depends-on): Add dosname.
22930         * modules/lstat (Depends-on): Likewise.
22931         * modules/openat (Depends-on): Likewise.
22932         * modules/rmdir (Depends-on): Likewise.
22933         * modules/savewd (Depends-on): Likewise.
22934         * modules/stat (Depends-on): Likewise.
22935         * modules/unlink (Depends-on): Likewise.
22936         * modules/openat (Depends-on): Remove dirname-lgpl.
22937         * modules/savewd (Depends-on): Likewise.
22938         * tests/test-dirname.c: Do not use removed symbols like
22939         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22940         the remaining symbols, e.g., ISSLASH ('\\').
22941
22942 2011-02-25  Eric Blake  <eblake@redhat.com>
22943
22944         strstr: revert patches that introduced bug and pessimization
22945         * lib/str-two-way.h: Add another reference.
22946         (two_way_short_needle, two_way_long_needle): Revert changes from
22947         2011-02-24; they pessimize search speed.
22948         (critical_factorization): Partially revert changes from
22949         2010-06-22; they violate the requirement that the left half of the
22950         needle be smaller than the period of the needle.
22951
22952 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22953
22954         filenamecat: remove unnecessary dependency on dirname-lgpl
22955         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22956         is no direct dependency, just an indirect one via filenamecat-lgpl.
22957
22958         remove: remove unnecessary use of m4/dos.m4
22959         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22960         * modules/remove (FILES): Remove m4/dos.m4.
22961
22962         * lib/openat-proc.c: Don't include dirname.h; not needed.
22963
22964         backupfile: remove unnecessary use of m4/dos.m4
22965         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22966         of its symbols are used by the backupfile code.  backupfile.c does
22967         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22968         for the rare case of programs that want all their backup file
22969         names to live within 8+3 limits, and dos.m4 doesn't address that.
22970         * modules/backupfile (Files): Remove m4/dos.m4.
22971
22972 2011-02-24  Jim Meyering  <meyering@redhat.com>
22973
22974         strstr: fix a bug whereby strstr would mistakenly return NULL
22975         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22976         in period calculation.
22977         (two_way_long_needle): Likewise.
22978         The original problem was reported by Mike Stump in
22979         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22980         Ralf Wildenhues provided the short needle and haystack.
22981         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22982         Add a more involved test to trigger the bug in two_way_long_needle.
22983
22984 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22985
22986         gnulib-tool: remove use of bold display in help screen
22987         * gnulib-tool (func_usage): Do not use bold display anymore in the
22988         help screen.  That was just meant to be a temporary emphasis for a
22989         backward-incompatible change.
22990
22991 2011-02-23  Bruno Haible  <bruno@clisp.org>
22992
22993         Fix misindentation of preprocessor directives.
22994         * lib/argp-namefrob.h: Reindent preprocessor directives.
22995         * lib/getopt_int.h (struct _getopt_data): Likewise.
22996         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22997         * lib/vasnprintf.c (decode_long_double): Likewise.
22998         * tests/test-argmatch.c: Insert blank lines, for clarity.
22999         * tests/test-exclude.c: Likewise.
23000
23001 2011-02-22  Bruno Haible  <bruno@clisp.org>
23002
23003         ioctl: Fix for MacOS X in 64-bit mode.
23004         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23005         value.
23006         Suggested by Eric Blake.
23007         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23008
23009 2011-02-22  Jim Meyering  <meyering@redhat.com>
23010
23011         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23012         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23013         in lib/.
23014
23015 2011-02-22  Eric Blake  <eblake@redhat.com>
23016
23017         maint: avoid any CDPATH issue
23018         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23019
23020         maint: adjust cpp indentation for my modules, as well
23021         * Makefile (sc_cpp_indent_check): Add my name.
23022         * lib/fbufmode.c: Filter through cppi.
23023         * lib/fpurge.c: Likewise.
23024         * lib/freadable.c: Likewise.
23025         * lib/freading.c: Likewise.
23026         * lib/fwritable.c: Likewise.
23027         * lib/fwriting.c: Likewise.
23028         * lib/sigaction.c: Likewise.
23029
23030 2011-02-22  Jim Meyering  <meyering@redhat.com>
23031
23032         maint: adjust cpp indentation to reflect nesting depth
23033         I.e., in a block of code that begins with an unnested "#if",
23034         put one space between the "#" in column 1 and following token.
23035         For example,
23036         -#include <sys/vfs.h>
23037         +# include <sys/vfs.h>
23038         Do this only in .c files that are part of a module I maintain.
23039         * lib/linkat.c: Filter through cppi.
23040         * lib/nanosleep.c: Likewise.
23041         * lib/openat.c: Likewise.
23042         * lib/openat-die.c: Likewise.
23043         * lib/dup3.c: Likewise.
23044         * lib/fchownat.c: Likewise.
23045         * lib/flock.c: Likewise.
23046         * lib/fsync.c: Likewise.
23047         * lib/fts.c: Likewise.
23048         * lib/getpass.c: Likewise.
23049         * lib/gettimeofday.c: Likewise.
23050         * lib/userspec.c: Likewise.
23051         * Makefile (sc_cpp_indent_check): New rule, to check this.
23052
23053 2011-02-22  Bruno Haible  <bruno@clisp.org>
23054
23055         New module 'wctomb'.
23056         * lib/stdlib.in.h (wctomb): New declaration.
23057         * lib/wctomb.c: New file.
23058         * lib/wctomb-impl.h: New file.
23059         * m4/wctomb.m4: New file.
23060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23061         REPLACE_WCTOMB.
23062         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23063         REPLACE_WCTOMB.
23064         * modules/wctomb: New file.
23065         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23066         * doc/posix-functions/wctomb.texi: Mention the new module.
23067         * modules/wctob (Depends-on): Add wctomb.
23068
23069 2011-02-22  Bruno Haible  <bruno@clisp.org>
23070
23071         New module 'mbtowc'.
23072         * lib/stdlib.in.h (mbtowc): New declaration.
23073         * lib/mbtowc.c: New file.
23074         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23075         * m4/mbtowc.m4: New file.
23076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23077         REPLACE_MBTOWC.
23078         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23079         REPLACE_MBTOWC.
23080         * modules/mbtowc: New file.
23081         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23082         * doc/posix-functions/mbtowc.texi: Mention the new module.
23083         * modules/btowc (Depends-on): Add mbtowc.
23084
23085 2011-02-22  Bruno Haible  <bruno@clisp.org>
23086
23087         wcrtomb: Add more tests for native Windows platforms.
23088         * tests/test-wcrtomb-w32-1.sh: New file.
23089         * tests/test-wcrtomb-w32-2.sh: New file.
23090         * tests/test-wcrtomb-w32-3.sh: New file.
23091         * tests/test-wcrtomb-w32-4.sh: New file.
23092         * tests/test-wcrtomb-w32-5.sh: New file.
23093         * tests/test-wcrtomb-w32.c: New file.
23094         * modules/wcrtomb-tests (Files): Add them.
23095         (Makefile.am): Arrange to run these tests.
23096         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23097         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23098
23099 2011-02-20  Bruno Haible  <bruno@clisp.org>
23100
23101         wcrtomb: Enhance test.
23102         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23103
23104 2011-02-20  Bruno Haible  <bruno@clisp.org>
23105
23106         mbrtowc: Tiny optimization.
23107         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23108
23109 2011-02-20  Jim Meyering  <meyering@redhat.com>
23110
23111         test-exclude.c: remove unmatched #endif
23112         * tests/test-exclude.c: Remove stray #endif, left over from
23113         the change of a week ago.
23114
23115 2011-02-19  Jim Meyering  <meyering@redhat.com>
23116
23117         git-version-gen: skip "-dirty" check when appropriate
23118         * build-aux/git-version-gen: Don't run any git commands when the
23119         version string comes from .tarball-version.  Prior to this, we
23120         would run git update-index --refresh even from a just-unpacked
23121         tarball directory, and that could affect a .git/ directory in a
23122         parent of the build directory.  Reported by Mike Frysinger.
23123
23124 2011-02-19  Bruno Haible  <bruno@clisp.org>
23125
23126         unictype/property-byname: Reduce the size of the 'data' segment.
23127         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23128
23129 2011-02-19  Bruno Haible  <bruno@clisp.org>
23130
23131         unictype/scripts: Reduce the size of the 'data' segment.
23132         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23133         '%pic'.
23134         * lib/unictype/scripts_byname.gperf: Regenerated.
23135
23136 2011-02-19  Bruno Haible  <bruno@clisp.org>
23137
23138         stdint: Update documentation.
23139         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23140
23141 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23142
23143         stdint: omit redundant check for wchar.h
23144         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23145         always tests whether wchar.h exists, so remove the now-redundant test.
23146
23147 2011-02-18  Bruno Haible  <bruno@clisp.org>
23148
23149         stdint: Cut dependency to module 'wchar'.
23150         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23151         include the necessary prerequisites.
23152         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23153         * modules/stdint (Depends-on): Remove wchar.
23154         (Makefile.am): Substitute HAVE_WCHAR_H.
23155         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23156
23157 2011-02-18  Eric Blake  <eblake@redhat.com>
23158
23159         longlong: skip, rather than fail, on cross-compilation
23160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23161         when cross-compiling; regression from 2011-02-16.
23162
23163 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23164
23165         * NEWS: Mention 2011-02-08 change to stdlib.
23166
23167 2011-02-17  Bruno Haible  <bruno@clisp.org>
23168
23169         getloadavg: Add comments about platforms.
23170         * m4/getloadavg.m4: Add comment.
23171         * lib/getloadavg.c: Likewise.
23172
23173 2011-02-17  Bruno Haible  <bruno@clisp.org>
23174
23175         getloadavg: Fix link error on Solaris 2.6.
23176         * modules/getloadavg (Link): New section.
23177         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23178         linking test-getloadavg.
23179         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23180         getloadavg.
23181
23182 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23183
23184         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23185         It was 'int', but this doesn't match the IRIX 6.5 manual.
23186         Suggested by Bruno Haible in
23187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23188
23189 2011-02-17  Bruno Haible  <bruno@clisp.org>
23190
23191         havelib: Fix comments.
23192         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23193         change.
23194
23195 2011-02-17  Bruno Haible  <bruno@clisp.org>
23196
23197         havelib: Update config.rpath.
23198         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23199
23200 2011-02-17  Bruno Haible  <bruno@clisp.org>
23201
23202         getloadavg test: Add some plausibility checks.
23203         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23204         is improbable.
23205
23206 2011-02-16  Eric Blake  <eblake@redhat.com>
23207
23208         maintainer-makefile: make syntax-check a no-op from tarballs
23209         * top/maint.mk (no-vc-detected): New rule.
23210         (local-checks-available): Use it to avoid hanging if someone tries
23211         'make syntax-check' from a tarball.  Also append to any non-syntax
23212         checks already defined in cfg.mk.
23213
23214 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23215
23216         longlong: tune, particularly for common case of c99
23217
23218         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23219         or running anything if c99, or if unsigned long long int does not
23220         work.  In either case, we know the answer without further tests.
23221         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23222         it at most once, and use its results for both long long int and
23223         unsigned long long int.  This is more likely to be efficient in
23224         the common case where the program wants to check for both long
23225         long int and unsigned long long int.
23226         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23227         since the answer is already known.
23228
23229 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23230
23231         getloadavg: set errno
23232         * lib/getloadavg.c: Set errno when returning -1.  If no other
23233         error number looks appropriate, set it to ENOSYS if the getloadavg
23234         looks like it can't possibly ever work, ENOTSUP otherwise.
23235         Suggested by Bruno Haible in
23236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23237
23238         getloadavg: trim unused parts and speed up 'configure'
23239         * NEWS: Document this.
23240         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23241         always compiled if getloadavg is absent.
23242         Move test code to ...
23243         * tests/test-getloadavg.c: New file, containing previous
23244         contents of test from lib/getloadavg.c.  It also contains
23245         suggestions by Bruno Haible in
23246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23247         * modules/getloadavg-tests: New file.
23248         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23249         Do tests in the same order as they're needed for getloadavg.c.
23250         Omit setgid-related tests that generate symbols KMEM_GROUP,
23251         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23252         Do only the tests that are needed to see whether the system has
23253         getloadavg, moving the other tests into ...
23254         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23255         NLIST_NAME_UNION; nobody should be using it.  Do not define
23256         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23257         relevant, as the user of this module shouldn't care how getloadavg
23258         is implemented.
23259
23260         getloadavg: omit unused var
23261         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23262
23263 2011-02-15  Jim Meyering  <meyering@redhat.com>
23264
23265         doc: update users.txt
23266         * users.txt: Update iwhd's URL.
23267
23268 2011-02-13  Bruno Haible  <bruno@clisp.org>
23269
23270         Consistent macro naming for macros that use GCC __attribute__.
23271         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23272         _ATTRIBUTE_NONNULL_.
23273         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23274         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23275         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23276         ATTRIBUTE_DEPRECATED.
23277         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23278         ATTRIBUTE_NORETURN.
23279         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23280         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23281         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23282         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23283         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23284         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23285         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23286         ATTRIBUTE_SENTINEL.
23287         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23288         ATTRIBUTE_RETURN_CHECK.
23289         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23290         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23291         ATTRIBUTE_NORETURN.
23292         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23293         Reported by Paul Eggert.
23294
23295 2011-02-13  Bruno Haible  <bruno@clisp.org>
23296
23297         Don't interfere with a program's definition of __attribute__.
23298         * lib/argp.h (__attribute__): Remove definition.
23299         (_GL_ATTRIBUTE_FORMAT): New macro.
23300         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23301         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23302         (_GL_ATTRIBUTE_FORMAT): New macro.
23303         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23304         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23305         GCC 3 or newer.
23306         * lib/error.h (__attribute__): Remove definition.
23307         (_GL_ATTRIBUTE_FORMAT): New macro.
23308         (error, error_at_line): Use it.
23309         * lib/hash.h (__attribute__): Remove definition.
23310         (ATTRIBUTE_WUR): Update definition. Define always.
23311         * lib/openat.h (__attribute__): Remove definition.
23312         (ATTRIBUTE_NORETURN): Update definition. Define always.
23313         * lib/sigpipe-die.h (__attribute__): Remove definition.
23314         (ATTRIBUTE_NORETURN): Update definition. Define always.
23315         * lib/vasnprintf.h (__attribute__): Remove definition.
23316         (_GL_ATTRIBUTE_FORMAT): New macro.
23317         (asnprintf, vasnprintf): Use it.
23318         * lib/xalloc.h (__attribute__): Remove definition.
23319         (ATTRIBUTE_NORETURN): Update definition. Define always.
23320         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23321         * lib/xmemdup0.h (__attribute__): Remove definition.
23322         (ATTRIBUTE_NORETURN): Update definition. Define always.
23323         * lib/xprintf.h (__attribute__): Remove definition.
23324         (_GL_ATTRIBUTE_FORMAT): New macro.
23325         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23326         * lib/xstrtol.h (__attribute__): Remove definition.
23327         (ATTRIBUTE_NORETURN): Update definition. Define always.
23328         * lib/xvasprintf.h (__attribute__): Remove definition.
23329         (_GL_ATTRIBUTE_FORMAT): New macro.
23330         (xasprintf, xvasprintf): Use it.
23331         * tests/test-argmatch.c (__attribute__): Remove definition.
23332         (ATTRIBUTE_NORETURN): Update definition. Define always.
23333         * tests/test-exclude.c (__attribute__): Remove definition.
23334         (ATTRIBUTE_NORETURN): Update definition. Define always.
23335         Reported by Paul Eggert.
23336
23337 2011-02-13  Bruno Haible  <bruno@clisp.org>
23338
23339         mbrtowc: Add more tests for native Windows platforms.
23340         * tests/test-mbrtowc-w32-1.sh: New file.
23341         * tests/test-mbrtowc-w32-2.sh: New file.
23342         * tests/test-mbrtowc-w32-3.sh: New file.
23343         * tests/test-mbrtowc-w32-4.sh: New file.
23344         * tests/test-mbrtowc-w32-5.sh: New file.
23345         * tests/test-mbrtowc-w32.c: New file.
23346         * modules/mbrtowc-tests (Files): Add them.
23347         (Makefile.am): Arrange to run these tests.
23348         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23349         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23350
23351 2011-02-13  Bruno Haible  <bruno@clisp.org>
23352
23353         mbrtowc: Work around native Windows bug.
23354         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23355         guess when no suitable locale for testing was found.
23356         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23357
23358 2011-02-13  Bruno Haible  <bruno@clisp.org>
23359
23360         mbsinit: Work around mingw bug.
23361         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23362         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23363         Windows.
23364         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23365
23366 2011-02-13  Bruno Haible  <bruno@clisp.org>
23367
23368         mbsinit: Don't crash for a NULL argument.
23369         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23370         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23371
23372 2011-02-13  Bruno Haible  <bruno@clisp.org>
23373
23374         Don't interfere with a program's definition of __attribute__.
23375         * lib/stdio.in.h (__attribute__): Remove definition.
23376         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23377         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23378         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23379         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23380         * lib/string.in.h (__attribute__): Remove definition.
23381         Reported by Paul Eggert.
23382
23383 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23384
23385         stdlib: don't get in the way of non-GCC __attribute__
23386         See thread starting at
23387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23388         Revert previous stdlib change, installing the following instead:
23389         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23390         to get in the way of a non-GCC compiler that supports __attribute__.
23391         (_GL_ATTRIBUTE_RETURN): New macro.
23392         (_Exit): Use it instead of __attribute__.
23393
23394 2011-02-12  Bruno Haible  <bruno@clisp.org>
23395
23396         quotearg test: Avoid test failure on mingw.
23397         * tests/test-quotearg.sh: Convert the locale identifier from native
23398         Windows syntax to Unix syntax.
23399
23400 2011-02-12  Bruno Haible  <bruno@clisp.org>
23401
23402         setlocale: Prefer gnulib's override over libintl's override.
23403         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23404         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23405         GNULIB_defined_setlocale is set.
23406
23407 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23408
23409         stdlib: support non-GCC __attribute__
23410
23411         Fix a serious and tricky problem encountered when attempting to
23412         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23413         5.5, but it crashed due to memory corruption on Solaris 10 with
23414         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23415         bits that are otherwise zero.  This tagging is optional inside
23416         Emacs but is preferred and is used when __attribute__ ((__aligned
23417         (8))) works, as it does with both recent-enough GCC and with Sun C
23418         5.11.  However, Sun C 5.11 is not GCC and does not #define
23419         __GNUC__ and __GNUC_MINOR__.
23420
23421         When I added the getloadavg module to Emacs, it brought in
23422         stdlib.in.h, which contained this fragment:
23423
23424            #ifndef __attribute__
23425            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23426            #  define __attribute__(Spec)   /* empty */
23427            # endif
23428            #endif
23429
23430         When files that include <stdlib.h> were compiled with Sun C 5.11,
23431         the above code disabled __attribute__ ((__aligned (8))), which
23432         caused variables to not be properly aligned, which eventually led
23433         to the pointer corruption mentioned above.  (This was a bit hard
23434         to diagnose, unfortunately.)
23435
23436         Several "#define __attribute__(X) /* empty */" code snippets need
23437         to be eradicated from Gnulib to work with non-GCC compilers that
23438         support __attribute__.  The Autoconf way to do this is to test for
23439         each kind of attribute that we want support for, and selectively
23440         enable that in source code.
23441
23442         Fix this problem just for stdlib.h, by adding a test for the
23443         __noreturn__ attribute, and change stdlib.in.h to use that test
23444         when needed.  This technique can be easily generalized to the
23445         other *.in.h files and attributes, and a similar technique can be
23446         used for *.h and *.c files.  This patch is enough to solve the
23447         problem for Emacs + getloadavg, and I thought I'd publish it for
23448         feedback before undertaking further, similar fixes in other
23449         modules.
23450
23451         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23452         because it's not needed for stdlib.h.  It merely substitutes the
23453         value directly into stdlib.h.  We may well need to #define it, or
23454         similar symbols, for other modules, but it's nice to also have an
23455         option to not #define it for applications like Emacs that do not
23456         need it.
23457
23458         * lib/stdlib.in.h (__attribute__): Do not #define.
23459         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23460         be defined only if the _Exit module is also used.
23461         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23463         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23464         platforms.
23465         * modules/_Exit (Files): Add m4/attribute.m4.
23466         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23467         * m4/attribute.m4: New file.
23468
23469 2011-02-12  Bruno Haible  <bruno@clisp.org>
23470
23471         wcsrtombs: Work around bug on native Windows.
23472         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23473         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23474         instead of len.
23475         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23476
23477 2011-02-12  Bruno Haible  <bruno@clisp.org>
23478
23479         mbsrtowcs: Work around bug on native Windows.
23480         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23481         against mingw bug.
23482         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23483
23484 2011-02-12  Bruno Haible  <bruno@clisp.org>
23485
23486         Avoid setlocale bugs in tests.
23487         * modules/btowc (Dependencies): Add setlocale.
23488         * modules/c-strcase (Dependencies): Likewise.
23489         * modules/mbmemcasecmp (Dependencies): Likewise.
23490         * modules/mbmemcasecoll (Dependencies): Likewise.
23491         * modules/mbrtowc (Dependencies): Likewise.
23492         * modules/mbscasecmp (Dependencies): Likewise.
23493         * modules/mbscasestr (Dependencies): Likewise.
23494         * modules/mbschr (Dependencies): Likewise.
23495         * modules/mbscspn (Dependencies): Likewise.
23496         * modules/mbsinit (Dependencies): Likewise.
23497         * modules/mbsncasecmp (Dependencies): Likewise.
23498         * modules/mbsnrtowcs (Dependencies): Likewise.
23499         * modules/mbspbrk (Dependencies): Likewise.
23500         * modules/mbspcasecmp (Dependencies): Likewise.
23501         * modules/mbsrchr (Dependencies): Likewise.
23502         * modules/mbsrtowcs (Dependencies): Likewise.
23503         * modules/mbsspn (Dependencies): Likewise.
23504         * modules/mbsstr (Dependencies): Likewise.
23505         * modules/nl_langinfo (Dependencies): Likewise.
23506         * modules/quotearg (Dependencies): Likewise.
23507         * modules/unicase/locale-language (Dependencies): Likewise.
23508         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23509         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23510         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23511         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23512         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23513         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23514         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23515         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23516         * modules/vasnprintf-posix (Dependencies): Likewise.
23517         * modules/wcrtomb (Dependencies): Likewise.
23518         * modules/wcsnrtombs (Dependencies): Likewise.
23519         * modules/wcsrtombs (Dependencies): Likewise.
23520
23521 2011-02-12  Bruno Haible  <bruno@clisp.org>
23522
23523         setlocale: Workaround native Windows bug.
23524         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23525         succeeds but sets LC_CTYPE to "C", report a failure.
23526         * tests/test-setlocale2.sh: New file.
23527         * tests/test-setlocale2.c: New file.
23528         * modules/setlocale-tests (Files): Add the new files.
23529         (Makefile.am): Enable test-setlocale2.sh test.
23530         * doc/posix-functions/setlocale.texi: Mention workaround.
23531
23532 2011-02-11  Bruno Haible  <bruno@clisp.org>
23533
23534         Tests for module 'setlocale'.
23535         * modules/setlocale-tests: New file.
23536         * tests/test-setlocale1.sh: New file.
23537         * tests/test-setlocale1.c: New file.
23538
23539         New module 'setlocale'.
23540         * lib/locale.in.h (setlocale): New declaration.
23541         * lib/setlocale.c: New file, based on
23542         gettext/gettext-runtime/intl/setlocale.c.
23543         * m4/setlocale.m4: New file.
23544         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23545         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23546         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23547         REPLACE_SETLOCALE.
23548         * modules/setlocale: New file.
23549         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23550         * doc/posix-functions/setlocale.texi: Mention the new module.
23551
23552 2011-02-11  Bruno Haible  <bruno@clisp.org>
23553
23554         Prepare for locale dependent tests on mingw.
23555         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23556         because it has the wrong locale encoding.
23557         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23558         French_France.1252 instead of "fr".
23559         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23560         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23561         because it has the wrong locale encoding.
23562         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23563         native Windows, try Turkish_Turkey.65001.
23564         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23565         Chinese_China.54936.
23566
23567         Prepare for locale dependent tests on mingw.
23568         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23569         differently.
23570         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23571         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23572         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23573         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23574
23575 2011-02-11  Eric Blake  <eblake@redhat.com>
23576
23577         strptime: avoid compiler warnings
23578         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23579         compiler warnings about dead code.
23580         Reported by Daniel P. Berrange.
23581
23582 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23583
23584         doc: update users.txt
23585         * users.txt: Add rcs.
23586
23587 2011-02-10  John W. Eaton  <jwe@gnu.org>
23588
23589         doc: update users.txt
23590         * users.txt: Add octave.
23591
23592 2011-02-10  Jim Meyering  <meyering@redhat.com>
23593
23594         doc: update users.txt
23595         * users.txt: Add iwhd.
23596
23597 2011-02-09  Bruno Haible  <bruno@clisp.org>
23598
23599         gnulib-tool: Make copyright notice adjustment more robust.
23600         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23601         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23602         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23603         License".
23604         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23605
23606 2011-02-06  Bruno Haible  <bruno@clisp.org>
23607
23608         New module 'towctrans'.
23609         * modules/towctrans: New file.
23610         * lib/wctype.in.h (towctrans): New declaration.
23611         * lib/towctrans.c: New file.
23612         * lib/towctrans-impl.h: New file.
23613         * m4/towctrans.m4: New file.
23614         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23615         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23616         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23617         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23618         * doc/posix-functions/towctrans.texi: Mention the new module.
23619
23620 2011-02-06  Bruno Haible  <bruno@clisp.org>
23621
23622         New module 'wctrans'.
23623         * modules/wctrans: New file.
23624         * lib/wctype.in.h (wctrans): New declaration.
23625         * lib/wctrans.c: New file.
23626         * lib/wctrans-impl.h: New file.
23627         * m4/wctrans.m4: New file.
23628         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23629         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23630         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23631         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23632         * doc/posix-functions/wctrans.texi: Mention the new module.
23633
23634 2011-02-06  Bruno Haible  <bruno@clisp.org>
23635
23636         New module 'iswctype'.
23637         * modules/iswctype: New file.
23638         * lib/wctype.in.h (iswctype): New declaration.
23639         * lib/iswctype.c: New file.
23640         * lib/iswctype-impl.h: New file.
23641         * m4/iswctype.m4: New file.
23642         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23643         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23644         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23645         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23646         * doc/posix-functions/iswctype.texi: Mention the new module and the
23647         HP-UX 11.00 problem.
23648
23649 2011-02-06  Bruno Haible  <bruno@clisp.org>
23650
23651         New module 'wctype'.
23652         * modules/wctype: Change to represent the wctype() substitute.
23653         * lib/wctype.in.h (wctype): New declaration.
23654         * lib/wctype.c: New file.
23655         * lib/wctype-impl.h: New file.
23656         * m4/wctype.m4: New file.
23657         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23658         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23659         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23660         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23661         * doc/posix-functions/wctype.texi: Mention the new module and the
23662         HP-UX 11.00 problem.
23663
23664 2011-02-06  Bruno Haible  <bruno@clisp.org>
23665
23666         wctype-h: Ensure wctype_t and wctrans_t are defined.
23667         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23668         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23669         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23670         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23671         HAVE_WCTRANS_T.
23672         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23673
23674 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23675
23676         flock: fix license typo
23677
23678         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23679         omitted.
23680
23681 2011-02-08  Bruno Haible  <bruno@clisp.org>
23682
23683         Split large sed scripts, for HP-UX sed.
23684         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23685         to avoid HP-UX limit of 99 commands, in the near future.
23686         * modules/stdlib (Makefile.am): Likewise.
23687         * modules/unistd (Makefile.am): Likewise.
23688         * modules/wchar (Makefile.am): Likewise.
23689         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23690         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23691         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23692
23693 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23694             Bruno Haible  <bruno@clisp.org>
23695
23696         stdlib: improve random_r modularization
23697         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23698         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23699         you also need the random_r module to get this material right.
23700         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23701         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23702         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23703
23704 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23705
23706         stdlib: don't depend on stdint
23707         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23708         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23709         be independent of whether stdint.h is needed.
23710         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23711         here, instead of ...
23712         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23713         struct random_data should be using the random_r module, not just
23714         the stdlib module (which wouldn't make sense: what package needs
23715         just struct random_data without also needing random_r?).
23716         * modules/stdlib (Depends-on): Remove stdint.
23717
23718         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23719         See the thread rooted at
23720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23721         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23722         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23723         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23724         __VMS)); previously it was always included (via fcntl--.h).
23725         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23726         hand; this is good enough for load averages.  Also, do not use
23727         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23728         flags directly if available and don't bother otherwise.  (Packages
23729         that need the extra reliability should use the modules that define
23730         these flags on older platforms that lack them.)
23731         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23732         fcntl-safer.
23733
23734 2011-02-08  Jim Meyering  <meyering@redhat.com>
23735
23736         di-set.h, ino-map.h: add multiple-inclusion guard
23737         Technically, the guard is required only for ino-map.h, due to its
23738         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23739         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23740         * lib/ino-map.h: Likewise.
23741
23742 2011-02-06  Bruno Haible  <bruno@clisp.org>
23743
23744         iswblank: Ensure declaration on glibc systems.
23745         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23746         * modules/iswblank (Dependencies): Add 'extensions'.
23747         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23748
23749 2011-02-06  Bruno Haible  <bruno@clisp.org>
23750
23751         New module 'iswblank'.
23752         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23753         * modules/iswblank: New file.
23754         * modules/wctype-h (Files): Remove lib/iswblank.c.
23755         (Makefile.am): Substitute GNULIB_ISWBLANK.
23756         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23757         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23758         (gl_WCTYPE_H_DEFAULTS): New macro.
23759         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23760         * modules/iswblank-tests: New file.
23761         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23762         * tests/test-wctype-h.c (main): Remove iswblank tests.
23763         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23764         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23765         of 'wctype-h'.
23766         * NEWS: Mention the change.
23767         * modules/mbchar (Depends-on): Add iswblank.
23768
23769 2011-02-08  Bruno Haible  <bruno@clisp.org>
23770
23771         di-set tests: Refactor.
23772         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23773         unnecessary includes.
23774         (ASSERT): Remove macro.
23775         (main): Make C90 compliant by avoiding variable declaration after
23776         statement.
23777         * modules/di-set-tests (Files): Add tests/macros.h.
23778
23779 2011-02-08  Bruno Haible  <bruno@clisp.org>
23780
23781         ino-map tests: Refactor.
23782         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23783         unnecessary includes.
23784         (ASSERT): Remove macro.
23785         (main): Make C90 compliant by avoiding variable declaration after
23786         statement.
23787         * modules/ino-map-tests (Files): Add tests/macros.h.
23788
23789 2011-02-08  Jim Meyering  <meyering@redhat.com>
23790
23791         di-set: add "const" to a cast
23792         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23793         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23794
23795 2011-02-06  Bruno Haible  <bruno@clisp.org>
23796
23797         Rename module 'wctype' to 'wctype-h'.
23798         * modules/wctype-h: Renamed from modules/wctype.
23799         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23800         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23801         (Files, Depends-on, Makefile.am): Update.
23802         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23803         (Files, Makefile.am): Update.
23804         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23805         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23806         * doc/posix-headers/wctype.texi: Update.
23807         * doc/posix-functions/iswalnum.texi: Update.
23808         * doc/posix-functions/iswalpha.texi: Update.
23809         * doc/posix-functions/iswblank.texi: Update.
23810         * doc/posix-functions/iswcntrl.texi: Update.
23811         * doc/posix-functions/iswdigit.texi: Update.
23812         * doc/posix-functions/iswgraph.texi: Update.
23813         * doc/posix-functions/iswlower.texi: Update.
23814         * doc/posix-functions/iswprint.texi: Update.
23815         * doc/posix-functions/iswpunct.texi: Update.
23816         * doc/posix-functions/iswspace.texi: Update.
23817         * doc/posix-functions/iswupper.texi: Update.
23818         * doc/posix-functions/iswxdigit.texi: Update.
23819         * doc/posix-functions/towlower.texi: Update.
23820         * doc/posix-functions/towupper.texi: Update.
23821         * NEWS: Mention the change.
23822         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23823         * modules/mbchar (Dependencies): Likewise.
23824         * modules/mbswidth (Dependencies): Likewise.
23825         * modules/quotearg (Dependencies): Likewise.
23826         * modules/regex (Dependencies): Likewise.
23827         * modules/wcscasecmp (Dependencies): Likewise.
23828         * modules/wcsncasecmp (Dependencies): Likewise.
23829         * modules/wcwidth (Dependencies): Likewise.
23830
23831 2011-02-06  Bruno Haible  <bruno@clisp.org>
23832
23833         New module 'wcswidth'.
23834         * modules/wcswidth: New file.
23835         * lib/wchar.in.h (wcswidth): New declaration.
23836         * lib/wcswidth.c: New file.
23837         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23838         * m4/wcswidth.m4: New file.
23839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23841         REPLACE_WCSWIDTH.
23842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23843         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23844         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23845         * doc/posix-functions/wcswidth.texi: Mention the new module.
23846
23847 2011-02-06  Bruno Haible  <bruno@clisp.org>
23848
23849         New module 'wcstok'.
23850         * modules/wcstok: New file.
23851         * lib/wchar.in.h (wcstok): New declaration.
23852         * lib/wcstok.c: New file.
23853         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23854         * m4/wcstok.m4: New file.
23855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23858         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23859         * doc/posix-functions/wcstok.texi: Mention the new module.
23860
23861 2011-02-06  Bruno Haible  <bruno@clisp.org>
23862
23863         New module 'wcsstr'.
23864         * modules/wcsstr: New file.
23865         * lib/wchar.in.h (wcsstr): New declaration.
23866         * lib/wcsstr.c: New file.
23867         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23868         * m4/wcsstr.m4: New file.
23869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23872         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23873         * doc/posix-functions/wcsstr.texi: Mention the new module.
23874
23875 2011-02-06  Bruno Haible  <bruno@clisp.org>
23876
23877         New module 'wcspbrk'.
23878         * modules/wcspbrk: New file.
23879         * lib/wchar.in.h (wcspbrk): New declaration.
23880         * lib/wcspbrk.c: New file.
23881         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23882         * m4/wcspbrk.m4: New file.
23883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23886         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23887         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23888
23889 2011-02-06  Bruno Haible  <bruno@clisp.org>
23890
23891         New module 'wcsspn'.
23892         * modules/wcsspn: New file.
23893         * lib/wchar.in.h (wcsspn): New declaration.
23894         * lib/wcsspn.c: New file.
23895         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23896         * m4/wcsspn.m4: New file.
23897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23900         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23901         * doc/posix-functions/wcsspn.texi: Mention the new module.
23902
23903 2011-02-06  Bruno Haible  <bruno@clisp.org>
23904
23905         New module 'wcscspn'.
23906         * modules/wcscspn: New file.
23907         * lib/wchar.in.h (wcscspn): New declaration.
23908         * lib/wcscspn.c: New file.
23909         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23910         * m4/wcscspn.m4: New file.
23911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23914         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23915         * doc/posix-functions/wcscspn.texi: Mention the new module.
23916
23917 2011-02-06  Bruno Haible  <bruno@clisp.org>
23918
23919         New module 'wcsrchr'.
23920         * modules/wcsrchr: New file.
23921         * lib/wchar.in.h (wcsrchr): New declaration.
23922         * lib/wcsrchr.c: New file.
23923         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23924         * m4/wcsrchr.m4: New file.
23925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23928         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23929         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23930
23931 2011-02-06  Bruno Haible  <bruno@clisp.org>
23932
23933         New module 'wcschr'.
23934         * modules/wcschr: New file.
23935         * lib/wchar.in.h (wcschr): New declaration.
23936         * lib/wcschr.c: New file.
23937         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23938         * m4/wcschr.m4: New file.
23939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23941         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23942         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23943         * doc/posix-functions/wcschr.texi: Mention the new module.
23944
23945 2011-02-06  Bruno Haible  <bruno@clisp.org>
23946
23947         New module 'wcsdup'.
23948         * modules/wcsdup: New file.
23949         * lib/wchar.in.h (wcsdup): New declaration.
23950         * lib/wcsdup.c: New file.
23951         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23952         * m4/wcsdup.m4: New file.
23953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23955         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23956         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23957         * doc/posix-functions/wcsdup.texi: Mention the new module.
23958
23959 2011-02-06  Bruno Haible  <bruno@clisp.org>
23960
23961         New module 'wcsxfrm'.
23962         * modules/wcsxfrm: New file.
23963         * lib/wchar.in.h (wcsxfrm): New declaration.
23964         * lib/wcsxfrm.c: New file.
23965         * lib/wcsxfrm-impl.h: New file.
23966         * m4/wcsxfrm.m4: New file.
23967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23969         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23970         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23971         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23972
23973 2011-02-06  Bruno Haible  <bruno@clisp.org>
23974
23975         New module 'wcscoll'.
23976         * modules/wcscoll: New file.
23977         * lib/wchar.in.h (wcscoll): New declaration.
23978         * lib/wcscoll.c: New file.
23979         * lib/wcscoll-impl.h: New file.
23980         * m4/wcscoll.m4: New file.
23981         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23982         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23984         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23985         * doc/posix-functions/wcscoll.texi: Mention the new module.
23986
23987 2011-02-06  Bruno Haible  <bruno@clisp.org>
23988
23989         New module 'wcsncasecmp'.
23990         * modules/wcsncasecmp: New file.
23991         * lib/wchar.in.h (wcsncasecmp): New declaration.
23992         * lib/wcsncasecmp.c: New file.
23993         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23994         * m4/wcsncasecmp.m4: New file.
23995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23998         HAVE_WCSNCASECMP.
23999         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24000         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24001
24002 2011-02-06  Bruno Haible  <bruno@clisp.org>
24003
24004         New module 'wcscasecmp'.
24005         * modules/wcscasecmp: New file.
24006         * lib/wchar.in.h (wcscasecmp): New declaration.
24007         * lib/wcscasecmp.c: New file.
24008         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24009         * m4/wcscasecmp.m4: New file.
24010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24013         HAVE_WCSCASECMP.
24014         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24015         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24016
24017 2011-02-05  Bruno Haible  <bruno@clisp.org>
24018
24019         New module 'wcsncmp'.
24020         * modules/wcsncmp: New file.
24021         * lib/wchar.in.h (wcsncmp): New declaration.
24022         * lib/wcsncmp.c: New file.
24023         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24024         * m4/wcsncmp.m4: New file.
24025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24028         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24029         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24030
24031 2011-02-05  Bruno Haible  <bruno@clisp.org>
24032
24033         New module 'wcscmp'.
24034         * modules/wcscmp: New file.
24035         * lib/wchar.in.h (wcscmp): New declaration.
24036         * lib/wcscmp.c: New file.
24037         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24038         * m4/wcscmp.m4: New file.
24039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24042         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24043         * doc/posix-functions/wcscmp.texi: Mention the new module.
24044
24045 2011-02-05  Bruno Haible  <bruno@clisp.org>
24046
24047         New module 'wcsncat'.
24048         * modules/wcsncat: New file.
24049         * lib/wchar.in.h (wcsncat): New declaration.
24050         * lib/wcsncat.c: New file.
24051         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24052         * m4/wcsncat.m4: New file.
24053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24056         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24057         * doc/posix-functions/wcsncat.texi: Mention the new module.
24058
24059 2011-02-05  Bruno Haible  <bruno@clisp.org>
24060
24061         New module 'wcscat'.
24062         * modules/wcscat: New file.
24063         * lib/wchar.in.h (wcscat): New declaration.
24064         * lib/wcscat.c: New file.
24065         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24066         * m4/wcscat.m4: New file.
24067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24070         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24071         * doc/posix-functions/wcscat.texi: Mention the new module.
24072
24073 2011-02-05  Bruno Haible  <bruno@clisp.org>
24074
24075         New module 'wcpncpy'.
24076         * modules/wcpncpy: New file.
24077         * lib/wchar.in.h (wcpncpy): New declaration.
24078         * lib/wcpncpy.c: New file.
24079         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24080         * m4/wcpncpy.m4: New file.
24081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24083         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24084         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24085         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24086
24087 2011-02-05  Bruno Haible  <bruno@clisp.org>
24088
24089         New module 'wcsncpy'.
24090         * modules/wcsncpy: New file.
24091         * lib/wchar.in.h (wcsncpy): New declaration.
24092         * lib/wcsncpy.c: New file.
24093         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24094         * m4/wcsncpy.m4: New file.
24095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24098         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24099         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24100
24101 2011-02-05  Bruno Haible  <bruno@clisp.org>
24102
24103         New module 'wcpcpy'.
24104         * modules/wcpcpy: New file.
24105         * lib/wchar.in.h (wcpcpy): New declaration.
24106         * lib/wcpcpy.c: New file.
24107         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24108         * m4/wcpcpy.m4: New file.
24109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24111         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24112         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24113         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24114
24115 2011-02-05  Bruno Haible  <bruno@clisp.org>
24116
24117         New module 'wcscpy'.
24118         * modules/wcscpy: New file.
24119         * lib/wchar.in.h (wcscpy): New declaration.
24120         * lib/wcscpy.c: New file.
24121         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24122         * m4/wcscpy.m4: New file.
24123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24126         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24127         * doc/posix-functions/wcscpy.texi: Mention the new module.
24128
24129 2011-02-05  Bruno Haible  <bruno@clisp.org>
24130
24131         New module 'wcsnlen'.
24132         * modules/wcsnlen: New file.
24133         * lib/wchar.in.h (wcsnlen): New declaration.
24134         * lib/wcsnlen.c: New file.
24135         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24136         * m4/wcsnlen.m4: New file.
24137         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24138         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24139         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24140         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24141         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24142
24143 2011-02-05  Bruno Haible  <bruno@clisp.org>
24144
24145         New module 'wcslen'.
24146         * modules/wcslen: New file.
24147         * lib/wchar.in.h (wcslen): New declaration.
24148         * lib/wcslen.c: New file.
24149         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24150         * m4/wcslen.m4: New file.
24151         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24152         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24153         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24154         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24155         * doc/posix-functions/wcslen.texi: Mention the new module.
24156
24157 2011-02-05  Bruno Haible  <bruno@clisp.org>
24158
24159         New module 'wmemset'.
24160         * modules/wmemset: New file.
24161         * lib/wchar.in.h (wmemset): New declaration.
24162         * lib/wmemset.c: New file.
24163         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24164         * m4/wmemset.m4: New file.
24165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24167         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24168         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24169         * doc/posix-functions/wmemset.texi: Mention the new module.
24170
24171 2011-02-05  Bruno Haible  <bruno@clisp.org>
24172
24173         New module 'wmemmove'.
24174         * modules/wmemmove: New file.
24175         * lib/wchar.in.h (wmemmove): New declaration.
24176         * lib/wmemmove.c: New file.
24177         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24178         * m4/wmemmove.m4: New file.
24179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24181         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24182         HAVE_WMEMMOVE.
24183         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24184         * doc/posix-functions/wmemmove.texi: Mention the new module.
24185
24186 2011-02-05  Bruno Haible  <bruno@clisp.org>
24187
24188         New module 'wmemcpy'.
24189         * modules/wmemcpy: New file.
24190         * lib/wchar.in.h (wmemcpy): New declaration.
24191         * lib/wmemcpy.c: New file.
24192         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24193         * m4/wmemcpy.m4: New file.
24194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24196         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24197         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24198         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24199
24200 2011-02-05  Bruno Haible  <bruno@clisp.org>
24201
24202         New module 'wmemcmp'.
24203         * modules/wmemcmp: New file.
24204         * lib/wchar.in.h (wmemcmp): New declaration.
24205         * lib/wmemcmp.c: New file.
24206         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24207         * m4/wmemcmp.m4: New file.
24208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24210         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24211         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24212         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24213
24214 2011-02-07  Jim Meyering  <meyering@redhat.com>
24215
24216         di-set, ino-map: new modules, from coreutils
24217         * lib/di-set.c: New file.
24218         * lib/di-set.h: Likewise.
24219         * lib/ino-map.c: Likewise.
24220         * lib/ino-map.h: Likewise.
24221         * modules/di-set: Likewise.
24222         * modules/di-set-tests: Likewise.
24223         * modules/ino-map: Likewise.
24224         * modules/ino-map-tests: Likewise.
24225         * tests/test-di-set.c: Likewise.
24226         * tests/test-ino-map.c: Likewise.
24227
24228 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24229
24230         getloadavg: merge minor changes from Emacs
24231
24232         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24233         (getloadavg): Use memset, not bzero.
24234
24235         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24236         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24237         clash (bug#86).
24238
24239 2010-11-14  Bruno Haible  <bruno@clisp.org>
24240
24241         Allow multiple gnulib generated replacements to coexist.
24242         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24243         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24244         * lib/langinfo.in.h (nl_item): Likewise.
24245         * lib/math.in.h (_NaN, NAN): Likewise.
24246         * lib/netdb.in.h (struct addrinfo): Likewise.
24247         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24248         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24249         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24250         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24251         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24252         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24253         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24254         pthread_mutexattr_init, pthread_mutexattr_settype,
24255         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24256         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24257         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24258         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24259         * lib/sched.in.h (struct sched_param): Likewise.
24260         * lib/se-selinux.in.h (security_class_t, security_context_t,
24261         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24262         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24263         lsetfilecon, fsetfilecon, security_check_context,
24264         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24265         Likewise.
24266         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24267         Likewise.
24268         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24269         _gl_function_taking_int_returning_void_t, union sigval,
24270         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24271         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24272         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24273         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24274         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24275         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24276         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24277         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24278         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24279         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24280         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24281         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24282         socklen_t, rpl_fd_isset): Likewise.
24283         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24284         * lib/sys_time.in.h (struct timeval): Likewise.
24285         * lib/sys_times.in.h (struct tms): Likewise.
24286         * lib/sys_utsname.in.h (struct utsname):
24287         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24288         * lib/unistd.in.h (getpagesize): Likewise.
24289         * lib/wchar.in.h (mbstate_t): Likewise.
24290         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24291         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24292         towlower, towupper): Likewise.
24293         Reported by Sam Steingold <sds@gnu.org>.
24294
24295 2011-02-05  Eric Blake  <eblake@redhat.com>
24296
24297         unsetenv: work around Haiku issues
24298         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24299         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24300
24301 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24302
24303         libposix: avoid calling error() within libposix
24304         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24305         is defined.
24306
24307 2011-02-05  Eric Blake  <eblake@redhat.com>
24308
24309         strerror_r-posix: port to cygwin
24310         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24311         implementation.
24312         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24313         * tests/test-strerror_r.c (main): Fix test.
24314         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24315         issue.
24316
24317 2011-02-05  Bruno Haible  <bruno@clisp.org>
24318
24319         New module 'wmemchr'.
24320         * modules/wmemchr: New file.
24321         * lib/wchar.in.h (wmemchr): New declaration.
24322         * lib/wmemchr.c: New file.
24323         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24324         * m4/wmemchr.m4: New file.
24325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24327         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24328         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24329         * doc/posix-functions/wmemchr.texi: Mention the new module.
24330
24331 2011-02-04  Eric Blake  <eblake@redhat.com>
24332
24333         fdopendir: detect FreeBSD bug
24334         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24335         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24336
24337 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24338
24339         stdbool: do not define HAVE_STDBOOL_H
24340         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24341         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24342         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24343         imported from the latest Autoconf git.  It was motivated by Emacs,
24344         which uses gnulib but does not need HAVE_STDBOOL_H.
24345
24346 2011-02-04  Bruno Haible  <bruno@clisp.org>
24347
24348         wcsnrtombs: Prepare for new module wwcsnrtombs.
24349         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24350         * lib/wcsnrtombs.c: Include it.
24351         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24352
24353         wcsrtombs: Prepare for new module wwcsrtombs.
24354         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24355         * lib/wcsrtombs.c: Include it.
24356         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24357
24358         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24359         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24360         * lib/mbsnrtowcs.c: Include it.
24361         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24362
24363         mbsrtowcs: Prepare for new module mbsrtowwcs.
24364         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24365         * lib/mbsrtowcs.c: Include it.
24366         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24367
24368 2011-02-04  Bruno Haible  <bruno@clisp.org>
24369
24370         vasnprintf: Reduce use of malloc for small format strings.
24371         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24372         (arguments): Add room for the first 7 arguments.
24373         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24374         (char_directives, u8_directives, u16_directives, u32_directives): Add
24375         room for the first 7 directives.
24376         * lib/printf-parse.c: Include <string.h>.
24377         (PRINTF_PARSE): Change memory handling code so that it uses the first
24378         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24379         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24380         Reported by Pádraig Brady <P@draigbrady.com>.
24381
24382 2011-01-31  Eric Blake  <eblake@redhat.com>
24383
24384         dup2: work around Haiku bug
24385         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24386         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24387         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24388         * tests/test-dup2.c (main): Enhance test.
24389
24390 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24391
24392         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24393         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24394         declared by eglibc 2.11.2.
24395         * lib/stdio.in.h: Likewise.
24396
24397 2011-01-31  Eric Blake  <eblake@redhat.com>
24398
24399         ignore-value: add missing test dependency
24400         * tests/test-ignore-value.c: Revert previous change; stdio.h
24401         provides off_t.
24402         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24403
24404 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24405
24406         mktime: clarify long_int width checking
24407         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24408         the top level, to make it clearer that the assumption about
24409         long_int width is being checked.  See
24410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24411
24412 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24413
24414         ignore-value: Fix self-test.
24415         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24416
24417 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24418
24419         TYPE_MAXIMUM: avoid theoretically undefined behavior
24420         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24421         negative number, which the C Standard says has undefined behavior.
24422         In practice this is not a problem, but might as well do it by the book.
24423         Reported by Rich Felker and Eric Blake; see
24424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24425         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24426         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24428         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24429         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24430         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24431
24432         mktime: #undef mktime before #defining it
24433         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24434
24435         mktime: systematically normalize tm_isdst comparisons
24436         * lib/mktime.c (isdst_differ): New function.
24437         (__mktime_internal): Use it systematically for all isdst comparisons.
24438         This completes the fix for libc BZ #6723, and removes the need for
24439         normalizing tm_isdst.  See
24440         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24441         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24442
24443         mktime: fix some integer overflow issues and sidestep the rest
24444
24445         This was prompted by a bug report by Benjamin Lindner for MinGW
24446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24447         His bug is due to signed integer overflow (0 - INT_MIN), and I
24448         I scanned through mktime.c looking for other integer overflow
24449         problems, fixing all the bugs I found.
24450
24451         Although the C Standard says the resulting code is still not safe
24452         in the presence of integer overflow, in practice it should be good
24453         enough for all real-world two's-complement implementations, except
24454         for debugging environments that deliberately trap on integer
24455         overflow (e.g., gcc -ftrapv).
24456
24457         * lib/mktime.c (WRAPV): New macro.
24458         (SHR): Also check that long_int and time_t shift right in the
24459         usual way, before using the fast-but-unportable method.
24460         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24461         used.  The code already assumed two's complement, so there's
24462         no need to test for alternatives.  All uses removed.
24463         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24464         the C standard.  Problem reported by Rich Felker in
24465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24466         (twos_complement_arithmetic): Also check long_int and time_t.
24467         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24468         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24469         (__mktime_internal): Avoid integer overflow with unary subtraction
24470         in two instances where -1 - X is an adequate replacement for -X,
24471         since the calculations are approximate.
24472
24473 2011-01-29  Eric Blake  <eblake@redhat.com>
24474
24475         mktime: avoid infinite loop
24476         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24477         type; behavior is still undefined but portable to all known targets.
24478         Reported by Rich Felker.
24479
24480 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24481
24482         rename, unlink, same-inode: Relicense.
24483         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24484         * modules/unlink (License): Likewise.
24485         * modules/same-inode (License): Likewise.
24486
24487 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24488
24489         mktime: avoid problems on NetBSD 5 / i386
24490         * lib/mktime.c (long_int): New type.  This works around a problem
24491         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24492         but time_t is 64 bits, and where I expect the existing code is
24493         wrong in some cases.
24494         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24495         (ydhms_diff): Bring back the compile-time check for wide-enough
24496         year and yday.
24497
24498         mktime: fix misspelling in comment
24499         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24500         This merges all recent glibc changes of importance.
24501
24502 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24503
24504         move-if-change: cope with concurrent mv of identical file.
24505         * build-aux/move-if-change (CMPPROG): Accept environment
24506         variable as an override for `cmp'.
24507         (usage): Document CMPPROG.
24508         Adjust comparison to drop stdout.  Cope with failure of mv if
24509         the target file exists and is identical to the source, for
24510         parallel builds.
24511         Report from H.J. Lu against binutils in PR binutils/12283.
24512
24513 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24514
24515         * users.txt: Mention sharutils.
24516
24517 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24518
24519         * users.txt: Mention OATH Toolkit.
24520
24521 2011-01-27  Bruno Haible  <bruno@clisp.org>
24522
24523         Prepare for supporting FreeBSD 10.
24524         * build-aux/config.libpath: Remove handling of freebsd1*.
24525
24526 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24527
24528         Prepare for supporting FreeBSD 10.
24529         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24530         match FreeBSD 10.0.
24531
24532 2011-01-27  Bruno Haible  <bruno@clisp.org>
24533
24534         vma-iter, get-rusage-as: Add OpenBSD support.
24535         * modules/vma-iter (configure.ac): Test for mquery.
24536         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24537         * lib/vma-iter.c: Include <sys/mman.h>.
24538         (vma_iterate): Add an implementation based on mquery().
24539         * lib/resource-ext.h (get_rusage_as): Update comments.
24540         * lib/get-rusage-as.c: Likewise.
24541         * lib/get-rusage-data.c: Likewise.
24542
24543 2011-01-26  Karl Berry  <karl@gnu.org>
24544
24545         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24546         variables to make it easier to override the makeinfo program used.
24547
24548 2011-01-26  Eric Blake  <eblake@redhat.com>
24549
24550         fcntl: work around Haiku F_DUPFD bugs
24551         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24552         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24553         cloexec bit on duplication.
24554         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24555
24556 2011-01-26  Bruno Haible  <bruno@clisp.org>
24557
24558         Enable memory leak tests on AIX.
24559         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24560         * tests/test-fprintf-posix3.c (main): Likewise.
24561
24562 2011-01-26  Bruno Haible  <bruno@clisp.org>
24563
24564         Tests for module 'get-rusage-data'.
24565         * modules/get-rusage-data-tests: New file.
24566         * tests/test-get-rusage-data.c: New file.
24567
24568         New module 'get-rusage-data'.
24569         * lib/resource-ext.h (get_rusage_data): New declaration.
24570         * lib/get-rusage-data.c: New file.
24571         * modules/get-rusage-data: New file.
24572
24573 2011-01-25  Bruno Haible  <bruno@clisp.org>
24574
24575         get-rusage-as: Allow for easier testing.
24576         * lib/resource-ext.h (get_rusage_as): Add comment.
24577         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24578         (main): New function for interactive testing.
24579
24580 2011-01-25  Bruno Haible  <bruno@clisp.org>
24581
24582         vma-iter: Treat Haiku like BeOS.
24583         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24584         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24585
24586 2011-01-25  Eric Blake  <eblake@redhat.com>
24587
24588         c-stack: fix regression on cygwin when libsigsegv is present
24589         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24590
24591 2011-01-24  Bruno Haible  <bruno@clisp.org>
24592
24593         vma-iter: Avoid empty intervals.
24594         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24595         on an empty interval.
24596
24597 2011-01-24  Jim Meyering  <meyering@redhat.com>
24598
24599         u64: remove unnecessary #include
24600         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24601
24602 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24603
24604         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24605         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24606
24607 2011-01-23  Bruno Haible  <bruno@clisp.org>
24608
24609         New module 'vma-iter'.
24610         * lib/vma-iter.h: New file.
24611         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24612         * modules/vma-iter: New file.
24613         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24614         for get_rusage_as_via_iterator.
24615         (vma_iterate_callback): New function.
24616         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24617         * modules/get-rusage-as (Depends-on): Add vma-iter.
24618
24619 2011-01-23  Bruno Haible  <bruno@clisp.org>
24620
24621         uninorm: Tweak includes.
24622         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24623         Reported by Jim Meyering.
24624
24625 2011-01-23  Bruno Haible  <bruno@clisp.org>
24626
24627         get-rusage-as: Improve on NetBSD.
24628         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24629         /proc, like on FreeBSD.
24630
24631 2011-01-23  Jim Meyering  <meyering@redhat.com>
24632
24633         xreadlink.h: remove unnecessary #include
24634         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24635
24636         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24637         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24638
24639 2011-01-23  Bruno Haible  <bruno@clisp.org>
24640
24641         get-rusage-as: Fix bug.
24642         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24643         original limit when aborting the first loop.
24644
24645 2011-01-23  Bruno Haible  <bruno@clisp.org>
24646
24647         wctype: Ensure valid C syntax.
24648         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24649         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24650
24651 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24652
24653         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24655         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24656         as they are needed only for configure's test case.
24657         This removes two unnecessary symbols from config.h.
24658
24659         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24660         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24662         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24663         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24664         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24665         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24666         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24667         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24668         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24669         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24670         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24671         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24672         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24673         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24674         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24675         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24676         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24677
24678 2011-01-21  Eric Blake  <eblake@redhat.com>
24679
24680         maintainer-makefile: work with older git for submodule check
24681         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24682         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24683         Reported by Matthias Bolte.
24684
24685         bootstrap: minor portability fixes
24686         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24687         (usage): Omit leading capital and trailing . on help phrases, per
24688         GNU Coding Standards.
24689         (check_versions, top level): Prefix messages with script name.
24690
24691 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24692
24693         bootstrap: support --no-git option
24694         * build-aux/bootstrap: Add --no-git option, to be used when
24695         --gnulib-srcdir points to the exact desired checkout.
24696
24697 2011-01-21  Eric Blake  <eblake@redhat.com>
24698
24699         strerror_r-posix: work with glibc 2.13
24700         * lib/strerror_r.c (strerror_r): Fix return type.
24701
24702 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24703             Bruno Haible  <bruno@clisp.org>
24704
24705         uN_strstr: New unit tests.
24706         * modules/unistr/u8-strstr-tests: New file.
24707         * modules/unistr/u16-strstr-tests: New file.
24708         * modules/unistr/u32-strstr-tests: New file.
24709         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24710         * tests/unistr/test-u8-strstr.c: New file.
24711         * tests/unistr/test-u16-strstr.c: New file.
24712         * tests/unistr/test-u32-strstr.c: New file.
24713
24714 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24715             Bruno Haible  <bruno@clisp.org>
24716
24717         Make uN_strstr functions O(n) worst-case.
24718         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24719         16-bit and 32-bit unit cases, use the unibyte algorithm from
24720         lib/mbsstr.c.
24721         * lib/unistr/u8-strstr.c: Include <string.h>.
24722         (UNIT_IS_UINT8_T): New macro.
24723         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24724         (U_STRLEN, U_STRNLEN): New macros.
24725         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24726         (U_STRLEN, U_STRNLEN): New macros.
24727         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24728         (configure.ac): Update required libunistring version.
24729         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24730         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24731         malloca.
24732         (configure.ac): Update required libunistring version.
24733         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24734         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24735         malloca.
24736         (configure.ac): Update required libunistring version.
24737
24738 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24739             Bruno Haible  <bruno@clisp.org>
24740
24741         Prepare for faster uN_strstr functions.
24742         * lib/str-kmp.h: Support definable UNITs.
24743         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24744         needle_len argument.
24745         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24746         * lib/mbscasestr.c (mbscasestr): Likewise.
24747
24748 2011-01-21  Pádraig Brady <P@draigBrady.com>
24749
24750         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24751         * tests/test-malloca.c (main): Unset the environment variable
24752         to greatly speed up the test.
24753         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24754         * modules/malloca-tests: Depend on unsetenv.
24755
24756 2011-01-21  Pádraig Brady <P@draigBrady.com>
24757
24758         ignore-value: remove stdint dependency
24759         * lib/ignore-value.h: Remove <stdint.h>
24760         * modules/ignore-value: Remove stdint dependency.
24761
24762 2011-01-21  Jim Meyering  <meyering@redhat.com>
24763
24764         maint.mk: adjust variable name to be consistent with other gl_ vars
24765         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24766         to be lower case.
24767
24768 2011-01-20  Jim Meyering  <meyering@redhat.com>
24769
24770         maint.mk: make "check" depend on public-submodule-commit by default
24771         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24772
24773 2011-01-20  Bruno Haible  <bruno@clisp.org>
24774
24775         mbfile, mbiter: Complete change from 2008-12-21.
24776         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24777         * m4/mbiter.m4 (gl_MBITER): Likewise.
24778
24779 2011-01-20  Jim Meyering  <meyering@redhat.com>
24780
24781         init.sh: insert space between each function name and "()"
24782         * tests/init.sh: Make it a little easier to see that a function's
24783         name is "warn_", and not "warn" when looking at the first part of
24784         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24785
24786 2011-01-20  Jim Meyering  <meyering@redhat.com>
24787
24788         mountlist: clean up code formatting
24789         * lib/mountlist.c (read_file_system_list): Split a long line,
24790         correct bracing style, use NULL in place of "(struct statfs *)0",
24791         don't parenthesize return value, add spaces around "=" and after
24792         ";-in-for-stmt".
24793
24794 2011-01-14  Markus Duft <mduft@gentoo.org>
24795
24796         mountlist: add support for Interix
24797         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24798         Apply statvfs to all entries of /dev/fs.
24799         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24800         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24801
24802 2011-01-20  Jim Meyering  <meyering@redhat.com>
24803
24804         maint.mk: improve the public-submodule-commit rule
24805         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24806         to suppress printing of its commands... unless V=1.
24807         Add git submodule's --quiet option to suppress printing of e.g.,
24808         "Entering gnulib" output.
24809         "cd" into $(srcdir) before running git submodule.
24810
24811 2011-01-20  Bruno Haible  <bruno@clisp.org>
24812
24813         include_next: Fix bug introduced on 2011-01-18.
24814         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24815         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24816         ac_cv_header_... variable if the second argument is not 'check'.
24817         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24818         gl_NEXT_HEADERS_INTERNAL.
24819
24820 2011-01-20  Bruno Haible  <bruno@clisp.org>
24821
24822         Allow the user to avoid the GNULIB_TEST_* macros.
24823         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24824         Suggested by Paul Eggert.
24825
24826 2011-01-14  Jim Meyering  <meyering@redhat.com>
24827
24828         bootstrap: avoid failure when there is no .gitmodules file
24829         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24830         has been assigned to, even when its value is the empty string.
24831         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24832         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24833         Reported by John W. Eaton <jwe@gnu.org>.
24834
24835 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24836
24837         assume <ctype.h>, ..., <time.h> exist
24838         For years gnulib has been assuming the existence of the headers
24839         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24840         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24841         them, since they don't appear to be needed.
24842         * README (Portability guidelines): Document this.
24843         * lib/flock.c: Assume <fcntl.h> exists.
24844         * lib/regex_internal.h: Assume <locale.h> exists.
24845         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24846         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24847         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24848         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24849         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24850         * m4/regex.m4 (gl_REGEX): Likewise.
24851         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24852         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24853         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24854         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24855         * tests/test-argp.c: Likewise.
24856         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24857
24858         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24859         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24860         AA_APPLE_UNIVERSAL_BUILD.  See
24861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24862         * NEWS: Document this.
24863
24864 2011-01-19  Eric Blake  <eblake@redhat.com>
24865
24866         c-stack: assume stack overflow if SA_SIGINFO unsupported
24867         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24868         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24869         sigaction will work.
24870         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24871         behavior match Linux.
24872         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24873
24874         stdbool-tests: accommodate Haiku
24875         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24876
24877         binary-io: fix O_TEXT on Haiku
24878         * modules/binary-io (Depends-on): Add fcntl-h.
24879         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24880         than blindly undefining O_TEXT.
24881         Reported by Scott McCreary.
24882
24883 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24884
24885         include_next: do not check for standard headers like stddef.h
24886
24887         I found this problem when modifying Emacs to use gnulib.
24888         I noticed that it added HAVE_STDDEF_H to config.h, even though
24889         gnulib always assumes <stddef.h> exists as per README and this
24890         symbol is unnecessary.
24891         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24892         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24893         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24894         faster for headers like stddef.h that are known to exist.
24895         (gl_CHECK_NEXT_HEADERS): Use it.
24896         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24897         rather than gl_CHECK_NEXT_HEADERS.
24898         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24899         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24900
24901 2011-01-18  Eric Blake  <eblake@redhat.com>
24902
24903         ansi-c++-opt: skip C++ dependency style if C++ is unused
24904         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24905         tests when we know C++ compilation is not desired.
24906         Reported by Scott McCreary.
24907
24908 2011-01-18  Bruno Haible  <bruno@clisp.org>
24909
24910         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24911         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24912         (main): Perform test also when getrlimit and setrlimit don't exist or
24913         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24914         limiting the address space size using setrlimit, compare the address
24915         space size before and after the the test.
24916         * tests/test-dprintf-posix2.c: Likewise.
24917         * tests/test-fprintf-posix3.sh: Update skip messages.
24918         * tests/test-dprintf-posix2.sh: Likewise.
24919         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24920         * modules/dprintf-posix-tests (Depends-on): Likewise.
24921         Reported by Bruce Korb <bkorb@gnu.org> and
24922         Gary V. Vaughan <gary@gnu.org>.
24923
24924 2011-01-18  Bruno Haible  <bruno@clisp.org>
24925
24926         get-rusage-as: Improvement for Cygwin.
24927         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24928         areas that are merely reserved.
24929
24930 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24931
24932         strftime: remove dependencies on multibyte modules
24933
24934         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24935         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24936         only if __osf__ is defined, and I suspect OSF doesn't need these
24937         other modules.  If my guess is wrong, we'll need to come up with a
24938         variant of strftime that doesn't need the multibyte modules.
24939
24940         I discovered this problem when attempting modify Emacs to use the
24941         strftime module.  With the previous gnulib, this caused Emacs to
24942         need 31 new files, ranging from lib/config.charset to
24943         m4/wint_t.m4.  This was overkill and I expect would be offputting
24944         to the Emacs maintainers.  After this change, only 6 new files are
24945         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24946         stdbool.m4, and tm_gmtoff.m4.
24947
24948         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24949         Suggested by Bruno Haible in
24950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24951         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24952         and do not check for wchar.h.
24953         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24954         (Depends-on): Remove mbrlen, mbsinit, wchar.
24955
24956 2011-01-18  Bruno Haible  <bruno@clisp.org>
24957
24958         Tests for module 'get-rusage-as'.
24959         * modules/get-rusage-as-tests: New file.
24960         * tests/test-get-rusage-as.c: New file.
24961
24962         New module 'get-rusage-as'.
24963         * modules/get-rusage-as: New file.
24964         * lib/resource-ext.h: New file.
24965         * lib/get-rusage-as.c: New file.
24966
24967 2011-01-17  Eric Blake  <eblake@redhat.com>
24968
24969         sigaction: relax license from LGPLv3+ to LGPLv2+
24970         * modules/sigaction (License): Relax to LGPLv2+.
24971
24972 2011-01-14  Bruno Haible  <bruno@clisp.org>
24973
24974         filemode: Make function declarations usable in C++ mode.
24975         * lib/filemode.h: Enclose function declarations in extern "C" block.
24976         Reported by John W. Eaton <jwe@gnu.org>.
24977
24978 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24979
24980         save-cwd: no longer include "xgetcwd.h"
24981         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24982         This avoids a compilation failure in projects that use save-cwd
24983         without also using the xgetcwd module.
24984
24985 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24986
24987         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24988         This is so that a program like Emacs, which needs only dtoastr,
24989         does not have to bother with distributing and compiling ftoastr
24990         and ldtoastr.
24991         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24992         * modules/dtoastr, modules/ldtoastr: New files.
24993         * modules/ftoastr: Now works just for 'float'.
24994         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24995         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24996         dtoastr.c, ldtoastr.c.
24997
24998 2011-01-11  Jim Meyering  <meyering@redhat.com>
24999
25000         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25001         There is no need to work around the lack of the fchdir function,
25002         since gnulib can now provide a replacement when required.
25003         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25004         * modules/save-cwd (Depends-on): Add fchdir.
25005
25006 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25007
25008         openat, save-cwd: avoid xmalloc
25009
25010         This removes a direct (but undocumented) dependency of openat on
25011         xalloc, along with an indirect dependency via save-cwd.  It also
25012         removes a dependency of save-cwd on xgetcwd, and thereby
25013         indirectly on xalloc.  This change causes the openat substitute
25014         to fall back on save_cwd when memory is tight, and for save_cwd to
25015         fail instead of dying when memory is tight, but that's good enough.
25016         Problem and initial idea for fix reported by Bastien Roucaries in
25017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25018
25019         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25020         xalloc.h (for xmalloc).
25021         (openat_proc_name): Use malloc, not xmalloc.
25022         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25023         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25024
25025         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25026         This avoids heap allocation for file names whose lengths are in
25027         the range 512..1023, with the upper bound increasing to at most
25028         4031 depending on the platform's PATH_MAX.  (We do not want
25029         pathmax.h here as it might supply a non-constant PATH_MAX.)
25030         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25031         Perhaps they should be moved to malloca.h?
25032         (OPENAT_BUFFER_SIZE): Use them.
25033
25034 2011-01-10  Bruno Haible  <bruno@clisp.org>
25035
25036         doc: Update users.txt.
25037         * users.txt: Add recutils.
25038
25039 2011-01-09  Karl Berry  <karl@gnu.org>
25040
25041         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25042
25043         * doc/configmake.texi: New file.
25044         * doc/gnulib.texi: Include it.
25045         * modules/configmake: Move documentation from here.
25046
25047 2011-01-09  Bruno Haible  <bruno@clisp.org>
25048
25049         Update to Unicode 6.0.0.
25050         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25051         (get_lbp): Update for Unicode 6.0.0.
25052         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25053         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25054         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25055         U+11001, U+11038..U+11046. Remove U+06DE.
25056         (uc_width): Fix bounds of planes.
25057         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25058         lib/uniwidth/width.c.
25059         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25060         trailing whitespace removed.
25061         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25062         without comments, but with the original copyright notice.
25063         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25064         * lib/unicase/ignorable.h: Likewise.
25065         * lib/unicase/tocasefold.h: Likewise.
25066         * lib/unicase/tolower.h: Likewise.
25067         * lib/unicase/totitle.h: Likewise.
25068         * lib/unicase/toupper.h: Likewise.
25069         * lib/unictype/bidi_of.h: Likewise.
25070         * lib/unictype/blocks.h: Likewise.
25071         * lib/unictype/categ_C.h: Likewise.
25072         * lib/unictype/categ_Cn.h: Likewise.
25073         * lib/unictype/categ_L.h: Likewise.
25074         * lib/unictype/categ_Ll.h: Likewise.
25075         * lib/unictype/categ_Lm.h: Likewise.
25076         * lib/unictype/categ_Lo.h: Likewise.
25077         * lib/unictype/categ_Lu.h: Likewise.
25078         * lib/unictype/categ_M.h: Likewise.
25079         * lib/unictype/categ_Mc.h: Likewise.
25080         * lib/unictype/categ_Me.h: Likewise.
25081         * lib/unictype/categ_Mn.h: Likewise.
25082         * lib/unictype/categ_N.h: Likewise.
25083         * lib/unictype/categ_Nd.h: Likewise.
25084         * lib/unictype/categ_No.h: Likewise.
25085         * lib/unictype/categ_P.h: Likewise.
25086         * lib/unictype/categ_Po.h: Likewise.
25087         * lib/unictype/categ_S.h: Likewise.
25088         * lib/unictype/categ_Sc.h: Likewise.
25089         * lib/unictype/categ_Sk.h: Likewise.
25090         * lib/unictype/categ_Sm.h: Likewise.
25091         * lib/unictype/categ_So.h: Likewise.
25092         * lib/unictype/categ_of.h: Likewise.
25093         * lib/unictype/combining.h: Likewise.
25094         * lib/unictype/ctype_alnum.h: Likewise.
25095         * lib/unictype/ctype_alpha.h: Likewise.
25096         * lib/unictype/ctype_graph.h: Likewise.
25097         * lib/unictype/ctype_lower.h: Likewise.
25098         * lib/unictype/ctype_print.h: Likewise.
25099         * lib/unictype/ctype_punct.h: Likewise.
25100         * lib/unictype/ctype_upper.h: Likewise.
25101         * lib/unictype/decdigit.h: Likewise.
25102         * lib/unictype/digit.h: Likewise.
25103         * lib/unictype/numeric.h: Likewise.
25104         * lib/unictype/pr_alphabetic.h: Likewise.
25105         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25106         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25107         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25108         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25109         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25110         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25111         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25112         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25113         * lib/unictype/pr_case_ignorable.h: Likewise.
25114         * lib/unictype/pr_cased.h: Likewise.
25115         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25116         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25117         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25118         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25119         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25120         * lib/unictype/pr_combining.h: Likewise.
25121         * lib/unictype/pr_composite.h: Likewise.
25122         * lib/unictype/pr_currency_symbol.h: Likewise.
25123         * lib/unictype/pr_decimal_digit.h: Likewise.
25124         * lib/unictype/pr_deprecated.h: Likewise.
25125         * lib/unictype/pr_format_control.h: Likewise.
25126         * lib/unictype/pr_grapheme_base.h: Likewise.
25127         * lib/unictype/pr_grapheme_extend.h: Likewise.
25128         * lib/unictype/pr_grapheme_link.h: Likewise.
25129         * lib/unictype/pr_id_continue.h: Likewise.
25130         * lib/unictype/pr_id_start.h: Likewise.
25131         * lib/unictype/pr_ideographic.h: Likewise.
25132         * lib/unictype/pr_lowercase.h: Likewise.
25133         * lib/unictype/pr_math.h: Likewise.
25134         * lib/unictype/pr_numeric.h: Likewise.
25135         * lib/unictype/pr_other_alphabetic.h: Likewise.
25136         * lib/unictype/pr_other_id_continue.h: Likewise.
25137         * lib/unictype/pr_other_math.h: Likewise.
25138         * lib/unictype/pr_punctuation.h: Likewise.
25139         * lib/unictype/pr_sentence_terminal.h: Likewise.
25140         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25141         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25142         * lib/unictype/pr_unified_ideograph.h: Likewise.
25143         * lib/unictype/pr_uppercase.h: Likewise.
25144         * lib/unictype/pr_xid_continue.h: Likewise.
25145         * lib/unictype/pr_xid_start.h: Likewise.
25146         * lib/unictype/scripts.h: Likewise.
25147         * lib/unictype/scripts_byname.gperf: Likewise.
25148         * lib/unictype/sy_java_ident.h: Likewise.
25149         * lib/unigbrk/gbrkprop.h: Likewise.
25150         * lib/unilbrk/lbrkprop1.h: Likewise.
25151         * lib/unilbrk/lbrkprop2.h: Likewise.
25152         * lib/uninorm/decomposition-table2.h: Likewise.
25153         * lib/uniwbrk/wbrkprop.h: Likewise.
25154         * tests/unicase/test-cased.c: Likewise.
25155         * tests/unicase/test-ignorable.c: Likewise.
25156         * tests/unicase/test-uc_tolower.c: Likewise.
25157         * tests/unicase/test-uc_totitle.c: Likewise.
25158         * tests/unicase/test-uc_toupper.c: Likewise.
25159         * tests/unictype/test-categ_C.c: Likewise.
25160         * tests/unictype/test-categ_Cn.c: Likewise.
25161         * tests/unictype/test-categ_L.c: Likewise.
25162         * tests/unictype/test-categ_Ll.c: Likewise.
25163         * tests/unictype/test-categ_Lm.c: Likewise.
25164         * tests/unictype/test-categ_Lo.c: Likewise.
25165         * tests/unictype/test-categ_Lu.c: Likewise.
25166         * tests/unictype/test-categ_M.c: Likewise.
25167         * tests/unictype/test-categ_Mc.c: Likewise.
25168         * tests/unictype/test-categ_Me.c: Likewise.
25169         * tests/unictype/test-categ_Mn.c: Likewise.
25170         * tests/unictype/test-categ_N.c: Likewise.
25171         * tests/unictype/test-categ_Nd.c: Likewise.
25172         * tests/unictype/test-categ_No.c: Likewise.
25173         * tests/unictype/test-categ_P.c: Likewise.
25174         * tests/unictype/test-categ_Po.c: Likewise.
25175         * tests/unictype/test-categ_S.c: Likewise.
25176         * tests/unictype/test-categ_Sc.c: Likewise.
25177         * tests/unictype/test-categ_Sk.c: Likewise.
25178         * tests/unictype/test-categ_Sm.c: Likewise.
25179         * tests/unictype/test-categ_So.c: Likewise.
25180         * tests/unictype/test-ctype_alnum.c: Likewise.
25181         * tests/unictype/test-ctype_alpha.c: Likewise.
25182         * tests/unictype/test-ctype_graph.c: Likewise.
25183         * tests/unictype/test-ctype_lower.c: Likewise.
25184         * tests/unictype/test-ctype_print.c: Likewise.
25185         * tests/unictype/test-ctype_punct.c: Likewise.
25186         * tests/unictype/test-ctype_upper.c: Likewise.
25187         * tests/unictype/test-decdigit.h: Likewise.
25188         * tests/unictype/test-digit.h: Likewise.
25189         * tests/unictype/test-numeric.h: Likewise.
25190         * tests/unictype/test-pr_alphabetic.c: Likewise.
25191         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25192         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25193         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25194         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25195         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25196         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25197         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25198         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25199         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25200         * tests/unictype/test-pr_cased.c: Likewise.
25201         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25202         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25203         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25204         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25205         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25206         * tests/unictype/test-pr_combining.c: Likewise.
25207         * tests/unictype/test-pr_composite.c: Likewise.
25208         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25209         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25210         * tests/unictype/test-pr_deprecated.c: Likewise.
25211         * tests/unictype/test-pr_format_control.c: Likewise.
25212         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25213         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25214         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25215         * tests/unictype/test-pr_id_continue.c: Likewise.
25216         * tests/unictype/test-pr_id_start.c: Likewise.
25217         * tests/unictype/test-pr_ideographic.c: Likewise.
25218         * tests/unictype/test-pr_lowercase.c: Likewise.
25219         * tests/unictype/test-pr_math.c: Likewise.
25220         * tests/unictype/test-pr_numeric.c: Likewise.
25221         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25222         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25223         * tests/unictype/test-pr_other_math.c: Likewise.
25224         * tests/unictype/test-pr_punctuation.c: Likewise.
25225         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25226         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25227         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25228         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25229         * tests/unictype/test-pr_uppercase.c: Likewise.
25230         * tests/unictype/test-pr_xid_continue.c: Likewise.
25231         * tests/unictype/test-pr_xid_start.c: Likewise.
25232         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25233         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25234         changes.
25235         * lib/unictype/categ_Cc.h: Likewise.
25236         * lib/unictype/categ_Cf.h: Likewise.
25237         * lib/unictype/categ_Co.h: Likewise.
25238         * lib/unictype/categ_Cs.h: Likewise.
25239         * lib/unictype/categ_Lt.h: Likewise.
25240         * lib/unictype/categ_Nl.h: Likewise.
25241         * lib/unictype/categ_Pc.h: Likewise.
25242         * lib/unictype/categ_Pd.h: Likewise.
25243         * lib/unictype/categ_Pe.h: Likewise.
25244         * lib/unictype/categ_Pf.h: Likewise.
25245         * lib/unictype/categ_Pi.h: Likewise.
25246         * lib/unictype/categ_Ps.h: Likewise.
25247         * lib/unictype/categ_Z.h: Likewise.
25248         * lib/unictype/categ_Zl.h: Likewise.
25249         * lib/unictype/categ_Zp.h: Likewise.
25250         * lib/unictype/categ_Zs.h: Likewise.
25251         * lib/unictype/ctype_blank.h: Likewise.
25252         * lib/unictype/ctype_cntrl.h: Likewise.
25253         * lib/unictype/ctype_digit.h: Likewise.
25254         * lib/unictype/ctype_space.h: Likewise.
25255         * lib/unictype/ctype_xdigit.h: Likewise.
25256         * lib/unictype/mirror.h: Likewise.
25257         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25258         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25259         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25260         * lib/unictype/pr_bidi_control.h: Likewise.
25261         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25262         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25263         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25264         * lib/unictype/pr_bidi_pdf.h: Likewise.
25265         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25266         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25267         * lib/unictype/pr_dash.h: Likewise.
25268         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25269         * lib/unictype/pr_diacritic.h: Likewise.
25270         * lib/unictype/pr_extender.h: Likewise.
25271         * lib/unictype/pr_hex_digit.h: Likewise.
25272         * lib/unictype/pr_hyphen.h: Likewise.
25273         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25274         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25275         * lib/unictype/pr_ignorable_control.h: Likewise.
25276         * lib/unictype/pr_iso_control.h: Likewise.
25277         * lib/unictype/pr_join_control.h: Likewise.
25278         * lib/unictype/pr_left_of_pair.h: Likewise.
25279         * lib/unictype/pr_line_separator.h: Likewise.
25280         * lib/unictype/pr_logical_order_exception.h: Likewise.
25281         * lib/unictype/pr_non_break.h: Likewise.
25282         * lib/unictype/pr_not_a_character.h: Likewise.
25283         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25284         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25285         * lib/unictype/pr_other_id_start.h: Likewise.
25286         * lib/unictype/pr_other_lowercase.h: Likewise.
25287         * lib/unictype/pr_other_uppercase.h: Likewise.
25288         * lib/unictype/pr_paired_punctuation.h: Likewise.
25289         * lib/unictype/pr_paragraph_separator.h: Likewise.
25290         * lib/unictype/pr_pattern_syntax.h: Likewise.
25291         * lib/unictype/pr_pattern_white_space.h: Likewise.
25292         * lib/unictype/pr_private_use.h: Likewise.
25293         * lib/unictype/pr_quotation_mark.h: Likewise.
25294         * lib/unictype/pr_radical.h: Likewise.
25295         * lib/unictype/pr_soft_dotted.h: Likewise.
25296         * lib/unictype/pr_space.h: Likewise.
25297         * lib/unictype/pr_titlecase.h: Likewise.
25298         * lib/unictype/pr_variation_selector.h: Likewise.
25299         * lib/unictype/pr_white_space.h: Likewise.
25300         * lib/unictype/pr_zero_width.h: Likewise.
25301         * lib/unictype/sy_c_ident.h: Likewise.
25302         * lib/unictype/sy_c_whitespace.h: Likewise.
25303         * lib/unictype/sy_java_whitespace.h: Likewise.
25304         * lib/uninorm/composition-table.gperf: Likewise.
25305         * lib/uninorm/decomposition-table1.h: Likewise.
25306         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25307         LB8.
25308         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25309         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25310         * modules/unictype/*: Bump version number of expected libunistring
25311         version.
25312
25313 2011-01-09  Bruno Haible  <bruno@clisp.org>
25314
25315         Update to Unicode 5.2.0.
25316         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25317         trailing whitespace removed.
25318
25319 2011-01-09  Bruno Haible  <bruno@clisp.org>
25320
25321         New Unicode character properties, from Unicode 5.2.0.
25322         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25323         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25324         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25325         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25326         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25327         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25328         uc_is_property_cased, uc_is_property_case_ignorable,
25329         uc_is_property_changes_when_lowercased,
25330         uc_is_property_changes_when_uppercased,
25331         uc_is_property_changes_when_titlecased,
25332         uc_is_property_changes_when_casefolded,
25333         uc_is_property_changes_when_casemapped): New declarations.
25334         * lib/unictype/pr_byname.gperf: Add the new properties.
25335         * modules/unictype/property-byname (Depends-on): Depend on the new
25336         properties modules.
25337         * modules/unictype/property-all (Depends-on): Likewise.
25338         * MODULES.html.sh (Unicode string functions): Add
25339         unictype/property-case-ignorable, unictype/property-cased,
25340         unictype/property-changes-when-casefolded,
25341         unictype/property-changes-when-casemapped,
25342         unictype/property-changes-when-lowercased,
25343         unictype/property-changes-when-titlecased,
25344         unictype/property-changes-when-uppercased.
25345
25346         New module 'unictype/property-changes-when-casemapped'.
25347         * modules/unictype/property-changes-when-casemapped: New file.
25348         * lib/unictype/pr_changes_when_casemapped.c: New file.
25349         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25350         generated by gen-uni-tables.
25351         * modules/unictype/property-changes-when-casemapped-tests: New file.
25352         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25353         automatically generated by gen-uni-tables.
25354
25355         New module 'unictype/property-changes-when-casefolded'.
25356         * modules/unictype/property-changes-when-casefolded: New file.
25357         * lib/unictype/pr_changes_when_casefolded.c: New file.
25358         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25359         generated by gen-uni-tables.
25360         * modules/unictype/property-changes-when-casefolded-tests: New file.
25361         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25362         automatically generated by gen-uni-tables.
25363
25364         New module 'unictype/property-changes-when-titlecased'.
25365         * modules/unictype/property-changes-when-titlecased: New file.
25366         * lib/unictype/pr_changes_when_titlecased.c: New file.
25367         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25368         generated by gen-uni-tables.
25369         * modules/unictype/property-changes-when-titlecased-tests: New file.
25370         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25371         automatically generated by gen-uni-tables.
25372
25373         New module 'unictype/property-changes-when-uppercased'.
25374         * modules/unictype/property-changes-when-uppercased: New file.
25375         * lib/unictype/pr_changes_when_uppercased.c: New file.
25376         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25377         generated by gen-uni-tables.
25378         * modules/unictype/property-changes-when-uppercased-tests: New file.
25379         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25380         automatically generated by gen-uni-tables.
25381
25382         New module 'unictype/property-changes-when-lowercased'.
25383         * modules/unictype/property-changes-when-lowercased: New file.
25384         * lib/unictype/pr_changes_when_lowercased.c: New file.
25385         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25386         generated by gen-uni-tables.
25387         * modules/unictype/property-changes-when-lowercased-tests: New file.
25388         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25389         automatically generated by gen-uni-tables.
25390
25391         New module 'unictype/property-case-ignorable'.
25392         * modules/unictype/property-case-ignorable: New file.
25393         * lib/unictype/pr_case_ignorable.c: New file.
25394         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25395         by gen-uni-tables.
25396         * modules/unictype/property-case-ignorable-tests: New file.
25397         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25398         generated by gen-uni-tables.
25399
25400         New module 'unictype/property-cased'.
25401         * modules/unictype/property-cased: New file.
25402         * lib/unictype/pr_cased.c: New file.
25403         * lib/unictype/pr_cased.h: New file, automatically generated by
25404         gen-uni-tables.
25405         * modules/unictype/property-cased-tests: New file.
25406         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25407         gen-uni-tables.
25408
25409 2011-01-09  Bruno Haible  <bruno@clisp.org>
25410
25411         Update to Unicode 5.2.0.
25412         * lib/gen-uni-tables.c (output_predicate, output_category,
25413         output_combclass, output_bidi_category, output_decimal_digit_test,
25414         output_decimal_digit, output_digit_test, output_digit,
25415         output_numeric_test, output_numeric, output_mirror, output_scripts,
25416         output_scripts_byname, output_blocks, output_ident_category): Fix
25417         comment header.
25418         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25419         get_wbp.
25420         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25421         items.
25422         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25423         Changes_When_Lowercased, Changes_When_Uppercased,
25424         Changes_When_Titlecased, Changes_When_Casefolded,
25425         Changes_When_Casemapped.
25426         (is_property_alphabetic, is_property_default_ignorable_code_point):
25427         Update for Unicode 5.2.0.
25428         (is_property_cased, is_property_case_ignorable,
25429         is_property_changes_when_lowercased,
25430         is_property_changes_when_uppercased,
25431         is_property_changes_when_titlecased,
25432         is_property_changes_when_casefolded,
25433         is_property_changes_when_casemapped): New functions.
25434         (output_properties): Output also the properties cased, case_ignorable,
25435         changes_when_lowercased, changes_when_uppercased,
25436         changes_when_titlecased, changes_when_casefolded,
25437         changes_when_casemapped.
25438         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25439         Unicode TR#11 revision 17 -> 19.
25440         (LBP_CP): New enumeration value.
25441         (LBP_*): Adjust values accordingly.
25442         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25443         TR#14 revision 22 -> 24.
25444         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25445         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25446         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25447         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25448         is_WBP_MIDLETTER.
25449         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25450         the code1 and code2 of each composition rule.
25451         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25452         * lib/unicase/ignorable.h: Likewise.
25453         * lib/unicase/tocasefold.h: Likewise.
25454         * lib/unicase/tolower.h: Likewise.
25455         * lib/unicase/totitle.h: Likewise.
25456         * lib/unicase/toupper.h: Likewise.
25457         * lib/unictype/bidi_of.h: Likewise.
25458         * lib/unictype/blocks.h: Likewise.
25459         * lib/unictype/categ_C.h: Likewise.
25460         * lib/unictype/categ_Cf.h: Likewise.
25461         * lib/unictype/categ_Cn.h: Likewise.
25462         * lib/unictype/categ_L.h: Likewise.
25463         * lib/unictype/categ_Ll.h: Likewise.
25464         * lib/unictype/categ_Lm.h: Likewise.
25465         * lib/unictype/categ_Lo.h: Likewise.
25466         * lib/unictype/categ_Lu.h: Likewise.
25467         * lib/unictype/categ_M.h: Likewise.
25468         * lib/unictype/categ_Mc.h: Likewise.
25469         * lib/unictype/categ_Mn.h: Likewise.
25470         * lib/unictype/categ_N.h: Likewise.
25471         * lib/unictype/categ_Nd.h: Likewise.
25472         * lib/unictype/categ_Nl.h: Likewise.
25473         * lib/unictype/categ_No.h: Likewise.
25474         * lib/unictype/categ_P.h: Likewise.
25475         * lib/unictype/categ_Pd.h: Likewise.
25476         * lib/unictype/categ_Po.h: Likewise.
25477         * lib/unictype/categ_S.h: Likewise.
25478         * lib/unictype/categ_Sc.h: Likewise.
25479         * lib/unictype/categ_So.h: Likewise.
25480         * lib/unictype/categ_of.h: Likewise.
25481         * lib/unictype/combining.h: Likewise.
25482         * lib/unictype/ctype_alnum.h: Likewise.
25483         * lib/unictype/ctype_alpha.h: Likewise.
25484         * lib/unictype/ctype_graph.h: Likewise.
25485         * lib/unictype/ctype_lower.h: Likewise.
25486         * lib/unictype/ctype_print.h: Likewise.
25487         * lib/unictype/ctype_punct.h: Likewise.
25488         * lib/unictype/ctype_upper.h: Likewise.
25489         * lib/unictype/decdigit.h: Likewise.
25490         * lib/unictype/digit.h: Likewise.
25491         * lib/unictype/numeric.h: Likewise.
25492         * lib/unictype/pr_alphabetic.h: Likewise.
25493         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25494         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25495         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25496         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25497         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25498         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25499         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25500         * lib/unictype/pr_combining.h: Likewise.
25501         * lib/unictype/pr_composite.h: Likewise.
25502         * lib/unictype/pr_currency_symbol.h: Likewise.
25503         * lib/unictype/pr_dash.h: Likewise.
25504         * lib/unictype/pr_decimal_digit.h: Likewise.
25505         * lib/unictype/pr_deprecated.h: Likewise.
25506         * lib/unictype/pr_diacritic.h: Likewise.
25507         * lib/unictype/pr_extender.h: Likewise.
25508         * lib/unictype/pr_grapheme_base.h: Likewise.
25509         * lib/unictype/pr_grapheme_extend.h: Likewise.
25510         * lib/unictype/pr_grapheme_link.h: Likewise.
25511         * lib/unictype/pr_id_continue.h: Likewise.
25512         * lib/unictype/pr_id_start.h: Likewise.
25513         * lib/unictype/pr_ideographic.h: Likewise.
25514         * lib/unictype/pr_ignorable_control.h: Likewise.
25515         * lib/unictype/pr_logical_order_exception.h: Likewise.
25516         * lib/unictype/pr_lowercase.h: Likewise.
25517         * lib/unictype/pr_numeric.h: Likewise.
25518         * lib/unictype/pr_other_alphabetic.h: Likewise.
25519         * lib/unictype/pr_punctuation.h: Likewise.
25520         * lib/unictype/pr_sentence_terminal.h: Likewise.
25521         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25522         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25523         * lib/unictype/pr_unified_ideograph.h: Likewise.
25524         * lib/unictype/pr_uppercase.h: Likewise.
25525         * lib/unictype/pr_xid_continue.h: Likewise.
25526         * lib/unictype/pr_xid_start.h: Likewise.
25527         * lib/unictype/pr_zero_width.h: Likewise.
25528         * lib/unictype/scripts.h: Likewise.
25529         * lib/unictype/scripts_byname.gperf: Likewise.
25530         * lib/unictype/sy_java_ident.h: Likewise.
25531         * lib/unigbrk/gbrkprop.h: Likewise.
25532         * lib/unilbrk/lbrkprop1.h: Likewise.
25533         * lib/unilbrk/lbrkprop2.h: Likewise.
25534         * lib/unilbrk/lbrktables.h: Likewise.
25535         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25536         LBP_CP. Implement rule LB30.
25537         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25538         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25539         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25540         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25541         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25542         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25543         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25544         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25545         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25546         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25547         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25548         bits instead of 16 bits in the code1 and code2 of each composition
25549         rule.
25550         (uc_composition): Update for Unicode 5.2.0.
25551         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25552         * lib/uninorm/decomposition-table2.h: Likewise.
25553         * lib/uniwbrk/wbrkprop.h: Likewise.
25554         * tests/unicase/test-cased.c: Likewise.
25555         * tests/unicase/test-ignorable.c: Likewise.
25556         * tests/unicase/test-uc_tolower.c: Likewise.
25557         * tests/unicase/test-uc_totitle.c: Likewise.
25558         * tests/unicase/test-uc_toupper.c: Likewise.
25559         * tests/unictype/test-categ_C.c: Likewise.
25560         * tests/unictype/test-categ_Cf.c: Likewise.
25561         * tests/unictype/test-categ_Cn.c: Likewise.
25562         * tests/unictype/test-categ_L.c: Likewise.
25563         * tests/unictype/test-categ_Ll.c: Likewise.
25564         * tests/unictype/test-categ_Lm.c: Likewise.
25565         * tests/unictype/test-categ_Lo.c: Likewise.
25566         * tests/unictype/test-categ_Lu.c: Likewise.
25567         * tests/unictype/test-categ_M.c: Likewise.
25568         * tests/unictype/test-categ_Mc.c: Likewise.
25569         * tests/unictype/test-categ_Mn.c: Likewise.
25570         * tests/unictype/test-categ_N.c: Likewise.
25571         * tests/unictype/test-categ_Nd.c: Likewise.
25572         * tests/unictype/test-categ_Nl.c: Likewise.
25573         * tests/unictype/test-categ_No.c: Likewise.
25574         * tests/unictype/test-categ_P.c: Likewise.
25575         * tests/unictype/test-categ_Pd.c: Likewise.
25576         * tests/unictype/test-categ_Po.c: Likewise.
25577         * tests/unictype/test-categ_S.c: Likewise.
25578         * tests/unictype/test-categ_Sc.c: Likewise.
25579         * tests/unictype/test-categ_So.c: Likewise.
25580         * tests/unictype/test-ctype_alnum.c: Likewise.
25581         * tests/unictype/test-ctype_alpha.c: Likewise.
25582         * tests/unictype/test-ctype_graph.c: Likewise.
25583         * tests/unictype/test-ctype_lower.c: Likewise.
25584         * tests/unictype/test-ctype_print.c: Likewise.
25585         * tests/unictype/test-ctype_punct.c: Likewise.
25586         * tests/unictype/test-ctype_upper.c: Likewise.
25587         * tests/unictype/test-decdigit.h: Likewise.
25588         * tests/unictype/test-digit.h: Likewise.
25589         * tests/unictype/test-numeric.h: Likewise.
25590         * tests/unictype/test-pr_alphabetic.c: Likewise.
25591         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25592         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25593         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25594         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25595         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25596         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25597         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25598         * tests/unictype/test-pr_combining.c: Likewise.
25599         * tests/unictype/test-pr_composite.c: Likewise.
25600         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25601         * tests/unictype/test-pr_dash.c: Likewise.
25602         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25603         * tests/unictype/test-pr_deprecated.c: Likewise.
25604         * tests/unictype/test-pr_diacritic.c: Likewise.
25605         * tests/unictype/test-pr_extender.c: Likewise.
25606         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25607         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25608         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25609         * tests/unictype/test-pr_id_continue.c: Likewise.
25610         * tests/unictype/test-pr_id_start.c: Likewise.
25611         * tests/unictype/test-pr_ideographic.c: Likewise.
25612         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25613         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25614         * tests/unictype/test-pr_lowercase.c: Likewise.
25615         * tests/unictype/test-pr_numeric.c: Likewise.
25616         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25617         * tests/unictype/test-pr_punctuation.c: Likewise.
25618         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25619         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25620         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25621         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25622         * tests/unictype/test-pr_uppercase.c: Likewise.
25623         * tests/unictype/test-pr_xid_continue.c: Likewise.
25624         * tests/unictype/test-pr_xid_start.c: Likewise.
25625         * tests/unictype/test-pr_zero_width.c: Likewise.
25626         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25627         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25628         changed behaviour: line breaking is now disallowed between a letter
25629         or '=' and '('.
25630         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25631         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25632         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25633         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25634         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25635         lib/uniwidth/width.c.
25636         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25637         without comments, but with the original copyright notice.
25638         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25639         changes.
25640         * lib/unictype/categ_Cc.h: Likewise.
25641         * lib/unictype/categ_Co.h: Likewise.
25642         * lib/unictype/categ_Cs.h: Likewise.
25643         * lib/unictype/categ_Lt.h: Likewise.
25644         * lib/unictype/categ_Me.h: Likewise.
25645         * lib/unictype/categ_Pc.h: Likewise.
25646         * lib/unictype/categ_Pe.h: Likewise.
25647         * lib/unictype/categ_Pf.h: Likewise.
25648         * lib/unictype/categ_Pi.h: Likewise.
25649         * lib/unictype/categ_Ps.h: Likewise.
25650         * lib/unictype/categ_Sk.h: Likewise.
25651         * lib/unictype/categ_Sm.h: Likewise.
25652         * lib/unictype/categ_Z.h: Likewise.
25653         * lib/unictype/categ_Zl.h: Likewise.
25654         * lib/unictype/categ_Zp.h: Likewise.
25655         * lib/unictype/categ_Zs.h: Likewise.
25656         * lib/unictype/ctype_blank.h: Likewise.
25657         * lib/unictype/ctype_cntrl.h: Likewise.
25658         * lib/unictype/ctype_digit.h: Likewise.
25659         * lib/unictype/ctype_space.h: Likewise.
25660         * lib/unictype/ctype_xdigit.h: Likewise.
25661         * lib/unictype/mirror.h: Likewise.
25662         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25663         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25664         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25665         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25666         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25667         * lib/unictype/pr_bidi_control.h: Likewise.
25668         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25669         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25670         * lib/unictype/pr_bidi_pdf.h: Likewise.
25671         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25672         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25673         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25674         * lib/unictype/pr_format_control.h: Likewise.
25675         * lib/unictype/pr_hex_digit.h: Likewise.
25676         * lib/unictype/pr_hyphen.h: Likewise.
25677         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25678         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25679         * lib/unictype/pr_iso_control.h: Likewise.
25680         * lib/unictype/pr_join_control.h: Likewise.
25681         * lib/unictype/pr_left_of_pair.h: Likewise.
25682         * lib/unictype/pr_line_separator.h: Likewise.
25683         * lib/unictype/pr_math.h: Likewise.
25684         * lib/unictype/pr_non_break.h: Likewise.
25685         * lib/unictype/pr_not_a_character.h: Likewise.
25686         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25687         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25688         * lib/unictype/pr_other_id_continue.h: Likewise.
25689         * lib/unictype/pr_other_id_start.h: Likewise.
25690         * lib/unictype/pr_other_lowercase.h: Likewise.
25691         * lib/unictype/pr_other_math.h: Likewise.
25692         * lib/unictype/pr_other_uppercase.h: Likewise.
25693         * lib/unictype/pr_paired_punctuation.h: Likewise.
25694         * lib/unictype/pr_paragraph_separator.h: Likewise.
25695         * lib/unictype/pr_pattern_syntax.h: Likewise.
25696         * lib/unictype/pr_pattern_white_space.h: Likewise.
25697         * lib/unictype/pr_private_use.h: Likewise.
25698         * lib/unictype/pr_quotation_mark.h: Likewise.
25699         * lib/unictype/pr_radical.h: Likewise.
25700         * lib/unictype/pr_soft_dotted.h: Likewise.
25701         * lib/unictype/pr_space.h: Likewise.
25702         * lib/unictype/pr_titlecase.h: Likewise.
25703         * lib/unictype/pr_variation_selector.h: Likewise.
25704         * lib/unictype/pr_white_space.h: Likewise.
25705         * lib/unictype/sy_c_ident.h: Likewise.
25706         * lib/unictype/sy_c_whitespace.h: Likewise.
25707         * lib/unictype/sy_java_whitespace.h: Likewise.
25708         * modules/uni*/*: Bump version number of expected libunistring version.
25709         Reported by Simon Josefsson.
25710
25711 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25712
25713         useless-if-before-free: fix typo in --help and make the internal,
25714         automatic version date update process work once again.
25715         --help output contained a NUL character instead of the
25716         backslash-zero that was intended.  Also, the "must lie within
25717         the first 8 lines" line is on line 9, and hence not getting
25718         automatically updated.
25719         * build-aux/useless-if-before-free: Fix the former by adding a
25720         backslash, and the latter by condensing the three lines of what-it-does
25721         to a single line, leaving one line of slack for the future.
25722
25723 2011-01-09  Bruno Haible  <bruno@clisp.org>
25724
25725         uniwidth/width: Fix width of U+1D173..U+1D17A.
25726         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25727         symbolic_width, output_width_property_test): New functions.
25728         (main): Invoke output_nonspacing_property, output_width_property_test.
25729         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25730         U+1D173..U+1D17A.
25731         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25732         1.
25733         * modules/uniwidth/*: Bump version number of expected libunistring
25734         version.
25735         * modules/unilbrk/*: Likewise.
25736
25737 2011-01-08  Bruno Haible  <bruno@clisp.org>
25738
25739         uninorm tests: Preserve copyright of Unicode data file.
25740         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25741         Mention modifications.
25742
25743 2011-01-08  Bruno Haible  <bruno@clisp.org>
25744
25745         gen-uni-tables: Prepare for Unicode 5.2.0.
25746         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25747         (debug_output_lbp, output_lbp): Update.
25748
25749 2011-01-08  Bruno Haible  <bruno@clisp.org>
25750
25751         unilbrk: Clarify gen-uni-tables.c code.
25752         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25753         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25754         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25755
25756 2011-01-07  Bruno Haible  <bruno@clisp.org>
25757
25758         strtod: Restore errno when successfully parsing Infinity or NaN.
25759         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25760         restore the original errno.
25761
25762 2011-01-07  Bruno Haible  <bruno@clisp.org>
25763
25764         remove test: Avoid failure on HP-UX 11.
25765         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25766
25767 2011-01-07  Bruno Haible  <bruno@clisp.org>
25768
25769         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25770         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25771         error code.
25772
25773 2011-01-07  Pádraig Brady <P@draigBrady.com>
25774
25775         ignore-value: fixup comments, and add Eric Blake
25776         as an author since he rewrote the macros.
25777         * lib/ignore-value.h (ignore_value):  State that
25778         we now support aggregates.  Also specify exactly
25779         when the GCC warn_unused_result feature was added.
25780
25781 2011-01-06  Eric Blake  <eblake@redhat.com>
25782
25783         ignore-value: support aggregate types
25784         * lib/ignore-value.h (ignore_value): Provide separate gcc
25785         definition.
25786         * modules/ignore-value-tests: New test module.
25787         * tests/test-ignore-value.c: New test.
25788
25789         maint.mk: improve sc_prohibit_strcmp regex
25790         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25791         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25792         definition of STRNEQ.
25793
25794         signal: work around Haiku issue with SIGBUS
25795         * lib/siglist.h: Add comment.
25796         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25797         strsignal's favoring of SIGSEGV.
25798         * tests/test-signal.c (main): Avoid test failure.
25799         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25800         Reported by Scott McCreary.
25801
25802         maint.mk: add pre-release check to ensure submodule commits are public
25803         * top/maint.mk (public-submodule-commit): New rule.
25804         (submodule-checks): New variable.
25805         (alpha beta stable): Depend on the variable.
25806
25807 2011-01-05  Pádraig Brady <P@draigBrady.com>
25808         and Jim Meyering  <meyering@redhat.com>
25809
25810         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25811         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25812         (ATTRIBUTE_DEPRECATED): Define.
25813         (_ignore_case): New function.
25814         (ignore_value): New macro, to replace the old function.
25815         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25816         * modules/ignore-value (Depends-on): Add stdint.
25817
25818 2011-01-04  Eric Blake  <eblake@redhat.com>
25819
25820         doc: regenerate INSTALL
25821         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25822         @firstparagraphindent support, now that autoconf dropped it.
25823         (INSTALL_PRELUDE): Reinstate old macro.
25824         * doc/install.texi: Resync from autoconf.
25825         * doc/INSTALL: Reflect recent autoconf update.
25826         * doc/INSTALL.ISO: Likewise.
25827         * doc/INSTALL.UTF-8: Likewise.
25828         Reported by Karl Berry.
25829
25830 2011-01-04  Bruce Korb  <address@hidden>
25831
25832         git-version-gen: avoid a sub-shell
25833         * build-aux/git-version-gen: Redirect stderr in `...` via
25834         "exec 2>...", rather than via an added sub-shell.
25835
25836 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25837
25838         git-version-gen: use (...) rather than sh -c '...'
25839         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25840         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25841
25842 2011-01-03  Jim Meyering  <meyering@redhat.com>
25843
25844         git-version-gen: convert leading TABs to spaces
25845         * build-aux/git-version-gen: Expand leading TABs.
25846
25847         git-version-gen: handle failed "git rev-list"
25848         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25849         from git and proceeding as if it had succeeded but printed no SHA1
25850         checksums, suppress the diagnostic and handle the failure.
25851         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25852
25853         git-version-gen: include command name in one more diagnostic
25854         * build-aux/git-version-gen: When the required .tarball-version file
25855         was missing or unreadable, you might see the diagnostic from "cat",
25856         but no trace of the name of the invoking script.  Now, you still see
25857         the diagnostic from cat, but also get one from "git-version-gen: ".
25858         Inspired by a patch from Bruce Korb.
25859
25860         update-copyright: adjust test to match changed code
25861         * tests/test-update-copyright.sh: Change test's expected output
25862         to match new actual output.
25863
25864 2011-01-02  Bruno Haible  <bruno@clisp.org>
25865
25866         getlogin_r: Avoid test failure on HP-UX 11.
25867         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25868         ERANGE when the second argument is zero.
25869         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25870         portability problem.
25871
25872 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25873
25874         * build-aux/update-copyright: doc Simon's changes
25875
25876 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25877
25878         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25879         environment variable.
25880
25881 2011-01-02  Bruno Haible  <bruno@clisp.org>
25882
25883         unigbrk: Avoid gcc warnings.
25884         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25885         unused variable.
25886         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25887         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25888         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25889         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25890         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25891         Change type of first argument to 'const char *'.
25892         (main): Remove unused variable.
25893         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25894         type of first argument to 'const char *'.
25895         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25896         Likewise.
25897         (main): Change type of variable 's'.
25898         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25899         to 'int'.
25900
25901 2011-01-02  Bruno Haible  <bruno@clisp.org>
25902
25903         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25904         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25905         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25906         bug.
25907         * lib/pwrite.c: Undo 2010-12-31 patch.
25908         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25909
25910 2011-01-02  Bruno Haible  <bruno@clisp.org>
25911
25912         pread: Fix test whether it works.
25913         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25914
25915 2011-01-02  Bruno Haible  <bruno@clisp.org>
25916
25917         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25918         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25919         ends in "6". Don't require a specific month name. Try also the locale
25920         names found on HP-UX 11 and Solaris 7.
25921
25922 2011-01-02  Bruno Haible  <bruno@clisp.org>
25923
25924         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25925         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25926         C linkage.
25927         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25928
25929 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25930
25931         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25932         for consistency, since the "cluster" term is not used elsewhere.
25933         * lib/unigbrk.in.h: Update name.
25934         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25935         * lib/unigbrk/u16-grapheme-next.c: Update name.
25936         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25937         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25938         * lib/unigbrk/u32-grapheme-next.c: Update name.
25939         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25940         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25941         * lib/unigbrk/u8-grapheme-next.c: Update name.
25942         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25943         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25944         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25945         Suggested by Bruno Haible.
25946
25947 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25948
25949         Remove module 'u8-grapheme-len' as too redundant with
25950         'u8-grapheme-next'.
25951         * modules/unigbrk/u8-grapheme-len: Delete file.
25952         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25953         * lib/unigbrk.in.h: Remove prototype for deleted function.
25954         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25955         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25956
25957         Remove module 'u16-grapheme-len' as too redundant with
25958         'u16-grapheme-next'.
25959         * modules/unigbrk/u16-grapheme-len: Delete file.
25960         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25961         * lib/unigbrk.in.h: Remove prototype for deleted function.
25962         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25963         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25964
25965         Remove module 'u32-grapheme-len' as too redundant with
25966         'u32-grapheme-next'.
25967         * modules/unigbrk/u32-grapheme-len: Delete file.
25968         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25969         * lib/unigbrk.in.h: Remove prototype for deleted function.
25970         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25971         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25972
25973         Suggested by Bruno Haible.
25974
25975 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25976
25977         * unigbrk.in.h: Fix typo: "ben" => "been".
25978         Reported by Bruno Haible.
25979
25980 2011-01-01  Jim Meyering  <meyering@redhat.com>
25981
25982         maint: update almost all copyright ranges to include 2011
25983         Run the new "make update-copyright" rule.
25984
25985 2011-01-01  Jim Meyering  <meyering@redhat.com>
25986
25987         maint: update-copyright: exempt doc/INSTALL*
25988         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25989         since they are generated.  Suggested by Bruno Haible.
25990
25991 2011-01-01  Jim Meyering  <meyering@redhat.com>
25992
25993         maint: refine the update-copyright rule
25994         * Makefile (update-copyright): Also exclude any file that includes
25995         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25996         code that merely generates the comment.
25997
25998 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25999
26000         New module 'u8-grapheme-len'.
26001         * modules/unigbrk/u8-grapheme-len: New file.
26002         * modules/unigbrk/u8-grapheme-len-tests: New file.
26003         * lib/unigbrk.in.h: Add prototype for new function.
26004         * lib/unigbrk/u8-grapheme-len.c: New file.
26005         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26006
26007         New module 'u16-grapheme-len'.
26008         * modules/unigbrk/u16-grapheme-len: New file.
26009         * modules/unigbrk/u16-grapheme-len-tests: New file.
26010         * lib/unigbrk.in.h: Add prototype for new function.
26011         * lib/unigbrk/u16-grapheme-len.c: New file.
26012         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26013
26014         New module 'u32-grapheme-len'.
26015         * modules/unigbrk/u32-grapheme-len: New file.
26016         * modules/unigbrk/u32-grapheme-len-tests: New file.
26017         * lib/unigbrk.in.h: Add prototype for new function.
26018         * lib/unigbrk/u32-grapheme-len.c: New file.
26019         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26020
26021         New module 'u8-grapheme-next'.
26022         * modules/unigbrk/u8-grapheme-next: New file.
26023         * modules/unigbrk/u8-grapheme-next-tests: New file.
26024         * lib/unigbrk.in.h: Add prototype for new function.
26025         * lib/unigbrk/u8-grapheme-next.c: New file.
26026         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26027
26028         New module 'u16-grapheme-next'.
26029         * modules/unigbrk/u16-grapheme-next: New file.
26030         * modules/unigbrk/u16-grapheme-next-tests: New file.
26031         * lib/unigbrk.in.h: Add prototype for new function.
26032         * lib/unigbrk/u16-grapheme-next.c: New file.
26033         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26034
26035         New module 'u32-grapheme-next'.
26036         * modules/unigbrk/u32-grapheme-next: New file.
26037         * modules/unigbrk/u32-grapheme-next-tests: New file.
26038         * lib/unigbrk.in.h: Add prototype for new function.
26039         * lib/unigbrk/u32-grapheme-next.c: New file.
26040         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26041
26042         New module 'u8-grapheme-prev'.
26043         * modules/unigbrk/u8-grapheme-prev: New file.
26044         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26045         * lib/unigbrk.in.h: Add prototype for new function.
26046         * lib/unigbrk/u8-grapheme-prev.c: New file.
26047         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26048
26049         New module 'u16-grapheme-prev'.
26050         * modules/unigbrk/u16-grapheme-prev: New file.
26051         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26052         * lib/unigbrk.in.h: Add prototype for new function.
26053         * lib/unigbrk/u16-grapheme-prev.c: New file.
26054         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26055
26056         New module 'u32-grapheme-prev'.
26057         * modules/unigbrk/u32-grapheme-prev: New file.
26058         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26059         * lib/unigbrk.in.h: Add prototype for new function.
26060         * lib/unigbrk/u32-grapheme-prev.c: New file.
26061         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26062
26063         New module 'u8-grapheme-breaks'.
26064         * modules/unigbrk/u8-grapheme-breaks: New file.
26065         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26066         * lib/unigbrk.in.h: Add prototype for new function.
26067         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26068         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26069
26070         New module 'u16-grapheme-breaks'.
26071         * modules/unigbrk/u16-grapheme-breaks: New file.
26072         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26073         * lib/unigbrk.in.h: Add prototype for new function.
26074         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26075         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26076
26077         New module 'u32-grapheme-breaks'.
26078         * modules/unigbrk/u32-grapheme-breaks: New file.
26079         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26080         * lib/unigbrk.in.h: Add prototype for new function.
26081         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26082         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26083
26084         New module 'ulc-grapheme-breaks'.
26085         * modules/unigbrk/ulc-grapheme-breaks: New file.
26086         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26087         * m4/locale-ar.m4: New file.
26088         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26089         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26090         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26091
26092 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26093
26094         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26095         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26096         modified how this file was generated before I initially submitted
26097         the module, but failed to regenerate it.  This meant that several
26098         of the level2 entries were wrong.
26099         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26100         Remove the division-by-2 that is folded into the table now that
26101         gbrkprop.h has been regenerated properly.  Now -1 entries are
26102         handled correctly.
26103
26104         New module 'unigbrk/uc-gbrk-prop-tests'.
26105         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26106         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26107         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26108         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26109
26110 2011-01-01  Bruno Haible  <bruno@clisp.org>
26111
26112         Avoid use of hexadecimal escapes.
26113         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26114         instead of hexadecimal escapes.
26115
26116 2011-01-01  Jim Meyering  <meyering@redhat.com>
26117
26118         maint: new rule to update copyright year ranges
26119         * Makefile (update-copyright): New rule.
26120
26121         maint: indent with TABs in Makefile
26122         * Makefile: Expand leading sequences of spaces to TABs
26123
26124         version-etc: update the copyright year it reports
26125         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26126
26127 2010-12-31  Bruno Haible  <bruno@clisp.org>
26128
26129         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26130         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26131         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26132         zero.
26133
26134 2010-12-31  Bruno Haible  <bruno@clisp.org>
26135
26136         pwrite: Work around HP-UX 11.11 bug.
26137         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26138         works and set REPLACE_PWRITE if not.
26139         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26140         function.
26141         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26142
26143 2010-12-31  Bruno Haible  <bruno@clisp.org>
26144
26145         pread: Work around HP-UX 11 bugs.
26146         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26147         and set REPLACE_PREAD if not.
26148         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26149
26150 2010-12-31  Eric Blake  <eblake@redhat.com>
26151
26152         nl_langinfo: fix YESEXPR on Irix 6.5
26153         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26154         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26155         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26156         it.
26157
26158 2010-12-31  Bruno Haible  <bruno@clisp.org>
26159
26160         iconv: Document HP-UX 11 bug.
26161         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26162
26163 2010-12-31  Bruno Haible  <bruno@clisp.org>
26164
26165         ldexpl: Fix link error on HP-UX 11.
26166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26167         LDEXPL_LIBM, using $ISNANL_LIBM.
26168
26169 2010-12-31  Eric Blake  <eblake@redhat.com>
26170
26171         ftello: avoid compilation failure with SunStudio c89
26172         * lib/ftello.c (ftello): Use lseek, not llseek.
26173
26174         tests: avoid failing coreutils tests on cygwin
26175         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26176         (create_exe_shims_): Return 0 when skipping.
26177
26178 2010-12-31  Bruno Haible  <bruno@clisp.org>
26179
26180         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26181         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26182
26183 2010-12-31  Bruno Haible  <bruno@clisp.org>
26184
26185         waitpid: Fix link error in C++ mode.
26186         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26187
26188 2010-12-31  Bruno Haible  <bruno@clisp.org>
26189
26190         isnan: Use GCC built-ins when possible.
26191         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26192         __builtin_isnan.
26193         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26194         (isnan): Define using GCC built-ins for GCC >= 4.0.
26195
26196 2010-12-31  Bruno Haible  <bruno@clisp.org>
26197
26198         isnand: Fix mistake.
26199         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26200         __builtin_isnand.
26201
26202 2010-12-31  Bruno Haible  <bruno@clisp.org>
26203
26204         open: Avoid C++ error on HP-UX 11.
26205         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26206
26207 2010-12-31  Bruno Haible  <bruno@clisp.org>
26208
26209         time_r: Add missing declarations on HP-UX 11.
26210         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26211         instead of HAVE_LOCALTIME_R.
26212         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26213         HAVE_LOCALTIME_R always.
26214         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26215         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26216         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26217         HAVE_LOCALTIME_R.
26218         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26219         * doc/posix-functions/localtime_r.texi: Likewise.
26220
26221 2010-12-29  Eric Blake  <eblake@redhat.com>
26222
26223         mountlist: tweak previous commit
26224         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26225         Reported by Paul Eggert.
26226
26227         mountlist: fix local drive detection on cygwin
26228         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26229         that works for cygwin.
26230
26231 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26232
26233         ftoastr, snprintf: ftoastr + snprintf module
26234         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26235         since the snprintf module now should be good enough here.
26236         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26237         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26238         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26239         GNULIB_SNPRINTF only for the test directory, and the latter
26240         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26241         seems to suffice by itself.
26242
26243 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26244
26245         alloca: one step towards thread-safety
26246         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26247         need for a static variable.  All callers changed.  This does not
26248         make the alloca replacement thread-safe, but it's one step.
26249
26250         tests: minor indenting change
26251         * tests/init.sh: Sync from coreutils housekeeping patch
26252         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26253         to keep lines within 80 columns.
26254
26255 2010-12-28  Jim Meyering  <meyering@redhat.com>
26256
26257         regex: don't infloop on persistent failing calloc
26258         * lib/regexec.c (build_trtable): Return failure indication upon
26259         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26260         In glibc, this was fixed for version 2.13:
26261         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26262
26263 2010-12-28  Bruno Haible  <bruno@clisp.org>
26264             Paul Eggert <eggert@cs.ucla.edu>
26265
26266         linkat: Make implementation robust against system behaviour variations.
26267         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26268         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26269         way, and to -2 if it needs a generic runtime test.
26270         * lib/linkat.c (solaris_optimized_link_immediate,
26271         solaris_optimized_link_follow): New functions.
26272         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26273         (check_same_link): Use it.
26274
26275 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26276
26277         New module 'unigbrk/base'.
26278         * modules/unigbrk/base: New file.
26279         * lib/unigbrk.in.h: New file.
26280
26281         New module 'unigbrk/uc-gbrk-prop'.
26282         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26283         * modules/unigbrk/uc-gbrk-prop: New file.
26284         * lib/unigbrk/gbrkprop.h: New file.
26285         * lib/unigbrk/uc-gbrk-prop.c: New file.
26286
26287         New module 'unigbrk/uc-is-grapheme-break'.
26288         * modules/unigbrk/uc-is-grapheme-break: New file.
26289         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26290         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26291         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26292         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26293         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26294
26295         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26296
26297 2010-12-27  Bruno Haible  <bruno@clisp.org>
26298
26299         linkat test: Avoid failure on Solaris 11 2010-11.
26300         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26301
26302 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26303
26304         utimens: work around glibc rounding bug on more platforms
26305         * lib/utimens.c (fdutimens): Work around rounding bug even if
26306         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26308
26309 2010-12-27  Bruno Haible  <bruno@clisp.org>
26310
26311         select tests: Improve comments.
26312         * tests/test-select.c (do_select): Add comments.
26313
26314 2010-12-27  Bruno Haible  <bruno@clisp.org>
26315
26316         select tests: Safer way of handling timeout.
26317         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26318         at every invocation.
26319
26320 2010-12-27  Bruno Haible  <bruno@clisp.org>
26321
26322         select tests: Use 'bool' where appropriate.
26323         * tests/test-select.c (connect_to_socket): Change argument type to
26324         'bool'.
26325
26326 2010-12-27  Bruno Haible  <bruno@clisp.org>
26327
26328         select tests: Use existing modules.
26329         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26330         (configure.ac): Don't test for unistd.h.
26331         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26332         declared in <unistd.h>.
26333
26334 2010-12-27  Bruno Haible  <bruno@clisp.org>
26335
26336         mbrtowc: Work around a Solaris 7 bug.
26337         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26338         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26339         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26340         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26341         MBRTOWC_NULL_ARG1_BUG.
26342         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26343         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26344         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26345         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26346
26347 2010-12-27  Jim Meyering  <meyering@redhat.com>
26348
26349         read-file.c: tweak syntax
26350         * lib/read-file.c (fread_file): Remove space after "*" in function
26351         definitions.
26352
26353 2010-12-27  Bruno Haible  <bruno@clisp.org>
26354
26355         times test: Avoid gcc warnings on OSF/1.
26356         * tests/test-times.c (main): Cast printf arguments from clock_t to
26357         'long int'.
26358
26359 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26360
26361         utimens: work around glibc rounding bug on older Linux kernels
26362         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26363         on Linux with a glibc whose utimes might not work, then work
26364         around a longstanding glibc bug involving rounding rather than
26365         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26366         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26367
26368 2010-12-26  Bruno Haible  <bruno@clisp.org>
26369
26370         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26371         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26372         _GL_CXXALIAS_SYS.
26373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26374
26375 2010-12-26  Bruno Haible  <bruno@clisp.org>
26376
26377         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26378         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26379         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26380         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26381         looking for the declaration.
26382         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26383         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26384         problem.
26385         * doc/posix-functions/inet_pton.texi: Likewise.
26386
26387 2010-12-26  Bruno Haible  <bruno@clisp.org>
26388
26389         arpa_inet: Use the common idioms with C++ support.
26390         * lib/arpa_inet.in.h: Include c++defs.h.
26391         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26392         support.
26393         * modules/arpa_inet (Depends-on): Add c++defs.
26394         (Makefile.am): Substitute the contents of c++defs.h.
26395         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26396         * modules/arpa_inet-c++-tests: New file.
26397         * tests/test-arpa_inet-c++.cc: New file.
26398
26399 2010-12-25  Bruno Haible  <bruno@clisp.org>
26400
26401         Fix more C++ link errors on Solaris 8.
26402         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26403         $(LIB_EACCESS).
26404         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26405         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26406         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26407         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26408         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26409
26410 2010-12-25  Bruno Haible  <bruno@clisp.org>
26411
26412         printf-posix: Fix link error when a non-GCC compiler is used.
26413         * lib/stdio.in.h (printf): When not using GCC, override printf
26414         correctly.
26415         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26416
26417 2010-12-25  Bruno Haible  <bruno@clisp.org>
26418
26419         strerror_r-posix: Update doc.
26420         * doc/posix-functions/strerror_r.texi: Update doc about the return
26421         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26422
26423 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26424
26425         utimens: simplify the logic of the previous change
26426         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26427         This should not affect whether the test succeeds or fails.
26428
26429         utimens: configure better on hosts with NFS clock skew
26430         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26431         uses the clock of the local host.  It might use the clock of the
26432         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26434
26435 2010-12-25  Bruno Haible  <bruno@clisp.org>
26436
26437         ptsname test: Avoid failure on Solaris.
26438         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26439         open a pseudo-terminal; don't use BSD-style ptys.
26440         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26441
26442 2010-12-25  Bruno Haible  <bruno@clisp.org>
26443
26444         ptsname: Avoid ERANGE failure on some systems.
26445         * lib/ptsname.c (buffer): Increase size.
26446
26447 2010-12-25  Bruno Haible  <bruno@clisp.org>
26448
26449         rename, renameat: Avoid test failures at NFS mounted locations.
26450         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26451         so that subsequent mkdir calls succeed.
26452
26453 2010-12-25  Bruno Haible  <bruno@clisp.org>
26454
26455         iswblank: Fix C++ link error on Solaris 8.
26456         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26457         _GL_FUNCDECL_SYS.
26458
26459 2010-12-25  Bruno Haible  <bruno@clisp.org>
26460
26461         unistd: Fix C++ link error on Solaris 8.
26462         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26463
26464 2010-12-25  Bruno Haible  <bruno@clisp.org>
26465
26466         readlink doc: Mention an old glibc bug.
26467         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26468
26469 2010-12-25  Bruno Haible  <bruno@clisp.org>
26470
26471         fcntl-h: Fix for use of C++ on glibc systems.
26472         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26473         also on glibc systems in C++ mode.
26474         Reported by Gary V. Vaughan <gary@gnu.org>.
26475
26476 2010-12-25  Bruno Haible  <bruno@clisp.org>
26477
26478         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26479         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26480
26481 2010-12-25  Bruno Haible  <bruno@clisp.org>
26482
26483         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26484         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26485         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26486         test whether truncl works according to ISO C 99 with IEC 60559.
26487         * m4/truncl-ieee.m4: New file.
26488         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26489         m4/signbit.m4.
26490         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26491
26492 2010-12-25  Bruno Haible  <bruno@clisp.org>
26493
26494         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26495         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26496         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26497         test whether ceill works according to ISO C 99 with IEC 60559.
26498         * m4/ceill-ieee.m4: New file.
26499         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26500         m4/signbit.m4.
26501         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26502
26503 2010-12-25  Bruno Haible  <bruno@clisp.org>
26504
26505         Ensure all prerequisites of <wchar.h> are included.
26506         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26507         before <wchar.h>.
26508         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26509         gl_MBRLEN_NUL_RETVAL): Likewise.
26510         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26511         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26512         AC_FUNC_MBRTOWC): Likewise.
26513         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26514         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26515         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26516         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26517         Likewise.
26518         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26519         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26520         (gl_WCHAR_H): Improve comments.
26521         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26522
26523 2010-12-25  Bruno Haible  <bruno@clisp.org>
26524
26525         strtok_r: Fix C syntax error in autoconf macro.
26526         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26527         characters in test program.
26528
26529 2010-12-24  Bruno Haible  <bruno@clisp.org>
26530
26531         ceil, trunc, round: Fix gcc warnings.
26532         * lib/ceil.c (MIN): Undefine before redefining.
26533         * lib/trunc.c (MIN): Likewise.
26534         * lib/round.c (MIN): Likewise.
26535         Include <math.h> first.
26536
26537 2010-12-24  Bruno Haible  <bruno@clisp.org>
26538
26539         select tests: Avoid failures on OSF/1 5.1.
26540         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26541         failure of closing the last socket; it may fail with ECONNRESET.
26542
26543 2010-12-24  Eric Blake  <eblake@redhat.com>
26544
26545         stdint: avoid HP-UX 10.20 preprocessor bug
26546         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26547         than #if.
26548         * tests/test-floor2.c (main): Likewise.
26549         Reported by Peter O'Gorman.
26550
26551         pipe: make obsoletion transition easier
26552         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26553         * modules/pipe (Files): Include revived file.
26554         (Include): Drop reference, to mirror getdate's behavior.
26555
26556 2010-12-24  Bruno Haible  <bruno@clisp.org>
26557
26558         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26559         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26560         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26562
26563 2010-12-24  Bruno Haible  <bruno@clisp.org>
26564
26565         gethostname: Ensure declaration on NonStop Kernel.
26566         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26567         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26568
26569 2010-12-24  Bruno Haible  <bruno@clisp.org>
26570
26571         sys_select: Ensure all necessary types on NonStop Kernel.
26572         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26573         include <sys/time.h>.
26574         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26575         NonStop Kernel.
26576         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26577
26578 2010-12-24  Bruno Haible  <bruno@clisp.org>
26579
26580         sys_select: Remove unneeded include.
26581         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26582         have <sys/select.h>.
26583
26584 2010-12-24  Bruno Haible  <bruno@clisp.org>
26585
26586         gethostname: Provide a fallback for HOST_NAME_MAX.
26587         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26588         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26589         instead.
26590         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26591
26592 2010-12-24  Bruno Haible  <bruno@clisp.org>
26593
26594         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26595         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26596         (SA_RESTART): Likewise.
26597         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26598
26599 2010-12-24  Bruno Haible  <bruno@clisp.org>
26600
26601         signal: Define NSIG.
26602         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26603         * tests/test-signal.c (nsig): New variable.
26604         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26605
26606 2010-12-24  Bruno Haible  <bruno@clisp.org>
26607
26608         rename, renameat: Avoid test failures on OSF/1 5.1.
26609         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26610         alternative error codes.
26611         * tests/test-renameat.c (main): Likewise.
26612
26613 2010-12-24  Bruno Haible  <bruno@clisp.org>
26614
26615         *printf: Detect large precisions bug on Solaris 10/SPARC.
26616         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26617         by Paul Eggert.
26618         * tests/test-snprintf-posix.h (test_function): Add this test code here
26619         too.
26620         * tests/test-sprintf-posix.h (test_function): Likewise.
26621         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26622         * tests/test-vasprintf-posix.c (test_function): Likewise.
26623         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26624         around by gnulib.
26625         * doc/posix-functions/printf.texi: Likewise.
26626         * doc/posix-functions/snprintf.texi: Likewise.
26627         * doc/posix-functions/sprintf.texi: Likewise.
26628         * doc/posix-functions/vfprintf.texi: Likewise.
26629         * doc/posix-functions/vprintf.texi: Likewise.
26630         * doc/posix-functions/vsnprintf.texi: Likewise.
26631         * doc/posix-functions/vsprintf.texi: Likewise.
26632         * doc/posix-functions/dprintf.texi: Undo last commit.
26633         * doc/posix-functions/vdprintf.texi: Likewise.
26634
26635 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26636
26637         tests: port test-fdutimensat.c to Solaris 8
26638         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26639         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26640         On Solaris 8, it fails with errno == ENOSYS, because there is no
26641         futimens (so it can't use the fd), and there is no lutimens (so it
26642         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26643
26644         vsnprintf: make more consistent with snprintf; doc fixes
26645
26646         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26647         the byte count return problem was promoted from the snprintf-posix
26648         to the snprintf module.
26649         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26650         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26651         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26652         * tests/test-snprintf.c (main): Check the byte count returned.
26653         * tests/test-vsnprintf.c (main): Likewise.
26654
26655 2010-12-23  Eric Blake  <eblake@redhat.com>
26656
26657         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26658         * modules/sigpipe (License): Relax license.
26659
26660 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26661
26662         doc: document Solaris printf bug with large float precisions
26663         * doc/posix-functions/dprintf.texi (dprintf):
26664         * doc/posix-functions/fprintf.texi (fprintf):
26665         * doc/posix-functions/printf.texi (printf):
26666         * doc/posix-functions/snprintf.texi (snprintf):
26667         * doc/posix-functions/sprintf.texi (sprintf):
26668         * doc/posix-functions/vdprintf.texi (vdprintf):
26669         * doc/posix-functions/vfprintf.texi (vfprintf):
26670         * doc/posix-functions/vprintf.texi (vprintf):
26671         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26672         * doc/posix-functions/vsprintf.texi (vsprintf):
26673         Mention that these functions mishandle large floating point
26674         precisions on Solaris 10.  The same bug is also present in Solaris
26675         8, and I assume earlier.  This causes "cd gnulib-tests; make
26676         check" to fail on Solaris 8 (and I assume, later) when building
26677         the latest coreutils, in test-vasprintf-posix's call to
26678         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26679         the wide flavors (e.g., wprintf) so this patch just updates the
26680         documentation for the narrow ones.
26681
26682         test-posixtm.c: add two tests
26683         * tests/test-posixtm.c: Add two tests, to highlight the
26684         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26685         around this bug; this is merely to document it.
26686
26687 2010-12-22  Bruno Haible  <bruno@clisp.org>
26688
26689         getlogin_r: Work around portability problem on OSF/1.
26690         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26691         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26692         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26693         test for a truncated result.
26694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26695         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26696         * modules/getlogin_r (Depends-on): Add memchr.
26697         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26698
26699 2010-12-22  Bruno Haible  <bruno@clisp.org>
26700
26701         ptsname: Avoid test failure on OSF/1 5.1.
26702         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26703         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26704         (same_slave): New function.
26705         (main): Use it to compare ptsname's result with the expected file name.
26706
26707 2010-12-22  Bruno Haible  <bruno@clisp.org>
26708
26709         Port extended stdio modules to HP NonStop Kernel.
26710         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26711         macros.
26712         * lib/fbufmode.c: Update comments.
26713         * lib/fflush.c: Likewise.
26714         * lib/fpurge.c: Likewise.
26715         * lib/freadable.c: Likewise.
26716         * lib/freadahead.c: Likewise.
26717         * lib/freading.c: Likewise.
26718         * lib/freadptr.c: Likewise.
26719         * lib/freadseek.c: Likewise.
26720         * lib/fseeko.c: Likewise.
26721         * lib/fseterr.c: Likewise.
26722         * lib/fwritable.c: Likewise.
26723         * lib/fwriting.c: Likewise.
26724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26725
26726 2010-12-22  Bruno Haible  <bruno@clisp.org>
26727
26728         ttyname_r: Work around bug on OSF/1 5.1.
26729         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26730         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26731         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26732         present.
26733         * lib/ttyname_r.c (ttyname_r): Update comments.
26734
26735 2010-12-22  Bruno Haible  <bruno@clisp.org>
26736
26737         round: Implement result sign according to IEEE 754.
26738         * lib/round.c (MIN, MINUS_ZERO): New macros.
26739         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26740         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26741         * tests/test-round-ieee.c (main): Likewise.
26742         * tests/test-roundl-ieee.c (main): Likewise.
26743
26744         trunc: Implement result sign according to IEEE 754.
26745         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26746         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26747         * tests/test-trunc2.c: Include minus-zero.h.
26748         (MINUS_ZERO): New macro.
26749         (trunc_reference): Keep in sync with lib/trunc.c.
26750         * tests/test-truncf2.c: Include minus-zero.h.
26751         (MINUS_ZERO): New macro.
26752         (truncf_reference): Keep in sync with lib/trunc.c.
26753         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26754         * tests/test-trunc-ieee.c (main): Likewise.
26755         * tests/test-truncl-ieee.c (main): Likewise.
26756
26757         ceil: Implement result sign according to IEEE 754.
26758         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26759         (FUNC): Return -0.0 for -1 < x < 0.
26760         * tests/test-ceil2.c: Include minus-zero.h.
26761         (MINUS_ZERO): New macro.
26762         (ceil_reference): Keep in sync with lib/ceil.c.
26763         * tests/test-ceilf2.c: Include minus-zero.h.
26764         (MINUS_ZERO): New macro.
26765         (ceilf_reference): Keep in sync with lib/ceil.c.
26766         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26767         * tests/test-ceil-ieee.c (main): Likewise.
26768         * tests/test-ceill-ieee.c (main): Likewise.
26769
26770         floor: Implement result sign according to IEEE 754.
26771         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26772         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26773         * tests/test-floorf2.c (floorf_reference): Likewise.
26774         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26775         * tests/test-floor-ieee.c (main): Likewise.
26776         * tests/test-floorl-ieee.c (main): Likewise.
26777
26778 2010-12-22  Bruno Haible  <bruno@clisp.org>
26779
26780         getaddrinfo: Update doc.
26781         * doc/posix-functions/gai_strerror.texi: Return type is also different
26782         on AIX and HP-UX.
26783
26784 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26785
26786         getaddrinfo, inet_ntop: Update doc for Solaris.
26787         * doc/posix-functions/gai_strerror.texi: Return type is also an
26788         issue on Solaris 9 and earlier.
26789         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26790         on Solaris 10 and earlier.
26791
26792 2010-12-21  Bruno Haible  <bruno@clisp.org>
26793
26794         New module 'roundl-ieee'.
26795         * modules/roundl-ieee: New file.
26796         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26797         test whether roundl works according to ISO C 99 with IEC 60559.
26798         * m4/roundl-ieee.m4: New file.
26799         * modules/roundl-ieee-tests: New file.
26800         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26801         * tests/test-roundl.c (main): Remove signbit tests.
26802         * modules/roundl-tests (Depends-on): Remove signbit.
26803         * doc/posix-functions/roundl.texi: Mention the new module.
26804
26805 2010-12-21  Bruno Haible  <bruno@clisp.org>
26806
26807         New module 'truncl-ieee'.
26808         * modules/truncl-ieee: New file.
26809         * modules/truncl-ieee-tests: New file.
26810         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26811         * tests/test-truncl.c (main): Remove signbit tests.
26812         * modules/truncl-tests (Depends-on): Remove signbit.
26813         * doc/posix-functions/truncl.texi: Mention the new module.
26814
26815 2010-12-21  Bruno Haible  <bruno@clisp.org>
26816
26817         New module 'ceill-ieee'.
26818         * modules/ceill-ieee: New file.
26819         * modules/ceill-ieee-tests: New file.
26820         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26821         * tests/test-ceill.c (main): Remove signbit tests.
26822         * modules/ceill-tests (Depends-on): Remove signbit.
26823         * doc/posix-functions/ceill.texi: Mention the new module.
26824
26825 2010-12-21  Bruno Haible  <bruno@clisp.org>
26826
26827         New module 'floorl-ieee'.
26828         * modules/floorl-ieee: New file.
26829         * modules/floorl-ieee-tests: New file.
26830         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26831         * tests/test-floorl.c (main): Remove signbit tests.
26832         * modules/floorl-tests (Depends-on): Remove signbit.
26833         * doc/posix-functions/floorl.texi: Mention the new module.
26834
26835 2010-12-21  Bruno Haible  <bruno@clisp.org>
26836
26837         New module 'round-ieee'.
26838         * modules/round-ieee: New file.
26839         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26840         whether round works according to ISO C 99 with IEC 60559.
26841         * m4/round-ieee.m4: New file.
26842         * modules/round-ieee-tests: New file.
26843         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26844         * tests/test-round1.c (main): Remove signbit tests.
26845         * modules/round-tests (Depends-on): Remove 'signbit'.
26846         * doc/posix-functions/round.texi: Mention the new module.
26847
26848 2010-12-21  Bruno Haible  <bruno@clisp.org>
26849
26850         New module 'trunc-ieee'.
26851         * modules/trunc-ieee: New file.
26852         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26853         whether trunc works according to ISO C 99 with IEC 60559.
26854         * m4/trunc-ieee.m4: New file.
26855         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26857         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26858         * modules/trunc-ieee-tests: New file.
26859         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26860         * tests/test-trunc1.c (main): Remove signbit tests.
26861         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26862         * doc/posix-functions/trunc.texi: Mention the new module.
26863
26864 2010-12-21  Bruno Haible  <bruno@clisp.org>
26865
26866         New module 'ceil-ieee'.
26867         * modules/ceil-ieee: New file.
26868         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26869         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26870         ISO C 99 with IEC 60559.
26871         * m4/ceil-ieee.m4: New file.
26872         * modules/ceil (Files): Add lib/ceil.c.
26873         (Depends-on): Add 'float'.
26874         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26875         * lib/math.in.h (ceil): New declaration.
26876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26877         REPLACE_CEIL.
26878         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26879         * modules/ceil-ieee-tests: New file.
26880         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26881         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26882         * doc/posix-functions/ceil.texi: Mention the new module.
26883
26884 2010-12-21  Bruno Haible  <bruno@clisp.org>
26885
26886         New module 'floor-ieee'.
26887         * modules/floor-ieee: New file.
26888         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26889         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26890         ISO C 99 with IEC 60559.
26891         * m4/floor-ieee.m4: New file.
26892         * modules/floor (Files): Add lib/floor.c.
26893         (Depends-on): Add 'float'.
26894         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26895         * lib/math.in.h (floor): New declaration.
26896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26897         REPLACE_FLOOR.
26898         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26899         * modules/floor-ieee-tests: New file.
26900         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26901         * tests/test-math-c++.cc: Check the signature of 'floor'.
26902         * doc/posix-functions/floor.texi: Mention the new module.
26903
26904 2010-12-21  Bruno Haible  <bruno@clisp.org>
26905
26906         New module 'roundf-ieee'.
26907         * modules/roundf-ieee: New file.
26908         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26909         test whether roundf works according to ISO C 99 with IEC 60559.
26910         * m4/roundf-ieee.m4: New file.
26911         * modules/roundf-ieee-tests: New file.
26912         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26913         * tests/test-roundf1.c (main): Remove signbit tests.
26914         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26915         * doc/posix-functions/roundf.texi: Mention the new module.
26916
26917 2010-12-21  Bruno Haible  <bruno@clisp.org>
26918
26919         New module 'truncf-ieee'.
26920         * modules/truncf-ieee: New file.
26921         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26922         test whether truncf works according to ISO C 99 with IEC 60559.
26923         * m4/truncf-ieee.m4: New file.
26924         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26926         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26927         * modules/truncf-ieee-tests: New file.
26928         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26929         * tests/test-truncf1.c (main): Remove signbit tests.
26930         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26931         * doc/posix-functions/truncf.texi: Mention the new module.
26932
26933 2010-12-21  Bruno Haible  <bruno@clisp.org>
26934
26935         New module 'ceilf-ieee'.
26936         * modules/ceilf-ieee: New file.
26937         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26938         test whether ceilf works according to ISO C 99 with IEC 60559.
26939         * m4/ceilf-ieee.m4: New file.
26940         * modules/ceilf-ieee-tests: New file.
26941         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26942         * tests/test-ceilf1.c (main): Remove signbit tests.
26943         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26944         * doc/posix-functions/ceilf.texi: Mention the new module.
26945
26946 2010-12-21  Bruno Haible  <bruno@clisp.org>
26947
26948         New module 'floorf-ieee'.
26949         * modules/floorf-ieee: New file.
26950         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26951         test whether floorf works according to ISO C 99 with IEC 60559.
26952         * m4/floorf-ieee.m4: New file.
26953         * modules/floorf-ieee-tests: New file.
26954         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26955         * tests/test-floorf1.c (main): Remove signbit tests.
26956         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26957         * doc/posix-functions/floorf.texi: Mention the new module.
26958
26959 2010-12-21  Bruno Haible  <bruno@clisp.org>
26960
26961         Support for minus zero in autoconf macros.
26962         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26963         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26964         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26965         * tests/minus-zero.h: Update comments.
26966
26967 2010-12-21  Bruno Haible  <bruno@clisp.org>
26968
26969         Tests for module 'ceil'.
26970         * modules/ceil-tests: New file.
26971         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26972         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26973
26974 2010-12-21  Bruno Haible  <bruno@clisp.org>
26975
26976         Tests for module 'floor'.
26977         * modules/floor-tests: New file.
26978         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26979         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26980
26981 2010-12-21  Bruno Haible  <bruno@clisp.org>
26982
26983         math: Fix indentation.
26984         * lib/math.in.h (floorf): Fix indentation.
26985
26986 2010-12-21  Bruno Haible  <bruno@clisp.org>
26987
26988         Fix cross-compilation guesses on Solaris.
26989         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26990         not match "solaris2.10".
26991         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26992         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26993         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26994
26995 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26996
26997         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26998         This fixes a problem observed with the latest coreutils snapshot
26999         that caused a test to fail on Solaris 8.  src/csplit.c's call
27000         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27001         earlier, instead of returning the number of bytes that would have
27002         been generated; this causes csplit to incorrectly report memory
27003         exhaustion.
27004         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27005         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27006         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27007         comments to match.
27008         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27009         Fix typo in matching older versions of Solaris: "solaris2.10"
27010         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27011         only for guessing while cross-compiling.
27012         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27013
27014 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27015
27016         ftoastr: fix comment again
27017         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27019         Also, simplify example a bit by using flags = 0.
27020
27021 2010-12-20  Bruno Haible  <bruno@clisp.org>
27022
27023         round*, trunc*: Update documentation regarding glibc.
27024         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27025         * doc/posix-functions/round.texi: Likewise.
27026         * doc/posix-functions/roundl.texi: Likewise.
27027         * doc/posix-functions/truncf.texi: Likewise.
27028         * doc/posix-functions/trunc.texi: Likewise.
27029         * doc/posix-functions/truncl.texi: Likewise.
27030
27031 2010-12-20  Bruno Haible  <bruno@clisp.org>
27032
27033         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27034         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27035         * doc/posix-functions/round.texi: Likewise.
27036         * doc/posix-functions/roundl.texi: Likewise.
27037
27038 2010-12-20  Bruno Haible  <bruno@clisp.org>
27039
27040         ttyname_r: Add missing declaration on HP-UX 11.
27041         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27042         HAVE_TTYNAME_R.
27043         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27044         declared. Set HAVE_TTYNAME_R always.
27045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27046         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27047         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27048         HAVE_TTYNAME_R.
27049         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27050
27051 2010-12-20  Bruno Haible  <bruno@clisp.org>
27052
27053         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27054         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27055         * doc/posix-functions/getlogin_r.texi: Likewise.
27056         * tests/test-getlogin.c: Include <errno.h>.
27057         (main): Avoid test failure on HP-UX 11.11.
27058         * tests/test-getlogin_r.c (main): Likewise.
27059
27060 2010-12-20  Bruno Haible  <bruno@clisp.org>
27061
27062         getlogin_r: Add missing declaration on HP-UX 11.
27063         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27064         declared also when it exists as a function.
27065         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27066
27067 2010-12-20  Bruno Haible  <bruno@clisp.org>
27068
27069         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27070         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27071         through wcrtomb.
27072
27073 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27074
27075         ftoastr: fix comment
27076         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27077         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27078
27079 2010-12-19  Bruno Haible  <bruno@clisp.org>
27080
27081         isnan: Ensure it is a macro.
27082         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27083         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27084         Solaris.
27085
27086 2010-12-19  Bruno Haible  <bruno@clisp.org>
27087
27088         ldexpl test: Fix link error on OSF/1 5.1.
27089         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27090
27091 2010-12-19  Bruno Haible  <bruno@clisp.org>
27092
27093         wctype: Make it work in C++ mode on OSF/1 5.1.
27094         * lib/wctype.in.h (iswblank): Declare but not define here.
27095         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27096         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27097         * modules/wctype (Files): Add lib/iswblank.c.
27098
27099 2010-12-19  Bruno Haible  <bruno@clisp.org>
27100
27101         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27102         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27103         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27104
27105 2010-12-19  Bruno Haible  <bruno@clisp.org>
27106
27107         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27108         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27109         _POSIX_PII_SOCKET.
27110         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27111         * doc/posix-functions/recvfrom.texi: Likewise.
27112         * doc/posix-functions/send.texi: Likewise.
27113         * doc/posix-functions/sendto.texi: Likewise.
27114
27115 2010-12-19  Bruno Haible  <bruno@clisp.org>
27116
27117         tcgetsid: Add missing declaration on OSF/1 5.1.
27118         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27119         HAVE_TCGETSID.
27120         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27121         Don't set HAVE_TCGETSID.
27122         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27123         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27124         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27125         HAVE_TCGETSID.
27126         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27127
27128 2010-12-19  Bruno Haible  <bruno@clisp.org>
27129
27130         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27131         * lib/stdio.in.h: During the include_next statement, let recursive
27132         includes of this file include only the system header file.
27133
27134 2010-12-19  Bruno Haible  <bruno@clisp.org>
27135
27136         iconv_open: Fix regression from 2010-12-04.
27137         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27138         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27139
27140 2010-12-19  Bruno Haible  <bruno@clisp.org>
27141
27142         stdbool test: Avoid a gcc warning.
27143         * tests/test-stdbool.c (main): Fail if e1 is false.
27144         Reported by Jim Meyering.
27145
27146 2010-12-19  Jim Meyering  <meyering@redhat.com>
27147
27148         setenv: restore to working order
27149         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27150         mistakenly removed.
27151         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27152         HAVE_SETENV.
27153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27154         HAVE_SETENV.
27155
27156 2010-12-19  Bruno Haible  <bruno@clisp.org>
27157
27158         Document some different function declarations on OSF/1 5.1.
27159         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27160         * doc/posix-functions/inet_ntop.texi: Likewise.
27161         * doc/posix-functions/gethostname.texi: Likewise.
27162         * lib/unistd.in.h (gethostname): Update comment.
27163
27164 2010-12-19  Bruno Haible  <bruno@clisp.org>
27165
27166         doc: Mention vasprintf-posix module.
27167         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27168         the 'vasprintf-posix' module.
27169         * doc/glibc-functions/vasprintf.texi: Likewise.
27170
27171 2010-12-19  Bruno Haible  <bruno@clisp.org>
27172
27173         unsetenv: Add missing declaration on OSF/1 5.1.
27174         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27175         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27176         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27178         not HAVE_UNSETENV.
27179         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27180         HAVE_UNSETENV.
27181         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27182
27183 2010-12-19  Bruno Haible  <bruno@clisp.org>
27184
27185         setenv: Add missing declaration on OSF/1 5.1.
27186         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27187         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27188         declared. Don't set HAVE_SETENV.
27189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27190         not HAVE_SETENV.
27191         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27192         HAVE_SETENV.
27193         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27194
27195 2010-12-19  Bruno Haible  <bruno@clisp.org>
27196
27197         nl_langinfo tests: Avoid gcc warning.
27198         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27199
27200 2010-12-19  Bruno Haible  <bruno@clisp.org>
27201
27202         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27203         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27204         _GL_CXXALIAS_SYS.
27205
27206 2010-12-19  Bruno Haible  <bruno@clisp.org>
27207
27208         stdbool: Relax test.
27209         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27210         address to 'bool' work in static initializer, for compilers other than
27211         GCC.
27212
27213 2010-12-19  Bruno Haible  <bruno@clisp.org>
27214
27215         ftello: Add missing declaration on OSF/1 5.1.
27216         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27217         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27219         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27220         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27221
27222 2010-12-19  Bruno Haible  <bruno@clisp.org>
27223
27224         fseeko: Add missing declaration on OSF/1 5.1.
27225         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27228         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27229         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27230
27231 2010-12-19  Bruno Haible  <bruno@clisp.org>
27232
27233         fchdir: Add missing declaration on OSF/1 5.1.
27234         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27237         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27238         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27239
27240 2010-12-19  Bruno Haible  <bruno@clisp.org>
27241
27242         relocatable-prog-wrapper: Separate from relocatable-prog.
27243         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27244         uninstall-relocwrapper rule here.
27245         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27246         Reported by Ian Beckwith <ianb@erislabs.net>.
27247
27248 2010-12-19  Bruno Haible  <bruno@clisp.org>
27249
27250         unistr/u8-mbsnlen: Add missing dependency.
27251         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27252         Reported by Ian Beckwith <ianb@erislabs.net>.
27253
27254 2010-12-19  Bruno Haible  <bruno@clisp.org>
27255
27256         iconv: Make it possible again to use this module without 'iconv-h'.
27257         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27258         if it is not defined.
27259         Reported by Ian Beckwith <ianb@erislabs.net>.
27260
27261 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27262
27263         acl: port to Solaris 8 when copying from tmpfs to ufs
27264         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27265         error number.  Problem observed on Solaris 8 with latest
27266         coreutils, with "mv A B", where A is on a tmpfs file system and B
27267         is on a ufs file system.  This caused coreutils' mv/part-symlink
27268         test to fail.
27269
27270         tests: set fail=0 at start
27271         * tests/init.sh (setup_): Move fail=0 initialization here ...
27272         (mktempd_): ... from here, so that tests can rely on fail being
27273         set to 0 initially.  This fixes a problem in coreutils; see:
27274         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27275
27276 2010-12-18  Bruno Haible  <bruno@clisp.org>
27277
27278         memmem-simple: Stylistic changes.
27279         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27280         Fix preprocessor directive indentation.
27281
27282 2010-12-15  Pádraig Brady <P@draigBrady.com>
27283
27284         memmem, memmem-simple: reorganize and expand empty needle check
27285         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27286         functional checks to memmem-simple so that one has a fully functional
27287         memmem by using just this module.
27288         Restrict the performance only check to the memmem module.
27289         Also expand the empty needle check to ensure the correct
27290         pointer is returned, not just a non NULL pointer.
27291         * doc/glibc-functions/memmem.texi: Rearrange the portability
27292         documentation to correlate with the rearranged checks.
27293         Clarify exactly how the memmem and memmem-simple modules
27294         relate to each other.
27295
27296 2010-12-15  Pádraig Brady <P@draigBrady.com>
27297             Bruno Haible  <bruno@clisp.org>
27298
27299         Improve cross-compilation guesses for uClibc.
27300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27301         that uClibc does not have the glibc bug.
27302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27303         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27304
27305 2010-12-14  Eric Blake  <eblake@redhat.com>
27306
27307         configmake: provide fallbacks for oldest supported autotools
27308         * m4/configmake.m4: New file.
27309         * modules/configmake (Files): Ship it.
27310         (configure.ac): Use it to guarantee fallbacks.
27311
27312 2010-12-13  Pádraig Brady <P@draigBrady.com>
27313
27314         read-file: Improve handling of large files
27315         * lib/read-file.c (fread_file): Minimize realloc()s
27316         for regular files, and better manage sizes around SIZE_MAX.
27317
27318 2010-12-13  Eric Blake  <eblake@redhat.com>
27319
27320         cloexec, fcntl: relax license
27321         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27322         consent from all contributors.
27323         * modules/fcntl (License): Likewise.
27324
27325 2010-12-10  Bruno Haible  <bruno@clisp.org>
27326
27327         Tests for module 'pipe-posix'.
27328         * modules/pipe-posix-tests: New file.
27329         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27330
27331 2010-12-10  Bruno Haible  <bruno@clisp.org>
27332
27333         pipe-posix: Make it work in C++ mode.
27334         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27335         (pipe): Use common idiom, not a macro definition.
27336         * lib/pipe.c: New file.
27337         * m4/pipe.m4: New file.
27338         * modules/pipe-posix (Description): Enhance.
27339         (Files): Add lib/pipe.c, m4/pipe.m4.
27340         (configure.ac): Invoke gl_FUNC_PIPE.
27341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27342         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27343         * tests/test-unistd-c++.cc: Check the signature of pipe.
27344
27345 2010-12-10  Bruno Haible  <bruno@clisp.org>
27346
27347         Rename module 'pipe' to 'spawn-pipe'.
27348         * modules/spawn-pipe: New file, renamed from modules/pipe.
27349         (Files, configure.ac, Makefile.am): Update.
27350         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27351         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27352         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27353         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27354         "spawn-pipe.h" instead of "pipe.h".
27355         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27356         to gl_SPAWN_PIPE.
27357         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27358         (Files, Makefile.am): Update.
27359         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27360         Update.
27361         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27362         Include "spawn-pipe.h" instead of "pipe.h".
27363         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27364         * lib/javacomp.c: Likewise.
27365         * lib/javaversion.c: Likewise.
27366         * lib/pipe-filter-gi.c: Likewise.
27367         * lib/pipe-filter-ii.c: Likewise.
27368         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27369         * modules/javacomp (Depends-on): Likewise.
27370         * modules/javaversion (Depends-on): Likewise.
27371         * modules/pipe-filter-gi (Depends-on): Likewise.
27372         * modules/pipe-filter-ii (Depends-on): Likewise.
27373         * MODULES.html.sh (Executing programs): Update.
27374         * NEWS: Mention the change.
27375
27376 2010-12-10  Eric Blake  <eblake@redhat.com>
27377
27378         pipe-posix: new module
27379         * modules/pipe-posix: New file.
27380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27381         (gl_UNISTD_H): Check for declaration.
27382         * modules/unistd (Makefile.am): Substitute it.
27383         * lib/unistd.in.h (pipe): Provide it for mingw.
27384         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27385         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27386
27387 2010-12-07  Bruno Haible  <bruno@clisp.org>
27388
27389         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27390         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27391         u8_strcmp_gnu.
27392         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27393
27394 2010-12-06  Bruno Haible  <bruno@clisp.org>
27395
27396         Update internal documentation.
27397         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27398
27399 2010-12-04  Bruno Haible  <bruno@clisp.org>
27400
27401         Put more information about failed tests into the test return codes.
27402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27403         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27404         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27405         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27406         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27407         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27408         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27409         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27410         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27412         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27413         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27414         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27415         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27416         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27417         returns a bit mask.
27418         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27419         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27420         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27421         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27422         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27423         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27425         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27426         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27427         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27428         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27429         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27430         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27432         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27433         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27434         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27435         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27436         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27437         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27438         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27439         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27440         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27441         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27442         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27443         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27444         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27445         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27446         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27447         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27448         gl_PRINTF_PRECISION): Likewise.
27449         * m4/regex.m4 (gl_REGEX): Likewise.
27450         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27451         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27452         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27453         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27456         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27457         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27458         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27459         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27460         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27461         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27462         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27463         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27464         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27465         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27466         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27467         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27469         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27470         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27471         enumerated value.
27472         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27473
27474 2010-12-04  Bruno Haible  <bruno@clisp.org>
27475
27476         Update for Solaris 11 2010-11.
27477         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27478         Express, released in November 2010.
27479
27480 2010-12-04  Bruno Haible  <bruno@clisp.org>
27481
27482         nproc: Relax license.
27483         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27484         and Paul Eggert.
27485         Requested by Ludovic Courtès <ludo@gnu.org>.
27486
27487 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27488
27489         utimecmp: fine-grained src to nearby coarse-grained dest
27490
27491         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27492         and the source is on a file system with higher-resolution time
27493         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27494         not work, and the time stamps are close together, the algorithm to
27495         determine the exact resolution from the read-back mtime was buggy:
27496         it had a "!=" where it should have had an "==".  This bug has been
27497         in the code ever since it was introduced to gnulib.
27498         Problem reported by Dan Jacobson in
27499         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27500
27501 2010-11-30  Bruno Haible  <bruno@clisp.org>
27502
27503         strerror_r-posix: Fix autoconf test.
27504         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27505
27506 2010-11-28  Bruno Haible  <bruno@clisp.org>
27507             Paul Eggert  <eggert@cs.ucla.edu>
27508
27509         Tests for module 'getdomainname'.
27510         * modules/getdomainname-tests: New file.
27511         * tests/test-getdomainname.c: New file, based on
27512         tests/test-gethostname.c.
27513
27514 2010-11-28  Bruno Haible  <bruno@clisp.org>
27515             Paul Eggert  <eggert@cs.ucla.edu>
27516
27517         getdomainname: Use the system function when possible.
27518         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27519         (getdomainname): Replace if needed. Provide the declaration if it is
27520         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27521         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27522         (getdomainname): When the system has getdomainname, call the system
27523         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27524         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27525         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27526         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27527         the function if its second argument is of type 'int' or if it is found
27528         in libnsl.
27529         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27530         <sys/systeminfo.h> and sysinfo().
27531         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27533         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27534         HAVE_GETDOMAINNAME.
27535         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27536         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27537         * doc/glibc-functions/getdomainname.texi: Document the problems with
27538         the getdomainname declaration.
27539
27540 2010-11-28  Bruno Haible  <bruno@clisp.org>
27541
27542         sys_socket: Ensure ss_family field on AIX.
27543         * lib/sys_socket.in.h (ss_family): New macro definition.
27544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27545         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27546         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27547         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27548         * modules/sys_socket (Makefile.am): Substitute
27549         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27550         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27551
27552 2010-11-27  Bruno Haible  <bruno@clisp.org>
27553
27554         readline: Improve configure output.
27555         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27556         "checking for readline..." result understandable.
27557
27558 2010-11-27  Bruno Haible  <bruno@clisp.org>
27559
27560         *printf-posix: Detect a bug on Solaris 10/x86.
27561         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27562         for floating-point output.
27563         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27564         directive.
27565         * tests/test-snprintf-posix.h (test_function): Likewise.
27566         * tests/test-sprintf-posix.h (test_function): Likewise.
27567         * tests/test-vasprintf-posix.c (test_function): Likewise.
27568         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27569         * doc/posix-functions/printf.texi: Likewise.
27570         * doc/posix-functions/snprintf.texi: Likewise.
27571         * doc/posix-functions/sprintf.texi: Likewise.
27572         * doc/posix-functions/vfprintf.texi: Likewise.
27573         * doc/posix-functions/vprintf.texi: Likewise.
27574         * doc/posix-functions/vsnprintf.texi: Likewise.
27575         * doc/posix-functions/vsprintf.texi: Likewise.
27576         * doc/glibc-functions/obstack_printf.texi: Likewise.
27577         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27578
27579 2010-11-27  Bruno Haible  <bruno@clisp.org>
27580
27581         Fix link error when module libunistring-optional is in use.
27582         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27583         * modules/striconveha-tests (Makefile.am): Likewise.
27584
27585 2010-11-27  Bruno Haible  <bruno@clisp.org>
27586
27587         regex: Mention link dependencies.
27588         * modules/regex (Link): New section.
27589         * modules/rpmatch (Link): Likewise.
27590         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27591
27592 2010-11-27  Bruno Haible  <bruno@clisp.org>
27593
27594         ftoastr: Fix compilation error on Solaris.
27595         * lib/ftoastr.c: Include <config.h>.
27596
27597 2010-11-27  Bruno Haible  <bruno@clisp.org>
27598
27599         getloadavg: Update documentation.
27600         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27601
27602 2010-11-27  Bruno Haible  <bruno@clisp.org>
27603
27604         sys_socket: Fix test whether the functions are declared.
27605         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27606         not <sys/select.h>.
27607
27608 2010-11-27  Bruno Haible  <bruno@clisp.org>
27609
27610         getpass: Make sure to get system declaration on some platforms.
27611         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27612         gl_USE_SYSTEM_EXTENSIONS.
27613         * modules/getpass (Depends-on): Add extensions.
27614
27615 2010-11-26  Bruno Haible  <bruno@clisp.org>
27616
27617         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27618         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27619         'iconv' module is present.
27620         (ICONV_CONST): New macro.
27621         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27622         ICONV_CONST.
27623         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27624         set ICONV_CONST.
27625         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27626         here.
27627         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27628         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27629         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27630         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27631         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27632         present.
27633
27634 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27635
27636         ftoastr: comment fix
27637         * lib/ftoastr.c: "little" -> "little or no" in comment
27638
27639 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27640
27641         stdint: port to GCC 4.3 + OSX + Octave
27642         On this platform, stdint.h is buggy and defines int64_t to long
27643         long int.  The replacement defined it to long int, causing
27644         problems with C++ style name mangling.  Instead, trust the system
27645         definition if INT64_MAX is defined, and likewise for the unsigned
27646         variant.   Problem reported by Jarno Rajahalme in
27647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27648         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27649         and don't mess with int64_t and INT64_MAX in this case.
27650         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27651
27652 2010-11-24  Bruno Haible  <bruno@clisp.org>
27653
27654         doc: Corrections regarding MacOS X 10.4 and 10.5.
27655         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27656         MacOS X.
27657         Reported by Simon Josefsson.
27658
27659 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27660
27661         Uninstall ".bin" files installed by relocwrapper.
27662         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27663         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27664         unless it is already there.
27665
27666 2010-11-21  Bruno Haible  <bruno@clisp.org>
27667
27668         Update for NetBSD 5.0.
27669         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27670         NetBSD; the test fails on NetBSD 5.0.
27671         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27672         about NetBSD.
27673
27674 2010-11-21  Bruno Haible  <bruno@clisp.org>
27675
27676         Update for HP-UX 11.23 and HP-UX 11.31.
27677         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27678         HP-UX.
27679
27680 2010-11-21  Bruno Haible  <bruno@clisp.org>
27681
27682         Update for MacOS X 10.5.
27683         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27684         MacOS X; the test fails on MacOS X 10.5.8.
27685         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27686         about MacOS X.
27687
27688 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27689
27690         bootstrap: add bootstrap_sync option.
27691         See discussion at
27692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27694         * build-aux/bootstrap: Accept --bootstrap-sync to update
27695         bootstrap if it is not identical to the local gnulib's
27696         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27697         enable this by default.  Accept --no-bootstrap-sync to disable
27698         it.
27699
27700 2010-11-20  Bruno Haible  <bruno@clisp.org>
27701
27702         Ensure that <features.h> is included before __GLIBC__ is tested.
27703         * lib/printf-parse.h: Include <features.h>.
27704         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27705         Reported by Mike Frysinger <vapier@gentoo.org>.
27706
27707         Ensure that <features.h> is included before __GLIBC__ is tested.
27708         * lib/wchar.in.h: Include <features.h>.
27709         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27710         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27711         Reported by Mike Frysinger <vapier@gentoo.org>.
27712
27713         Ensure that <features.h> is included before __GLIBC__ is tested.
27714         * lib/arpa_inet.in.h: Include <features.h>.
27715         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27716         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27717         Reported by Mike Frysinger <vapier@gentoo.org>.
27718
27719         Ensure that <features.h> is included before __GLIBC__ is tested.
27720         * build-aux/link-warning.h: Include <features.h>.
27721         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27722         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27723         Reported by Mike Frysinger <vapier@gentoo.org>.
27724
27725         Ensure that <features.h> is included before __GLIBC__ is tested.
27726         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27727         Reported by Mike Frysinger <vapier@gentoo.org>.
27728
27729 2010-11-20  Bruno Haible  <bruno@clisp.org>
27730
27731         memmem: Fix autoconf test.
27732         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27733
27734 2010-11-20  Bruno Haible  <bruno@clisp.org>
27735
27736         Port to uClibc.
27737         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27738         * lib/fcntl.in.h: Likewise.
27739         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27740         * lib/mbrtowc.c (mbrtowc): Likewise.
27741         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27742         * lib/strerror_r.c: Likewise.
27743         * lib/unistr/u8-strnlen.c: Likewise.
27744         * lib/vasnprintf.c (decimal_point_char): Likewise.
27745         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27746         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27747         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27748         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27749         * tests/test-sigaction.c (handler, main): Likewise.
27750         * lib/freading.h: Treat uClibc like a non-glibc platform.
27751         * lib/freading.c: Likewise.
27752         * lib/gettext.h: Likewise.
27753         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27754         Likewise.
27755         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27756         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27757         * lib/propername.c (proper_name_utf8): Likewise.
27758         * lib/spawn.in.h: Likewise.
27759         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27760         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27761         mem_cd_iconveh_internal): Likewise.
27762         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27763         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27764         strstr, strcasestr): Likewise.
27765         * lib/unicodeio.c (unicode_to_mb): Likewise.
27766         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27767         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27768         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27769         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27770         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27771         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27772         * lib/unistr/u8-stpncpy.c: Likewise.
27773         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27774         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27775         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27776         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27777         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27778         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27779         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27780         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27782         Likewise.
27783         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27784         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27785         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27788         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27789         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27790         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27791         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27792         * tests/test-striconveha.c (main): Likewise.
27793         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27794         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27795         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27796         * doc/posix-functions/getline.texi: Likewise.
27797         Reported by Mike Frysinger <vapier@gentoo.org>.
27798
27799 2010-11-20  Bruno Haible  <bruno@clisp.org>
27800
27801         nproc: Fix condition.
27802         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27803         HAVE_PTHREAD_AFFINITY_NP.
27804
27805 2010-11-20  Bruno Haible  <bruno@clisp.org>
27806
27807         Fix a comment.
27808         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27809
27810 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27811
27812         ftoastr: don't assume snprintf
27813         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27814         Implement a subset of snprintf here, by using sprintf safely.
27815         * modules/ftoastr (Depends-on): Remove snprintf.
27816
27817 2010-11-19  Jim Meyering  <meyering@redhat.com>
27818
27819         test-rename.h: fix compilation failure
27820         * tests/test-rename.h (test_rename): Add omitted "}".
27821
27822 2010-11-17  Jim Meyering  <meyering@redhat.com>
27823
27824         maint.mk: add a URL discussing the no-@acronym policy
27825         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27826
27827 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27828
27829         ftoastr: depend on snprintf, improve comments
27830         * lib/ftoastr.c: Also mention Loitsch's draft.
27831         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27832         needed in the current implementation, but it might simplify
27833         speeding up the code later.
27834         * modules/ftoastr: Depend on snprintf; this improves portability.
27835         Suggested by Bruno Haible in the same email.
27836
27837         ftoastr: port to hosts lacking strtof and strtold
27838         Problem reported by Bruno Haible in
27839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27840         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27841         environment and strtold (and presumably strtof) are not available.
27842         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27843         (configure.ac): Require gl_C99_STRTOLD.
27844
27845 2010-11-18  Bruno Haible  <bruno@clisp.org>
27846
27847         c-strtold: Avoid link error on AIX 7.
27848         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27849         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27850         (gl_C_STRTOLD): Test whether strtold_l exists.
27851         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27852
27853 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27854
27855         intprops: new macro INT_BITS_STRLEN_BOUND
27856         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27857         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27858         not exposed.  Also, it uses a slightly tighter bound than before;
27859         though this makes no practical difference, we might as well be as
27860         tight as we easily can.
27861
27862         ftoastr: new module, for lossless conversion of floats to short strings
27863         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27864         * modules/ftoastr: New files.
27865
27866 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27867
27868         bootstrap: port to Solaris sed
27869         * build-aux/bootstrap (get_version): Port to Solaris sed.
27870         See Ralf Wildenhues's note in
27871         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27872
27873 2010-11-14  Jim Meyering  <meyering@redhat.com>
27874
27875         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27876         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27877         and move definition closer to sole use.
27878
27879 2010-11-13  Jim Meyering  <meyering@redhat.com>
27880
27881         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27882         Now we require at least autoconf-2.59, which means the work-around
27883         is no longer needed.
27884         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27885         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27886         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27887         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27888         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27889
27890 2010-11-13  Bruno Haible  <bruno@clisp.org>
27891
27892         rename, renameat: Avoid test failures at NFS mounted locations.
27893         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27894         functions.
27895         (test_rename): Use assert_nonexistent.
27896         * tests/test-rename.c: Include <dirent.h>.
27897         * tests/test-renameat.c: Likewise.
27898         Reported by Gary V. Vaughan <gary@gnu.org>.
27899
27900         rename, renameat: Document Linux bug with NFS
27901         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27902         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27903         * doc/posix-functions/renameat.texi: Likewise.
27904         Suggested by Eric Blake.
27905
27906 2010-11-13  Bruno Haible  <bruno@clisp.org>
27907
27908         rename test: Add comments.
27909         * tests/test-rename.h (test_rename): Add structure and comments.
27910
27911 2010-11-13  Eric Blake  <eblake@redhat.com>
27912
27913         maintainer-makefile: cover a few more files
27914         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27915         scripts generated within C files, for libvirt.
27916
27917 2010-11-13  Bruno Haible  <bruno@clisp.org>
27918
27919         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27920         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27921         character, return the number of bytes that belong together, not always
27922         1.
27923         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27924         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27925         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27926         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27927         number of bytes of an invalid character.
27928         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27929         (main): Invoke it.
27930         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27931         results.
27932         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27933         malformed byte sequences.
27934         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27935         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27936         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27937         Reported by Ben Pfaff and Paolo Bonzini.
27938
27939 2010-11-13  Bruno Haible  <bruno@clisp.org>
27940
27941         openat: Work around glibc bug with fchownat() and empty file names.
27942         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27943         (gl_FUNC_FCHOWNAT): Invoke it.
27944         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27945         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27946         Reported by Gary V. Vaughan <gary@gnu.org>.
27947
27948 2010-11-13  Bruno Haible  <bruno@clisp.org>
27949
27950         openat: Ensure autoconf macro ordering.
27951         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27952         gl_USE_SYSTEM_EXTENSIONS.
27953         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27954
27955 2010-11-13  Bruno Haible  <bruno@clisp.org>
27956
27957         Update comments.
27958         * lib/unistr/u8-check.c: Update file name in comments.
27959         * lib/unistr/u8-mblen.c: Likewise.
27960         * lib/unistr/u8-prev.c: Likewise.
27961         * lib/unistr/u8-strmblen.c: Likewise.
27962         * lib/unistr/u8-strmbtouc.c: Likewise.
27963
27964 2010-11-13  Jim Meyering  <meyering@redhat.com>
27965
27966         tests: avoid test failure on Solaris 10 due to lack of PATH export
27967         * tests/test-update-copyright.sh: Don't forget to export PATH.
27968
27969         init.sh: ensure that IFS is defined, just in case...
27970         * tests/init.sh (setup_): Ensure that IFS is defined,
27971         so that saving and restoring it works as expected.  This
27972         appears to be useful at least for an old version of dash
27973         from a long time ago (RH 6).  See here for details:
27974         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27975
27976         maint.mk: tighten "test a == b" check
27977         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27978         test to files that contain something like #!/bin/sh.
27979         Without this, coreutils would get two false positives in
27980         the comments of C source files.
27981
27982 2010-11-12  Eric Blake  <eblake@redhat.com>
27983
27984         bootstrap: fix typo in previous attempt
27985         * build-aux/bootstrap (buildreq): Correct the grouping.
27986         Reported by Paul Eggert.
27987
27988         maintainer-makefile: prohibit test x == x
27989         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27990         Based on a report by Matthias Bolte.
27991
27992         bootstrap: allow FreeBSD gzip
27993         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27994         which has no '.' and goes to stderr.
27995         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27996         Reported by Matthias Bolte.
27997
27998         maintainer-makefile: check for i18n setup
27999         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28000         will likely work.
28001
28002 2010-11-12  Bruno Haible  <bruno@clisp.org>
28003
28004         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28005         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28006         * lib/nanosleep.c (nanosleep): Likewise.
28007
28008 2010-11-11  Bruno Haible  <bruno@clisp.org>
28009
28010         fcntl-h: Fix for use of C++ on glibc systems.
28011         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28012         also on glibc systems in C++ mode.
28013         Reported by Gary V. Vaughan <gary@gnu.org>.
28014
28015 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28016
28017         mknod: avoid false failure with dash
28018         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28019
28020 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28021
28022         unlink: Fix "is it should" typo in diagnostic.
28023         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28025
28026 2010-11-11  Bruno Haible  <bruno@clisp.org>
28027
28028         Tests for module 'strerror_r-posix'.
28029         * modules/strerror_r-posix-tests: New file.
28030         * tests/test-strerror_r.c: New file.
28031         * tests/test-string-c++.cc: Check the signature of strerror_r.
28032
28033         New module 'strerror_r-posix'.
28034         * lib/string.in.h (strerror_r): New declaration.
28035         * lib/strerror_r.c: New file.
28036         * m4/strerror_r.m4: New file.
28037         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28038         of strerror_r.
28039         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28040         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28041         * modules/strerror_r-posix: New file.
28042         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28043         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28044         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28045         portability problems.
28046
28047 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28048
28049         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28050         line is also considered for output. Quoted function name in shell
28051         command, so temporary files for functions like MyClass::operator()
28052         are removed correctly without errors.
28053
28054 2010-11-09  Bruno Haible  <bruno@clisp.org>
28055
28056         * doc/posix-functions/strerror.texi: List more failing platforms.
28057
28058         * doc/posix-functions/strerror.texi: Add a comment.
28059
28060 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28061
28062         fdopendir: fix bug on MacOS X when low on file descriptors
28063
28064         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28065         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28066         All callers changed.
28067         (fdopendir): Invoke save_cwd at the top level, not after using
28068         multiple dup() calls to use up file descriptors.  Then retry
28069         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28070         less than the maximum number of open file descriptors, because
28071         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28072         on Mac OS X 10.6.4 for tar 1.24
28073         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28074         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28075         and for tar 1.25
28076         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28077
28078 2010-11-07  Bruno Haible  <bruno@clisp.org>
28079
28080         vasnprintf: Support I flag on glibc systems.
28081         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28082         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28083         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28084         snprintf function.
28085         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28086         glibc systems.
28087         * tests/test-vasnprintf-posix3.c: New file.
28088         * modules/vasnprintf-posix-tests (Files): Add it.
28089         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28090
28091 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28092
28093         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28094         * MODULES.html.sh: For compiler warnings, use name
28095         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28096
28097 2010-11-05  Eric Blake  <eblake@redhat.com>
28098
28099         ceil, floor: avoid spurious failure with icc
28100         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28101         [denormals-as-zero] when optimizing without -mieee-fp option.
28102         * tests/test-floorf2.c (floorf_reference): Likewise.
28103         * tests/test-ceilf1.c (dummy): New function.
28104         (main): Use it to outsmart icc's optimization.
28105         * tests/test-floorf1.c (dummy, main): Likewise.
28106
28107         tests: require working signbit
28108         * modules/ceilf-tests (Depends-on): Add signbit.
28109         * modules/ceill-tests (Depends-on): Likewise.
28110         * modules/floorf-tests (Depends-on): Likewise.
28111         * modules/floorl-tests (Depends-on): Likewise.
28112         * modules/round-tests (Depends-on): Likewise.
28113         * modules/roundf-tests (Depends-on): Likewise.
28114         * modules/roundl-tests (Depends-on): Likewise.
28115         * modules/trunc-tests (Depends-on): Likewise.
28116         * modules/truncf-tests (Depends-on): Likewise.
28117         * modules/truncl-tests (Depends-on): Likewise.
28118
28119         strtod: work around icc bug
28120         * lib/strtod.c (minus_zero): Define to working value.
28121         (strtod): Use it to avoid icc bug.
28122
28123         copysign: enhance tests
28124         * modules/copysign-tests (Files): Add minus-zero.h.
28125         * tests/test-copysign.c (main): Also test zeros.
28126
28127 2010-11-04  Eric Blake  <eblake@redhat.com>
28128
28129         ceil, floor, round, trunc: enhance tests of -0
28130         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28131         * tests/test-ceill.c (main): Likewise.
28132         * tests/test-floorf1.c (main): Likewise.
28133         * tests/test-floorl.c (main): Likewise.
28134         * tests/test-round1.c (main): Likewise.
28135         * tests/test-roundf1.c (main): Likewise.
28136         * tests/test-roundl.c (main): Likewise.
28137         * tests/test-trunc1.c (main): Likewise.
28138         * tests/test-truncf1.c (main): Likewise.
28139         * tests/test-truncl.c (main): Likewise.
28140
28141 2010-11-04  Eric Blake  <eblake@redhat.com>
28142
28143         frexp, tests: work around ICC bug with -zero
28144         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28145         works with more compilers.
28146         * tests/minus-zero.h: New file.
28147         * modules/ceilf-tests (Files): Include it.
28148         * modules/ceill-tests (Files): Likewise.
28149         * modules/floorf-tests (Files): Likewise.
28150         * modules/floorl-tests (Files): Likewise.
28151         * modules/frexp-nolibm-tests (Files): Likewise.
28152         * modules/frexp-tests (Files): Likewise.
28153         * modules/frexpl-nolibm-tests (Files): Likewise.
28154         * modules/frexpl-tests (Files): Likewise.
28155         * modules/isnan-tests (Files): Likewise.
28156         * modules/isnand-nolibm-tests (Files): Likewise.
28157         * modules/isnand-tests (Files): Likewise.
28158         * modules/isnanf-nolibm-tests (Files): Likewise.
28159         * modules/isnanf-tests (Files): Likewise.
28160         * modules/isnanl-nolibm-tests (Files): Likewise.
28161         * modules/isnanl-tests (Files): Likewise.
28162         * modules/round-tests (Files): Likewise.
28163         * modules/roundf-tests (Files): Likewise.
28164         * modules/roundl-tests (Files): Likewise.
28165         * modules/ldexpl-tests (Files): Likewise.
28166         * modules/signbit-tests (Files): Likewise.
28167         * modules/snprintf-posix-tests (Files): Likewise.
28168         * modules/sprintf-posix-tests (Files): Likewise.
28169         * modules/strtod-tests (Files): Likewise.
28170         * modules/trunc-tests (Files): Likewise.
28171         * modules/truncf-tests (Files): Likewise.
28172         * modules/truncl-tests (Files): Likewise.
28173         * modules/vsnprintf-posix-tests (Files): Likewise.
28174         * modules/vsprintf-posix-tests (Files): Likewise.
28175         * modules/vasnprintf-posix-tests (Files): Likewise.
28176         * modules/vasprintf-posix-tests (Files): Likewise.
28177         * tests/test-ceilf1.c (main): Use it.
28178         * tests/test-ceill.c (main): Likewise.
28179         * tests/test-floorf1.c (main): Likewise.
28180         * tests/test-floorl.c (main): Likewise.
28181         * tests/test-frexp.c (main): Likewise.
28182         * tests/test-frexpl.c (main): Likewise.
28183         * tests/test-isnan.c (main): Likewise.
28184         * tests/test-isnand.h (main): Likewise.
28185         * tests/test-isnanf.h (main): Likewise.
28186         * tests/test-isnanl.h (main): Likewise.
28187         * tests/test-ldexpl.c (main): Likewise.
28188         * tests/test-round.c (main): Likewise.
28189         * tests/test-roundf.c (main): Likewise.
28190         * tests/test-roundl.c (main): Likewise.
28191         * tests/test-signbit.c (test_signbitf, test_signbitd)
28192         (test_signbitl): Likewise.
28193         * tests/test-snprintf-posix.h (test_function): Likewise.
28194         * tests/test-sprintf-posix.h (test_function): Likewise.
28195         * tests/test-strtod.c (main): Likewise.
28196         * tests/test-trunc1.c (main): Likewise.
28197         * tests/test-truncf1.c (main): Likewise.
28198         * tests/test-truncl.c (main): Likewise.
28199
28200         isnanl: work around icc bug
28201         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28202
28203 2010-11-03  Eric Blake  <eblake@redhat.com>
28204
28205         tests: fix compiler warnings
28206         * tests/test-getopt.h (test_getopt): Fix condition.
28207         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28208         * tests/test-pipe2.c (main): Likewise.
28209         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28210
28211         utimens: fix broken m4 test
28212         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28213
28214 2010-10-28  Bruno Haible  <bruno@clisp.org>
28215
28216         posix_spawn*, getdtablesize: Relax license.
28217         * modules/posix_spawn (License): Change to LGPLv2+.
28218         * modules/posix_spawnp (License): Likewise.
28219         * modules/posix_spawn-internal (License): Likewise.
28220         * modules/posix_spawnattr_init (License): Likewise.
28221         * modules/posix_spawnattr_getflags (License): Likewise.
28222         * modules/posix_spawnattr_setflags (License): Likewise.
28223         * modules/posix_spawnattr_getpgroup (License): Likewise.
28224         * modules/posix_spawnattr_setpgroup (License): Likewise.
28225         * modules/posix_spawnattr_getschedparam (License): Likewise.
28226         * modules/posix_spawnattr_setschedparam (License): Likewise.
28227         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28228         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28229         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28230         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28231         * modules/posix_spawnattr_getsigmask (License): Likewise.
28232         * modules/posix_spawnattr_setsigmask (License): Likewise.
28233         * modules/posix_spawnattr_destroy (License): Likewise.
28234         * modules/posix_spawn_file_actions_init (License): Likewise.
28235         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28236         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28237         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28238         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28239         * modules/getdtablesize (License): Likewise.
28240         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28241
28242 2010-10-26  Bruno Haible  <bruno@clisp.org>
28243
28244         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28245         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28246         Cygwin and mingw.
28247         Suggested by Eric Blake.
28248
28249 2010-10-26  Bruno Haible  <bruno@clisp.org>
28250
28251         stdio: Work around compilation error due to renameat() on Solaris 10.
28252         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28253         * lib/renameat.c: Don't include <unistd.h> here.
28254         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28255         Reported by Paul Eggert and Eric Blake.
28256
28257 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28258
28259         renameat: port to Solaris 10, which declares renameat in unistd.h
28260
28261         * lib/renameat.c: Include unistd.h before stdio.h, because
28262         Solaris 10 declares renameat in unistd.h.  Problem encountered
28263         when building GNU tar 1.24 on Solaris 10.
28264
28265 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28266
28267         fdopendir: fix C89 compilation
28268         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28269         compilers.
28270
28271 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28272
28273         inttostr: simplify by removing unnecessary redundancy
28274         * lib/anytostr.c: Don't include verify.h.
28275         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28276         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28277         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28278         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28279         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28280         Likewise.
28281         * modules/inttostr (Depends-on): Remove 'verify'.
28282
28283 2010-10-23  Bruno Haible  <bruno@clisp.org>
28284
28285         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28286         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28287         Reported by Eric Blake.
28288
28289 2010-10-23  Bruno Haible  <bruno@clisp.org>
28290
28291         Tests: Fix LOCALE_JA on MirBSD 10.
28292         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28293         to an UTF-8 locale.
28294         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28295         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28296         Reported by Eric Blake.
28297
28298 2010-10-21  Bruno Haible  <bruno@clisp.org>
28299
28300         nl_langinfo test: Avoid test failure on NetBSD 5.
28301         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28302         Reported by Eric Blake.
28303
28304 2010-10-21  Eric Blake  <eblake@redhat.com>
28305
28306         c-stack: work around libsigsegv 2.8 bug
28307         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28308         overflow on at least PowerPC64.
28309
28310 2010-10-17  Bruno Haible  <bruno@clisp.org>
28311
28312         userspec: Drop redundant file.
28313         * modules/userspec (Files): Remove lib/inttostr.h.
28314
28315 2010-10-17  Bruno Haible  <bruno@clisp.org>
28316
28317         nl_langinfo tests: Silence some warnings.
28318         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28319         Reported by Jim Meyering.
28320
28321 2010-10-17  Bruno Haible  <bruno@clisp.org>
28322
28323         Make use of GCC's attribute __alloc_size__.
28324         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28325         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28326         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28327         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28328         __alloc_size__.
28329         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28330         Suggested by Jim Meyering.
28331
28332 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28333
28334         bootstrap: anchor .gitignore entries.
28335         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28336         with...
28337         (insert_vc_ignore): ... this new function, which prepends `/' to
28338         all .gitignore entries before passing them to
28339         insert_sorted_if_absent.
28340
28341 2010-10-16  Bruno Haible  <bruno@clisp.org>
28342
28343         nextafter: Fix configure check.
28344         * modules/nextafter (configure.ac): Correct expected prototype.
28345
28346 2010-10-16  Bruno Haible  <bruno@clisp.org>
28347
28348         termios: Update documentation.
28349         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28350
28351 2010-10-16  Bruno Haible  <bruno@clisp.org>
28352
28353         tests: Make them compile with TinyCC.
28354         * tests/test-strstr.c (main): Remove parentheses around array
28355         initializer.
28356
28357 2010-10-15  Eric Blake  <eblake@redhat.com>
28358
28359         ignore-value: make header idempotent
28360         * lib/ignore-value.h: Add double-inclusion guards.
28361         Reported by Stefan Berger.
28362
28363 2010-10-15  Jim Meyering  <meyering@redhat.com>
28364
28365         GNUmakefile: handle "stable" target, not "major"
28366         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28367         lists in maint.mk and announce-gen.  Without this, "make stable"
28368         would fail to ensure that $(VERSION) is up to date.
28369
28370 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28371
28372         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28373         & co.
28374
28375 2010-10-14  Bruno Haible  <bruno@clisp.org>
28376
28377         vasnprintf: Don't set errno to 0.
28378         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28379         block that sets it to 0.
28380         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28381
28382 2010-10-14  Bruno Haible  <bruno@clisp.org>
28383
28384         socketlib: Fix.
28385         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28386         gl_PREREQ_SYS_H_WINSOCK2.
28387         Reported by Ian Beckwith <ianb@erislabs.net>.
28388
28389 2010-10-13  Jim Meyering  <meyering@redhat.com>
28390
28391         test-select-stdin.c: avoid warn_unused_result warnings
28392         * tests/test-select-stdin.c: Include "macros.h".
28393         ASSERT that read and fflush succeed.
28394
28395 2010-10-13  Jim Meyering  <meyering@redhat.com>
28396
28397         git-version-gen: do require git-VC'd files in cwd
28398         * build-aux/git-version-gen: Reject a git version string
28399         if there are no commits associated with the current directory.
28400         This avoids an unlikely false-positive (unrelated dir whose parent
28401         repository also contains a tag matching v*), as pointed out
28402         by Giuseppe Scrivano in
28403         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28404
28405 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28406
28407         argv-iter: omit nonconforming declaration
28408         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28409         enum arg_iter_err declaration, which doesn't conform to C99.
28410         Solaris 10 cc warns about this.
28411
28412 2010-10-13  Eric Blake  <eblake@redhat.com>
28413
28414         termios: fix compilation on mingw
28415         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28416         (gl_TERMIOS_H): Adjust it on mingw.
28417         * modules/termios (Makefile.am): Substitute new key.
28418         * lib/termios.in.h (includes): Make include_next conditional.
28419         * doc/posix-headers/termios.texi (termios.h): Update
28420         documentation.
28421         Reported by Daniel P. Berrange.
28422
28423 2010-10-13  Jim Meyering  <meyering@redhat.com>
28424
28425         git-version-gen: don't require that .git/ be in the current dir
28426         * build-aux/git-version-gen: Adjust this script so that it works
28427         when run from any working directory beneath the top-level .git/-
28428         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28429         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28430
28431         test-select: avoid warn_unused_result warnings
28432         * tests/test-select.c: Include "macros.h".
28433         ASSERT that each call to read, write, and pipe succeeds.
28434         While not technically required, also check each "close".
28435         * modules/select-tests (Files): Add tests/macros.h.
28436
28437         test-symlinkat: remove declaration of unused local
28438         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28439
28440         test-inttostr: avoid shadowing warnings
28441         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28442         and use malloc rather than the stack for the same reason as
28443         mentioned in the comment justifying the other allocation.
28444
28445 2010-10-11  Bruno Haible  <bruno@clisp.org>
28446
28447         stdlib: Allow multiple gnulib generated replacements to coexist.
28448         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28449         Reported by Sam Steingold <sds@gnu.org>.
28450
28451 2010-10-11  Jim Meyering  <meyering@redhat.com>
28452
28453         fix a documentation typo
28454         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28455
28456 2010-10-11  Eric Blake  <eblake@redhat.com>
28457
28458         futimens: work around Solaris 11 bug
28459         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28460         * tests/test-futimens.h (test_futimens): Enhance, rather than
28461         weaken test.
28462         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28463
28464 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28465
28466         Indentation.
28467         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28468         higher-level operators more to the left.
28469
28470 2010-10-11  Jim Meyering  <meyering@redhat.com>
28471
28472         test-futimens: avoid unwarranted test failure on Solaris 5.11
28473         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28474         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28475         because it tries to dereference the NULL name argument.
28476
28477 2010-10-11  Bruno Haible  <bruno@clisp.org>
28478
28479         Indentation.
28480         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28481         indentation.
28482
28483 2010-10-11  Jim Meyering  <meyering@redhat.com>
28484
28485         spawn.in.h: make indentation consistent with parentheses
28486         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28487         Make indentation consistent with parentheses.
28488
28489 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28490
28491         Fix mismatched parens in previous commit
28492         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28493         parens.
28494
28495 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28496
28497         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28498
28499         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28500         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28501         * lib/malloca.c: Include "verify.h".
28502         (verify1): Remove, replacing with a verify call.
28503         * lib/relocwrapper.c (verify1): Likewise.
28504         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28505         Likewise.
28506         * modules/malloca (Depends-on): Add 'verify'.
28507         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28508         * modules/vasnprintf (Depends-on): Add 'verify'.
28509         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28510         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28511         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28512         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28513         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28514         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28515         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28516
28517         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28518
28519         Formerly the style was sometimes 2*X - 1, because the C standard
28520         was wrongly thought to disallow ?: in integral constant expressions.
28521         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28522         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28523         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28524         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28525         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28526         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28527         verify that time_t cannot be floating.
28528
28529 2010-10-08  Eric Blake  <eblake@redhat.com>
28530
28531         time: enforce recent POSIX ruling that time_t is integral
28532         * lib/time.in.h (__time_t_must_be_integral): Detect any
28533         problematic systems, allowing the rest of gnulib to assume POSIX.
28534
28535 2010-10-08  Jim Meyering  <meyering@redhat.com>
28536
28537         fdopendir: fix a bug on systems lacking openat and /proc support
28538         OpenBSD 4.7 is one such system.  The most noticeable effect was
28539         failure of any application making nontrivial use of fts: rm, du,
28540         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28541           ./rm: traversal failed: `a': Bad file descriptor
28542         Debugging that, you see that even though FD 6 was closed just
28543         prior to the opendir call in fd_clone_opendir, its resulting
28544         dir->dd_fd was 8, rather than the expected value of 6:
28545
28546         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28547         93                close (fd);
28548         (gdb) n
28549         94                dir = fd_clone_opendir (dupfd);
28550         (gdb) n
28551         95                saved_errno = errno;
28552         (gdb) p dir->dd_fd
28553         $11 = 8
28554
28555         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28556         The problem is that on OpenBSD, fd_clone_opendir has to resort
28557         to using the old-style save/restore CWD mechanism, due to its
28558         lack of openat/proc support, and *that* would steal the FD (6)
28559         that opendir was supposed to use.
28560
28561         The fix is to squirrel away the desired FD so that save_cwd uses a
28562         different one, and then free the dest FD right before calling opendir.
28563         That guarantees opendir will use the required file descriptor.
28564
28565         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28566
28567 2010-10-08  Bruno Haible  <bruno@clisp.org>
28568
28569         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28570         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28571
28572 2010-10-08  Bruno Haible  <bruno@clisp.org>
28573
28574         nanosleep: Make replacement POSIX compliant.
28575         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28576         is out of range.
28577         Reported by Jim Meyering.
28578
28579 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28580
28581         bootstrap: add hook for altering gnulib.mk, for Bison
28582         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28583         the Bison bootstrapping process can rewrite file names and variables
28584         in this file before later parts of 'bootstrap' use the file.
28585         Bison wants to include lib/gnulib.mk from the top-level makefile,
28586         so it needs the file names in this file to be relative to the top
28587         level, not relative to lib; plus it needs variable names to be
28588         rewritten.
28589         (slurp): Use the new function.
28590
28591         bootstrap: reformat for readability
28592         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28593
28594 2010-10-08  Eric Blake  <eblake@redhat.com>
28595
28596         docs: update cygwin progress
28597         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28598         1.7.7.
28599         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28600         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28601         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28602         * doc/posix-functions/carg.texi (carg): Likewise.
28603         * doc/posix-functions/cargf.texi (cargf): Likewise.
28604         * doc/posix-functions/casin.texi (casin): Likewise.
28605         * doc/posix-functions/casinf.texi (casinf): Likewise.
28606         * doc/posix-functions/casinh.texi (casinh): Likewise.
28607         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28608         * doc/posix-functions/catan.texi (catan): Likewise.
28609         * doc/posix-functions/catanf.texi (catanf): Likewise.
28610         * doc/posix-functions/catanh.texi (catanh): Likewise.
28611         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28612         * doc/posix-functions/ccos.texi (ccos): Likewise.
28613         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28614         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28615         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28616         * doc/posix-functions/cexp.texi (cexp): Likewise.
28617         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28618         * doc/posix-functions/cimag.texi (cimag): Likewise.
28619         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28620         * doc/posix-functions/clog.texi (clog): Likewise.
28621         * doc/posix-functions/clogf.texi (clogf): Likewise.
28622         * doc/posix-functions/conj.texi (conj): Likewise.
28623         * doc/posix-functions/conjf.texi (conjf): Likewise.
28624         * doc/posix-functions/cpow.texi (cpow): Likewise.
28625         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28626         * doc/posix-functions/cproj.texi (cproj): Likewise.
28627         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28628         * doc/posix-functions/creal.texi (creal): Likewise.
28629         * doc/posix-functions/crealf.texi (crealf): Likewise.
28630         * doc/posix-functions/csin.texi (csin): Likewise.
28631         * doc/posix-functions/csinf.texi (csinf): Likewise.
28632         * doc/posix-functions/csinh.texi (csinh): Likewise.
28633         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28634         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28635         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28636         * doc/posix-functions/ctan.texi (ctan): Likewise.
28637         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28638         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28639         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28640         * doc/posix-headers/complex.texi (complex.h): Likewise.
28641
28642 2010-10-07  Jim Meyering  <meyering@redhat.com>
28643
28644         parse-datetime: avoid compilation failure on OpenBSD 4.7
28645         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28646         This works around a compilation failure on OpenBSD 4.7:
28647         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28648
28649 2010-10-07  Eric Blake  <eblake@redhat.com>
28650
28651         docs: update cygwin progress
28652         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28653         1.7.6.
28654         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28655         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28656         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28657         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28658         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28659         Likewise.
28660         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28661         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28662         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28663         Likewise.
28664         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28665         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28666         Likewise.
28667         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28668         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28669         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28670         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28671         Likewise.
28672         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28673         Likewise.
28674         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28675
28676         docs: update parse-datetime history
28677         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28678         documentation of this function's history and alternatives.
28679
28680         cygwin: use more robust version check
28681         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28682         exclude an eventual cygwin 1.9.1.
28683         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28684         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28685         (gl_FUNC_STRCASESTR): Likewise.
28686         Reported by Bruno Haible.
28687
28688 2010-10-06  Bruno Haible  <bruno@clisp.org>
28689
28690         string, sys_select: Avoid #including large headers unless necessary.
28691         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28692         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28693         OSF/1, BeOS, Haiku.
28694         Reported by Jim Meyering.
28695
28696 2010-10-05  Eric Blake  <eblake@redhat.com>
28697
28698         memmem, strstr, strcasestr: fix bug with long periodic needle
28699         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28700         periodic needle having false positive.
28701         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28702         and cygwin 1.7.7.
28703         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28705         (gl_FUNC_STRCASESTR): Likewise.
28706         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28707         * tests/test-memmem.c (main): Expose the bug.
28708         * tests/test-strcasestr.c (main): Likewise.
28709         * tests/test-strstr.c (main): Likewise.
28710         * tests/test-c-strcasestr.c (main): Likewise.
28711         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28712         * doc/posix-functions/strstr.texi (strstr): Likewise.
28713         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28714         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28715
28716 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28717
28718         parse-datetime: do some more renaming
28719         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28720         parse_datetime, not get_date.  Mention the renaming.
28721         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28722         in comments.
28723         * m4/bison.m4: Likewise.
28724
28725 2010-10-05  Eric Blake  <eblake@redhat.com>
28726
28727         parse-datetime: better name than get_date
28728         * NEWS: Reword the deprecation notice.
28729         * modules/get_date: Rename to modules/parse-datetime.
28730         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28731         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28732         * lib/get_date.y: Rename to lib/parse-datetime.y.
28733         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28734         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28735         * doc/getdate.texi: Provide fallback wrapper.
28736         * lib/getdate.h: Move guts, and wrap...
28737         * lib/parse-datetime.h: ...new file.
28738         * lib/parse-datetime.y (get_date): Rename...
28739         (parse_datetime): ...to this.
28740         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28741         (gl_PARSE_DATETIME): ...to this.
28742         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28743         documentation.
28744         * modules/getdate (Files): Provide fallback docs and header.
28745         (Notice, Depends-on): Update references.
28746         * tests/test-parse-datetime.c: Likewise.
28747         * DEPENDENCIES: Likewise.
28748         * MODULES.html.sh (Date and time <time.h>): Likewise.
28749         * doc/parse-datetime.texi (Date input formats)
28750         (Authors of parse_datetime): Likewise.
28751         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28752         (Include): Likewise.
28753         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28754         * gnulib-tool: Likewise.
28755         * m4/bison.m4 (gl_BISON): Likewise.
28756         Suggested by Bruno Haible.
28757
28758 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28759
28760         more ports to Solaris tr, which needs [] around ranges
28761         * gnulib-tool: Solaris tr needs [] around ranges.
28762         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28763         * tests/test-pipe-filter-gi1.c (main): Likewise.
28764         * tests/test-pipe-filter-ii1.c (main): Likewise.
28765
28766 2010-10-05  Eric Blake  <eblake@redhat.com>
28767
28768         bootstrap: fix Solaris regression
28769         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28770         around ranges.
28771         Reported by Pádraig Brady.
28772
28773         bootstrap: work with pkg-config
28774         * build-aux/bootstrap (check_versions): Also transliterate - in
28775         prerequisite name.
28776         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28777         prerequisites that were already found, to avoid confusion.
28778         Reported by Justin Clift.
28779
28780         faccessat: remove unused wrappers
28781         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28782         presence of these wrappers dragged in -lgen on Solaris.
28783         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28784
28785 2010-10-05  Jim Meyering  <meyering@redhat.com>
28786
28787         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28788         * Makefile (sc_pragma_columns): New syntax-check rule.
28789
28790 2010-10-04  Bruno Haible  <bruno@clisp.org>
28791
28792         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28793         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28794         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28795         Reported by Bruce Korb and Eric Blake.
28796
28797 2010-10-04  Bruno Haible  <bruno@clisp.org>
28798
28799         threadlib: Make option --with-libpth-prefix work.
28800         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28801         use $LIBPTH, not just -lpth.
28802
28803 2010-10-04  Bruno Haible  <bruno@clisp.org>
28804
28805         Avoid line length limitation from HP NonStop system header files.
28806         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28807         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28808         * lib/ctype.in.h: Likewise.
28809         * lib/dirent.in.h: Likewise.
28810         * lib/errno.in.h: Likewise.
28811         * lib/fcntl.in.h: Likewise.
28812         * lib/float.in.h: Likewise.
28813         * lib/getopt.in.h: Likewise.
28814         * lib/iconv.in.h: Likewise.
28815         * lib/inttypes.in.h: Likewise.
28816         * lib/langinfo.in.h: Likewise.
28817         * lib/locale.in.h: Likewise.
28818         * lib/math.in.h: Likewise.
28819         * lib/netdb.in.h: Likewise.
28820         * lib/netinet_in.in.h: Likewise.
28821         * lib/poll.in.h: Likewise.
28822         * lib/pthread.in.h: Likewise.
28823         * lib/pty.in.h: Likewise.
28824         * lib/sched.in.h: Likewise.
28825         * lib/se-selinux.in.h: Likewise.
28826         * lib/search.in.h: Likewise.
28827         * lib/signal.in.h: Likewise.
28828         * lib/spawn.in.h: Likewise.
28829         * lib/stdarg.in.h: Likewise.
28830         * lib/stddef.in.h: Likewise.
28831         * lib/stdint.in.h: Likewise.
28832         * lib/stdio.in.h: Likewise.
28833         * lib/stdlib.in.h: Likewise.
28834         * lib/string.in.h: Likewise.
28835         * lib/strings.in.h: Likewise.
28836         * lib/sys_file.in.h: Likewise.
28837         * lib/sys_ioctl.in.h: Likewise.
28838         * lib/sys_select.in.h: Likewise.
28839         * lib/sys_socket.in.h: Likewise.
28840         * lib/sys_stat.in.h: Likewise.
28841         * lib/sys_time.in.h: Likewise.
28842         * lib/sys_times.in.h: Likewise.
28843         * lib/sys_utsname.in.h: Likewise.
28844         * lib/sys_wait.in.h: Likewise.
28845         * lib/sysexits.in.h: Likewise.
28846         * lib/termios.in.h: Likewise.
28847         * lib/time.in.h: Likewise.
28848         * lib/unistd.in.h: Likewise.
28849         * lib/wchar.in.h: Likewise.
28850         * lib/wctype.in.h: Likewise.
28851         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28852         * modules/ctype (Makefile.am): Likewise.
28853         * modules/dirent (Makefile.am): Likewise.
28854         * modules/errno (Makefile.am): Likewise.
28855         * modules/fcntl-h (Makefile.am): Likewise.
28856         * modules/float (Makefile.am): Likewise.
28857         * modules/getopt-posix (Makefile.am): Likewise.
28858         * modules/iconv-h (Makefile.am): Likewise.
28859         * modules/inttypes (Makefile.am): Likewise.
28860         * modules/langinfo (Makefile.am): Likewise.
28861         * modules/locale (Makefile.am): Likewise.
28862         * modules/math (Makefile.am): Likewise.
28863         * modules/netdb (Makefile.am): Likewise.
28864         * modules/netinet_in (Makefile.am): Likewise.
28865         * modules/poll-h (Makefile.am): Likewise.
28866         * modules/pthread (Makefile.am): Likewise.
28867         * modules/pty (Makefile.am): Likewise.
28868         * modules/sched (Makefile.am): Likewise.
28869         * modules/search (Makefile.am): Likewise.
28870         * modules/selinux-h (Makefile.am): Likewise.
28871         * modules/signal (Makefile.am): Likewise.
28872         * modules/spawn (Makefile.am): Likewise.
28873         * modules/stdarg (Makefile.am): Likewise.
28874         * modules/stddef (Makefile.am): Likewise.
28875         * modules/stdint (Makefile.am): Likewise.
28876         * modules/stdio (Makefile.am): Likewise.
28877         * modules/stdlib (Makefile.am): Likewise.
28878         * modules/string (Makefile.am): Likewise.
28879         * modules/strings (Makefile.am): Likewise.
28880         * modules/sys_file (Makefile.am): Likewise.
28881         * modules/sys_ioctl (Makefile.am): Likewise.
28882         * modules/sys_select (Makefile.am): Likewise.
28883         * modules/sys_socket (Makefile.am): Likewise.
28884         * modules/sys_stat (Makefile.am): Likewise.
28885         * modules/sys_time (Makefile.am): Likewise.
28886         * modules/sys_times (Makefile.am): Likewise.
28887         * modules/sys_utsname (Makefile.am): Likewise.
28888         * modules/sys_wait (Makefile.am): Likewise.
28889         * modules/sysexits (Makefile.am): Likewise.
28890         * modules/termios (Makefile.am): Likewise.
28891         * modules/time (Makefile.am): Likewise.
28892         * modules/unistd (Makefile.am): Likewise.
28893         * modules/wchar (Makefile.am): Likewise.
28894         * modules/wctype (Makefile.am): Likewise.
28895
28896 2010-10-04  Bruno Haible  <bruno@clisp.org>
28897
28898         read-file tests: Avoid a test failure on NonStop Kernel.
28899         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28900         a regular file.
28901         Reported by Joachim Schmitz <schmitz@hp.com>.
28902
28903 2010-10-03  Bruno Haible  <bruno@clisp.org>
28904
28905         gnulib-tool: Fixes for --create-testdir with --libtool.
28906         * gnulib-tool (func_get_automake_snippet): Don't augment
28907         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28908         an executable.
28909         (func_create_testdir): Handle module 'alloca' like func_import.
28910         Reported by Bruce Korb <bruce.korb@gmail.com>.
28911
28912 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28913
28914         Avoid some lines longer than 80 characters.
28915         * lib/stdint.in.h: Break long comment lines.
28916         * lib/math.in.h: Likewise.
28917         (_GL_NUM_UINT_WORDS): New macro, for readability.
28918         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28919         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28920         * lib/stdlib.in.h: Likewise.
28921         * lib/spawn.in.h: Likewise.
28922         * lib/sys_socket.in.h: Update an URL.
28923         * lib/sys_stat.in.h: Break long line.
28924
28925 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28926
28927         Improve pmccabe2html.
28928         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28929         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28930         when the sources change. Remove the line in the HTML about "Used
28931         ranges" (which implied that there might be other unused ranges),
28932         rename "Resume" to "Summary" (easier to understand for more users).
28933         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28934         styles, and some unnecessary blank lines.
28935
28936 2010-10-03  Bruno Haible  <bruno@clisp.org>
28937             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28938
28939         acl: Add support for ACLs on NonStop Kernel.
28940         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28941         Check whether the function aclsort() exists.
28942         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28943         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28944         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28945         (acl_nontrivial [HAVE_ACLSORT]: New function.
28946         (file_has_acl): Implement for NonStop Kernel.
28947         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28948         (qset_acl): Implement for NonStop Kernel.
28949         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28950         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28951         (main): Implement for NonStop Kernel.
28952         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28953         Kernel. Handle this flavor.
28954         * tests/test-set-mode-acl.sh: Likewise.
28955         * tests/test-copy-acl.sh: Likewise.
28956         * tests/test-copy-file.sh: Likewise.
28957
28958 2010-10-03  Bruno Haible  <bruno@clisp.org>
28959
28960         Info about ACLs on NonStop Kernel.
28961         * doc/acl-resources.txt: Add info about NonStop Kernel.
28962         References by Joachim Schmitz <schmitz@hp.com>.
28963
28964 2010-10-02  Bruno Haible  <bruno@clisp.org>
28965
28966         Define missing EDQUOT on NonStop Kernel.
28967         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28968         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28969         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28970         missing.
28971         * doc/posix-headers/errno.texi: Mention the NSK bug.
28972         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28973         Reported by Joachim Schmitz <schmitz@hp.com>.
28974
28975 2010-10-02  Bruno Haible  <bruno@clisp.org>
28976
28977         Update doc for POSIX:2008.
28978         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28979         Update URL of POSIX specification.
28980
28981 2010-10-02  Bruno Haible  <bruno@clisp.org>
28982
28983         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28984         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28985         from gnulib, not from Automake.
28986
28987 2010-10-02  Bruno Haible  <bruno@clisp.org>
28988
28989         New module 'system-posix'.
28990         * modules/system-posix: New file.
28991         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28992         module is present.
28993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28994         GNULIB_SYSTEM_POSIX.
28995         * modules/stdlib (Depends-on): Remove sys_wait.
28996         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28997         * doc/posix-functions/system.texi: Mention the new module.
28998         * doc/posix-headers/stdlib.texi: Likewise.
28999         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29000         define test_sys_wait_macros to a no-op.
29001         Reported by Sam Steingold <sds@gnu.org>.
29002
29003 2010-09-30  Bruno Haible  <bruno@clisp.org>
29004
29005         More renaming from 'getdate' to 'get_date'.
29006         * doc/get_date.texi: Renamed from doc/getdate.texi.
29007         * modules/get_date (Files): Update.
29008         * MODULES.html.sh (Date and time <time.h>): Update.
29009         * DEPENDENCIES: Update.
29010         * gnulib-tool: Update comment.
29011         * m4/bison.m4 (gl_BISON): Likewise.
29012         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29013
29014 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29015
29016         bootstrap: support ACLOCAL_FLAGS during aclocal
29017         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29018         can add additional -I dir for third-party .m4 files.
29019
29020 2010-09-30  Eric Blake  <eblake@redhat.com>
29021
29022         bootstrap: use glibtoolize on MacOS
29023         * build-aux/bootstrap (check_versions): Convert libtool into
29024         libtoolize.
29025         (tool search): Move libtool check earlier, and look for
29026         glibtoolize for MacOS.
29027         (gnulib_tool_options): Auto-add --libtool when appropriate.
29028         Reported by Justin Clift.
29029
29030         poll: fix typo that broke test on MacOS
29031         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29032         Reported by Justin Clift.
29033
29034         getdate: rename to get_date
29035         Note: getdate.h is not renamed, to minimize client impact.
29036         * modules/getdate: Mark obsolete.  Move old contents...
29037         * modules/get_date: ...to new module name.
29038         * modules/getdate-tests: Move...
29039         * modules/get_date-tests: ...here.
29040         * m4/getdate.m4: Move...
29041         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29042         * lib/getdate.y: Move...
29043         * lib/get_date.y: ...here.
29044         * tests/test-getdate.c: Move...
29045         * tests/test-get_date.c: ...here.
29046         * doc/posix-functions/getdate.texi (getdate): Update name.
29047         * NEWS: Mention the change.
29048
29049 2010-09-29  Bruno Haible  <bruno@clisp.org>
29050
29051         Separate the module 'waitpid' from the module 'sys_wait'.
29052         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29053         present.
29054         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29055         gl_MODULE_INDICATOR_FOR_TESTS.
29056         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29057         * modules/sys_wait (Depends-on): Remove waitpid.
29058         (Makefile.am): Substitute GNULIB_WAITPID.
29059         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29060         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29061         signature only if the 'waitpid' module is present.
29062         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29063         * NEWS: Mention the change.
29064         * modules/grantpt (Depends-on): Add waitpid.
29065         * modules/wait-process (Depends-on): Likewise.
29066
29067 2010-09-29  Bruno Haible  <bruno@clisp.org>
29068
29069         More tests for module 'sys_wait'.
29070         * modules/sys_wait-c++-tests: New file.
29071         * tests/test-sys_wait-c++.cc: New file.
29072         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29073         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29074
29075 2010-09-29  Bruno Haible  <bruno@clisp.org>
29076
29077         New module 'waitpid'.
29078         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29079         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29080         Don't include <process.h>.
29081         (waitpid): Declare only, using modern idiom.
29082         * m4/waitpid.m4: New file.
29083         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29084         * modules/waitpid: New file.
29085         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29086         (Makefile.am): Update.
29087         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29088
29089 2010-09-28  Bruno Haible  <bruno@clisp.org>
29090
29091         poll: Assume ANSI C.
29092         * lib/poll.c (poll): Use an ANSI C declaration.
29093
29094 2010-09-28  Bruno Haible  <bruno@clisp.org>
29095
29096         poll-h: Create poll.h on all platforms.
29097         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29098         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29099         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29100         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29101         (gl_REPLACE_POLL_H): Don't set POLL_H.
29102         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29103         * modules/poll-h (Depends-on): Add include_next.
29104         (Makefile.am): Create poll.h unconditionally. Substitute also
29105         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29106
29107 2010-09-28  Bruno Haible  <bruno@clisp.org>
29108
29109         Tests for module 'poll-h'.
29110         * modules/poll-h-c++-tests: New file.
29111         * tests/test-poll-h-c++.cc: New file.
29112
29113         Tests for module 'poll-h'.
29114         * modules/poll-h-tests: New file.
29115         * tests/test-poll-h.c: New file.
29116
29117 2010-09-28  Bruno Haible  <bruno@clisp.org>
29118
29119         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29120         * modules/poll-h (Depends-on): Add 'extensions'.
29121
29122 2010-09-28  Bruno Haible  <bruno@clisp.org>
29123
29124         New module 'poll-h'.
29125         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29126         (poll): Use modern idiom.
29127         * modules/poll-h: New file.
29128         * modules/poll (Files): Remove lib/poll.in.h.
29129         (Depends-on): Add poll-h.
29130         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29131         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29132         * m4/poll_h.m4: New file.
29133         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29134         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29135         and invoke gl_REPLACE_POLL_H.
29136         * lib/poll.c: Use common idiom.
29137         * tests/test-poll.c: Likewise.
29138         * doc/posix-headers/poll.texi: Mention the poll-h module.
29139         Suggested by Eric Blake.
29140
29141 2010-09-26  Bruno Haible  <bruno@clisp.org>
29142
29143         sys_wait: Implement WSTOPSIG.
29144         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29145         Reported by Simon Josefsson.
29146
29147 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29148
29149         stdlib, sys_wait: Avoid compilation error on mingw.
29150         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29151
29152 2010-09-26  Bruno Haible  <bruno@clisp.org>
29153
29154         stdlib tests: Avoid code duplication.
29155         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29156         * modules/sys_wait-tests (Files): Likewise.
29157         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29158         * tests/test-stdlib.c: Include test-sys_wait.h.
29159         (main): Invoke test_sys_wait_macros.
29160         * tests/test-sys_wait.c: Include test-sys_wait.h.
29161         (main): Invoke test_sys_wait_macros.
29162
29163 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29164
29165         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29166         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29167         sure Windows sockets are working before calling getaddrinfo.
29168         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29169         * doc/gnulib.texi (Windows sockets): Fix typo.
29170
29171 2010-09-25  Bruno Haible  <bruno@clisp.org>
29172
29173         Tests for module 'regex-quote'.
29174         * modules/regex-quote-tests: New file.
29175         * tests/test-regex-quote.c: New file.
29176
29177         New module 'regex-quote'.
29178         * lib/regex-quote.h: New file.
29179         * lib/regex-quote.c: New file.
29180         * modules/regex-quote: New file.
29181         Suggested by Reuben Thomas <rrt@sc3d.org>.
29182
29183 2010-09-24  Bruno Haible  <bruno@clisp.org>
29184
29185         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29186         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29187
29188 2010-09-23  Bruno Haible  <bruno@clisp.org>
29189
29190         setenv: Relax license.
29191         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29192         Blake.
29193         Requested by Eric Blake.
29194
29195 2010-09-22  Bruno Haible  <bruno@clisp.org>
29196
29197         termios: Relax license.
29198         * modules/termios (License): Change to LGPLv2+.
29199         Requested by Eric Blake.
29200
29201 2010-09-22  Bruno Haible  <bruno@clisp.org>
29202
29203         threadlib: Allow the package to change the default to 'no'.
29204         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29205         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29206         Reported by Paul Eggert.
29207
29208 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29209             Bruno Haible  <bruno@clisp.org>
29210
29211         Fix endless loop in mbmemcasecoll.
29212         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29213         byte.
29214         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29215
29216 2010-09-22  Bruno Haible  <bruno@clisp.org>
29217
29218         Tests for module 'memcoll'.
29219         * modules/memcoll-tests: New file.
29220         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29221
29222         memcoll, xmemcoll: Clarify size vs. length.
29223         * modules/memcoll.c (memcoll0): Clarify specification.
29224         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29225         passed to collate_error.
29226
29227 2010-09-22  Bruno Haible  <bruno@clisp.org>
29228
29229         Tests for module 'memcasecmp'.
29230         * modules/memcasecmp-tests: New file.
29231         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29232
29233 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29234
29235         * lib/pthread.in.h: Add split double-inclusion guard, and include
29236         system <pthread.h> if there is one.  Use @@-style as in other
29237         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29238         pthread.h doesn't.
29239         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29240         (pthread_mutexattr_settype, pthread_mutex_trylock):
29241         New static inline functions, if there's no system <pthread.h>.
29242         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29243         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29244         Approximate with mutexes if the system lacks spinlocks, as in
29245         MacOS.
29246         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29247         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29248         @@-style.  Check for spinlocks separately.
29249         (gl_PTHREAD_DEFAULTS): New macro.
29250         * modules/pthread: Redo to use a more typical style for in.h files.
29251
29252 2010-09-21  Eric Blake  <eblake@redhat.com>
29253
29254         net_if: enhance tests
29255         * tests/test-net_if.c (main): Move signature checks earlier.
29256         Print failures to stderr.
29257         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29258         Document the bug that we do not yet fix.
29259
29260 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29261
29262         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29263         about gnulib, not GSS.
29264
29265 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29266
29267         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29268         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29269         for Emacs.
29270         * build-aux/pmccabe2html: Make Makefile.am example code more
29271         cut-and-paste friendly.
29272
29273 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29274
29275         * tests/test-net_if.c: New file.
29276         * modules/net_if-tests: New file.
29277
29278 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29279
29280         pthread: add pthread_spin_destroy
29281         * lib/pthread.in.h (pthread_spin_destroy): New function.
29282
29283 2010-09-19  Bruno Haible  <bruno@clisp.org>
29284
29285         gnulib-tool: Fix --help output.
29286         * gnulib-tool (func_usage): Fix help message.
29287         Reported by Reuben Thomas <rrt@sc3d.org>.
29288
29289 2010-09-18  Jim Meyering  <meyering@redhat.com>
29290
29291         maint.mk: avoid unexpanded \n in two diagnostics
29292         * top/maint.mk (sc_prohibit_always_true_header_tests):
29293         Don't use a literal \n in a halt=... assignment.  It would not be
29294         expanded, and the two \n bytes would appear in the diagnostic output
29295         rather than the desired newline.  Use halt=$$(printf ... instead.
29296         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29297
29298 2010-09-18  Bruno Haible  <bruno@clisp.org>
29299
29300         netinet_in: Doc tweak.
29301         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29302         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29303
29304 2010-09-18  Jim Meyering  <meyering@redhat.com>
29305
29306         init.sh: correct an outdated comment
29307         * tests/init.sh (create_exe_shims_):  s/function/alias/
29308
29309         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29310         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29311         a file named "*.exe" is removed between the glob expansion and the
29312         processing of that oddly named file.
29313
29314 2010-09-17  Eric Blake  <eblake@redhat.com>
29315
29316         mirbsd: add some more support
29317         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29318         in BSD family.
29319         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29320         devices as OpenBSD.
29321         * m4/host-os.m4 (mirbsd): Add MirBSD.
29322
29323         tests: fix unportable assumption on sys/wait.h
29324         * tests/test-sys_wait.c (main): Relax test.
29325         * tests/test-stdlib.c (main): Likewise.
29326
29327         init.sh: accommodate directory with no .exes
29328         * tests/init.sh: Accomodate directory containing only scripts.
29329
29330         tests: avoid compiler warning
29331         * tests/test-stdlib.c (main): Use the variable.
29332
29333         fdutimens, fdutimensat: update signature, again
29334         * lib/utimens.h (gl_futimens): Delete, and move signature...
29335         (fdutimens): ...here.
29336         (fdutimensat): Rearrange signature.
29337         (lutimensat): Rename variable for clarity.
29338         * lib/fdutimensat.c (fdutimensat): Update signature.
29339         * lib/utimens.c (fdutimens): Likewise.
29340         (gl_futimens): Delete.
29341         (utimens, lutimens): Update callers.
29342         * lib/futimens.c (futimens): Likewise.
29343         * tests/test-fdutimensat.c: Likewise.
29344         * tests/test-utimens.c: Likewise.
29345         * tests/test-futimens.h: Update comment.
29346         * NEWS: Mention this.
29347         Suggested by Paul Eggert.
29348
29349 2010-09-17  Bruno Haible  <bruno@clisp.org>
29350
29351         Take over the maintenance of some older macros from Autoconf.
29352         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29353         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29354         GNU Autoconf.
29355         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29356         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29357
29358 2010-09-17  Eric Blake  <eblake@redhat.com>
29359
29360         fdutimensat: drop atflag validation
29361         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29362         with valid fd, to close a race scenario where futimens is
29363         unsupported and FILE was replaced by a symlink.
29364         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29365         accordingly.
29366         Suggested by Paul Eggert.
29367
29368 2010-09-16  Bruno Haible  <bruno@clisp.org>
29369
29370         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29371         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29372
29373 2010-09-16  Bruno Haible  <bruno@clisp.org>
29374
29375         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29376         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29377         login_tty exists.
29378         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29379
29380 2010-09-16  Bruno Haible  <bruno@clisp.org>
29381
29382         login_tty: Make the replacement code work on BSD systems.
29383         * lib/login_tty.c: Include <sys/ioctl.h>.
29384         (login_tty): Use ioctl TIOCSCTTY when available.
29385         * modules/login_tty (Depends-on): Add sys_ioctl.
29386         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29387
29388 2010-09-16  Bruno Haible  <bruno@clisp.org>
29389
29390         login_tty: Stricter unit test.
29391         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29392         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29393         and tcgetsid() after login_tty.
29394         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29395
29396 2010-09-16  Bruno Haible  <bruno@clisp.org>
29397
29398         New module 'tcgetsid'.
29399         * lib/tcgetsid.c: New file.
29400         * m4/tcgetsid.m4: New file.
29401         * modules/tcgetsid: New file.
29402         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29403         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29404         GNULIB_TCGETSID, HAVE_TCGETSID.
29405         * lib/termios.in.h: Include <sys/types.h>.
29406         (tcgetsid): New declaration.
29407         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29408         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29409         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29410         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29411
29412 2010-09-16  Bruno Haible  <bruno@clisp.org>
29413
29414         Tests for module 'termios'.
29415         * modules/termios-c++-tests: New file.
29416         * modules/termios-tests: New file.
29417         * tests/test-termios-c++.cc: New file.
29418         * tests/test-termios.c: New file.
29419
29420         New module 'termios'.
29421         * modules/termios: New file.
29422         * lib/termios.in.h: New file.
29423         * m4/termios_h.m4: New file.
29424         * doc/posix-headers/termios.texi: Mention the new module.
29425
29426 2010-09-16  Eric Blake  <eblake@redhat.com>
29427
29428         fdutimensat: add an atflag parameter
29429         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29430         * lib/utimens.h (fdutimensat): Update prototype.
29431         * tests/test-fdutimensat.c: Adjust test to match.
29432         * NEWS: Document the change.
29433         Suggested by Paul Eggert.
29434
29435 2010-09-16  Bruno Haible  <bruno@clisp.org>
29436
29437         Fix typos in comments.
29438         * lib/striconveh.h: Fix typo in comment.
29439         * lib/login_tty.c (login_tty): Likewise.
29440
29441 2010-09-15  Bruno Haible  <bruno@clisp.org>
29442
29443         stdlib: clarify MirBSD WEXITSTATUS bug
29444         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29445         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29446
29447 2010-09-15  Eric Blake  <eblake@redhat.com>
29448
29449         stdlib: work around MirBSD WEXITSTATUS bug
29450         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29451         * modules/stdlib (Depends-on): Add sys_wait.
29452         * tests/test-sys_wait.c (main): Enhance test.
29453         * tests/test-stdlib.c (main): Likewise.
29454         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29455
29456         docs: mention MacOS issue with WEXITSTATUS(constant)
29457         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29458         issue.
29459         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29460
29461         strnlen: add tests
29462         * modules/strnlen-tests: New file.
29463         * tests/test-strnlen.c: Likewise.
29464
29465 2010-09-14  Bruno Haible  <bruno@clisp.org>
29466
29467         unistr/base: Avoid link errors when module 'libunistring' is also used.
29468         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29469         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29470         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29471         Declare also when HAVE_LIBUNISTRING is set.
29472         Reported by Pádraig Brady <P@draigbrady.com>.
29473
29474 2010-09-14  Eric Blake  <eblake@redhat.com>
29475
29476         test-rawmemchr: make more robust
29477         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29478         (Depends-on, configure.ac): Add needed prerequisites to use it.
29479         * modules/memchr-tests (Files, Depends-on, configure.ac):
29480         Likewise, to avoid implicit reliance on memchr module prereqs.
29481         * tests/test-memchr.c (main): Ensure proper masking.
29482         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29483         reads.
29484
29485         memchr: detect glibc Alpha bug
29486         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29487         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29488         Alpha.
29489         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29490         * tests/test-memchr.c (main): Enhance test.
29491         Reported by Nelson H. F. Beebe.
29492
29493 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29494
29495         fts, getcwd, glob: audit for dirfd returning -1
29496         * lib/fts.c (opendir): Remove #define; no longer used.
29497         (opendirat): New arg PDIR_FD.  All callers changed.
29498         (fts_build, _opendir2): Use new opendirat to avoid the need for
29499         dirfd, or for checking whether dirfd returns a negative value.
29500         Don't use opendir; always use openat followed by fdopendir.
29501         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29502         it.
29503         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29504         returns -1 here.
29505         * modules/fts (Depends-on): Remove dirfd.
29506         * modules/getcwd (Depends-on): Likewise.
29507
29508 2010-09-13  Eric Blake  <eblake@redhat.com>
29509
29510         float: fix broken MirBSD header
29511         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29512         * doc/posix-headers/float.texi (float.h): Document it.
29513
29514 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29515
29516         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29517         * lib/fts.c (opendirat): New arg extra_flags.
29518         (__opendir2): Use it to avoid following symlinks when opening
29519         a directory, if symlinks are not supposed to be followed.  See
29520         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29521
29522         fdopendir: preserve argument fd before returning
29523         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29524         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29525         (fdopendir): Use them, arranging for FD to be open to the same
29526         directory that it was when it started.  (It might be temporarily
29527         closed while fdopendir is running, so this not thread- or
29528         signal-safe.)  Be careful to do the right thing even when file
29529         descriptors are scarce and dup fails with errno == EMFILE.  See
29530         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29531
29532 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29533
29534         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29535         * NEWS: Document change.
29536         * m4/regex.m4: Disable test for regoff_t size.
29537
29538 2010-09-13  Jim Meyering  <meyering@redhat.com>
29539
29540         fts: don't operate on an invalid file descriptor after failed dup
29541         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29542         negative file descriptor.
29543
29544 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29545
29546         savedir: add streamsavedir, deprecate fdsavedir
29547         * NEWS: Mention deprecation of fdsavedir.
29548         * lib/savedir.c (streamsavedir): New extern function, whose name
29549         ends in "savedir" to be consistent with the others.  This differs
29550         from savedirstream in that it doesn't close its argument.  The
29551         next version of GNU tar will use this instead of fdsavedir, to
29552         avoid some race conditions and conserve file descriptors.
29553         (savedirstream): Reimplement as a wrapper around streamsavedir.
29554         (fdsavedir): Add a comment deprecating this function.  As far as
29555         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29556         * lib/savedir.h (streamsavedir): New decl.
29557         (fdsavedir): Add a comment deprecating this.
29558
29559 2010-09-10  Bruno Haible  <bruno@clisp.org>
29560
29561         langinfo: Fix last commit.
29562         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29563         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29565
29566 2010-09-10  Bruno Haible  <bruno@clisp.org>
29567
29568         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29569         * lib/progreloc.c (O_EXEC): Define fallback.
29570
29571 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29572
29573         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29574         * NEWS: Document recent changes to fcntl-h.
29575         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29576         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29577         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29578         Similarly for O_SEARCH; this last was already true, but not documented.
29579         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29580         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29581         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29582         Likewise.
29583         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29584         is zero, not whether it is defined.
29585         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29586         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29587         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29588
29589 2010-09-10  Bruno Haible  <bruno@clisp.org>
29590
29591         langinfo, nl_langinfo: Fix for IRIX 5.3.
29592         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29593         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29594         HAVE_LANGINFO_YESEXPR.
29595         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29596         HAVE_LANGINFO_YESEXPR.
29597         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29598         HAVE_LANGINFO_T_FMT_AMPM is 0.
29599         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29600         HAVE_LANGINFO_YESEXPR is 0.
29601         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29602         NOEXPR.
29603         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29604         * doc/posix-functions/nl_langinfo.texi: Likewise.
29605         Reported by Eric Blake.
29606
29607 2010-09-10  Bruno Haible  <bruno@clisp.org>
29608
29609         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29610         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29611         on FreeBSD 8.0 and OpenBSD 4.6.
29612         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29613         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29614         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29615         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29616         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29617         ac_includes_default.
29618         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29619
29620 2010-09-09  Eric Blake  <eblake@redhat.com>
29621
29622         strsignal: work around NetBSD bug
29623         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29624         * lib/string.in.h (includes): Likewise.
29625         * doc/posix-functions/strsignal.texi (strsignal): Document the
29626         bug.
29627         Reported by Nelson H. F. Beebe.
29628
29629         gnulib-tool: work with NetBSD /bin/sh
29630         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29631         (func_get_description, func_get_comment, func_get_status)
29632         (func_get_notice, func_get_applicability, func_get_filelist)
29633         (func_get_dependencies, func_get_autoconf_early_snippet)
29634         (func_get_autoconf_snippet, func_get_automake_snippet)
29635         (func_get_include_directive, func_get_link_directive)
29636         (func_get_license, func_get_maintainer, func_import): Avoid
29637         shell syntax errors from parsing syntax extensions.
29638
29639 2010-09-09  Bruno Haible  <bruno@clisp.org>
29640
29641         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29642         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29643         a reliable way to determine whether the 'alias' command works.
29644
29645 2010-09-08  Jim Meyering  <meyering@redhat.com>
29646
29647         init.sh: penalize a set-x-impaired shell; don't disqualify it
29648         * tests/init.sh: Too many shells corrupt application stderr when
29649         you set -x, so we can't afford to disqualify them, since at least
29650         on Irix-6.5, that would disqualify all bourne shells.
29651         Instead, use a two-pass approach.
29652         On the first pass, try to find a shell that meets the stricter
29653         condition that set -x does not corrupt stderr.
29654         If no shell meets the stricter condition, retest each candidate
29655         shell, but without that extra condition.  Finally, when
29656         VERBOSE=yes is requested and set -x might cause trouble, simply
29657         issue a warning and refrain from enabling debug output.
29658
29659 2010-09-08  Eric Blake  <eblake@redhat.com>
29660
29661         unsetenv: fix OpenBSD bug
29662         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29663         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29664         documentation.
29665         Reported by Jim Meyering.
29666
29667         strtod: work around IRIX 6.5 bug
29668         * lib/strtod.c (strtod): Reparse number on shorter string if
29669         exponent parse was invalid.
29670         * tests/test-strtod.c (main): Add check for "0x1p 2".
29671         Reported by Tom G. Christensen.
29672
29673         getopt: optimize previous patch
29674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29675         empty variable.  Speed up awk script.
29676         Reported by Paolo Bonzini.
29677
29678 2010-09-08  Jim Meyering  <meyering@redhat.com>
29679
29680         test.sh: disqualify shells for which set -x corrupts stderr
29681         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29682         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29683         appear in stderr output.  For example, this command:
29684             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29685         prints "P=1" on those two systems:
29686
29687 2010-09-08  Bruno Haible  <bruno@clisp.org>
29688
29689         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29690         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29691         commands, because some shells ignore redirections when there is an
29692         error in the command lookup.
29693         Reported by Eric Blake.
29694
29695 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29696
29697         * lib/regex.h: Fix a mention of `regex_compile' (should be
29698         `re_compile_pattern').
29699         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29700         (re_set_registers): Correct name of parameter in comment.
29701
29702         * doc/regex.texi: Add documentation for missing syntax flags.
29703         Remove commented-out documentation of defunct syntax option
29704         RE_NO_EMPTY_ALTS.
29705         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29706         Add documentation of re_set_registers.
29707         Document trick to re-use a pattern buffer by setting fastmap manually.
29708         Update documentation of struct re_pattern_buffer per public members.
29709         Uncomment documentation of equivalence class operators and
29710         collating symbol operators, since they are now implemented,
29711         Explain leftmost-longest matching in relation to alternatives.
29712         Tidy documentation of substring matching.
29713         Remove POSIX documentation, which is done better in
29714         glibc, and refer the reader there. Keep BSD API documentation, as
29715         that is not readily available elsewhere.
29716
29717 2010-09-07  Eric Blake  <eblake@redhat.com>
29718
29719         getopt: handle POSIXLY_CORRECT set but not exported
29720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29721         export state of POSIXLY_CORRECT, due to bash set -o posix.
29722         Reported by Dustin J. Mitchell.
29723
29724 2010-09-05  Bruno Haible  <bruno@clisp.org>
29725
29726         gnulib-tool: Highlight the changed options.
29727         * gnulib-tool (func_usage): Display the --import, --add-import,
29728         --remove-import explanations in bold font.
29729
29730 2010-09-06  Karl Berry  <karl@gnu.org>
29731
29732         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29733
29734 2010-09-05  Bruno Haible  <bruno@clisp.org>
29735
29736         uniwidth/width: Update comment.
29737         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29738         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29739
29740 2010-09-05  Bruno Haible  <bruno@clisp.org>
29741
29742         isinf, isnan: Relax license.
29743         * modules/isinf (License): Change from GPL to LGPL, with consent from
29744         Ben Pfaff.
29745         * modules/isnan (License): Likewise.
29746         Requested by Ludovic Courtès.
29747
29748 2010-09-04  Bruno Haible  <bruno@clisp.org>
29749
29750         gnulib-tool: Help migration from --import to --add-import or --update.
29751         * gnulib-tool: Emit a verbose error message when --import is used
29752         without any module name.
29753
29754 2010-09-04  Bruno Haible  <bruno@clisp.org>
29755
29756         Update doc about gnulib-tool.
29757         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29758         'gnulib-tool --update' in more detail.
29759         Reported by Eric Blake.
29760
29761 2010-09-04  Bruno Haible  <bruno@clisp.org>
29762
29763         gnulib-tool: Change --import. New options --add/remove-import.
29764         * gnulib-tool: New options --add-import, --remove-import.
29765         (func_usage): Document them.
29766         (have_associative): Define always.
29767         (func_import): In import mode, don't merge the specified settings with
29768         the cached settings. Implement remove-import mode.
29769         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29770         Explain when to use them versus --import.
29771         (Simple update): Use --add-import instead of --import.
29772         * NEWS: Mention the change.
29773
29774 2010-09-04  Bruno Haible  <bruno@clisp.org>
29775
29776         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29777         separate gnulib.mk.
29778
29779 2010-09-04  Bruno Haible  <bruno@clisp.org>
29780
29781         gnulib-tool: Don't talk about CVS any more.
29782         * gnulib-tool (func_usage, func_import): Write "version control"
29783         instead of CVS.
29784
29785 2010-09-04  Jim Meyering  <meyering@redhat.com>
29786
29787         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29788         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29789         false positives (whose names may be ill-chosen) when searching
29790         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29791         would cause a false-positive.
29792
29793         avoid coreutils "make distcheck" failure
29794         Coreutils tests with an absolute build directory name that contains
29795         a space.  Not quoting this directory name caused a failure.
29796         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29797         * tests/test-vc-list-files-cvs.sh: Likewise.
29798
29799 2010-09-04  Bruno Haible  <bruno@clisp.org>
29800
29801         gnulib-tool: Avoid error when run in a package without Makefile.am.
29802         * gnulib-tool: When collecting the m4dirs in a package that does not
29803         have a Makefile.am, eliminate those directories that contain no
29804         gnulib-cache.m4. Fix expression that counts these directories.
29805
29806 2010-09-04  Bruno Haible  <bruno@clisp.org>
29807
29808         update-copyright test: Improve output when perl is missing or too old.
29809         * tests/test-update-copyright.sh: Move test of Perl version down after
29810         the test whether Perl exists. Provide an explanation relating Perl's
29811         error message to Automake's SKIP: message.
29812
29813 2010-09-04  Bruno Haible  <bruno@clisp.org>
29814
29815         Don't augment PATH in TESTS_ENVIRONMENT.
29816         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29817         set abs_aux_dir instead of augmenting PATH.
29818         * modules/vc-list-files-tests (Makefile.am): Likewise.
29819         * tests/test-update-copyright.sh: Augment PATH here.
29820         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29821         path_prepend_.
29822         * tests/test-vc-list-files-git.sh: Likewise.
29823
29824 2010-09-04  Jim Meyering  <meyering@redhat.com>
29825
29826         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29827         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29828
29829 2010-09-04  Bruno Haible  <bruno@clisp.org>
29830
29831         strdup: Fix compilation error in C++ mode.
29832         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29833         the macro.
29834
29835 2010-09-04  Bruno Haible  <bruno@clisp.org>
29836
29837         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29838         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29839         macro into a function.
29840         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29841
29842 2010-09-04  Bruno Haible  <bruno@clisp.org>
29843
29844         Set PATH_SEPARATOR the same way autoconf does.
29845         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29846         the value of PATH_SEPARATOR the same way autoconf-generated configure
29847         scripts do.
29848         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29849         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29850
29851 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29852
29853         Set PATH_SEPARATOR the same way autoconf does.
29854         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29855         the same way autoconf-generated configure scripts do.
29856         * posix-modules: Likewise.
29857
29858 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29859
29860         hash: fix safe_hasher const typo
29861         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29862         const; otherwise, there is a type error later.
29863
29864 2010-09-02  Jim Meyering  <meyering@redhat.com>
29865
29866         test-update-copyright.sh: require perl 5.8.0
29867         * tests/test-update-copyright.sh: Require 5.8.0,
29868         which Tom G. Christensen has confirmed is adequate,
29869         while 5.6.1 is not.
29870
29871 2010-09-02  Eric Blake  <eblake@redhat.com>
29872
29873         tests: init.sh improvements for re-exec'ing with zsh
29874         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29875         -vx through shell re-exec.
29876         Reported by Tom G. Christensen.
29877
29878         wctype: fix typo in previous commit
29879         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29880         Reported by Ludovic Courtès.
29881
29882 2010-09-02  Jim Meyering  <meyering@redhat.com>
29883
29884         test-update-copyright.sh: skip test if Perl is too old
29885         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29886         Reported by Tom G. Christensen.
29887
29888 2010-09-02  Bruno Haible  <bruno@clisp.org>
29889
29890         wctype: Avoid compilation error on IRIX 6.5.30.
29891         * lib/wctype.in.h (iswblank): Declare with a replacement if
29892         REPLACE_ISWBLANK is set.
29893         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29894         declared. Set REPLACE_ISWBLANK.
29895         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29896         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29897         * doc/posix-headers/wctype.texi: Likewise.
29898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29899
29900 2010-09-01  Bruno Haible  <bruno@clisp.org>
29901
29902         New module 'socketlib'.
29903         * modules/socketlib: New file.
29904         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29905         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29906         * modules/sockets (Depends-on): Add socketlib.
29907         Suggested by Sam Steingold <sds@gnu.org>.
29908
29909 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29910
29911         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29912
29913         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29914         when one needs search access to a directory but not read access.
29915         On systems where it is available, it works in some cases where
29916         O_RDONLY does not, namely on directories that are searchable but
29917         not readable, and which need only to be searchable.  If O_SEARCH
29918         is not available, fall back to the traditional method of using
29919         O_RDONLY.
29920
29921         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29922         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29923         when opening a directory that needs only to be searchable.
29924         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29925         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29926         * lib/openat-proc.c (openat_proc_name): Likewise.
29927         * lib/openat.c (openat_needs_fchdir): Likewise.
29928         * lib/save-cwd.c (save_cwd): Likewise.
29929         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29930
29931 2010-08-28  Bruno Haible  <bruno@clisp.org>
29932
29933         New module 'host-cpu-c-abi'.
29934         * modules/host-cpu-c-abi: New file.
29935         * m4/host-cpu-c-abi.m4: New file, based on part of
29936         clisp/src/m4/general.m4.
29937         Requested by Sam Steingold <sds@gnu.org>.
29938
29939 2010-08-31  Eric Blake  <eblake@redhat.com>
29940         and Jim Meyering  <meyering@redhat.com>
29941
29942         hash: factor, and guard against misbehaving hasher function
29943         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29944         of table->hasher's return value.  Also protect against a hash value
29945         so large that adding it to table->bucket results in a NULL pointer.
29946         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29947         Use it in place of open-coded check-and-abort.
29948
29949 2010-08-30  Bruno Haible  <bruno@clisp.org>
29950
29951         hash: silence spurious clang warning
29952         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29953         Reported by Eric Blake.
29954
29955 2010-08-30  Eric Blake  <eblake@redhat.com>
29956
29957         strstr, memmem, strcasestr: avoid leaked shell message
29958         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29959         FreeBSD.
29960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29961         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29962
29963         tests: silence clang warning
29964         * tests/test-malloca.c (do_allocation): Avoid dead store.
29965
29966 2010-08-29  Bruno Haible  <bruno@clisp.org>
29967
29968         gettext: Fix recent mistake.
29969         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29970
29971 2010-08-29  Bruno Haible  <bruno@clisp.org>
29972
29973         selinux-h: Offer a --without-selinux option.
29974         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29975         --without-selinux was specified, skip all tests and define
29976         HAVE_SELINUX_SELINUX_H to 0.
29977         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29978         set LIB_SELINUX to empty.
29979         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29980         gl_LIBSELINUX. If --without-selinux was specified, replace
29981         selinux/context.h.
29982         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29983
29984 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29985             Bruno Haible  <bruno@clisp.org>
29986
29987         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29988         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29989         of HAVE_REALLOC.
29990         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29991         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29992         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29993         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29994
29995 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29996             Bruno Haible  <bruno@clisp.org>
29997
29998         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29999         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30000         HAVE_CALLOC.
30001         * lib/xmalloc.c: Update accordingly.
30002         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30003         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30004         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30005
30006 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30007             Bruno Haible  <bruno@clisp.org>
30008
30009         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30010         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30011         HAVE_MALLOC.
30012         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30013         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30014         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30015
30016 2010-08-29  Bruno Haible  <bruno@clisp.org>
30017
30018         Update modules list.
30019         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30020         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30021         (String handling <string.h>): Add astrxfrm.
30022         (File system functions): Add readlinkat.
30023
30024 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30025
30026         Tests for module 'realloc-gnu'.
30027         * modules/realloc-gnu-tests: New file.
30028         * tests/test-realloc-gnu.c: New file.
30029
30030         Tests for module 'calloc-gnu'.
30031         * modules/calloc-gnu-tests: New file.
30032         * tests/test-calloc-gnu.c: New file.
30033
30034         Tests for module 'malloc-gnu'.
30035         * modules/malloc-gnu-tests: New file.
30036         * tests/test-malloc-gnu.c: New file.
30037
30038 2010-08-28  Bruno Haible  <bruno@clisp.org>
30039
30040         Rename module 'realloc' -> 'realloc-gnu'.
30041         * modules/realloc-gnu: New file, copied from modules/realloc.
30042         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30043         obsolete.
30044         * modules/mgetgroups (Depends-on): Update.
30045         * doc/posix-functions/realloc.texi: Update.
30046         * NEWS: Mention the change.
30047
30048         Rename module 'calloc' -> 'calloc-gnu'.
30049         * modules/calloc-gnu: New file, copied from modules/calloc.
30050         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30051         obsolete.
30052         * doc/posix-functions/calloc.texi: Update.
30053         * NEWS: Mention the change.
30054
30055         Rename module 'malloc' -> 'malloc-gnu'.
30056         * modules/malloc-gnu: New file, copied from modules/malloc.
30057         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30058         obsolete.
30059         * modules/argp (Depends-on): Update.
30060         * modules/regex (Depends-on): Update.
30061         * doc/posix-functions/malloc.texi: Update.
30062         * NEWS: Mention the change.
30063
30064 2010-08-28  Eric Blake  <eblake@redhat.com>
30065
30066         pread, pwrite: add missing dependency
30067         * modules/pread (Depends-on): Add extensions.
30068         * modules/pwrite (Depends-on): Likewise.
30069
30070 2010-08-28  Bruno Haible  <bruno@clisp.org>
30071
30072         unistr/u*-strchr: Fix tests dependencies.
30073         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30074         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30075         Reported by Ian Beckwith <ianb@erislabs.net>.
30076
30077 2010-08-28  Bruno Haible  <bruno@clisp.org>
30078
30079         read-file: Don't occupy too much unused memory.
30080         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30081
30082 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30083             Eric Blake  <eblake@redhat.com>
30084             Bruno Haible  <bruno@clisp.org>
30085
30086         read-file: Avoid memory reallocations with regular files.
30087         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30088         (fread_file): With regular files, use the remaining length as the
30089         initial buffer size.  Check against overflow.
30090         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30091         sys_stat.
30092
30093 2010-08-28  Bruno Haible  <bruno@clisp.org>
30094
30095         ftello: Relax license.
30096         * modules/ftello (License): Relax to LGPLv2+.
30097         Reported by Eric Blake.
30098
30099 2010-08-28  Bruno Haible  <bruno@clisp.org>
30100
30101         Avoid relocwrapper link errors due to gnulib replacement functions.
30102         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30103         function.
30104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30105
30106 2010-08-28  Bruno Haible  <bruno@clisp.org>
30107
30108         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30109         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30110         defined.
30111         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30112         Suggested by Eric Blake.
30113
30114 2010-08-28  Bruno Haible  <bruno@clisp.org>
30115
30116         sys_socket, netdb: Ensure socklen_t gets defined.
30117         * modules/sys_socket (Depends-on): Add socklen.
30118         * modules/netdb (Depends-on): Likewise.
30119         * modules/getaddrinfo (Depends-on): Remove socklen.
30120         * modules/getsockopt (Depends-on): Likewise.
30121         * modules/setsockopt (Depends-on): Likewise.
30122         * tests/test-sys_socket.c: Check that socklen_t is defined.
30123         * tests/test-netdb.c: Likewise.
30124         * m4/socklen.m4: Update comments.
30125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30126
30127 2010-08-27  Eric Blake  <eblake@redhat.com>
30128
30129         login_tty: add missing dependency
30130         * modules/login_tty (Depends-on): Add pty.
30131
30132 2010-08-26  Eric Blake  <eblake@redhat.com>
30133
30134         lib-symbol-versions: fix m4 quoting
30135         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30136         format for AC_LINK_IFELSE.
30137
30138         glob: fix compile test
30139         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30140
30141         btowc: fix missing file
30142         * modules/btowc (Files): Also ship locale-fr.m4.
30143
30144         lseek: fix link test
30145         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30146         AC_LINK_IFELSE.
30147
30148         include_next: silence autoconf 2.68 warning
30149         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30150         AC_COMPILE_IFELSE as special.
30151         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30152         autoconf < 2.68.
30153
30154         acl: fix compilation test
30155         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30156         AC_COMPILE_IFELSE.
30157
30158 2010-08-26  Bruno Haible  <bruno@clisp.org>
30159
30160         Modernize AC_TRY_RUN invocations.
30161         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30162         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30163         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30164         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30165         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30166         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30167         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30169         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30170         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30171         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30172         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30173         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30174         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30175         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30176         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30177         gl_MBRLEN_NUL_RETVAL): Likewise.
30178         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30179         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30180         Likewise.
30181         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30182         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30183         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30184         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30185         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30186         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30187         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30188         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30189         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30190         Likewise.
30191         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30192         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30194         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30195         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30196         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30197         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30198         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30199         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30201
30202 2010-08-26  Bruno Haible  <bruno@clisp.org>
30203
30204         Modernize AC_TRY_LINK invocations.
30205         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30206         AC_TRY_LINK.
30207         * m4/argp.m4 (gl_ARGP): Likewise.
30208         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30209         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30210         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30211         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30212         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30213         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30214         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30215         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30216         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30217         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30218         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30219         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30220         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30221         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30222         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30223         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30224         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30225         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30226         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30227         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30228         Likewise.
30229         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30230         Likewise.
30231         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30232         Likewise.
30233         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30234         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30235         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30236         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30237         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30238         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30239         * m4/servent.m4 (gl_SERVENT): Likewise.
30240         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30241         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30242         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30243         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30244         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30245         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30246         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30247         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30248         * modules/tsearch-tests (configure.ac): Likewise.
30249
30250 2010-08-26  Bruno Haible  <bruno@clisp.org>
30251
30252         Modernize AC_TRY_COMPILE invocations.
30253         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30254         AC_TRY_COMPILE.
30255         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30256         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30257         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30258         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30259         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30260         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30261         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30262         * m4/lock.m4 (gl_LOCK): Likewise.
30263         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30264         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30265         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30266         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30267         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30268         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30269         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30271         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30272         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30273         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30274         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30275         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30276         extraneous semicolon.
30277
30278 2010-08-26  Jim Meyering  <meyering@redhat.com>
30279
30280         stat-time: relax license LGPL
30281         * modules/stat-time (License): Change from GPL to LGPL,
30282         with consent from all contributors, for use in libguile.
30283         Requested by Ludovic Courtès.
30284
30285 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30286
30287         poll: return immediately on POLLHUP.
30288         * lib/poll.c (poll): Always set timeout before wait_timeout is
30289         computed.
30290
30291 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30292
30293         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30294         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30295         rmdir ("dir/.//"), unlinkat.
30296
30297 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30298
30299         stdbool: avoid spurious failure with modern xlc
30300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30301
30302 2010-08-24  Bruno Haible  <bruno@clisp.org>
30303
30304         getloadavg: simplify code
30305         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30306         gl_have_func. Update comments.
30307
30308 2010-08-24  Eric Blake  <eblake@redhat.com>
30309
30310         getloadavg: don't define SVR4 on cygwin
30311         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30312         only define SVR4 when -lkvm is required.
30313         Reported by Yaakov Selkowitz.
30314
30315 2010-08-24  Bruno Haible  <bruno@clisp.org>
30316
30317         priv-set: fix comment
30318         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30319
30320 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30321
30322         priv-set: fix comments
30323         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30324         to match code, as suggested by David Bartley in:
30325         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30326
30327 2010-08-23  Eric Blake  <eblake@redhat.com>
30328
30329         stdbool: avoid rejecting clang
30330         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30331         * tests/test-stdbool.c: Enable more tests if using the system
30332         <stdbool.h> instead of the gnulib replacement.
30333         (main): Move xlc bug test to a runtime test for all compilers.
30334         Reported by Anders Kaseorg.
30335
30336         argz: fix shell quoting issue
30337         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30338         Reported by Charles Wilson.
30339
30340 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30341             Erik Faye-Lund <kusmabite@gmail.com>
30342
30343         poll, select: handle ERROR_BROKEN_PIPE.
30344         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30345         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30346         * lib/select.c (win32_compute_revents): Do not mark a pipe
30347         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30348
30349 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30350
30351         fts: allow compilation with C++
30352         * lib/fts_.h: Specify extern "C" linkage with C++.
30353
30354 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30355
30356         Fix gnulib-tool sed script de-commentation for AIX sed.
30357         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30358         sed.
30359
30360 2010-08-17  Eric Blake  <eblake@redhat.com>
30361
30362         test-stddef: test for (some) offsetof bugs
30363         * tests/test-stddef.c: Enhance test to ensure correct type of
30364         offsetof.
30365         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30366         that we are not fixing at this time.
30367
30368 2010-08-15  Bruno Haible  <bruno@clisp.org>
30369
30370         stpncpy: Allow stpncpy to be defined as a macro.
30371         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30372         if it's already correctly declared.
30373         * lib/string.in.h (stpncpy): Undefine before redefining.
30374         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30375
30376 2010-08-14  Bruno Haible  <bruno@clisp.org>
30377
30378         Rename module 'memxfrm' to 'amemxfrm'.
30379         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30380         (amemxfrm): Renamed from memxfrm.
30381         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30382         (amemxfrm): Renamed from memxfrm.
30383         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30384         * NEWS: Mention the change.
30385         * MODULES.html.sh (String handling <string.h>): Update.
30386         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30387         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30388         * lib/unicase/u16-casexfrm.c: Likewise.
30389         * lib/unicase/u32-casexfrm.c: Likewise.
30390         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30391         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30392         * lib/uninorm/u16-normxfrm.c: Likewise.
30393         * lib/uninorm/u32-normxfrm.c: Likewise.
30394         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30395         memxfrm.
30396         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30397         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30398         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30399         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30400         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30401         Suggested by Paul Eggert.
30402
30403 2010-08-14  Bruno Haible  <bruno@clisp.org>
30404
30405         Tests for module 'astrxfrm'.
30406         * modules/astrxfrm-tests: New file.
30407         * tests/test-astrxfrm.c: New file.
30408
30409         New module 'astrxfrm'.
30410         * lib/astrxfrm.h: New file.
30411         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30412         * modules/astrxfrm: New file.
30413
30414 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30415
30416         regex: Tweak doc.
30417         * doc/regex.texi (Overview): Don't mention regex.c.
30418         (GNU Regular Expression Compiling): Likewise.
30419         (Match-end-of-line Operator): Mention 'not_eol'.
30420
30421 2010-08-14  Brian Gough  <bjg@gnu.org>
30422             Bruno Haible  <bruno@clisp.org>
30423
30424         git-merge-changelog: add doc relating to use with bzr and hg.
30425         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30426
30427 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30428
30429         pthread: fix pthread.h creation for srcdir != builddir
30430         * modules/pthread (Makefile.am): Fix the rule to work also in a
30431         non-srcdir build.
30432
30433 2010-08-13  Karl Berry  <karl@gnu.org>
30434
30435         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30436         * doc/posix-*/*: force line break before @url of POSIX
30437         specifications.
30438         Suggested by Werner Lemberg.
30439
30440 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30441
30442         strtod: fix const diagnostic
30443         * lib/strtod.c (strtod): Don't assign const char * to char *,
30444         as this elicits a warning from GCC when warnings are enabled.
30445
30446 2010-08-10  Pádraig Brady <P@draigbrady.com>
30447         and Eric Blake  <eblake@redhat.com>
30448
30449         copy-acl: ignore ENOTSUP on HP-UX
30450         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30451         so that it is available for HP-UX.
30452         * lib/copy-acl.c (qcopy_acl): Use it.
30453         Reported by Patrick M. Callahan.
30454
30455 2010-08-10  Eric Blake  <eblake@redhat.com>
30456
30457         open, chown: relax license
30458         * modules/open (License): Change to LGPLv2+, with consent by all
30459         authors, for use in augeas.
30460         * modules/chown (License): Likewise.
30461         * modules/lchown (Likewise): Likewise.
30462         Requested by Adam Stokes.
30463
30464 2010-08-09  Karl Berry  <karl@gnu.org>
30465
30466         * build-aux/ar-lib: new file, import from Automake.
30467         * config/srclist.txt: autocheck for updates.
30468
30469 2010-08-09  Eric Blake  <eblake@redhat.com>
30470
30471         readlinkat: adjust client modules
30472         * modules/areadlinkat (Depends-on): Use readlinkat, not
30473         symlinkat.
30474         * modules/areadlinkat-with-size (Depends-on): Likewise.
30475
30476         mknod: be more vocal about danger of running tests as root
30477         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30478         root, since that is just asking for problems.
30479         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30480
30481         readlinkat: split into its own module
30482         * modules/symlinkat: Split readlinkat...
30483         * modules/readlinkat: ...into separate module.
30484         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30485         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30486         * lib/symlinkat.c (readlinkat): Move...
30487         * lib/readlinkat.c: ...into new file.
30488         * modules/symlinkat-tests: Split readlinkat test...
30489         * modules/readlinkat-tests: ...into separate module.
30490         * tests/test-symlinkat.c: Split...
30491         * tests/test-readlinkat.c: ...into new file.
30492         * NEWS: Document the split.
30493         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30494         * lib/unistd.in.h (readlinkat): Likewise.
30495         Suggested by Bruno Haible.
30496
30497 2010-08-08  Bruno Haible  <bruno@clisp.org>
30498
30499         memxfrm: Speed up.
30500         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30501         that usually only one call to strxfrm is necessary for each string
30502         part.
30503         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30504
30505 2010-08-07  Karl Berry  <karl@gnu.org>
30506
30507         * doc/posix-headers/limits.texi,
30508         * doc/posix-functions/malloc.texi,
30509         * doc/posix-functions/strsignal.texi: missing @item.
30510         * doc/ld-version-script.texi: spurious leading i.
30511         * doc/regex.texi (Interval Operators): no commas inside @var.
30512
30513 2010-08-01  Bruno Haible  <bruno@clisp.org>
30514
30515         Integrate the regex documentation.
30516         * doc/gnulib.texi: Define 'cn' index.
30517         (Regular expressions): New a chapter that includes regex.texi and
30518         regexprops-generic.texi.
30519         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30520         syntax.
30521
30522         Whitespace cleanup.
30523         * doc/regex.texi: Remove trailing spaces.
30524
30525         Add regex documentation.
30526         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30527         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30528         Written by Kathy A. Hargreaves and Karl Berry.
30529
30530 2010-08-01  Bruno Haible  <bruno@clisp.org>
30531
30532         link: Update documentation.
30533         * doc/posix-functions/link.texi: Update regarding Solaris.
30534
30535 2010-07-31  Bruno Haible  <bruno@clisp.org>
30536
30537         Update modules list.
30538         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30539         (String handling <string.h>): Add memcmp2, memxfrm.
30540         (Container data structures): Add xlist, xsublist, xoset.
30541         (Core language properties): Add alignof, unused-parameter.
30542         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30543         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30544         (Unibyte characters <ctype.h>): New section.
30545         (String handling <string.h>): New section.
30546         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30547         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30548         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30549         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30550         tan, tanh, tanl, y0, y1, yn.
30551         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30552         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30553         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30554         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30555         unlockpt, vdprintf, vdprintf-posix.
30556         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30557         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30558         xconcat-filename.
30559         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30560         getdtablesize, pipe2, pipe2-safer.
30561         (Security): New section.
30562         (Networking functions): Add accept4.
30563         (Signal handling): Add sigpipe.
30564         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30565         mbmemcasecoll.
30566         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30567         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30568         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30569         pipe-filter-ii.
30570         (Misc): Add argp-version-etc, login_tty, parse-duration.
30571
30572 2010-07-31  Bruno Haible  <bruno@clisp.org>
30573
30574         Improve doc in MODULES.html.
30575         * modules/linkat (Description): Add the word "function".
30576         * modules/mkfifo (Description): Likewise.
30577         * modules/mknod (Description): Likewise.
30578         * modules/remove (Description): Likewise.
30579         * modules/renameat (Description): Likewise.
30580         * modules/stat (Description): Likewise.
30581         * modules/symlink (Description): Likewise.
30582         * modules/unlink (Description): Likewise.
30583
30584 2010-07-31  Bruno Haible  <bruno@clisp.org>
30585
30586         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30587         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30588         option --enable/disable-c++ instead of --enable/disable-cxx.
30589         * NEWS: Mention the change.
30590
30591 2010-07-31  Bruno Haible  <bruno@clisp.org>
30592
30593         readlink, areadlink: Relax test a bit.
30594         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30595         alternative to ENOTDIR.
30596         * tests/test-areadlink.h (test_areadlink): Likewise.
30597         Reported by Rainer Tammer.
30598
30599 2010-07-31  Bruno Haible  <bruno@clisp.org>
30600
30601         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30602         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30603         character, perform the search using U_STRCHR.
30604         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30605         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30606         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30607         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30608         Suggested by Paolo Bonzini.
30609
30610 2010-07-31  Bruno Haible  <bruno@clisp.org>
30611
30612         unistr/u*-strstr: Fix dependencies.
30613         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30614         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30615         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30616
30617 2010-07-31  Bruno Haible  <bruno@clisp.org>
30618
30619         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30620         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30621         the beginning of the loop.
30622         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30623         cases in 'switch' statement.
30624
30625         unistr/u8-strchr: Fix several bugs.
30626         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30627         the string. When not found, return NULL, not a pointer near the end.
30628
30629         More tests for unistr/u8-strchr.
30630         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30631         that the function does not read past the first occurrence of the byte
30632         being searched.
30633         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30634         * tests/unistr/test-u16-strchr.c (main): New function.
30635         * tests/unistr/test-u32-strchr.c (main): New function.
30636
30637 2010-07-31  Bruno Haible  <bruno@clisp.org>
30638
30639         posix-modules: Ignore backup files of documentation files.
30640         * posix-modules: grep only through files named *.texi.
30641
30642 2010-07-31  Bruno Haible  <bruno@clisp.org>
30643
30644         symlinkat: Fix documentation.
30645         * doc/posix-functions/readlinkat.texi: Fix module name.
30646
30647 2010-07-31  Bruno Haible  <bruno@clisp.org>
30648
30649         fchownat: Replace also when chown has the trailing slash bug.
30650         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30651         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30652         introduced on 2010-04-10.
30653         Reported by Rainer Tammer.
30654
30655 2010-07-31  Bruno Haible  <bruno@clisp.org>
30656
30657         linkat: Work around AIX 7.1 bug.
30658         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30659         whether linkat handles trailing slash correctly. If not, replace linkat
30660         and define LINKAT_TRAILING_SLASH_BUG.
30661         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30662         check whether (fd1,file1) points to a directory if file1 or file2 ends
30663         in a slash. Code taken from lib/link.c.
30664         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30665         Reported by Rainer Tammer.
30666
30667 2010-07-31  Bruno Haible  <bruno@clisp.org>
30668
30669         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30670         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30671         This disables an xlc optimization that was causing wrong test results.
30672         Reported by Rainer Tammer.
30673
30674 2010-07-31  Bruno Haible  <bruno@clisp.org>
30675
30676         iconv: Work around AIX 6.1..7.1 bug.
30677         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30678         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30679         cross-compiling, guess no on all versions of AIX.
30680         Reported by Rainer Tammer.
30681
30682 2010-07-31  Bruno Haible  <bruno@clisp.org>
30683
30684         readlink: Relax test a bit.
30685         * tests/test-readlink.h (test_readlink): Allow different errno value
30686         when readlink is called with a file name that ends in / and refers to
30687         a file.
30688         Suggested by Eric Blake.
30689         Reported by Rainer Tammer.
30690
30691 2010-07-31  Bruno Haible  <bruno@clisp.org>
30692
30693         copysign: Does not require -lm on glibc systems.
30694         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30695         gl_COMMON_DOUBLE_MATHFUNC.
30696         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30697
30698 2010-07-31  Bruno Haible  <bruno@clisp.org>
30699
30700         duplocale: Work around AIX 7.1 bug.
30701         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30702         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30703         * lib/duplocale.c (rpl_duplocale): Update comment.
30704         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30705         Reported by Rainer Tammer.
30706
30707 2010-07-30  Bruno Haible  <bruno@clisp.org>
30708
30709         dirfd: Avoid link error on AIX 7.1.
30710         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30711         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30712         exist, set REPLACE_DIRFD.
30713         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30714         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30715         * doc/posix-functions/dirfd.texi: Update.
30716         Reported by Rainer Tammer.
30717
30718 2010-07-30  Eric Blake  <eblake@redhat.com>
30719
30720         strtod: next round of AIX fixes
30721         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30722         exponent.
30723         * tests/test-strtod.c (main): Enhance tests.
30724         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30725         Reported by Rainer Tammer.
30726
30727         futimens: fix configure check
30728         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30729         Reported by Bruno Haible.
30730
30731 2010-07-30  Bruno Haible  <bruno@clisp.org>
30732
30733         getline: Update regarding AIX.
30734         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30735         Reported by Rainer Tammer.
30736
30737 2010-07-30  Bruno Haible  <bruno@clisp.org>
30738
30739         wcwidth: Drop replacement on AIX 7.
30740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30741         AIX 7.
30742         Reported by Rainer Tammer.
30743
30744 2010-07-30  Bruno Haible  <bruno@clisp.org>
30745
30746         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30747         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30748         a 'char *'.
30749         Reported by Rainer Tammer.
30750
30751 2010-07-30  Bruno Haible  <bruno@clisp.org>
30752
30753         unlink: Update regarding AIX.
30754         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30755         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30756         Reported by Rainer Tammer.
30757
30758 2010-07-30  Bruno Haible  <bruno@clisp.org>
30759
30760         symlink: Update regarding AIX.
30761         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30762         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30763         Reported by Rainer Tammer.
30764
30765 2010-07-30  Bruno Haible  <bruno@clisp.org>
30766
30767         strndup: Update regarding AIX.
30768         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30769         AIX 7.
30770         Reported by Rainer Tammer.
30771
30772 2010-07-30  Bruno Haible  <bruno@clisp.org>
30773
30774         stat: Update regarding AIX.
30775         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30776         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30777         Reported by Rainer Tammer.
30778
30779 2010-07-30  Bruno Haible  <bruno@clisp.org>
30780
30781         truncl: Fix autoconf test.
30782         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30783         whether truncl works.
30784         Reported by Rainer Tammer.
30785
30786 2010-07-30  Bruno Haible  <bruno@clisp.org>
30787
30788         round: Update regarding AIX.
30789         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30790         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30791         Reported by Rainer Tammer.
30792
30793 2010-07-30  Bruno Haible  <bruno@clisp.org>
30794
30795         rename: Update regarding AIX.
30796         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30797         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30798         Reported by Rainer Tammer.
30799
30800 2010-07-30  Bruno Haible  <bruno@clisp.org>
30801
30802         printf.m4: Update regarding AIX.
30803         * m4/printf.m4: Update comments regarding AIX.
30804         Reported by Rainer Tammer.
30805
30806 2010-07-30  Bruno Haible  <bruno@clisp.org>
30807
30808         iconv: Update regarding AIX.
30809         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30810         AIX 7.
30811         Reported by Rainer Tammer.
30812
30813 2010-07-30  Bruno Haible  <bruno@clisp.org>
30814
30815         getopt: Update regarding AIX.
30816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30817         no on AIX.
30818         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30819         Reported by Rainer Tammer.
30820
30821 2010-07-30  Bruno Haible  <bruno@clisp.org>
30822
30823         ldexpl; Update regarding AIX.
30824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30825         on AIX 7.
30826         Reported by Rainer Tammer.
30827
30828 2010-07-30  Bruno Haible  <bruno@clisp.org>
30829
30830         frexpl: Update regarding AIX.
30831         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30832         on AIX 7.
30833         Reported by Rainer Tammer.
30834
30835 2010-07-30  Bruno Haible  <bruno@clisp.org>
30836
30837         open, fopen: Update regarding AIX.
30838         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30839         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30840         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30841         * doc/posix-functions/fopen.texi: Likewise.
30842         Reported by Rainer Tammer.
30843
30844 2010-07-30  Bruno Haible  <bruno@clisp.org>
30845
30846         chown: Update doc regarding AIX.
30847         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30848         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30849         Reported by Rainer Tammer.
30850
30851 2010-07-30  Eric Blake  <eblake@redhat.com>
30852
30853         strtod: fix bug in replacement function on AIX
30854         * lib/strtod.c (strtod): Special case broken "0x" parse in
30855         underlying strtod.
30856         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30857         * doc/posix-functions/strtod.texi (strtod): Likewise.
30858         Reported by Rainer Tammer.
30859
30860 2010-07-30  Bruno Haible  <bruno@clisp.org>
30861
30862         mbrlen: Fix cross-compilation guess for AIX.
30863         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30864         guess. Leftover from 2008-12-22.
30865
30866 2010-07-30  Bruno Haible  <bruno@clisp.org>
30867
30868         mbrtowc: Fix cross-compilation guess for AIX.
30869         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30870         guess. Leftover from 2008-12-21.
30871
30872 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30873
30874         init.sh: work around trap limitation of some shells
30875         * tests/init.sh (setup_): Move exit trap outside of shell function.
30876
30877 2010-07-29  Eric Blake  <eblake@redhat.com>
30878
30879         strtod: aid debugging
30880         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30881         understanding why strtod is rejected.
30882
30883 2010-07-28  Bruno Haible  <bruno@clisp.org>
30884
30885         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30886         * lib/unistr/u8-chr.c: Include <string.h>.
30887         * tests/unistr/test-u8-chr.c: Likewise.
30888         * tests/unistr/test-u16-chr.c: Likewise.
30889         * tests/unistr/test-u32-chr.c: Likewise.
30890         * tests/unistr/test-u8-strchr.c: Likewise.
30891         * tests/unistr/test-u16-strchr.c: Likewise.
30892         * tests/unistr/test-u32-strchr.c: Likewise.
30893         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30894         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30895         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30896         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30897
30898 2010-07-28  Bruno Haible  <bruno@clisp.org>
30899
30900         Use spaces for indentation, not tabs.
30901         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30902
30903 2010-07-27  Bruno Haible  <bruno@clisp.org>
30904
30905         mbspcasecmp: Fix function specification.
30906         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30907         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30908         Reported by Eric Blake <eblake@redhat.com>.
30909
30910 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30911
30912         timespec: use cast and not conditional, as truncation isn't possible
30913         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30914         instead of a conditional.  Comment about the situation in more detail.
30915         This undoes most of the 2009-10-29 patch.
30916
30917 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30918
30919         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30920         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30921         * lib/unistr/u8-strchr.c: Likewise.
30922         * modules/unistr/u8-chr: Depend on memchr.
30923
30924         unistr/u*-strchr: add tests
30925         * modules/unistr/u8-strchr-tests: New file.
30926         * modules/unistr/u16-strchr-tests: New file.
30927         * modules/unistr/u32-strchr-tests: New file.
30928         * tests/unistr/test-strchr.h: New file.
30929         * tests/unistr/test-u8-strchr.c: New file.
30930         * tests/unistr/test-u16-strchr.c: New file.
30931         * tests/unistr/test-u32-strchr.c: New file.
30932
30933         unistr/u*-chr: test multibyte sequences more
30934         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30935         test vector.
30936         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30937         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30938         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30939
30940         unistr/u*-chr: test multibyte sequences
30941         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30942
30943         unistr/u*-chr: prepare for multibyte tests
30944         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30945         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30946         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30947         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30948         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30949         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30950
30951 2010-07-18  Bruno Haible  <bruno@clisp.org>
30952
30953         unistr/u8-strchr: Optimize non-ASCII argument case.
30954         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30955         because the first byte often matches anyway.
30956         Reported by Pádraig Brady <P@draigbrady.com>.
30957
30958 2010-07-15  Karl Berry  <karl@gnu.org>
30959
30960         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30961
30962 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30963
30964         getcwd: on Solaris, work better if ancestors are inaccessible
30965         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30966         buffer and size, try again with a large buffer.  This works better
30967         on Solaris, since its getcwd succeeds even if the path to the root
30968         is inaccessible, and this is helpful in common cases such as .zfs
30969         hidden directories.  Problem reported by J Chapman Flack in
30970         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30971         Use system getcwd if it's declared, not merely if it's partly
30972         working; use the partly-working test only to avoid needless effort
30973         if the system getcwd fails.
30974         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30975         comment that was already obsolete and is now even more obsolete.
30976         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30977         now might call strdup.
30978
30979 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30980
30981         pthread: Add enough so that coreutils/src/sort.c compiles.
30982         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30983         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30984         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30985         Include <sys/types.h>, in case it defines pthread_t.
30986         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30987         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30988         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30989         (pthread_rwlockattr_t, pthread_spinlock_t):
30990         New typedefs, if HAVE_PTHREAD_T is not defined.
30991         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30992         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30993         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30994         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30995         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30996         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30997         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30998         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30999         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31000         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31001         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31002         New macros.
31003         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31004         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31005         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31006         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31007         (pthread_spin_unlock): New dummy functions.
31008         (pthread_create): Return EAGAIN; don't set errno.
31009         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31010         require AC_C_INLINE.
31011         * modules/pthread (Depends-on): Add sched, time.
31012         (pthread.h): Use AM_V_GEN.
31013
31014 2010-07-13  Bruno Haible  <bruno@clisp.org>
31015
31016         striconveh: Don't malloc memory if the result buffer is sufficient.
31017         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31018         buffer if its size is sufficient.
31019         Reported by Ludovic Courtès <ludo@gnu.org>.
31020
31021 2010-07-13  Bruno Haible  <bruno@clisp.org>
31022
31023         strtod: Add safety check.
31024         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31025
31026 2010-07-12  Bruno Haible  <bruno@clisp.org>
31027
31028         Unify tests that set gl_cv_func_ldexpl_no_libm.
31029         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31030         gl_FUNC_LDEXPL.
31031         (gl_FUNC_LDEXPL): Invoke it.
31032         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31033
31034 2010-07-12  Bruno Haible  <bruno@clisp.org>
31035
31036         Unify tests that set gl_cv_func_ldexp_no_libm.
31037         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31038         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31039         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31040         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31041         * modules/strtod (Files): Add m4/ldexp.m4.
31042
31043 2010-07-12  Bruno Haible  <bruno@clisp.org>
31044
31045         Unify tests that set gl_cv_func_frexpl_no_libm.
31046         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31047         gl_FUNC_FREXPL_NO_LIBM.
31048         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31049         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31050
31051 2010-07-12  Bruno Haible  <bruno@clisp.org>
31052
31053         Unify tests that set gl_cv_func_frexp_no_libm.
31054         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31055         gl_FUNC_FREXP_NO_LIBM.
31056         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31057         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31058
31059 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31060
31061         memcoll: clarify sizes versus lengths, document better, and tweak perf
31062         * lib/memcoll.c (strcoll_loop, memcoll0):
31063         Improve quality of descriptive comments.  Name variables
31064         consistently as to whether they are lengths (which do not include
31065         terminating null) versus sizes (which do).
31066         * lib/xmemcoll.c (xmemcoll0): Likewise.
31067         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31068         returned when s1size == 0; this is easier to compile and saves
31069         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31070
31071 2010-07-12  Bruno Haible  <bruno@clisp.org>
31072
31073         Tests for module '_Exit'.
31074         * modules/_Exit-tests: New file.
31075         * tests/test-_Exit.sh: New file.
31076         * tests/test-_Exit.c: New file.
31077
31078         New module '_Exit'.
31079         * lib/stdlib.in.h (__attribute__): New macro.
31080         (_Exit): New declaration.
31081         * lib/_Exit.c: New file.
31082         * m4/_Exit.m4: New file.
31083         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31084         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31085         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31086         * modules/_Exit: New file.
31087         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31088         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31089
31090 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31091
31092         strtod: make it more-accurate typically, and don't require libm
31093         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31094         Include limits.h.  Don't include string.h.
31095         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31096         (locale_isspace): New function, so that no casts are needed to
31097         check whether *s is a space.
31098         (ldexp): Provide an unused dummy if not available.
31099         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31100         (strtod): Use them.  This implementation prefers to use the
31101         underlying strtod if available, falling back on our own code
31102         only to fix known bugs.  This is more likely to produce an
31103         accurate result.  Also, it avoids the use of libm functions.
31104         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31105         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31106         was absent, but it caused a test failure with coreutils.
31107         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31108         with libm.
31109         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31110         * modules/strtod-tests (Makefile.am): Likewise.
31111
31112 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31113             Bruno Haible  <bruno@clisp.org>
31114
31115         unistr/u8-strchr: Optimize ASCII argument case.
31116         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31117
31118 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31119
31120         (x)memcoll: minor tweaks
31121         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31122         is after the type that it qualifies.
31123         (memcoll0): Likewise.
31124         * lib/memcoll.h (memcoll0): Likewise.
31125         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31126         * lib/xmemcoll.h (xmemcoll0): Likewise.
31127         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31128         differs from memcoll in that the NUL byte is part of the argument.
31129         Omit the abort-checks, as performance is a real issue here.  Plus,
31130         the checks were wrong anyway (an off-by-one error).  Omit local
31131         variable 'diff', as it's a bit clearer that way.
31132         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31133         no longer needed.
31134
31135 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31136
31137         (x)memcoll: speedup when input is known to be NUL delimited
31138         * lib/memcoll.c: Include stdlib.
31139         (memcoll0): New function.
31140         (strcoll_loop): New function, refactored for use in both memcoll
31141         and memcoll0.
31142         * lib/memcoll.h (memcoll0): Add prototype.
31143         * lib/xmemcoll.c (xmemcoll0): New function.
31144         (collate_error): New function, refactored for use in both xmemcoll
31145         and xmemcoll0.
31146         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31147         * m4/memcoll.m4: add inline invocation.
31148
31149 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31150
31151         * build-aux/bootstrap: Remove any local translations
31152         from the translation project synchronization directory,
31153         so that local only translations are not distributed.
31154
31155 2010-07-04  Bruno Haible  <bruno@clisp.org>
31156
31157         fsusage: Clarify which code applies to which platforms.
31158         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31159         platform.
31160         * lib/fsusage.c (get_fs_usage): Likewise.
31161
31162 2010-07-04  Bruno Haible  <bruno@clisp.org>
31163
31164         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31165         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31166         Reported by Martin Lambers <marlam@marlam.de>.
31167
31168 2010-07-04  Jim Meyering  <meyering@redhat.com>
31169
31170         hash: once again explicitly disallow insertion of NULL
31171         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31172         inserting a NULL pointer cannot work with these functions.
31173         Add a comment with details.
31174         This reverts part of the 2010-07-01 commit, 5bef1a35
31175         "hash: extend module to deal with non-pointer keys".
31176
31177 2010-07-01  Bruno Haible  <bruno@clisp.org>
31178
31179         stdbool: Update doc.
31180         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31181         Info from Christian Weisgerber <naddy@mips.inka.de>.
31182
31183 2010-07-01  Jim Meyering  <meyering@redhat.com>
31184
31185         hash: extend module to deal with non-pointer keys
31186         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31187         but that allows insertion of non-pointer entries.
31188         Do not disallow an ENTRY value of NULL.
31189         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31190         * lib/hash.h (hash_insert0): Declare.
31191
31192 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31193
31194         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31195         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31196         not present (i.e. with autoconf 2.59 and when using gettextize, not
31197         gnulib), require AC_GNU_SOURCE instead.
31198
31199 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31200
31201         idpriv-drop: Fix tests.
31202         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31203         not to the test-idpriv-droptemp program.
31204
31205 2010-06-29  Bruno Haible  <bruno@clisp.org>
31206
31207         string: Fix syntax error with g++ 2.96.
31208         * lib/string.in.h (__pure__): Remove definition.
31209         (_GL_ATTRIBUTE_PURE): New macro.
31210         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31211         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31212         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31213
31214 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31215
31216         unitypes: Fix bug introduced on 2010-05-18.
31217         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31218
31219 2010-06-22  Eric Blake  <eblake@redhat.com>
31220
31221         memmem: slight optimization
31222         * lib/str-two-way.h (critical_factorization): Update comments.
31223         Reduce work during factorization phase.
31224         Reported by Carlos Bueno <carlos@bueno.org>.
31225
31226 2010-06-21  Bruno Haible  <bruno@clisp.org>
31227
31228         Fix HAVE_CALLOC_POSIX misnomer.
31229         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31230         !HAVE_CALLOC_POSIX.
31231         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31232         HAVE_CALLOC_POSIX.
31233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31234         instead of HAVE_CALLOC_POSIX.
31235         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31236         HAVE_CALLOC_POSIX.
31237
31238         Use modern idiom for calloc() replacement.
31239         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31240         AC_FUNC_CALLOC.
31241         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31242         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31243         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31244         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31245         (gl_REPLACE_CALLOC): New macro.
31246
31247 2010-06-21  Bruno Haible  <bruno@clisp.org>
31248
31249         Fix HAVE_REALLOC_POSIX misnomer.
31250         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31251         !HAVE_REALLOC_POSIX.
31252         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31253         HAVE_REALLOC_POSIX.
31254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31255         instead of HAVE_REALLOC_POSIX.
31256         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31257         HAVE_REALLOC_POSIX.
31258
31259         Use modern idiom for realloc() replacement.
31260         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31261         AC_FUNC_REALLOC.
31262         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31263         Autoconf's AC_FUNC_REALLOC.
31264         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31265         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31266         (gl_REPLACE_REALLOC): New macro.
31267         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31268
31269 2010-06-21  Bruno Haible  <bruno@clisp.org>
31270
31271         Fix HAVE_MALLOC_POSIX misnomer.
31272         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31273         !HAVE_MALLOC_POSIX.
31274         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31275         HAVE_MALLOC_POSIX.
31276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31277         instead of HAVE_MALLOC_POSIX.
31278         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31279         HAVE_MALLOC_POSIX.
31280
31281         Use modern idiom for malloc() replacement.
31282         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31283         AC_FUNC_MALLOC.
31284         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31285         Autoconf's AC_FUNC_MALLOC.
31286         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31287         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31288         (gl_REPLACE_MALLOC): New macro.
31289         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31290
31291 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31292
31293         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31294         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31295         This macro takes 3 arguments, not 4.
31296
31297 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31298
31299         ipv6: fix detection under mingw
31300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31301         in6_addr.
31302
31303 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31304
31305         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31306         that strtod() works when cross-compiling to a glibc version known
31307         to work.
31308
31309 2010-06-15  Bruno Haible  <bruno@clisp.org>
31310
31311         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31312
31313 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31314
31315         select: Correct timeout.
31316         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31317
31318 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31319
31320         git-version-gen: init shell var to avoid env var influence
31321         * build-aux/git-version-gen (v): Init shell var to empty.
31322
31323 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31324
31325         priv-set: Don't assume that priv.h exists merely because getppriv does.
31326         See Jan Andersen's bug report about AIX 5L in
31327         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31328         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31329         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31330         * lib/priv-set.h: Likewise.
31331         * tests/test-priv-set.c: Likewise.
31332
31333 2010-06-13  Bruno Haible  <bruno@clisp.org>
31334
31335         relocatable: Make it easier to test whether to install wrappers.
31336         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31337         RELOCATABLE_VIA_WRAPPER.
31338
31339 2010-06-13  Bruno Haible  <bruno@clisp.org>
31340
31341         gnulib-tool: Display specified modules and dependencies differently.
31342         * gnulib-tool (func_show_module_list): New function.
31343         (func_import, func_create_testdir): Invoke it.
31344         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31345
31346 2010-06-13  Bruno Haible  <bruno@clisp.org>
31347
31348         gnulib-tool: Align code of func_import and func_create_testdir.
31349         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31350         specified_modules.
31351
31352 2010-06-12  Jim Meyering  <meyering@redhat.com>
31353
31354         test-inttostr: avoid spurious failure on Solaris 9
31355         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31356         to accept "%ju".  Reported by Bruno Haible.
31357
31358 2010-06-11  Jim Meyering  <meyering@redhat.com>
31359
31360         test-sys_socket: mark variables as used more readably
31361         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31362         as "used" explicitly via (void) statement casts.  This is more
31363         readable than using them in an artificial return expression.
31364         Suggestion from Bruno Haible.
31365
31366 2010-06-11  Bruno Haible  <bruno@clisp.org>
31367
31368         Avoid some more warnings from "gcc -Wwrite-strings".
31369         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31370         to 'const char *'.
31371         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31372         * tests/test-c-strcasestr.c (main): Likewise.
31373         * tests/test-mbscasestr1.c (main): Likewise.
31374         * tests/test-mbscasestr2.c (main): Likewise.
31375         * tests/test-memmem.c (main): Likewise.
31376         * tests/test-strstr.c (main): Likewise.
31377         * tests/test-strcasestr.c (main): Likewise.
31378
31379 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31380
31381         init.sh: change framework_failure_ to fail with status 99, not 1
31382         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31383         automake's parallel-tests rule that this is an unexpected failure,
31384         even if the test is listed in XFAIL_TESTS.
31385
31386 2010-06-11  Jim Meyering  <meyering@redhat.com>
31387
31388         test-inttostr: avoid warnings about 4-6KB literal strings
31389         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31390         Include "macros.h", for its definition of ASSERT.
31391         (CK): s/assert/ASSERT/
31392         * modules/inttostr-tests (Files): Add macros.h.
31393
31394         init.sh: don't use $ME_ or skip_ before they are defined
31395         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31396         their first uses.  Also hoist their companions: warn_, fail_,
31397         framework_failure_, $stderr_fileno.  Prompted by a patch from
31398         Stefano Lattarini.
31399
31400         test-sys_socket: avoid set-but-not-used warnings from gcc
31401         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31402         avoid warning about set-but-not-used variables.
31403
31404         test-xvasprintf: avoid 'const' discard warnings
31405         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31406         "const" when assigning from literal strings.
31407         (test_xasprintf): Add "void" in function argument list to placate
31408         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31409
31410         tests: avoid compilation warnings in argmatch and exclude tests...
31411         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31412         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31413         Since it always exits, declare with the "noreturn" attribute.
31414         * tests/test-argmatch.c: Likewise.
31415
31416         tests: avoid 'const' discard warnings in mbsstr tests
31417         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31418         * tests/test-mbsstr2.c (main): Likewise.
31419
31420         test-verify: avoid warning from gcc's -Wmissing-declarations
31421         * tests/test-verify.c (function): Declare to be static.
31422
31423         test-inttostr.c: include <string.h> for use of strcmp
31424         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31425
31426         test-linkat: avoid failed assertion on "other" architectures
31427         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31428         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31429         sparc: https://bugs.launchpad.net/bugs/591968
31430
31431 2010-06-11  Jim Meyering  <meyering@redhat.com>
31432
31433         printf.m4: avoid autoconf's "Expanded Before Required" warning
31434         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31435         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31436         autoconf warning.
31437
31438 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31439
31440         Replacement header templates are now named with ".in", not "_".
31441         * doc/gnulib-intro.texi: Correct.
31442
31443 2010-06-10  Jim Meyering  <meyering@redhat.com>
31444
31445         inttostr-tests: depend on snprintf, not snprintf-posix
31446         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31447         snprintf-posix, to avoid this aclocal failure:
31448           missing file gnulib-tests/vasnprintf.c
31449           configure.ac:45: error: expected source file, required through \
31450           AC_LIBSOURCES, not found
31451
31452 2010-06-10  Jim Meyering  <meyering@redhat.com>
31453
31454         inttostr: add a new function, inttostr, and tests
31455         The namesake function was not available.  The existence of the
31456         template file, inttostr.c makes its addition nontrivial.
31457         * lib/anytostr.c: Rename from inttostr.c.
31458         (anytostr): Rename from inttostr.
31459         * lib/inttostr.c: New file.
31460         * modules/inttostr (Files): Add anytostr.c.
31461         (Makefile.am): Set lib_SOURCES instead of ...
31462         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31463         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31464         * lib/offtostr.c: Likewise.
31465         * lib/uinttostr.c: Likewise.
31466         * lib/umaxtostr.c: Likewise.
31467         * modules/inttostr-tests: New file.
31468         * tests/test-inttostr.c: New file.  Test these functions.
31469
31470 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31471             Bruno Haible  <bruno@clisp.org>
31472
31473         Add "Extending Gnulib" chapter to manual.
31474         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31475         chapter.
31476         (Extending Gnulib): New chapter.
31477         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31478         chapter.
31479
31480 2010-06-09  Bruno Haible  <bruno@clisp.org>
31481
31482         Avoid relocwrapper link errors due to gnulib replacement functions.
31483         * lib/areadlink.c: Use the system's malloc, realloc functions.
31484         (areadlink): Set errno to ENOMEM explicitly.
31485         * modules/areadlink (Depends-on): Remove malloc-posix.
31486         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31487
31488 2010-06-09  Bruno Haible  <bruno@clisp.org>
31489
31490         Avoid relocwrapper link errors due to gnulib replacement functions.
31491         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31492         * lib/malloca.c: Likewise.
31493         * lib/relocatable.c: Likewise.
31494         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31495         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31496         * lib/setenv.c: Use the system's malloc, realloc functions.
31497         * lib/strerror.c: Use the system's sprintf function.
31498         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31499
31500 2010-06-04  Bruno Haible  <bruno@clisp.org>
31501
31502         Prefer documented low-level autoconf macro names.
31503         * m4/lib-link.m4: Use m4_translit instead of translit.
31504         * m4/environ.m4: Likewise.
31505         * m4/mathfunc.m4: Likewise.
31506         * m4/onceonly.m4: Likewise.
31507         * m4/stdint.m4: Likewise.
31508         Suggested by Eric Blake.
31509
31510 2010-06-04  Martin Lambers  <marlam@marlam.de>
31511             Bruno Haible  <bruno@clisp.org>
31512
31513         havelib: Allow library names with '+' characters.
31514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31515         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31516
31517 2010-06-09  Bruno Haible  <bruno@clisp.org>
31518
31519         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31520         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31521         realloc failed.
31522
31523 2010-06-08  Peter Simons  <simons@cryp.to>
31524
31525         maint.mk: make the news-check rule more configurable
31526         * top/maint.mk (news-check-lines-spec): New variable.
31527         (news-check): Use "sed -n 1,10p" in place of "head".
31528
31529 2010-06-07  Jim Meyering  <meyering@redhat.com>
31530
31531         do-release-commit-and-tag: fix typo in --help
31532         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31533
31534         regex: avoid new dead-code warning with gcc-4.6.0
31535         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31536         if-block containing a while-loop.  It's been unused for at least
31537         5 years.
31538
31539 2010-06-05  Bruno Haible  <bruno@clisp.org>
31540
31541         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31542         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31543
31544 2010-06-04  Bruno Haible  <bruno@clisp.org>
31545
31546         Update to GNU gettext 0.18.1.
31547         * modules/gettext (configure.ac): Require gettext infrastructure from
31548         version 0.18.1.
31549
31550 2010-06-03  Bruno Haible  <bruno@clisp.org>
31551
31552         Don't use AC_LIBOBJ with file names in subdirectories.
31553         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31554         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31555         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31556         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31557         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31558         gl_LIBUNISTRING_LIBSOURCE.
31559         (Makefile.am): Augment lib_SOURCES here, conditionally.
31560         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31561
31562 2010-06-03  Bruno Haible  <bruno@clisp.org>
31563
31564         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31565         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31566         expansion does not end with a newline.
31567         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31568         unnecessary newline.
31569
31570 2010-06-03  Bruno Haible  <bruno@clisp.org>
31571
31572         Reduce dependencies.
31573         * tests/test-quotearg.h: New file, extracted from
31574         tests/test-quotearg.c.
31575         * tests/test-quotearg-simple.c: New file, extracted from
31576         tests/test-quotearg.c.
31577         * tests/test-quotearg.c: Don't include <ctype.h>.
31578         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31579         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31580         use_quote_double_quotes, use_quotearg_colon): Moved to
31581         tests/test-quotearg.h.
31582         (results_g, flag_results, custom_quotes, custom_results): Moved
31583         to tests/test-quotearg-simple.c.
31584         (main): Moved the part that does not depend on gettext to
31585         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31586         performed.
31587         * modules/quotearg-simple: New file.
31588         * modules/quotearg-simple-tests: New file.
31589         * modules/quotearg (Depends-on): Add quotearg-simple.
31590         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31591         (Files): Add tests/test-quotearg.h.
31592         Reported by Paolo Bonzini.
31593
31594 2010-06-03  Bruno Haible  <bruno@clisp.org>
31595
31596         Reduce dependencies.
31597         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31598
31599 2010-06-03  Bruno Haible  <bruno@clisp.org>
31600
31601         time: Undefine more broken macros.
31602         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31603         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31604         Reported by Eric Blake.
31605
31606 2010-06-03  Bruno Haible  <bruno@clisp.org>
31607
31608         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31609         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31610         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31611         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31612         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31613         Reported by Ludovic Courtès <ludo@gnu.org>.
31614
31615 2010-06-02  Eric Blake  <eblake@redhat.com>
31616
31617         time: work with mingw + pthreads-win32 library
31618         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31619         if timespec is defined only in pthread.h.
31620         * modules/time (Makefile.am): Substitute it.
31621         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31622         <pthread.h>, when needed.
31623         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31624         from the library.
31625
31626 2010-05-31  Bruno Haible  <bruno@clisp.org>
31627
31628         Avoid expanding two macros in the wrong order.
31629         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31630         gl_LIBUNISTRING if it is defined.
31631         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31632         autoconf >= 2.64.
31633         Reported by Ludovic Courtès <ludo@gnu.org>.
31634
31635 2010-05-27  Jim Meyering  <meyering@redhat.com>
31636
31637         maint.mk: also prohibit "#undef" of always-defined symbols
31638         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31639         Allow more than one space before the symbol name.
31640         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31641         the regexp uses alternation.
31642
31643 2010-05-26  Eric Blake  <eblake@redhat.com>
31644
31645         maint.mk: avoid echo -e
31646         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31647         Convert all uses of echo -* to printf.
31648         Reported by Matthias Bolte.
31649
31650 2010-05-25  Bruno Haible  <bruno@clisp.org>
31651
31652         Update to GNU gettext 0.18, part 2.
31653         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31654         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31655
31656 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31657
31658         Add missing include in test-pwrite.c.
31659         * tests/test-pwrite.c: Include string.h, for strcmp.
31660
31661 2010-05-24  Bruno Haible  <bruno@clisp.org>
31662
31663         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31664
31665 2010-05-24  Bruno Haible  <bruno@clisp.org>
31666
31667         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31668         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31669         iconveh_error argument.
31670         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31671         U_STRCONV_TO_LOCALE.
31672         * lib/unistr/u16-strcoll.c: Likewise.
31673         * lib/unistr/u32-strcoll.c: Likewise.
31674         * modules/unistr/u8-strcoll (Depends-on): Add
31675         uniconv/u8-strconv-to-enc, localcharset. Remove
31676         uniconv/u8-strconv-to-locale.
31677         (configure.ac): Bump version number.
31678         * modules/unistr/u16-strcoll (Depends-on): Add
31679         uniconv/u16-strconv-to-enc, localcharset. Remove
31680         uniconv/u16-strconv-to-locale.
31681         (configure.ac): Bump version number.
31682         * modules/unistr/u32-strcoll (Depends-on): Add
31683         uniconv/u32-strconv-to-enc, localcharset. Remove
31684         uniconv/u32-strconv-to-locale.
31685         (configure.ac): Bump version number.
31686
31687 2010-05-24  Bruno Haible  <bruno@clisp.org>
31688
31689         Avoid a test failure on NetBSD 5.0.
31690         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31691         an iconv() bug.
31692
31693 2010-05-24  Bruno Haible  <bruno@clisp.org>
31694
31695         Adjust #include directive style.
31696         * modules/regex (Includes): Recommend to write <regex.h>.
31697
31698 2010-05-24  Bruno Haible  <bruno@clisp.org>
31699
31700         regex: Don't require alloca.
31701         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31702         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31703         only inside if (0).
31704
31705 2010-05-23  Jim Meyering  <meyering@redhat.com>
31706
31707         test-renameat.c: include <sys/stat.h>
31708         * tests/test-renameat.c: Include <sys/stat.h>; required for
31709         definition of S_IS* macros.
31710
31711 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31712
31713         Update maintainer documentation for 'relocatable-prog' module.
31714         * doc/relocatable-maint.texi: Update.
31715         Comments by Bruno Haible.
31716
31717 2010-05-23  Bruno Haible  <bruno@clisp.org>
31718
31719         git-merge-changelog: Enable --split-merged-entry by default.
31720         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31721         (usage): Don't mention this option any more.
31722         Reported by Ralf Wildenhues.
31723
31724 2010-05-23  Jim Meyering  <meyering@redhat.com>
31725
31726         test-pwrite: do not leave behind a test file named "out"
31727         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31728         The trivial-looking use of init.sh is really necessary.
31729         It ensures that the temporary file, "out", is created in
31730         a temporary directory, and removed upon termination.
31731         * tests/test-pwrite.sh: Re-add file.
31732         * modules/pwrite-tests: Reference it.
31733
31734 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31735
31736         Fix output redirection buglet in init.sh.
31737         * tests/init.sh: Fix redirection of stderr.
31738
31739 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31740
31741         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31742
31743 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31744
31745         * modules/valgrind-tests: New file.
31746         * m4/valgrind-tests.m4: New file.
31747         * doc/valgrind-tests.texi: New file.
31748         * doc/gnulib.texi (Running self-tests under valgrind): New
31749         section.
31750
31751 2010-05-19  Bruno Haible  <bruno@clisp.org>
31752
31753         Clean up dead code in recent commit.
31754         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31755         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31756         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31757         Suggested by Paolo Bonzini.
31758
31759 2010-05-19  Bruno Haible  <bruno@clisp.org>
31760
31761         Avoid valgrind error reports from libunistring.
31762         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31763         * modules/libunistring (Files): Add it.
31764         * modules/libunistring-optional (Files): Likewise.
31765
31766 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31767             Bruno Haible  <bruno@clisp.org>
31768
31769         New module 'libunistring-optional'.
31770         * modules/libunistring-optional: New file.
31771         * m4/libunistring-base.m4: New file.
31772         * m4/libunistring-optional.m4: New file.
31773         * lib/unicase.in.h: Renamed from lib/unicase.h.
31774         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31775         * lib/unictype.in.h: Renamed from lib/unictype.h.
31776         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31777         * lib/uniname.in.h: Renamed from lib/uniname.h.
31778         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31779         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31780         * lib/unistr.in.h: Renamed from lib/unistr.h.
31781         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31782         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31783         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31784         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31785         gl_LIBUNISTRING. If the library was found, determine the installed
31786         version and set LIBUNISTRING_VERSION.
31787         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31788         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31789         handle a configuration option --with-included-libunistring.
31790         * modules/libunistring (Files): Add m4/absolute-header.m4.
31791         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31792         Add m4/libunistring-base.m4.
31793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31794         (Makefile.am): Build unicase.h from unicase.in.h.
31795         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31796         Add m4/libunistring-base.m4.
31797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31798         (Makefile.am): Build uniconv.h from uniconv.in.h.
31799         * modules/unictype/base (Files): Use unictype.in.h instead of
31800         unictype.h. Add m4/libunistring-base.m4.
31801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31802         (Makefile.am): Build unictype.h from unictype.in.h.
31803         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31804         Add m4/libunistring-base.m4.
31805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31806         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31807         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31808         Add m4/libunistring-base.m4.
31809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31810         (Makefile.am): Build uniname.h from uniname.in.h.
31811         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31812         Add m4/libunistring-base.m4.
31813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31814         (Makefile.am): Build uninorm.h from uninorm.in.h.
31815         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31816         unistdio.h. Add m4/libunistring-base.m4.
31817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31818         (Makefile.am): Build unistdio.h from unistdio.in.h.
31819         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31820         Add m4/libunistring-base.m4.
31821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31822         (Makefile.am): Build unistr.h from unistr.in.h.
31823         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31824         Add m4/libunistring-base.m4.
31825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31826         (Makefile.am): Build unitypes.h from unitypes.in.h.
31827         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31828         Add m4/libunistring-base.m4.
31829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31830         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31831         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31832         uniwidth.h. Add m4/libunistring-base.m4.
31833         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31834         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31835         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31836         instead of augmenting lib_SOURCES.
31837         * modules/unicase/empty-suffix-context: Likewise.
31838         * modules/unicase/locale-language: Likewise.
31839         * modules/unicase/tolower: Likewise.
31840         * modules/unicase/totitle: Likewise.
31841         * modules/unicase/toupper: Likewise.
31842         * modules/unicase/u8-casecmp: Likewise.
31843         * modules/unicase/u8-casecoll: Likewise.
31844         * modules/unicase/u8-casefold: Likewise.
31845         * modules/unicase/u8-casexfrm: Likewise.
31846         * modules/unicase/u8-ct-casefold: Likewise.
31847         * modules/unicase/u8-ct-tolower: Likewise.
31848         * modules/unicase/u8-ct-totitle: Likewise.
31849         * modules/unicase/u8-ct-toupper: Likewise.
31850         * modules/unicase/u8-is-cased: Likewise.
31851         * modules/unicase/u8-is-casefolded: Likewise.
31852         * modules/unicase/u8-is-lowercase: Likewise.
31853         * modules/unicase/u8-is-titlecase: Likewise.
31854         * modules/unicase/u8-is-uppercase: Likewise.
31855         * modules/unicase/u8-prefix-context: Likewise.
31856         * modules/unicase/u8-suffix-context: Likewise.
31857         * modules/unicase/u8-tolower: Likewise.
31858         * modules/unicase/u8-totitle: Likewise.
31859         * modules/unicase/u8-toupper: Likewise.
31860         * modules/unicase/u16-casecmp: Likewise.
31861         * modules/unicase/u16-casecoll: Likewise.
31862         * modules/unicase/u16-casefold: Likewise.
31863         * modules/unicase/u16-casexfrm: Likewise.
31864         * modules/unicase/u16-ct-casefold: Likewise.
31865         * modules/unicase/u16-ct-tolower: Likewise.
31866         * modules/unicase/u16-ct-totitle: Likewise.
31867         * modules/unicase/u16-ct-toupper: Likewise.
31868         * modules/unicase/u16-is-cased: Likewise.
31869         * modules/unicase/u16-is-casefolded: Likewise.
31870         * modules/unicase/u16-is-lowercase: Likewise.
31871         * modules/unicase/u16-is-titlecase: Likewise.
31872         * modules/unicase/u16-is-uppercase: Likewise.
31873         * modules/unicase/u16-prefix-context: Likewise.
31874         * modules/unicase/u16-suffix-context: Likewise.
31875         * modules/unicase/u16-tolower: Likewise.
31876         * modules/unicase/u16-totitle: Likewise.
31877         * modules/unicase/u16-toupper: Likewise.
31878         * modules/unicase/u32-casecmp: Likewise.
31879         * modules/unicase/u32-casecoll: Likewise.
31880         * modules/unicase/u32-casefold: Likewise.
31881         * modules/unicase/u32-casexfrm: Likewise.
31882         * modules/unicase/u32-ct-casefold: Likewise.
31883         * modules/unicase/u32-ct-tolower: Likewise.
31884         * modules/unicase/u32-ct-totitle: Likewise.
31885         * modules/unicase/u32-ct-toupper: Likewise.
31886         * modules/unicase/u32-is-cased: Likewise.
31887         * modules/unicase/u32-is-casefolded: Likewise.
31888         * modules/unicase/u32-is-lowercase: Likewise.
31889         * modules/unicase/u32-is-titlecase: Likewise.
31890         * modules/unicase/u32-is-uppercase: Likewise.
31891         * modules/unicase/u32-prefix-context: Likewise.
31892         * modules/unicase/u32-suffix-context: Likewise.
31893         * modules/unicase/u32-tolower: Likewise.
31894         * modules/unicase/u32-totitle: Likewise.
31895         * modules/unicase/u32-toupper: Likewise.
31896         * modules/unicase/ulc-casecmp: Likewise.
31897         * modules/unicase/ulc-casecoll: Likewise.
31898         * modules/unicase/ulc-casexfrm: Likewise.
31899         * modules/uniconv/u8-conv-from-enc: Likewise.
31900         * modules/uniconv/u8-conv-to-enc: Likewise.
31901         * modules/uniconv/u8-strconv-from-enc: Likewise.
31902         * modules/uniconv/u8-strconv-from-locale: Likewise.
31903         * modules/uniconv/u8-strconv-to-enc: Likewise.
31904         * modules/uniconv/u8-strconv-to-locale: Likewise.
31905         * modules/uniconv/u16-conv-from-enc: Likewise.
31906         * modules/uniconv/u16-conv-to-enc: Likewise.
31907         * modules/uniconv/u16-strconv-from-enc: Likewise.
31908         * modules/uniconv/u16-strconv-from-locale: Likewise.
31909         * modules/uniconv/u16-strconv-to-enc: Likewise.
31910         * modules/uniconv/u16-strconv-to-locale: Likewise.
31911         * modules/uniconv/u32-conv-from-enc: Likewise.
31912         * modules/uniconv/u32-conv-to-enc: Likewise.
31913         * modules/uniconv/u32-strconv-from-enc: Likewise.
31914         * modules/uniconv/u32-strconv-from-locale: Likewise.
31915         * modules/uniconv/u32-strconv-to-enc: Likewise.
31916         * modules/uniconv/u32-strconv-to-locale: Likewise.
31917         * modules/unictype/bidicategory-byname: Likewise.
31918         * modules/unictype/bidicategory-name: Likewise.
31919         * modules/unictype/bidicategory-of: Likewise.
31920         * modules/unictype/bidicategory-test: Likewise.
31921         * modules/unictype/block-list: Likewise.
31922         * modules/unictype/block-test: Likewise.
31923         * modules/unictype/category-C: Likewise.
31924         * modules/unictype/category-Cc: Likewise.
31925         * modules/unictype/category-Cf: Likewise.
31926         * modules/unictype/category-Cn: Likewise.
31927         * modules/unictype/category-Co: Likewise.
31928         * modules/unictype/category-Cs: Likewise.
31929         * modules/unictype/category-L: Likewise.
31930         * modules/unictype/category-Ll: Likewise.
31931         * modules/unictype/category-Lm: Likewise.
31932         * modules/unictype/category-Lo: Likewise.
31933         * modules/unictype/category-Lt: Likewise.
31934         * modules/unictype/category-Lu: Likewise.
31935         * modules/unictype/category-M: Likewise.
31936         * modules/unictype/category-Mc: Likewise.
31937         * modules/unictype/category-Me: Likewise.
31938         * modules/unictype/category-Mn: Likewise.
31939         * modules/unictype/category-N: Likewise.
31940         * modules/unictype/category-Nd: Likewise.
31941         * modules/unictype/category-Nl: Likewise.
31942         * modules/unictype/category-No: Likewise.
31943         * modules/unictype/category-P: Likewise.
31944         * modules/unictype/category-Pc: Likewise.
31945         * modules/unictype/category-Pd: Likewise.
31946         * modules/unictype/category-Pe: Likewise.
31947         * modules/unictype/category-Pf: Likewise.
31948         * modules/unictype/category-Pi: Likewise.
31949         * modules/unictype/category-Po: Likewise.
31950         * modules/unictype/category-Ps: Likewise.
31951         * modules/unictype/category-S: Likewise.
31952         * modules/unictype/category-Sc: Likewise.
31953         * modules/unictype/category-Sk: Likewise.
31954         * modules/unictype/category-Sm: Likewise.
31955         * modules/unictype/category-So: Likewise.
31956         * modules/unictype/category-Z: Likewise.
31957         * modules/unictype/category-Zl: Likewise.
31958         * modules/unictype/category-Zp: Likewise.
31959         * modules/unictype/category-Zs: Likewise.
31960         * modules/unictype/category-and: Likewise.
31961         * modules/unictype/category-and-not: Likewise.
31962         * modules/unictype/category-byname: Likewise.
31963         * modules/unictype/category-name: Likewise.
31964         * modules/unictype/category-none: Likewise.
31965         * modules/unictype/category-of: Likewise.
31966         * modules/unictype/category-or: Likewise.
31967         * modules/unictype/category-test: Likewise.
31968         * modules/unictype/combining-class: Likewise.
31969         * modules/unictype/ctype-alnum: Likewise.
31970         * modules/unictype/ctype-alpha: Likewise.
31971         * modules/unictype/ctype-blank: Likewise.
31972         * modules/unictype/ctype-cntrl: Likewise.
31973         * modules/unictype/ctype-digit: Likewise.
31974         * modules/unictype/ctype-graph: Likewise.
31975         * modules/unictype/ctype-lower: Likewise.
31976         * modules/unictype/ctype-print: Likewise.
31977         * modules/unictype/ctype-punct: Likewise.
31978         * modules/unictype/ctype-space: Likewise.
31979         * modules/unictype/ctype-upper: Likewise.
31980         * modules/unictype/ctype-xdigit: Likewise.
31981         * modules/unictype/decimal-digit: Likewise.
31982         * modules/unictype/digit: Likewise.
31983         * modules/unictype/mirror: Likewise.
31984         * modules/unictype/numeric: Likewise.
31985         * modules/unictype/property-alphabetic: Likewise.
31986         * modules/unictype/property-ascii-hex-digit: Likewise.
31987         * modules/unictype/property-bidi-arabic-digit: Likewise.
31988         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31989         * modules/unictype/property-bidi-block-separator: Likewise.
31990         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31991         * modules/unictype/property-bidi-common-separator: Likewise.
31992         * modules/unictype/property-bidi-control: Likewise.
31993         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31994         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31995         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31996         * modules/unictype/property-bidi-european-digit: Likewise.
31997         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31998         * modules/unictype/property-bidi-left-to-right: Likewise.
31999         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32000         * modules/unictype/property-bidi-other-neutral: Likewise.
32001         * modules/unictype/property-bidi-pdf: Likewise.
32002         * modules/unictype/property-bidi-segment-separator: Likewise.
32003         * modules/unictype/property-bidi-whitespace: Likewise.
32004         * modules/unictype/property-byname: Likewise.
32005         * modules/unictype/property-combining: Likewise.
32006         * modules/unictype/property-composite: Likewise.
32007         * modules/unictype/property-currency-symbol: Likewise.
32008         * modules/unictype/property-dash: Likewise.
32009         * modules/unictype/property-decimal-digit: Likewise.
32010         * modules/unictype/property-default-ignorable-code-point: Likewise.
32011         * modules/unictype/property-deprecated: Likewise.
32012         * modules/unictype/property-diacritic: Likewise.
32013         * modules/unictype/property-extender: Likewise.
32014         * modules/unictype/property-format-control: Likewise.
32015         * modules/unictype/property-grapheme-base: Likewise.
32016         * modules/unictype/property-grapheme-extend: Likewise.
32017         * modules/unictype/property-grapheme-link: Likewise.
32018         * modules/unictype/property-hex-digit: Likewise.
32019         * modules/unictype/property-hyphen: Likewise.
32020         * modules/unictype/property-id-continue: Likewise.
32021         * modules/unictype/property-id-start: Likewise.
32022         * modules/unictype/property-ideographic: Likewise.
32023         * modules/unictype/property-ids-binary-operator: Likewise.
32024         * modules/unictype/property-ids-trinary-operator: Likewise.
32025         * modules/unictype/property-ignorable-control: Likewise.
32026         * modules/unictype/property-iso-control: Likewise.
32027         * modules/unictype/property-join-control: Likewise.
32028         * modules/unictype/property-left-of-pair: Likewise.
32029         * modules/unictype/property-line-separator: Likewise.
32030         * modules/unictype/property-logical-order-exception: Likewise.
32031         * modules/unictype/property-lowercase: Likewise.
32032         * modules/unictype/property-math: Likewise.
32033         * modules/unictype/property-non-break: Likewise.
32034         * modules/unictype/property-not-a-character: Likewise.
32035         * modules/unictype/property-numeric: Likewise.
32036         * modules/unictype/property-other-alphabetic: Likewise.
32037         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32038         * modules/unictype/property-other-grapheme-extend: Likewise.
32039         * modules/unictype/property-other-id-continue: Likewise.
32040         * modules/unictype/property-other-id-start: Likewise.
32041         * modules/unictype/property-other-lowercase: Likewise.
32042         * modules/unictype/property-other-math: Likewise.
32043         * modules/unictype/property-other-uppercase: Likewise.
32044         * modules/unictype/property-paired-punctuation: Likewise.
32045         * modules/unictype/property-paragraph-separator: Likewise.
32046         * modules/unictype/property-pattern-syntax: Likewise.
32047         * modules/unictype/property-pattern-white-space: Likewise.
32048         * modules/unictype/property-private-use: Likewise.
32049         * modules/unictype/property-punctuation: Likewise.
32050         * modules/unictype/property-quotation-mark: Likewise.
32051         * modules/unictype/property-radical: Likewise.
32052         * modules/unictype/property-sentence-terminal: Likewise.
32053         * modules/unictype/property-soft-dotted: Likewise.
32054         * modules/unictype/property-space: Likewise.
32055         * modules/unictype/property-terminal-punctuation: Likewise.
32056         * modules/unictype/property-test: Likewise.
32057         * modules/unictype/property-titlecase: Likewise.
32058         * modules/unictype/property-unassigned-code-value: Likewise.
32059         * modules/unictype/property-unified-ideograph: Likewise.
32060         * modules/unictype/property-uppercase: Likewise.
32061         * modules/unictype/property-variation-selector: Likewise.
32062         * modules/unictype/property-white-space: Likewise.
32063         * modules/unictype/property-xid-continue: Likewise.
32064         * modules/unictype/property-xid-start: Likewise.
32065         * modules/unictype/property-zero-width: Likewise.
32066         * modules/unictype/scripts: Likewise.
32067         * modules/unictype/syntax-c-ident: Likewise.
32068         * modules/unictype/syntax-c-whitespace: Likewise.
32069         * modules/unictype/syntax-java-ident: Likewise.
32070         * modules/unictype/syntax-java-whitespace: Likewise.
32071         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32072         * modules/unilbrk/u8-width-linebreaks: Likewise.
32073         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32074         * modules/unilbrk/u16-width-linebreaks: Likewise.
32075         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32076         * modules/unilbrk/u32-width-linebreaks: Likewise.
32077         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32078         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32079         * modules/uniname/uniname: Likewise.
32080         * modules/uninorm/canonical-decomposition: Likewise.
32081         * modules/uninorm/composition: Likewise.
32082         * modules/uninorm/decomposing-form: Likewise.
32083         * modules/uninorm/decomposition: Likewise.
32084         * modules/uninorm/filter: Likewise.
32085         * modules/uninorm/nfc: Likewise.
32086         * modules/uninorm/nfd: Likewise.
32087         * modules/uninorm/nfkc: Likewise.
32088         * modules/uninorm/nfkd: Likewise.
32089         * modules/uninorm/u8-normalize: Likewise.
32090         * modules/uninorm/u8-normcmp: Likewise.
32091         * modules/uninorm/u8-normcoll: Likewise.
32092         * modules/uninorm/u8-normxfrm: Likewise.
32093         * modules/uninorm/u16-normalize: Likewise.
32094         * modules/uninorm/u16-normcmp: Likewise.
32095         * modules/uninorm/u16-normcoll: Likewise.
32096         * modules/uninorm/u16-normxfrm: Likewise.
32097         * modules/uninorm/u32-normalize: Likewise.
32098         * modules/uninorm/u32-normcmp: Likewise.
32099         * modules/uninorm/u32-normcoll: Likewise.
32100         * modules/uninorm/u32-normxfrm: Likewise.
32101         * modules/unistdio/u8-asnprintf: Likewise.
32102         * modules/unistdio/u8-asprintf: Likewise.
32103         * modules/unistdio/u8-snprintf: Likewise.
32104         * modules/unistdio/u8-sprintf: Likewise.
32105         * modules/unistdio/u8-u8-asnprintf: Likewise.
32106         * modules/unistdio/u8-u8-asprintf: Likewise.
32107         * modules/unistdio/u8-u8-snprintf: Likewise.
32108         * modules/unistdio/u8-u8-sprintf: Likewise.
32109         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32110         * modules/unistdio/u8-u8-vasprintf: Likewise.
32111         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32112         * modules/unistdio/u8-u8-vsprintf: Likewise.
32113         * modules/unistdio/u8-vasnprintf: Likewise.
32114         * modules/unistdio/u8-vasprintf: Likewise.
32115         * modules/unistdio/u8-vsnprintf: Likewise.
32116         * modules/unistdio/u8-vsprintf: Likewise.
32117         * modules/unistdio/u16-asnprintf: Likewise.
32118         * modules/unistdio/u16-asprintf: Likewise.
32119         * modules/unistdio/u16-snprintf: Likewise.
32120         * modules/unistdio/u16-sprintf: Likewise.
32121         * modules/unistdio/u16-u16-asnprintf: Likewise.
32122         * modules/unistdio/u16-u16-asprintf: Likewise.
32123         * modules/unistdio/u16-u16-snprintf: Likewise.
32124         * modules/unistdio/u16-u16-sprintf: Likewise.
32125         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32126         * modules/unistdio/u16-u16-vasprintf: Likewise.
32127         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32128         * modules/unistdio/u16-u16-vsprintf: Likewise.
32129         * modules/unistdio/u16-vasnprintf: Likewise.
32130         * modules/unistdio/u16-vasprintf: Likewise.
32131         * modules/unistdio/u16-vsnprintf: Likewise.
32132         * modules/unistdio/u16-vsprintf: Likewise.
32133         * modules/unistdio/u32-asnprintf: Likewise.
32134         * modules/unistdio/u32-asprintf: Likewise.
32135         * modules/unistdio/u32-snprintf: Likewise.
32136         * modules/unistdio/u32-sprintf: Likewise.
32137         * modules/unistdio/u32-u32-asnprintf: Likewise.
32138         * modules/unistdio/u32-u32-asprintf: Likewise.
32139         * modules/unistdio/u32-u32-snprintf: Likewise.
32140         * modules/unistdio/u32-u32-sprintf: Likewise.
32141         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32142         * modules/unistdio/u32-u32-vasprintf: Likewise.
32143         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32144         * modules/unistdio/u32-u32-vsprintf: Likewise.
32145         * modules/unistdio/u32-vasnprintf: Likewise.
32146         * modules/unistdio/u32-vasprintf: Likewise.
32147         * modules/unistdio/u32-vsnprintf: Likewise.
32148         * modules/unistdio/u32-vsprintf: Likewise.
32149         * modules/unistdio/ulc-asnprintf: Likewise.
32150         * modules/unistdio/ulc-asprintf: Likewise.
32151         * modules/unistdio/ulc-fprintf: Likewise.
32152         * modules/unistdio/ulc-snprintf: Likewise.
32153         * modules/unistdio/ulc-sprintf: Likewise.
32154         * modules/unistdio/ulc-vasnprintf: Likewise.
32155         * modules/unistdio/ulc-vasprintf: Likewise.
32156         * modules/unistdio/ulc-vfprintf: Likewise.
32157         * modules/unistdio/ulc-vsnprintf: Likewise.
32158         * modules/unistdio/ulc-vsprintf: Likewise.
32159         * modules/unistr/u8-check: Likewise.
32160         * modules/unistr/u8-chr: Likewise.
32161         * modules/unistr/u8-cmp: Likewise.
32162         * modules/unistr/u8-cmp2: Likewise.
32163         * modules/unistr/u8-cpy: Likewise.
32164         * modules/unistr/u8-cpy-alloc: Likewise.
32165         * modules/unistr/u8-endswith: Likewise.
32166         * modules/unistr/u8-mblen: Likewise.
32167         * modules/unistr/u8-mbsnlen: Likewise.
32168         * modules/unistr/u8-mbtouc: Likewise.
32169         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32170         * modules/unistr/u8-mbtoucr: Likewise.
32171         * modules/unistr/u8-move: Likewise.
32172         * modules/unistr/u8-next: Likewise.
32173         * modules/unistr/u8-prev: Likewise.
32174         * modules/unistr/u8-set: Likewise.
32175         * modules/unistr/u8-startswith: Likewise.
32176         * modules/unistr/u8-stpcpy: Likewise.
32177         * modules/unistr/u8-stpncpy: Likewise.
32178         * modules/unistr/u8-strcat: Likewise.
32179         * modules/unistr/u8-strchr: Likewise.
32180         * modules/unistr/u8-strcmp: Likewise.
32181         * modules/unistr/u8-strcoll: Likewise.
32182         * modules/unistr/u8-strcpy: Likewise.
32183         * modules/unistr/u8-strcspn: Likewise.
32184         * modules/unistr/u8-strdup: Likewise.
32185         * modules/unistr/u8-strlen: Likewise.
32186         * modules/unistr/u8-strmblen: Likewise.
32187         * modules/unistr/u8-strmbtouc: Likewise.
32188         * modules/unistr/u8-strncat: Likewise.
32189         * modules/unistr/u8-strncmp: Likewise.
32190         * modules/unistr/u8-strncpy: Likewise.
32191         * modules/unistr/u8-strnlen: Likewise.
32192         * modules/unistr/u8-strpbrk: Likewise.
32193         * modules/unistr/u8-strrchr: Likewise.
32194         * modules/unistr/u8-strspn: Likewise.
32195         * modules/unistr/u8-strstr: Likewise.
32196         * modules/unistr/u8-strtok: Likewise.
32197         * modules/unistr/u8-to-u16: Likewise.
32198         * modules/unistr/u8-to-u32: Likewise.
32199         * modules/unistr/u8-uctomb: Likewise.
32200         * modules/unistr/u16-check: Likewise.
32201         * modules/unistr/u16-chr: Likewise.
32202         * modules/unistr/u16-cmp: Likewise.
32203         * modules/unistr/u16-cmp2: Likewise.
32204         * modules/unistr/u16-cpy: Likewise.
32205         * modules/unistr/u16-cpy-alloc: Likewise.
32206         * modules/unistr/u16-endswith: Likewise.
32207         * modules/unistr/u16-mblen: Likewise.
32208         * modules/unistr/u16-mbsnlen: Likewise.
32209         * modules/unistr/u16-mbtouc: Likewise.
32210         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32211         * modules/unistr/u16-mbtoucr: Likewise.
32212         * modules/unistr/u16-move: Likewise.
32213         * modules/unistr/u16-next: Likewise.
32214         * modules/unistr/u16-prev: Likewise.
32215         * modules/unistr/u16-set: Likewise.
32216         * modules/unistr/u16-startswith: Likewise.
32217         * modules/unistr/u16-stpcpy: Likewise.
32218         * modules/unistr/u16-stpncpy: Likewise.
32219         * modules/unistr/u16-strcat: Likewise.
32220         * modules/unistr/u16-strchr: Likewise.
32221         * modules/unistr/u16-strcmp: Likewise.
32222         * modules/unistr/u16-strcoll: Likewise.
32223         * modules/unistr/u16-strcpy: Likewise.
32224         * modules/unistr/u16-strcspn: Likewise.
32225         * modules/unistr/u16-strdup: Likewise.
32226         * modules/unistr/u16-strlen: Likewise.
32227         * modules/unistr/u16-strmblen: Likewise.
32228         * modules/unistr/u16-strmbtouc: Likewise.
32229         * modules/unistr/u16-strncat: Likewise.
32230         * modules/unistr/u16-strncmp: Likewise.
32231         * modules/unistr/u16-strncpy: Likewise.
32232         * modules/unistr/u16-strnlen: Likewise.
32233         * modules/unistr/u16-strpbrk: Likewise.
32234         * modules/unistr/u16-strrchr: Likewise.
32235         * modules/unistr/u16-strspn: Likewise.
32236         * modules/unistr/u16-strstr: Likewise.
32237         * modules/unistr/u16-strtok: Likewise.
32238         * modules/unistr/u16-to-u32: Likewise.
32239         * modules/unistr/u16-to-u8: Likewise.
32240         * modules/unistr/u16-uctomb: Likewise.
32241         * modules/unistr/u32-check: Likewise.
32242         * modules/unistr/u32-chr: Likewise.
32243         * modules/unistr/u32-cmp: Likewise.
32244         * modules/unistr/u32-cmp2: Likewise.
32245         * modules/unistr/u32-cpy: Likewise.
32246         * modules/unistr/u32-cpy-alloc: Likewise.
32247         * modules/unistr/u32-endswith: Likewise.
32248         * modules/unistr/u32-mblen: Likewise.
32249         * modules/unistr/u32-mbsnlen: Likewise.
32250         * modules/unistr/u32-mbtouc: Likewise.
32251         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32252         * modules/unistr/u32-mbtoucr: Likewise.
32253         * modules/unistr/u32-move: Likewise.
32254         * modules/unistr/u32-next: Likewise.
32255         * modules/unistr/u32-prev: Likewise.
32256         * modules/unistr/u32-set: Likewise.
32257         * modules/unistr/u32-startswith: Likewise.
32258         * modules/unistr/u32-stpcpy: Likewise.
32259         * modules/unistr/u32-stpncpy: Likewise.
32260         * modules/unistr/u32-strcat: Likewise.
32261         * modules/unistr/u32-strchr: Likewise.
32262         * modules/unistr/u32-strcmp: Likewise.
32263         * modules/unistr/u32-strcoll: Likewise.
32264         * modules/unistr/u32-strcpy: Likewise.
32265         * modules/unistr/u32-strcspn: Likewise.
32266         * modules/unistr/u32-strdup: Likewise.
32267         * modules/unistr/u32-strlen: Likewise.
32268         * modules/unistr/u32-strmblen: Likewise.
32269         * modules/unistr/u32-strmbtouc: Likewise.
32270         * modules/unistr/u32-strncat: Likewise.
32271         * modules/unistr/u32-strncmp: Likewise.
32272         * modules/unistr/u32-strncpy: Likewise.
32273         * modules/unistr/u32-strnlen: Likewise.
32274         * modules/unistr/u32-strpbrk: Likewise.
32275         * modules/unistr/u32-strrchr: Likewise.
32276         * modules/unistr/u32-strspn: Likewise.
32277         * modules/unistr/u32-strstr: Likewise.
32278         * modules/unistr/u32-strtok: Likewise.
32279         * modules/unistr/u32-to-u16: Likewise.
32280         * modules/unistr/u32-to-u8: Likewise.
32281         * modules/unistr/u32-uctomb: Likewise.
32282         * modules/uniwbrk/u8-wordbreaks: Likewise.
32283         * modules/uniwbrk/u16-wordbreaks: Likewise.
32284         * modules/uniwbrk/u32-wordbreaks: Likewise.
32285         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32286         * modules/uniwbrk/wordbreak-property: Likewise.
32287         * modules/uniwidth/u8-strwidth: Likewise.
32288         * modules/uniwidth/u8-width: Likewise.
32289         * modules/uniwidth/u16-strwidth: Likewise.
32290         * modules/uniwidth/u16-width: Likewise.
32291         * modules/uniwidth/u32-strwidth: Likewise.
32292         * modules/uniwidth/u32-width: Likewise.
32293         * modules/uniwidth/width: Likewise.
32294         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32295         with $(LIBUNISTRING).
32296         * modules/unicase/ignorable-tests: Likewise.
32297         * modules/unicase/locale-language-tests: Likewise.
32298         * modules/unicase/tolower-tests: Likewise.
32299         * modules/unicase/totitle-tests: Likewise.
32300         * modules/unicase/toupper-tests: Likewise.
32301         * modules/unicase/u8-casecmp-tests: Likewise.
32302         * modules/unicase/u8-casecoll-tests: Likewise.
32303         * modules/unicase/u8-casefold-tests: Likewise.
32304         * modules/unicase/u8-is-cased-tests: Likewise.
32305         * modules/unicase/u8-is-casefolded-tests: Likewise.
32306         * modules/unicase/u8-is-lowercase-tests: Likewise.
32307         * modules/unicase/u8-is-titlecase-tests: Likewise.
32308         * modules/unicase/u8-is-uppercase-tests: Likewise.
32309         * modules/unicase/u8-tolower-tests: Likewise.
32310         * modules/unicase/u8-totitle-tests: Likewise.
32311         * modules/unicase/u8-toupper-tests: Likewise.
32312         * modules/unicase/u16-casecmp-tests: Likewise.
32313         * modules/unicase/u16-casecoll-tests: Likewise.
32314         * modules/unicase/u16-casefold-tests: Likewise.
32315         * modules/unicase/u16-is-cased-tests: Likewise.
32316         * modules/unicase/u16-is-casefolded-tests: Likewise.
32317         * modules/unicase/u16-is-lowercase-tests: Likewise.
32318         * modules/unicase/u16-is-titlecase-tests: Likewise.
32319         * modules/unicase/u16-is-uppercase-tests: Likewise.
32320         * modules/unicase/u16-tolower-tests: Likewise.
32321         * modules/unicase/u16-totitle-tests: Likewise.
32322         * modules/unicase/u16-toupper-tests: Likewise.
32323         * modules/unicase/u32-casecmp-tests: Likewise.
32324         * modules/unicase/u32-casecoll-tests: Likewise.
32325         * modules/unicase/u32-casefold-tests: Likewise.
32326         * modules/unicase/u32-is-cased-tests: Likewise.
32327         * modules/unicase/u32-is-casefolded-tests: Likewise.
32328         * modules/unicase/u32-is-lowercase-tests: Likewise.
32329         * modules/unicase/u32-is-titlecase-tests: Likewise.
32330         * modules/unicase/u32-is-uppercase-tests: Likewise.
32331         * modules/unicase/u32-tolower-tests: Likewise.
32332         * modules/unicase/u32-totitle-tests: Likewise.
32333         * modules/unicase/u32-toupper-tests: Likewise.
32334         * modules/unicase/ulc-casecmp-tests: Likewise.
32335         * modules/unicase/ulc-casecoll-tests: Likewise.
32336         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32337         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32338         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32339         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32340         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32341         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32342         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32343         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32344         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32345         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32346         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32347         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32348         * modules/unictype/bidicategory-byname-tests: Likewise.
32349         * modules/unictype/bidicategory-name-tests: Likewise.
32350         * modules/unictype/bidicategory-of-tests: Likewise.
32351         * modules/unictype/bidicategory-test-tests: Likewise.
32352         * modules/unictype/block-list-tests: Likewise.
32353         * modules/unictype/block-of-tests: Likewise.
32354         * modules/unictype/block-test-tests: Likewise.
32355         * modules/unictype/category-C-tests: Likewise.
32356         * modules/unictype/category-Cc-tests: Likewise.
32357         * modules/unictype/category-Cf-tests: Likewise.
32358         * modules/unictype/category-Cn-tests: Likewise.
32359         * modules/unictype/category-Co-tests: Likewise.
32360         * modules/unictype/category-Cs-tests: Likewise.
32361         * modules/unictype/category-L-tests: Likewise.
32362         * modules/unictype/category-Ll-tests: Likewise.
32363         * modules/unictype/category-Lm-tests: Likewise.
32364         * modules/unictype/category-Lo-tests: Likewise.
32365         * modules/unictype/category-Lt-tests: Likewise.
32366         * modules/unictype/category-Lu-tests: Likewise.
32367         * modules/unictype/category-M-tests: Likewise.
32368         * modules/unictype/category-Mc-tests: Likewise.
32369         * modules/unictype/category-Me-tests: Likewise.
32370         * modules/unictype/category-Mn-tests: Likewise.
32371         * modules/unictype/category-N-tests: Likewise.
32372         * modules/unictype/category-Nd-tests: Likewise.
32373         * modules/unictype/category-Nl-tests: Likewise.
32374         * modules/unictype/category-No-tests: Likewise.
32375         * modules/unictype/category-P-tests: Likewise.
32376         * modules/unictype/category-Pc-tests: Likewise.
32377         * modules/unictype/category-Pd-tests: Likewise.
32378         * modules/unictype/category-Pe-tests: Likewise.
32379         * modules/unictype/category-Pf-tests: Likewise.
32380         * modules/unictype/category-Pi-tests: Likewise.
32381         * modules/unictype/category-Po-tests: Likewise.
32382         * modules/unictype/category-Ps-tests: Likewise.
32383         * modules/unictype/category-S-tests: Likewise.
32384         * modules/unictype/category-Sc-tests: Likewise.
32385         * modules/unictype/category-Sk-tests: Likewise.
32386         * modules/unictype/category-Sm-tests: Likewise.
32387         * modules/unictype/category-So-tests: Likewise.
32388         * modules/unictype/category-Z-tests: Likewise.
32389         * modules/unictype/category-Zl-tests: Likewise.
32390         * modules/unictype/category-Zp-tests: Likewise.
32391         * modules/unictype/category-Zs-tests: Likewise.
32392         * modules/unictype/category-and-not-tests: Likewise.
32393         * modules/unictype/category-and-tests: Likewise.
32394         * modules/unictype/category-byname-tests: Likewise.
32395         * modules/unictype/category-name-tests: Likewise.
32396         * modules/unictype/category-none-tests: Likewise.
32397         * modules/unictype/category-of-tests: Likewise.
32398         * modules/unictype/category-or-tests: Likewise.
32399         * modules/unictype/category-test-withtable-tests: Likewise.
32400         * modules/unictype/combining-class-tests: Likewise.
32401         * modules/unictype/ctype-alnum-tests: Likewise.
32402         * modules/unictype/ctype-alpha-tests: Likewise.
32403         * modules/unictype/ctype-blank-tests: Likewise.
32404         * modules/unictype/ctype-cntrl-tests: Likewise.
32405         * modules/unictype/ctype-digit-tests: Likewise.
32406         * modules/unictype/ctype-graph-tests: Likewise.
32407         * modules/unictype/ctype-lower-tests: Likewise.
32408         * modules/unictype/ctype-print-tests: Likewise.
32409         * modules/unictype/ctype-punct-tests: Likewise.
32410         * modules/unictype/ctype-space-tests: Likewise.
32411         * modules/unictype/ctype-upper-tests: Likewise.
32412         * modules/unictype/ctype-xdigit-tests: Likewise.
32413         * modules/unictype/decimal-digit-tests: Likewise.
32414         * modules/unictype/digit-tests: Likewise.
32415         * modules/unictype/mirror-tests: Likewise.
32416         * modules/unictype/numeric-tests: Likewise.
32417         * modules/unictype/property-alphabetic-tests: Likewise.
32418         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32419         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32420         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32421         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32422         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32423         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32424         * modules/unictype/property-bidi-control-tests: Likewise.
32425         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32426         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32427         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32428         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32429         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32430         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32431         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32432         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32433         * modules/unictype/property-bidi-pdf-tests: Likewise.
32434         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32435         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32436         * modules/unictype/property-byname-tests: Likewise.
32437         * modules/unictype/property-combining-tests: Likewise.
32438         * modules/unictype/property-composite-tests: Likewise.
32439         * modules/unictype/property-currency-symbol-tests: Likewise.
32440         * modules/unictype/property-dash-tests: Likewise.
32441         * modules/unictype/property-decimal-digit-tests: Likewise.
32442         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32443         * modules/unictype/property-deprecated-tests: Likewise.
32444         * modules/unictype/property-diacritic-tests: Likewise.
32445         * modules/unictype/property-extender-tests: Likewise.
32446         * modules/unictype/property-format-control-tests: Likewise.
32447         * modules/unictype/property-grapheme-base-tests: Likewise.
32448         * modules/unictype/property-grapheme-extend-tests: Likewise.
32449         * modules/unictype/property-grapheme-link-tests: Likewise.
32450         * modules/unictype/property-hex-digit-tests: Likewise.
32451         * modules/unictype/property-hyphen-tests: Likewise.
32452         * modules/unictype/property-id-continue-tests: Likewise.
32453         * modules/unictype/property-id-start-tests: Likewise.
32454         * modules/unictype/property-ideographic-tests: Likewise.
32455         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32456         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32457         * modules/unictype/property-ignorable-control-tests: Likewise.
32458         * modules/unictype/property-iso-control-tests: Likewise.
32459         * modules/unictype/property-join-control-tests: Likewise.
32460         * modules/unictype/property-left-of-pair-tests: Likewise.
32461         * modules/unictype/property-line-separator-tests: Likewise.
32462         * modules/unictype/property-logical-order-exception-tests: Likewise.
32463         * modules/unictype/property-lowercase-tests: Likewise.
32464         * modules/unictype/property-math-tests: Likewise.
32465         * modules/unictype/property-non-break-tests: Likewise.
32466         * modules/unictype/property-not-a-character-tests: Likewise.
32467         * modules/unictype/property-numeric-tests: Likewise.
32468         * modules/unictype/property-other-alphabetic-tests: Likewise.
32469         * modules/unictype/property-other-default-ignorable-code-point-tests:
32470         Likewise.
32471         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32472         * modules/unictype/property-other-id-continue-tests: Likewise.
32473         * modules/unictype/property-other-id-start-tests: Likewise.
32474         * modules/unictype/property-other-lowercase-tests: Likewise.
32475         * modules/unictype/property-other-math-tests: Likewise.
32476         * modules/unictype/property-other-uppercase-tests: Likewise.
32477         * modules/unictype/property-paired-punctuation-tests: Likewise.
32478         * modules/unictype/property-paragraph-separator-tests: Likewise.
32479         * modules/unictype/property-pattern-syntax-tests: Likewise.
32480         * modules/unictype/property-pattern-white-space-tests: Likewise.
32481         * modules/unictype/property-private-use-tests: Likewise.
32482         * modules/unictype/property-punctuation-tests: Likewise.
32483         * modules/unictype/property-quotation-mark-tests: Likewise.
32484         * modules/unictype/property-radical-tests: Likewise.
32485         * modules/unictype/property-sentence-terminal-tests: Likewise.
32486         * modules/unictype/property-soft-dotted-tests: Likewise.
32487         * modules/unictype/property-space-tests: Likewise.
32488         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32489         * modules/unictype/property-test-tests: Likewise.
32490         * modules/unictype/property-titlecase-tests: Likewise.
32491         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32492         * modules/unictype/property-unified-ideograph-tests: Likewise.
32493         * modules/unictype/property-uppercase-tests: Likewise.
32494         * modules/unictype/property-variation-selector-tests: Likewise.
32495         * modules/unictype/property-white-space-tests: Likewise.
32496         * modules/unictype/property-xid-continue-tests: Likewise.
32497         * modules/unictype/property-xid-start-tests: Likewise.
32498         * modules/unictype/property-zero-width-tests: Likewise.
32499         * modules/unictype/scripts-tests: Likewise.
32500         * modules/unictype/syntax-c-ident-tests: Likewise.
32501         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32502         * modules/unictype/syntax-java-ident-tests: Likewise.
32503         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32504         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32505         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32506         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32507         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32508         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32509         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32510         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32511         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32512         * modules/uniname/uniname-tests: Likewise.
32513         * modules/uninorm/canonical-decomposition-tests: Likewise.
32514         * modules/uninorm/compat-decomposition-tests: Likewise.
32515         * modules/uninorm/composition-tests: Likewise.
32516         * modules/uninorm/decomposing-form-tests: Likewise.
32517         * modules/uninorm/decomposition-tests: Likewise.
32518         * modules/uninorm/filter-tests: Likewise.
32519         * modules/uninorm/nfc-tests: Likewise.
32520         * modules/uninorm/nfd-tests: Likewise.
32521         * modules/uninorm/nfkc-tests: Likewise.
32522         * modules/uninorm/nfkd-tests: Likewise.
32523         * modules/uninorm/u8-normcmp-tests: Likewise.
32524         * modules/uninorm/u8-normcoll-tests: Likewise.
32525         * modules/uninorm/u16-normcmp-tests: Likewise.
32526         * modules/uninorm/u16-normcoll-tests: Likewise.
32527         * modules/uninorm/u32-normcmp-tests: Likewise.
32528         * modules/uninorm/u32-normcoll-tests: Likewise.
32529         * modules/unistdio/u8-asnprintf-tests: Likewise.
32530         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32531         * modules/unistdio/u8-vasprintf-tests: Likewise.
32532         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32533         * modules/unistdio/u8-vsprintf-tests: Likewise.
32534         * modules/unistdio/u16-asnprintf-tests: Likewise.
32535         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32536         * modules/unistdio/u16-vasprintf-tests: Likewise.
32537         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32538         * modules/unistdio/u16-vsprintf-tests: Likewise.
32539         * modules/unistdio/u32-asnprintf-tests: Likewise.
32540         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32541         * modules/unistdio/u32-vasprintf-tests: Likewise.
32542         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32543         * modules/unistdio/u32-vsprintf-tests: Likewise.
32544         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32545         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32546         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32547         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32548         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32549         * modules/unistr/u8-check-tests: Likewise.
32550         * modules/unistr/u8-chr-tests: Likewise.
32551         * modules/unistr/u8-cmp-tests: Likewise.
32552         * modules/unistr/u8-cmp2-tests: Likewise.
32553         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32554         * modules/unistr/u8-cpy-tests: Likewise.
32555         * modules/unistr/u8-mblen-tests: Likewise.
32556         * modules/unistr/u8-mbsnlen-tests: Likewise.
32557         * modules/unistr/u8-mbtouc-tests: Likewise.
32558         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32559         * modules/unistr/u8-mbtoucr-tests: Likewise.
32560         * modules/unistr/u8-move-tests: Likewise.
32561         * modules/unistr/u8-next-tests: Likewise.
32562         * modules/unistr/u8-prev-tests: Likewise.
32563         * modules/unistr/u8-set-tests: Likewise.
32564         * modules/unistr/u8-stpcpy-tests: Likewise.
32565         * modules/unistr/u8-stpncpy-tests: Likewise.
32566         * modules/unistr/u8-strcat-tests: Likewise.
32567         * modules/unistr/u8-strcmp-tests: Likewise.
32568         * modules/unistr/u8-strcoll-tests: Likewise.
32569         * modules/unistr/u8-strcpy-tests: Likewise.
32570         * modules/unistr/u8-strdup-tests: Likewise.
32571         * modules/unistr/u8-strlen-tests: Likewise.
32572         * modules/unistr/u8-strmblen-tests: Likewise.
32573         * modules/unistr/u8-strmbtouc-tests: Likewise.
32574         * modules/unistr/u8-strncat-tests: Likewise.
32575         * modules/unistr/u8-strncmp-tests: Likewise.
32576         * modules/unistr/u8-strncpy-tests: Likewise.
32577         * modules/unistr/u8-strnlen-tests: Likewise.
32578         * modules/unistr/u8-to-u16-tests: Likewise.
32579         * modules/unistr/u8-to-u32-tests: Likewise.
32580         * modules/unistr/u8-uctomb-tests: Likewise.
32581         * modules/unistr/u16-check-tests: Likewise.
32582         * modules/unistr/u16-chr-tests: Likewise.
32583         * modules/unistr/u16-cmp-tests: Likewise.
32584         * modules/unistr/u16-cmp2-tests: Likewise.
32585         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32586         * modules/unistr/u16-cpy-tests: Likewise.
32587         * modules/unistr/u16-mblen-tests: Likewise.
32588         * modules/unistr/u16-mbsnlen-tests: Likewise.
32589         * modules/unistr/u16-mbtouc-tests: Likewise.
32590         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32591         * modules/unistr/u16-mbtoucr-tests: Likewise.
32592         * modules/unistr/u16-move-tests: Likewise.
32593         * modules/unistr/u16-next-tests: Likewise.
32594         * modules/unistr/u16-prev-tests: Likewise.
32595         * modules/unistr/u16-set-tests: Likewise.
32596         * modules/unistr/u16-stpcpy-tests: Likewise.
32597         * modules/unistr/u16-stpncpy-tests: Likewise.
32598         * modules/unistr/u16-strcat-tests: Likewise.
32599         * modules/unistr/u16-strcmp-tests: Likewise.
32600         * modules/unistr/u16-strcoll-tests: Likewise.
32601         * modules/unistr/u16-strcpy-tests: Likewise.
32602         * modules/unistr/u16-strdup-tests: Likewise.
32603         * modules/unistr/u16-strlen-tests: Likewise.
32604         * modules/unistr/u16-strmblen-tests: Likewise.
32605         * modules/unistr/u16-strmbtouc-tests: Likewise.
32606         * modules/unistr/u16-strncat-tests: Likewise.
32607         * modules/unistr/u16-strncmp-tests: Likewise.
32608         * modules/unistr/u16-strncpy-tests: Likewise.
32609         * modules/unistr/u16-strnlen-tests: Likewise.
32610         * modules/unistr/u16-to-u32-tests: Likewise.
32611         * modules/unistr/u16-to-u8-tests: Likewise.
32612         * modules/unistr/u16-uctomb-tests: Likewise.
32613         * modules/unistr/u32-check-tests: Likewise.
32614         * modules/unistr/u32-chr-tests: Likewise.
32615         * modules/unistr/u32-cmp-tests: Likewise.
32616         * modules/unistr/u32-cmp2-tests: Likewise.
32617         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32618         * modules/unistr/u32-cpy-tests: Likewise.
32619         * modules/unistr/u32-mblen-tests: Likewise.
32620         * modules/unistr/u32-mbsnlen-tests: Likewise.
32621         * modules/unistr/u32-mbtouc-tests: Likewise.
32622         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32623         * modules/unistr/u32-mbtoucr-tests: Likewise.
32624         * modules/unistr/u32-move-tests: Likewise.
32625         * modules/unistr/u32-next-tests: Likewise.
32626         * modules/unistr/u32-prev-tests: Likewise.
32627         * modules/unistr/u32-set-tests: Likewise.
32628         * modules/unistr/u32-stpcpy-tests: Likewise.
32629         * modules/unistr/u32-stpncpy-tests: Likewise.
32630         * modules/unistr/u32-strcat-tests: Likewise.
32631         * modules/unistr/u32-strcmp-tests: Likewise.
32632         * modules/unistr/u32-strcoll-tests: Likewise.
32633         * modules/unistr/u32-strcpy-tests: Likewise.
32634         * modules/unistr/u32-strdup-tests: Likewise.
32635         * modules/unistr/u32-strlen-tests: Likewise.
32636         * modules/unistr/u32-strmblen-tests: Likewise.
32637         * modules/unistr/u32-strmbtouc-tests: Likewise.
32638         * modules/unistr/u32-strncat-tests: Likewise.
32639         * modules/unistr/u32-strncmp-tests: Likewise.
32640         * modules/unistr/u32-strncpy-tests: Likewise.
32641         * modules/unistr/u32-strnlen-tests: Likewise.
32642         * modules/unistr/u32-to-u16-tests: Likewise.
32643         * modules/unistr/u32-to-u8-tests: Likewise.
32644         * modules/unistr/u32-uctomb-tests: Likewise.
32645         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32646         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32647         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32648         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32649         * modules/uniwidth/u8-strwidth-tests: Likewise.
32650         * modules/uniwidth/u8-width-tests: Likewise.
32651         * modules/uniwidth/u16-strwidth-tests: Likewise.
32652         * modules/uniwidth/u16-width-tests: Likewise.
32653         * modules/uniwidth/u32-strwidth-tests: Likewise.
32654         * modules/uniwidth/u32-width-tests: Likewise.
32655         * modules/uniwidth/width-tests: Likewise.
32656
32657 2010-05-18  Richard Jones  <rjones@redhat.com>
32658
32659         doc: users.txt: list hivex
32660         * users.txt: Add hivex.
32661
32662 2010-05-18  Richard Jones  <rjones@redhat.com>
32663
32664         doc: users.txt: list febootstrap
32665         * users.txt: Add febootstrap.
32666
32667 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32668
32669         bootstrap: fix an error when gnulib is not used as a git submodule
32670         * build-aux/bootstrap (gnulib_path): If its length is zero then
32671         assign "gnulib" to it.
32672         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32673
32674 2010-05-16  Bruno Haible  <bruno@clisp.org>
32675
32676         Avoid autoconf warnings about AM_ICONV.
32677         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32678         2.64.
32679
32680 2010-05-16  Bruno Haible  <bruno@clisp.org>
32681
32682         absolute-header: Make the macro usable in more situations.
32683         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32684         from gl_ABSOLUTE_HEADER.
32685         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32686
32687 2010-05-16  James Youngman  <jay@gnu.org>
32688
32689         doc: update users.txt
32690         * users.txt: Add CSSC.
32691
32692 2010-05-16  Jim Meyering  <meyering@redhat.com>
32693
32694         init.sh: fix an error in the previous change; add more comments
32695         * tests/init.sh: Compare exit code in loop against 9, not 2.
32696         Patch by Bruno Haible.
32697         Make the two tests more similar by adding an empty "then" clause.
32698         Add comments.
32699
32700         init.sh: avoid unnecessary shell re-exec
32701         * tests/init.sh: Improve the re-exec-required check to first test the
32702         current shell.  If it passes the test, do not search for a shell that
32703         does pass, and do not re-exec.  This test is particularly contorted to
32704         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32705         of $(...) evokes a syntax error and causes immediate shell exit with
32706         status 2.  Bruno Haible reported that the re-exec made it impossible
32707         to single-step through any init.sh-using script.
32708
32709 2010-05-16  Bruno Haible  <bruno@clisp.org>
32710
32711         Fix collision between gnulib's and libintl's printf replacements.
32712         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32713         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32714         (printf): When using GNU C, map the __printf__ function to rpl_printf
32715         via __asm__. When not using GNU C, define rpl_printf instead of
32716         __printf__.
32717         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32718         commit.
32719         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32720         commit.
32721         * m4/asm-underscore.m4: New file.
32722         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32723         * modules/stdio (Files): Add m4/asm-underscore.m4.
32724         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32725         Reported by Ben Pfaff.
32726
32727 2010-05-16  Bruno Haible  <bruno@clisp.org>
32728
32729         verify: Avoid skipping the test on openSUSE 11.0.
32730         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32731
32732 2010-05-13  Bruno Haible  <bruno@clisp.org>
32733
32734         Avoid useless warnings from G++.
32735         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32736         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32737         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32738
32739 2010-05-11  Jim Meyering  <meyering@redhat.com>
32740
32741         maint.mk: tweak preceding change
32742         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32743         regexps tighter by anchoring at EOL, and make the new group "shy"
32744         for slightly decreased overhead.
32745
32746 2010-05-11  Eric Blake  <eblake@redhat.com>
32747
32748         maint.mk: gnulib doesn't guarantee NSIG
32749         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32750
32751 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32752
32753         test-pwrite.c: Remove unused variable declaration.
32754         * tests/test-pwrite.c (main): Remove read_buf declaration.
32755
32756         Remove useless test-pwrite.sh file.
32757         * tests/test-pwrite.sh: Delete file.
32758         * modules/pwrite-tests: Remove references.
32759         Reported by Bruno Haible.
32760
32761 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32762
32763         init.sh: fix a typo
32764         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32765
32766 2010-05-10  Jim Meyering  <meyering@redhat.com>
32767
32768         maint.mk: avoid using a temporary file in the always-defined-macros check
32769         * top/maint.mk (.re-defmac): Remove rule.
32770         (gl_trap_): Remove definition.
32771         (sc_prohibit_always-defined_macros): Rewrite not to create and
32772         depend on a temporary file.  Instead, depend on GNU grep's ability
32773         to read a list of regular expressions from stdin when given "-f -".
32774
32775 2010-05-09  Bruno Haible  <bruno@clisp.org>
32776
32777         Update to GNU gettext 0.18, part 1.
32778         * m4/gettext.m4: Update to GNU gettext 0.18.
32779         * m4/intl.m4: Likewise.
32780         * m4/po.m4: Likewise.
32781         * modules/gettext (Files): Add m4/fcntl-o.m4.
32782         (configure.ac): Require gettext infrastructure from version 0.18.
32783
32784 2010-05-09  Jim Meyering  <meyering@redhat.com>
32785
32786         init.sh: enable MALLOC_PERTURB_
32787         * tests/init.sh: Enable glibc's malloc-perturbing option.
32788
32789         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32790         With my recent change in init.sh from the two-line form:
32791             -#   : ${srcdir=.}
32792             -#   . "$srcdir/init.sh"; path_prepend_ .
32793             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32794         I noticed that using the one-line form would cause this test
32795         to fail with a false-positive, or to stop working altogether,
32796         depending on whether help-version changed or all the tests did.
32797         * top/maint.mk (_hv_regex): Remove this definition.
32798         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32799         (_hv_regex_strong): Use a stronger regex to check for conformance.
32800         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32801         Give a separate diagnostic for lack of conforming use.
32802
32803         maint.mk: prohibit definition of symbols defined by gnulib
32804         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32805         definition of symbols defined by gnulib.
32806
32807 2010-05-09  Bruno Haible  <bruno@clisp.org>
32808
32809         acl: Avoid test failure on Cygwin-hosted mingw.
32810         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32811
32812 2010-05-09  Bruno Haible  <bruno@clisp.org>
32813
32814         error: Use system's fcntl function.
32815         * lib/error.c (fcntl): Undefine.
32816
32817 2010-05-09  Jim Meyering  <meyering@redhat.com>
32818
32819         verify: adjust formatting to be more consistent
32820         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32821         argument-list '('s, and after one comma.
32822
32823 2010-05-09  Bruno Haible  <bruno@clisp.org>
32824
32825         error: More reliable output on mingw.
32826         * lib/error.c: Include <windows.h>.
32827         (is_open): New function.
32828         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32829         defined.
32830
32831 2010-05-09  Bruno Haible  <bruno@clisp.org>
32832
32833         vasnprintf: Fix syntax errors in libintl build on mingw.
32834         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32835         pad_ourselves and prec_ourselves after use.
32836
32837 2010-05-08  Bruno Haible  <bruno@clisp.org>
32838
32839         * lib/config.charset: Update comments for Cygwin 1.7.
32840         * lib/localcharset.c: Likewise.
32841
32842 2010-05-07  Jim Meyering  <meyering@redhat.com>
32843
32844         init.sh: improve comments
32845         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32846         . "${srcdir=.}/init.sh"; path_prepend_ .
32847         Add a note about path_prepend_ and the alternative of using
32848         TESTS_ENVIRONMENT.
32849
32850 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32851
32852         exclude: Unescape hashed patterns in wildcard mode.
32853         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32854         to the hash list.
32855         * tests/test-exclude8.sh: New test case.
32856         * modules/exclude-tests: Add new test.
32857
32858 2010-05-05  Eric Blake  <eblake@redhat.com>
32859
32860         verify: automate tests
32861         * modules/verify-tests: New module.
32862         * tests/test-verify.sh: New file.
32863         * tests/test-verify.c: Guard each negative test with a unique id.
32864         Also avoid warning about unused left hand of comma expressions.
32865
32866 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32867
32868         Further improvements to verify.h, suggested by Eric Blake.
32869         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32870         the GL_* versions, to avoid collision with OpenGL.
32871         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32872         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32873         than testing merely whether it's defined.
32874
32875         Modify verify.h to pacify gcc -Wredundant_decls.
32876         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32877         These use the prefix "GL_" since they're likely to be useful elsewhere.
32878         We may need to break them out into a different .h file.
32879         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32880         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32881         of verify_function__.
32882
32883 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32884
32885         Tests for module pwrite.
32886         * modules/pwrite-tests: New file.
32887         * tests/test-pwrite.sh: New file.
32888         * tests/test-pwrite.c: New file.
32889
32890         New module pwrite.
32891         * lib/unistd.in.h (pwrite): New declaration.
32892         * lib/pwrite.c: New file, from glibc with modifications.
32893         * m4/pwrite.m4: New file.
32894         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32895         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32896         REPLACE_PWRITE.
32897         * modules/pwrite: New file.
32898         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32899         REPLACE_PWRITE.
32900         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32901         * doc/posix-functions/pwrite.texi: Mention the new module.
32902
32903 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32904
32905         pread: Update documentation.
32906         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32907
32908 2010-05-04  Eric Blake  <eblake@redhat.com>
32909
32910         docs: update cygwin progress
32911         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32912         this bug.
32913         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32914         Added in cygwin 1.7.2.
32915         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32916         Likewise.
32917         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32918         Likewise.
32919         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32920         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32921         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32922         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32923         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32924         Mention nproc module.
32925         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32926         bug in cygwin 1.7.5 addition.
32927         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32928         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32929         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32930         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32931         1.7.5.
32932         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32933         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32934         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32935         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32936         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32937         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32938         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32939         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32940         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32941         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32942         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32943         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32944         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32945         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32946         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32947         Likewise.
32948         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32949         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32950         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32951         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32952         Likewise.
32953         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32954         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32955         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32956         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32957         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32958         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32959         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32960         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32961         Likewise.
32962         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32963         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32964         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32965         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32966         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32967         Likewise.
32968         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32969         Likewise.
32970         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32971         Likewise.
32972         * doc/glibc-functions/xdrrec_endofrecord.texi
32973         (xdrrec_endofrecord): Likewise.
32974         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32975         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32976         Likewise.
32977         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32978         Likewise.
32979
32980 2010-05-04  Jim Meyering  <meyering@redhat.com>
32981
32982         gendocs.sh: make its "-s FILE" option more useful
32983         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32984         $PACKAGE to reflect the probably-different basename of "FILE".
32985
32986 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32987
32988         bootstrap: don't ignore download_po_files failure
32989         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32990         failure.
32991
32992 2010-05-03  Jim Meyering  <meyering@redhat.com>
32993
32994         maint.mk: allow to pass options to gendocs.sh
32995         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32996         (gendocs_options_): New overridable variable.
32997
32998         gnu-web-doc-update: don't ignore configure or build failure
32999         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33000
33001         announce-gen: backslash-escape '@'s in --help output
33002         * build-aux/announce-gen: Fix syntax errors.
33003
33004         maint.mk, announce-gen: allow project-specific announcement mail headers
33005         * top/maint.mk (translation_project_): Define default.
33006         (announcement_Cc_, announcement_mail_headers_): Likewise.
33007         (announcement): Invoke announce-gen with new --mail-headers option.
33008         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33009
33010         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33011         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33012         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33013         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33014         line in the "err2" output file when running "make check" in verbose
33015         mode (i.e., with set -x enabled).
33016
33017 2010-05-03  Bruno Haible  <bruno@clisp.org>
33018
33019         wctob: Fix for weird platforms.
33020         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33021         argument value.
33022
33023 2010-05-03  Jim Meyering  <meyering@redhat.com>
33024
33025         maint.mk: prohibit unwarranted use of <strings.h>
33026         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33027         strings.h in a file that does not also use strcasecmp, strncasecmp,
33028         ffs or ffsll.
33029
33030         maint.mk: remove obsolete comments
33031         * top/maint.mk: Remove stale, commented-out rules.
33032
33033 2010-05-02  Bruno Haible  <bruno@clisp.org>
33034
33035         wcwidth: Declare also when it's aliased.
33036         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33037         macro.
33038
33039 2010-05-02  Bruno Haible  <bruno@clisp.org>
33040
33041         Fix regression from 2010-04-25.
33042         * gnulib-tool (func_modules_transitive_closure): Check the status of
33043         all modules, not only of the tests that are of the form foo-tests where
33044         foo is a module.
33045
33046 2010-05-02  Bruno Haible  <bruno@clisp.org>
33047
33048         wctob: Work around nasty Cygwin 1.7.2 bug.
33049         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33050         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33051
33052 2010-05-01  Bruno Haible  <bruno@clisp.org>
33053
33054         fpurge: Sharper test.
33055         * tests/test-fpurge.c (main): Add one more ftell check.
33056         * modules/fpurge-tests (Depends-on): Add ftell.
33057         Suggested by Eric Blake.
33058
33059 2010-05-01  Bruno Haible  <bruno@clisp.org>
33060
33061         ftello: Another test.
33062         * tests/test-ftello3.c: New file.
33063         * modules/ftello-tests (Files): Add it.
33064         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33065         MOSTLYCLEANFILES.
33066
33067         ftell: Another test.
33068         * tests/test-ftell3.c: New file.
33069         * modules/ftell-tests (Files): Add it.
33070         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33071         MOSTLYCLEANFILES.
33072
33073 2010-05-01  Bruno Haible  <bruno@clisp.org>
33074
33075         ftell, ftello: Work around Solaris bug.
33076         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33077         * lib/ftello.c: Include stdio-impl.h.
33078         (ftello): On Solaris, when _IOWRT is set, compute the result without
33079         looking at _IOREAD.
33080         * modules/ftello (Files): Add lib/stdio-impl.h.
33081         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33082         * doc/posix-functions/ftello.texi: Likewise.
33083         Reported by Eric Blake.
33084
33085 2010-05-01  Bruno Haible  <bruno@clisp.org>
33086
33087         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33088         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33089         the _IOWRT flag is also set.
33090
33091 2010-05-01  Bruno Haible  <bruno@clisp.org>
33092
33093         Fix doc about a HP-UX stdio bug.
33094         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33095         * doc/posix-functions/ftello.texi: Likewise.
33096
33097 2010-05-01  Bruno Haible  <bruno@clisp.org>
33098
33099         lseek test: Fix failure on Solaris.
33100         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33101         output.
33102
33103 2010-04-30  Jim Meyering  <meyering@redhat.com>
33104
33105         bootstrap: don't ignore failure to generate po*/Makevars
33106         * build-aux/bootstrap (with_gettext): Don't ignore failure
33107         to create po/Makevars or runtime-po/Makevars.
33108
33109 2010-04-29  Eric Blake  <eblake@redhat.com>
33110
33111         headers: relax license to LGPLv2+
33112         * modules/fcntl-h (License): Relax license.
33113         * modules/getopt-posix (License): Likewise.
33114         * modules/locale (License): Likewise.
33115         * modules/math (License): Likewise.
33116         * modules/pty (License): Likewise.
33117         * modules/sched (License): Likewise.
33118         * modules/search (License): Likewise.
33119         * modules/spawn (License): Likewise.
33120         * modules/stdarg (License): Likewise.
33121         * modules/sysexits (License): Likewise.
33122
33123 2010-04-29  Jim Meyering  <meyering@redhat.com>
33124
33125         inttypes: relax license to LGPLv2+
33126         * modules/inttypes (License): Relax license.
33127
33128 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33129
33130         * top/maint.mk (indent): Run twice to produce idempotent results.
33131
33132 2010-04-28  Bruno Haible  <bruno@clisp.org>
33133
33134         getdate: Generate getdate.c in the source directory.
33135         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33136         MOSTLYCLEANFILES.
33137         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33138
33139 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33140
33141         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33142         is not declared as a const *; avoid warnings in that case.
33143
33144 2010-04-28  Eric Blake  <eblake@redhat.com>
33145
33146         canonicalize-lgpl: avoid compiler warning
33147         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33148         declaration' / 'extraneous semicolon' warning with some compilers.
33149         Reported by Andreas Gruenbacher.
33150
33151 2010-04-28  Jim Meyering  <meyering@redhat.com>
33152
33153         init.sh: ensure a more reliable exit status when exiting via trap
33154         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33155         Inspired by patches from Dmitry V. Levin.
33156         Also trap on signal 3 (SIGQUIT).
33157
33158 2010-04-27  Bruno Haible  <bruno@clisp.org>
33159
33160         Update doc about utimes().
33161         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33162         'utimens' module.
33163         Reported by Andreas Gruenbacher <agruen@suse.de>.
33164
33165 2010-04-27  Eric Blake  <eblake@redhat.com>
33166
33167         full-read, full-write: relax license
33168         * modules/full-read (License): Drop to LGPLv2+.
33169         * modules/full-write (License): Likewise.
33170         * modules/safe-read (License): Likewise.
33171         * modules/safe-write (License): Likewise.
33172
33173         pthread: mention library for linking
33174         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33175
33176 2010-04-27  Jim Meyering  <meyering@redhat.com>
33177
33178         maint.mk: fix a bug introduced in last change
33179         * top/maint.mk (gl_assured_headers_): Now that all names are on
33180         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33181         is not anchored to end of word, it should be adequate.
33182
33183         maint.mk: avoid side-effect in latest syntax-check
33184         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33185         to run commands via $(shell...), and hence to incur cost only when
33186         the new rule is actually run.
33187
33188         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33189         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33190         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33191         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33192         (gl_assured_headers_, az_, AZ_): Define.
33193         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33194
33195 2010-04-26  Jim Meyering  <jim@meyering.net>
33196             Bruno Haible  <bruno@clisp.org>
33197
33198         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33199         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33200         Prompted by an exchange with Gilles Espinasse.
33201
33202 2010-04-26  Jim Meyering  <meyering@redhat.com>
33203
33204         git-version-gen: aesthetic tweak
33205         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33206         so that the command remains on a single line.
33207
33208 2010-04-26  Eric Blake  <eblake@redhat.com>
33209
33210         git-version-gen: allow use on EBCDIC hosts
33211         * build-aux/git-version-gen (dirty): Use literal rather than tying
33212         ourselves to ascii.
33213         Reported by Steve Goetze.
33214
33215 2010-04-25  Bruno Haible  <bruno@clisp.org>
33216
33217         netdb: Add support for GNULIB_POSIXCHECK.
33218         * lib/netdb.in.h: Include warn-on-use.h.
33219         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33220         functions are used when GNULIB_POSIXCHECK is defined and the
33221         getaddrinfo module is not in use.
33222         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33223         freeaddrinfo, gai_strerror, getnameinfo are declared.
33224         * modules/netdb (Depends-on): Add warn-on-use.
33225         (Makefile.am): Include warn-on-use.h in netdb.h.
33226
33227 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33228
33229         build: avoid "make check" failure without .git/ directory
33230         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33231         there is no .git/ directory.
33232
33233 2010-04-25  Bruno Haible  <bruno@clisp.org>
33234
33235         ptsname: Fix misuse of ttyname_r.
33236         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33237         of errno.
33238
33239 2010-04-25  Bruno Haible  <bruno@clisp.org>
33240
33241         ttyname_r: Make it work on Solaris 10.
33242         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33243         if the system function has the POSIX declaration. Test whether the
33244         function fails if the buffer is less than 128 bytes large.
33245         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33246         system's ttyname_r function. Provide a reasonably large buffer.
33247         * modules/ttyname_r (Depends-on): Add extensions.
33248         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33249
33250 2010-04-25  Bruno Haible  <bruno@clisp.org>
33251
33252         Use the 'extensions' module for some more functions on Solaris.
33253         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33254         module.
33255         * doc/posix-functions/ctime_r.texi: Likewise.
33256         * doc/posix-functions/getgrgid_r.texi: Likewise.
33257         * doc/posix-functions/getgrnam_r.texi: Likewise.
33258         * doc/posix-functions/getpwnam_r.texi: Likewise.
33259         * doc/posix-functions/getpwuid_r.texi: Likewise.
33260         * doc/posix-functions/readdir_r.texi: Likewise.
33261         * doc/posix-functions/sigwait.texi: Likewise.
33262         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33263         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33264
33265 2010-04-25  Bruno Haible  <bruno@clisp.org>
33266
33267         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33268         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33269         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33270         * lib/ttyname_r.c: Include <limits.h>.
33271         (ttyname_r): Define using the system's ttyname_r function, if it exists
33272         and not on Solaris.
33273         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33274         set.
33275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33276         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33277         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33278         Reported by Simon Josefsson.
33279
33280 2010-04-25  Bruno Haible  <bruno@clisp.org>
33281
33282         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33283         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33284         * doc/posix-functions/ctime_r.texi: Likewise.
33285         * doc/posix-functions/getgrgid_r.texi: Likewise.
33286         * doc/posix-functions/getgrnam_r.texi: Likewise.
33287         * doc/posix-functions/getlogin_r.texi: Likewise.
33288         * doc/posix-functions/getpwnam_r.texi: Likewise.
33289         * doc/posix-functions/getpwuid_r.texi: Likewise.
33290         * doc/posix-functions/readdir_r.texi: Likewise.
33291         * doc/posix-functions/sigwait.texi: Likewise.
33292         * doc/posix-functions/ttyname_r.texi: Likewise.
33293         Reported by Simon Josefsson.
33294
33295 2010-04-25  Bruno Haible  <bruno@clisp.org>
33296
33297         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33298         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33299         also to --create-testdir.
33300         (func_acceptable): Don't consider the status of *-tests modules here.
33301         (func_modules_transitive_closure): Consider it here, before including a
33302         test module.
33303         (func_import, func_create_testdir): Set inc_all_direct_tests,
33304         inc_all_indirect_tests.
33305         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33306         --create-testdir and --create-megatestdir.
33307
33308 2010-04-25  Bruno Haible  <bruno@clisp.org>
33309
33310         gnulib-tool: Add --without-*-tests options.
33311         * gnulib-tool (func_usage): Document the --without-*-tests options.
33312         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33313         excl_unportable_tests): New variables.
33314         Fail if they are specified with --import or --update.
33315         (func_acceptable): Respect the excl_*_tests variables.
33316         (func_import): Set the excl_*_tests variables to empty.
33317
33318 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33319             Bruno Haible  <bruno@clisp.org>
33320
33321         Work around a MacOS X 10.4 bug with openpty.
33322         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33323         * tests/test-openpty.c (main): Close the master side explicitly.
33324
33325 2010-04-25  Bruno Haible  <bruno@clisp.org>
33326
33327         strnlen: Fix a C++ test error on MacOS X and Solaris.
33328         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33329         the function is not declared.
33330         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33331         Simon Josefsson.
33332
33333 2010-04-24  Bruno Haible  <bruno@clisp.org>
33334
33335         Avoid a gcc warning.
33336         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33337         of correct type for %08lx directive.
33338         Reported by Eric Blake.
33339
33340 2010-04-24  Bruno Haible  <bruno@clisp.org>
33341
33342         vasnprintf: Correct errno value in case of out-of-memory.
33343         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33344         or sprintf. Use the errno value from SNPRINTF or sprintf.
33345         Reported by Ian Beckwith <ianb@erislabs.net>.
33346
33347 2010-04-24  Bruno Haible  <bruno@clisp.org>
33348
33349         ansi-c++-opt: Find correct compiler when cross-compiling.
33350         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33351         AC_CHECK_PROGS.
33352         Reported by Simon Josefsson.
33353
33354 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33355
33356         vc-list-files: Add support for subversion
33357         * build-aux/vc-list-files: Use "svn list" to generate the list of
33358         files controlled by subversion.
33359
33360 2010-04-23  Jim Meyering  <meyering@redhat.com>
33361
33362         vc-list-files tests: convert to use init.sh
33363         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33364         path_prepend_.
33365         Use Exit, not exit.
33366         Use skip_ rather than open coding it.
33367         Remove trap set-up and compare definitions.
33368         * tests/test-vc-list-files-git.sh: Likewise.
33369         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33370
33371 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33372
33373         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33374         backup files.
33375
33376 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33377
33378         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33379
33380 2010-04-20  Eric Blake  <eblake@redhat.com>
33381
33382         tests: be robust to ignored SIGPIPE
33383         * tests/test-select-in.sh: Consume all output.
33384         * tests/test-lseek.sh: Check correct exit status, while avoiding
33385         EPIPE.
33386
33387 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33388             Bruno Haible  <bruno@clisp.org>
33389
33390         visibility: Don't use -fvisibility if it leads to a warning.
33391         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33392         yes, don't pretend that visibility works if it leads to a warning.
33393         Reported by Mike Gran <spk121@yahoo.com>.
33394
33395 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33396
33397         * build-aux/bootstrap: Use "git -h" for testing for supported options
33398         instead of "git --help".  The short-form option only shows a summary,
33399         and doesn't layout the full man page.  Grep for the full option name
33400         in the summary, too.
33401
33402 2010-04-19  Bruno Haible  <bruno@clisp.org>
33403
33404         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33405         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33406         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33407         mention of RELOCATABLE_STRIP.
33408         Reported by Sylvain Beucler <beuc@beuc.net>.
33409
33410 2010-04-19  Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/diffseq.h: Fix typo in comment.
33413         Reported by Eric Blake.
33414
33415 2010-04-19  Bruno Haible  <bruno@clisp.org>
33416
33417         ioctl: Move autoconf macro to a .m4 file.
33418         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33419         * modules/ioctl (Files): Add it.
33420         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33421         Reported by Ian Beckwith <ianb@erislabs.net>.
33422
33423 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33424             Bruno Haible  <bruno@clisp.org>
33425
33426         diffseq: Accommodate use-case with abstract arrays.
33427         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33428         is not defined.
33429         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33430         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33431
33432 2010-04-18  Bruno Haible  <bruno@clisp.org>
33433
33434         * doc/posix-headers/stdbool.texi: More precise wording.
33435
33436 2010-04-17  Jim Meyering  <meyering@redhat.com>
33437
33438         maint.mk: use gnu-style indentation in an embedded perl script
33439         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33440         Rename variable: s/two/last_two_bytes/
33441
33442 2010-04-16  Eric Blake  <eblake@redhat.com>
33443
33444         test-stdbool: skip test that fails with Solaris CC
33445         * tests/test-stdbool.c (f): Skip test that causes compilation
33446         error under buggy C++ compiler.
33447         * lib/stdbool.in.h: Document the limitation.
33448         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33449
33450         setenv: allow compilation with C++
33451         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33452         register keyword.
33453
33454         stdint: allow test to pass with C++
33455         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33456
33457         getopt: allow compilation with C++
33458         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33459         struct.
33460         * lib/getopt.c (_getopt_internal_r): Use correct type.
33461         Reported by Dagobert Michelson, via Joel E. Denny.
33462
33463 2010-04-16  Bruno Haible  <bruno@clisp.org>
33464
33465         Override netdb.h always.
33466         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33467         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33468         Reported by Ludovic Courtès <ludo@gnu.org>.
33469
33470 2010-04-15  Bruno Haible  <bruno@clisp.org>
33471
33472         openpty: Fix mistake from 2010-03-21.
33473         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33474         Reported by Simon Josefsson.
33475
33476 2010-04-15  Eric Blake  <eblake@redhat.com>
33477
33478         test-forkpty: fix expected signature
33479         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33480         Reported by Simon Josefsson.
33481
33482 2010-04-15  Jim Meyering  <meyering@redhat.com>
33483
33484         maint.mk: texinfo_suffix_re_: correct the default regexp
33485         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33486
33487         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33488         make it configurable via texinfo_suffix_re_.
33489
33490 2010-04-14  Eric Blake  <eblake@redhat.com>
33491
33492         strtok_r: relax license to LGPLv2+
33493         * modules/strtok_r (License): Relax license.
33494         Reported by Matthias Bolte.
33495
33496 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33497
33498         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33499         version 1.4.4 by default instead of requiring the libgcrypt
33500         version used during build.  This makes it possible to use the
33501         application with older but still binary compatible libgcrypt
33502         versions.
33503
33504 2010-04-13  Eric Blake  <eblake@redhat.com>
33505
33506         getopt-gnu: match recent glibc fixes and posix ruling
33507         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33508         '+' handling, when requesting extensions.
33509         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33510         'W;' handling.
33511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33512         * doc/posix-functions/getopt.texi (getopt): Document this.
33513         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33514         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33515         Likewise.
33516
33517         getopt: merge bug fixes from glibc
33518         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33519         diagnostics.  Honor '+:' correctly.  Reject ';'.
33520
33521         getopt-posix: detect MacOS bug
33522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33523         optind when missing a required argument.
33524         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33525         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33526         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33527         Likewise.
33528
33529         getopt-posix: avoid spurious failure on Solaris
33530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33531         an indicator that setting optind=1 is sufficient for reset.
33532
33533         getopt-posix: avoid spurious failure on FreeBSD
33534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33535         in POSIX mode, since the m4 test uses it.
33536
33537         gnulib-tool: silence warning on BSD sh
33538         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33539
33540 2010-04-13  Jim Meyering  <meyering@redhat.com>
33541
33542         doc: users.txt: GNU patch now uses gnulib
33543         * users.txt: Add patch.
33544
33545 2010-04-12  Jim Meyering  <meyering@redhat.com>
33546
33547         maint.mk: generate more concise timing data for syntax-check rules
33548         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33549         " done" from each line that reports a syntax-check test duration.
33550
33551 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33552
33553         git-version-gen: use "git update-index..." rather than "git status"
33554         * build-aux/git-version-gen: Use git update-index --refresh, not
33555         "git status".  With some versions of git, "git status" would fail
33556         to update the index and result in an unwarranted "-dirty" suffix.
33557
33558 2010-04-11  Jim Meyering  <meyering@redhat.com>
33559
33560         openat: correct formatting (no semantic change)
33561         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33562         Suggested by Bruno Haible.
33563
33564 2010-04-11  Bruno Haible  <bruno@clisp.org>
33565
33566         Stricter declaration checking in testdirs.
33567         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33568         If for_tests is true, augment AM_CPPFLAGS to define
33569         GNULIB_STRICT_CHECKING.
33570         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33571         GNULIB_STRICT_CHECKING is defined, verify that the function is
33572         declared.
33573
33574 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33575             Bruno Haible  <bruno@clisp.org>
33576
33577         libunistring: Improve configure output.
33578         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33579         Don't say "consider installing GNU libunistring" when checking again
33580         with libiconv.
33581
33582 2010-04-11  Bruno Haible  <bruno@clisp.org>
33583
33584         libunistring: Correct value of $LTLIBUNISTRING.
33585         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33586         correct the value of $LTLIBUNISTRING.
33587
33588 2010-04-11  Bruno Haible  <bruno@clisp.org>
33589
33590         havelib: Add static libraries to LIBS in the right order.
33591         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33592         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33593
33594 2010-04-11  Bruno Haible  <bruno@clisp.org>
33595
33596         libunistring: Detect libunistring also when it depends on libiconv.
33597         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33598         the second AC_LIB_HAVE_LINKFLAGS invocation.
33599
33600 2010-04-11  James Youngman  <jay@gnu.org>
33601
33602         close-stream: declare local scalars to be "const"
33603         * lib/close-stream.c (close_stream): Make boolean variables const
33604         to document the fact that we set but do not change them.
33605
33606 2010-04-11  Bruno Haible  <bruno@clisp.org>
33607
33608         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33609
33610 2010-04-11  Jim Meyering  <meyering@redhat.com>
33611
33612         maint.mk: don't include dist-check.mk
33613         * top/maint.mk: Remove bogus include directive.
33614
33615         maint.mk: improve empty-line-at-EOF check
33616         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33617         solution, rather than tail+Perl-based one.  The latter would read
33618         a few kilobytes from the end of each file, and did not handle empty
33619         files properly.
33620
33621         maint.mk: print the elapsed time for each syntax-check rule
33622         * top/maint.mk (sc_m_rules_): Save start time in a file.
33623         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33624         (local-check): Interpose the .z rules
33625
33626 2010-04-11  Jim Meyering  <meyering@redhat.com>
33627
33628         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33629         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33630         empty file with one that ends in an empty line.
33631
33632 2010-04-10  Bruno Haible  <bruno@clisp.org>
33633
33634         mkdir: Make it work on mingw64.
33635         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33636         * lib/mkdir.c: Update comment.
33637         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33638
33639 2010-04-10  Bruno Haible  <bruno@clisp.org>
33640
33641         Don't override improved macro from newer autoconf.
33642         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33643         autoconf >= 2.62.
33644         Reported by Joel E. Denny <jdenny@clemson.edu>.
33645
33646 2010-04-10  Jim Meyering  <meyering@redhat.com>
33647
33648         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33649         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33650
33651         maint.mk: correct a diagnostic
33652         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33653         in diagnostic; now use $prohibit.
33654
33655 2010-04-10  Bruno Haible  <address@hidden>
33656
33657         fchownat: Fix a C++ test error on Solaris 8.
33658         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33659         the function does not exist.
33660
33661 2010-04-10  Bruno Haible  <bruno@clisp.org>
33662
33663         vasnprintf: Add more tests.
33664         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33665         (test_function): Test converting an invalid wide string.
33666
33667         vasnprintf: Correct handling of unconvertible wide string arguments.
33668         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33669         VASNPRINTF.
33670         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33671         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33672         smaller than the expected maximum need for the directive. Set errno to
33673         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33674         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33676         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33677         * modules/vasnprintf (Files): Add m4/printf.m4.
33678         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33679
33680 2010-04-10  Bruno Haible  <bruno@clisp.org>
33681
33682         vasnprintf: Fix crash in %ls directive.
33683         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33684         string is passed as argument to %ls, with no precision and no width.
33685         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33686
33687 2010-04-10  Bruno Haible  <bruno@clisp.org>
33688
33689         vasnprintf: Fix multiple test failures on mingw.
33690         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33691         _snprintf, or snwprintf, not _snwprintf.
33692
33693 2010-04-10  Bruno Haible  <bruno@clisp.org>
33694
33695         write: Fix a C++ test error on mingw.
33696         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33697
33698 2010-04-10  Bruno Haible  <bruno@clisp.org>
33699
33700         vasnprintf test: Reduce code duplication.
33701         * tests/test-vasnprintf.c (test_function): New function, extracted from
33702         test_vasnprintf.
33703         (test_vasnprintf, test_asnprintf): Invoke it.
33704
33705 2010-04-10  Bruno Haible  <bruno@clisp.org>
33706
33707         strnlen: Fix warning in C++ mode on MacOS X.
33708         * lib/string.in.h (strnlen): Use the modern idiom.
33709         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33710         defining strnlen as a macro already in <config.h>.
33711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33712         REPLACE_STRNLEN.
33713         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33714         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33715
33716 2010-04-08  James Youngman  <jay@gnu.org>
33717
33718         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33719         the example.
33720
33721 2010-04-09  Jim Meyering  <meyering@redhat.com>
33722
33723         maint.mk: print better diagnostic when there is no $(_hv_file)
33724         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33725         announce that when $(_hv_file) (aka help-version) does not exist.
33726
33727         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33728         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33729         not try to interpret its random input bytes.  Jarno Rajahalme reported
33730         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33731         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33732         (mktempd_): Likewise, just in case.
33733
33734         ftruncate: add two years to projected module removal date: 2012
33735         * m4/ftruncate.m4: Adjust comments.
33736
33737         ftruncate: mark module as obsolete; even MinGW provides it, now
33738         * modules/ftruncate (Status): Obsolete.
33739         (Notice): Say that.
33740         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33741         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33742
33743 2010-04-08  Bruno Haible  <bruno@clisp.org>
33744
33745         Fix side effects from tests-related modules.
33746         * modules/dprintf-posix (Comment): New section.
33747         * modules/fprintf-posix (Comment): Likewise.
33748         * modules/obstack-printf-posix (Comment): Likewise.
33749         * modules/printf-posix (Comment): Likewise.
33750         * modules/snprintf-posix (Comment): Likewise.
33751         * modules/sprintf-posix (Comment): Likewise.
33752         * modules/vasnprintf-posix (Comment): Likewise.
33753         * modules/vasprintf-posix (Comment): Likewise.
33754         * modules/vdprintf-posix (Comment): Likewise.
33755         * modules/vfprintf-posix (Comment): Likewise.
33756         * modules/vprintf-posix (Comment): Likewise.
33757         * modules/vsnprintf-posix (Comment): Likewise.
33758         * modules/vsprintf-posix (Comment): Likewise.
33759         * modules/xprintf-posix (Comment): Likewise.
33760         * modules/xvasprintf-posix (Comment): Likewise.
33761         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33762         * modules/floorf-tests (Depends-on): Likewise.
33763         * modules/round-tests (Depends-on): Likewise.
33764         * modules/roundf-tests (Depends-on): Likewise.
33765         * modules/trunc-tests (Depends-on): Likewise.
33766         * modules/truncf-tests (Depends-on): Likewise.
33767         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33768         'fprintf-posix' module is not present.
33769         * tests/test-floorf2.c (check): Likewise.
33770         * tests/test-trunc2.c (check): Likewise.
33771         * tests/test-truncf2.c (check): Likewise.
33772         * tests/test-round2.c (equal): Likewise.
33773         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33774
33775 2010-04-07  Karl Berry  <karl@gnu.org>
33776
33777         * config/srclist.txt,
33778         * config/srclistvars.sh,
33779         * config/srclist-update: doc fixes.
33780
33781 2010-04-07  Jim Meyering  <meyering@redhat.com>
33782
33783         maint.mk: add a PATH crosschecking syntax-check rule
33784         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33785         Useful if you use a test like the one in help-version (coreutils,
33786         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33787         printed by prog --version.
33788
33789 2010-04-06  Bruno Haible  <bruno@clisp.org>
33790
33791         Fix link error on mingw.
33792         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33793         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33794
33795 2010-04-06  Bruno Haible  <bruno@clisp.org>
33796
33797         Assume rmdir exists.
33798         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33799
33800 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33801
33802         doc: update users.txt
33803         * users.txt: Add gcal.
33804
33805 2010-04-06  Jim Meyering  <meyering@redhat.com>
33806
33807         init.sh: simply unset TMPDIR rather than risking env -i
33808         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33809         although it probably works fine on all Unix-based systems, some
33810         systems (Cygwin?) cannot tolerate a totally cleared environment.
33811         Suggestion from Eric Blake.
33812
33813 2010-04-06  Jim Meyering  <meyering@redhat.com>
33814
33815         init.sh: portability fix: use env's POSIX-specified -i option not -u
33816         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33817         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33818
33819 2010-04-05  Bruno Haible  <bruno@clisp.org>
33820
33821         btowc: Work around Cygwin 1.7.2 bug.
33822         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33823         does not map NUL to 0.
33824         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33825
33826 2010-04-05  Bruno Haible  <bruno@clisp.org>
33827
33828         Make the multithread modules work on Cygwin 1.7.2.
33829         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33830         imported symbols can be declared weak, so that it returns "no" on
33831         Cygwin 1.7.2.
33832
33833 2010-04-05  Bruno Haible  <bruno@clisp.org>
33834
33835         Use the module 'strncat'.
33836         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33837
33838         Tests for module 'strncat'.
33839         * modules/strncat-tests: New file.
33840         * tests/test-strncat.c: New file.
33841
33842         New module 'strncat'.
33843         * lib/string.in.h (strncat): New declaration.
33844         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33845         * m4/strncat.m4: New file, based on m4/memchr.m4.
33846         * modules/strncat: New file.
33847         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33848         is declared.
33849         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33850         REPLACE_STRNCAT.
33851         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33852         REPLACE_STRNCAT.
33853         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33854         module.
33855         * tests/test-string-c++.cc: Check signature of strncat.
33856
33857 2010-04-05  Jim Meyering  <meyering@redhat.com>
33858
33859         xstrtoumax-tests: convert to use init.sh
33860         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33861         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33862         Use Exit, not exit.
33863         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33864
33865         xstrtoimax-tests: convert to use init.sh
33866         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33867         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33868         Use Exit, not exit.
33869         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33870
33871 2010-04-05  Bruno Haible  <bruno@clisp.org>
33872
33873         sys_socket: Avoid #define replacements in C++ mode.
33874         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33875         warning to the function if possible, rather than #defining the symbol
33876         to a dysfunctional alias.
33877
33878 2010-04-05  Bruno Haible  <bruno@clisp.org>
33879
33880         fseeko: Fix C++ test error on mingw.
33881         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33882         gl_FUNC_FSEEKO.
33883         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33884         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33885         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33886         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33887
33888 2010-04-05  Bruno Haible  <bruno@clisp.org>
33889
33890         duplocale: Improve test output.
33891         * tests/test-duplocale.c (main): Print reason for skipped test.
33892
33893 2010-04-05  Bruno Haible  <bruno@clisp.org>
33894
33895         Assume rmdir exists.
33896         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33897         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33898
33899 2010-04-05  Bruno Haible  <bruno@clisp.org>
33900
33901         Fix link error on Solaris 8 with cc.
33902         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33903
33904 2010-04-05  Bruno Haible  <bruno@clisp.org>
33905
33906         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33907         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33908
33909 2010-04-05  Bruno Haible  <bruno@clisp.org>
33910
33911         vasprintf: Update documentation.
33912         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33913
33914 2010-04-05  Bruno Haible  <bruno@clisp.org>
33915
33916         ptsname: Improve test.
33917         * tests/test-ptsname.c (main): Also try the various master names of BSD
33918         systems.
33919
33920 2010-04-05  Bruno Haible  <bruno@clisp.org>
33921
33922         memchr: Avoid a possible C++ test error.
33923         * lib/string.in.h (memchr): Provide declaration if function is missing.
33924         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33925         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33927         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33928
33929 2010-04-05  Bruno Haible  <bruno@clisp.org>
33930
33931         strtok_r: Improve idiom.
33932         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33933         AC_LIBOBJ is used.
33934
33935 2010-04-05  Bruno Haible  <bruno@clisp.org>
33936
33937         strdup: Improve idiom.
33938         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33939         AC_LIBOBJ is used.
33940         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33941         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33942         when AC_LIBOBJ is used.
33943
33944 2010-04-05  Bruno Haible  <bruno@clisp.org>
33945
33946         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33947         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33948         don't set REPLACE_MBSINIT to 1.
33949         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33950         don't set REPLACE_MBRTOWC to 1.
33951         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33952         exist, don't set REPLACE_MBSRTOWCS to 1.
33953         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33954         exist, don't set REPLACE_MBSNRTOWCS to 1.
33955         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33956         don't set REPLACE_WCRTOMB to 1.
33957         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33958         exist, don't set REPLACE_WCSRTOMBS to 1.
33959         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33960         exist, don't set REPLACE_WCSNRTOMBS to 1.
33961
33962 2010-04-05  Bruno Haible  <bruno@clisp.org>
33963
33964         ldexpl: Improve idiom.
33965         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33966         make sure to set HAVE_DECL_LDEXPL to 0.
33967
33968 2010-04-05  Jim Meyering  <meyering@redhat.com>
33969
33970         xstrtol-tests: convert to use init.sh
33971         * modules/xstrtol-tests (Files): Add tests/init.sh.
33972         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33973         Use Exit, not exit.
33974         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33975
33976         atexit-tests: convert to use init.sh
33977         * modules/atexit-tests (Files): Add tests/init.sh.
33978         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33979         Use Exit, not exit.
33980         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33981
33982         init.sh: fix typo
33983         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33984
33985         init.sh: make it easier for a test script to write to the tty, ...
33986         when using automake's parallel-tests mode.
33987         * tests/init.sh (stderr_fileno_): Define overridable variable.
33988         (warn_): New function, to use it.
33989         (fail_, skip_, framework_failure_): Use warn_.
33990
33991 2010-04-04  Bruno Haible  <bruno@clisp.org>
33992
33993         btowc: Avoid warning.
33994         * lib/btowc.c: Include <stdlib.h>.
33995         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33996
33997 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33998             Bruno Haible  <bruno@clisp.org>
33999
34000         wchar: Port to NetBSD 1.5.
34001         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34002         * lib/wctype.in.h (WEOF): Likewise.
34003
34004 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34005             Bruno Haible  <bruno@clisp.org>
34006
34007         Port extended stdio to NetBSD 1.5.
34008         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34009         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34010         older.
34011
34012 2010-04-04  Bruno Haible  <bruno@clisp.org>
34013
34014         string: Remove unused substitution.
34015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34016         HAVE_DECL_STRERROR.
34017         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34018
34019 2010-04-04  Bruno Haible  <bruno@clisp.org>
34020
34021         strtod: Avoid a possible C++ test error.
34022         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34023         set REPLACE_STRTOD.
34024
34025 2010-04-04  Bruno Haible  <bruno@clisp.org>
34026
34027         strerror: Update documentation.
34028         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34029
34030 2010-04-04  Bruno Haible  <bruno@clisp.org>
34031
34032         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34033         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34034         _GL_CXXALIAS_SYS_CAST.
34035
34036 2010-04-04  Bruno Haible  <bruno@clisp.org>
34037
34038         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34039         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34040         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34041         REPLACE_FREXPL to 1.
34042         * doc/posix-functions/frexpl.texi: Update documentation.
34043
34044 2010-04-04  Bruno Haible  <bruno@clisp.org>
34045
34046         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34047         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34048
34049 2010-04-04  Bruno Haible  <bruno@clisp.org>
34050
34051         Implement nanosleep for native Windows.
34052         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34053
34054 2010-04-04  Bruno Haible  <bruno@clisp.org>
34055
34056         math: Fix some C++ test errors on Solaris 8.
34057         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34058
34059 2010-04-04  Bruno Haible  <bruno@clisp.org>
34060
34061         math: Fix some C++ test errors on Cygwin.
34062         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34063         truncl): Provide declaration if the system does not have it.
34064         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34065         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34066         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34067         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34068         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34069         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34070         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34071         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34072         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34073         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34074         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34075         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34076         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34077         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34078         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34079         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34081         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34082         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34083         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34084         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34085         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34086
34087 2010-04-04  Bruno Haible  <bruno@clisp.org>
34088
34089         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34090         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34091         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34092         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34093         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34094         * m4/isinf.m4 (gl_ISINF): Likewise.
34095         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34096
34097 2010-04-04  Bruno Haible  <bruno@clisp.org>
34098
34099         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34100         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34101
34102 2010-04-04  Bruno Haible  <bruno@clisp.org>
34103
34104         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34105         * modules/tmpfile (configure.ac): Update.
34106
34107         tmpfile: Fix C++ test error on mingw.
34108         * lib/stdio.in.h (tmpfile): New declaration.
34109         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34110         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34111         * modules/tmpfile (Depends-on): Add stdio.
34112         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34113         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34114         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34115         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34116         REPLACE_TMPFILE.
34117         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34118
34119 2010-04-04  Bruno Haible  <bruno@clisp.org>
34120
34121         ioctl: Fix C++ test error on mingw.
34122         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34123         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34124         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34125
34126 2010-04-03  Bruno Haible  <bruno@clisp.org>
34127
34128         wcwidth: Fix C++ test error on mingw.
34129         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34131         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34132
34133 2010-04-03  Bruno Haible  <bruno@clisp.org>
34134
34135         nanosleep: Fix C++ test error on mingw.
34136         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34137         * lib/time.in.h (nanosleep): Use modern idiom.
34138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34139         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34140         REPLACE_NANOSLEEP to 1.
34141         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34142         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34143
34144 2010-04-03  Bruno Haible  <bruno@clisp.org>
34145
34146         strptime: Fix C++ test error on mingw.
34147         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34148         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34149         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34150         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34151         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34152         not REPLACE_STRPTIME.
34153         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34154         REPLACE_STRPTIME.
34155
34156 2010-04-03  Bruno Haible  <bruno@clisp.org>
34157
34158         timegm: Fix C++ test error on mingw.
34159         * lib/time.in.h (timegm): Use modern idiom.
34160         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34161         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34162         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34163         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34164
34165 2010-04-03  Bruno Haible  <bruno@clisp.org>
34166
34167         timegm: Assume declaration if function exists.
34168         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34169         if it exists. Don't clobber ac_cv_func_timegm.
34170
34171 2010-04-03  Bruno Haible  <bruno@clisp.org>
34172
34173         time_r: Fix C++ test error on mingw.
34174         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34175         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34176         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34177         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34178         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34179
34180 2010-04-03  Bruno Haible  <bruno@clisp.org>
34181
34182         time_r: Minor updates.
34183         * modules/time_r (Description): Mention the provided functions.
34184         * lib/time_r.c: Don't include <string.h>.
34185         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34186         * doc/posix-functions/localtime_r.texi: Likewise.
34187
34188 2010-04-03  Bruno Haible  <bruno@clisp.org>
34189
34190         time: Fix regression introduced on 2010-03-08.
34191         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34192         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34193
34194 2010-04-03  Jim Meyering  <meyering@redhat.com>
34195
34196         maint.mk: don't silently disable project-specific syntax-check rules
34197         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34198         that they need to convert their project-specific syntax-check rules
34199         to use the new _sc_search_regexp.
34200
34201 2010-04-03  Bruno Haible  <bruno@clisp.org>
34202
34203         fchdir: Fix regression introduced on 2010-03-08.
34204         * lib/unistd.in.h (fchdir): Fix declaration.
34205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34207         REPLACE_FCHDIR.
34208         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34209         REPLACE_FCHDIR.
34210
34211 2010-04-03  Bruno Haible  <bruno@clisp.org>
34212
34213         getpagesize: Fix C++ test error on mingw.
34214         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34215         system does not declare the function.
34216         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34217         declared.
34218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34219         HAVE_DECL_GETPAGESIZE.
34220         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34221
34222 2010-04-03  Bruno Haible  <bruno@clisp.org>
34223
34224         stdio: Make C++ tests work on mingw.
34225         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34226         does not declare the function.
34227
34228 2010-04-03  Bruno Haible  <bruno@clisp.org>
34229
34230         ftello: Fix C++ test error on mingw.
34231         * lib/stdio.in.h (ftello): Use modern idiom.
34232         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34233         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34234         is missing and that it needs to be replaced.
34235         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34237         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34238
34239 2010-04-03  Bruno Haible  <bruno@clisp.org>
34240
34241         fseeko: Fix C++ test error on mingw.
34242         * lib/stdio.in.h (fseeko): Use modern idiom.
34243         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34244         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34245         is missing and that it needs to be replaced.
34246         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34248         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34249
34250 2010-04-03  Bruno Haible  <bruno@clisp.org>
34251
34252         mkstemp: Fix C++ test error on mingw.
34253         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34255         function is missing and that it needs to be replaced.
34256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34257         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34258
34259 2010-04-03  Bruno Haible  <bruno@clisp.org>
34260
34261         stpncpy: Fix C++ test error on mingw.
34262         * lib/string.in.h (stpncpy): Use modern idiom.
34263         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34264         function is missing and that it needs to be replaced.
34265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34266         REPLACE_STPNCPY.
34267         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34268
34269 2010-04-03  Bruno Haible  <bruno@clisp.org>
34270
34271         sys_stat: Fix C++ test error on mingw.
34272         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34273         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34274
34275 2010-04-03  Bruno Haible  <bruno@clisp.org>
34276
34277         pty: Update doc.
34278         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34279
34280 2010-04-03  Bruno Haible  <bruno@clisp.org>
34281
34282         unistd: Fix C++ test error on mingw.
34283         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34284
34285 2010-04-03  Bruno Haible  <bruno@clisp.org>
34286
34287         Update doc regarding mingw.
34288         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34289         * doc/glibc-functions/login_tty.texi: Likewise.
34290         * doc/glibc-functions/forkpty.texi: Likewise.
34291
34292 2010-04-03  Bruno Haible  <bruno@clisp.org>
34293
34294         stdlib: Avoid compilation failure of c-strtold on mingw.
34295         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34296
34297 2010-04-03  Bruno Haible  <bruno@clisp.org>
34298
34299         locale: Make C++ tests work on Cygwin and mingw.
34300         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34301         cannot provide the function.
34302         Reported by Simon Josefsson.
34303
34304 2010-04-03  Bruno Haible  <bruno@clisp.org>
34305
34306         localename: Port to MacOS X 10.6.
34307         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34308         memory layout of the locales in MacOS X 10.6 as well.
34309         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34310
34311 2010-04-02  Bruno Haible  <bruno@clisp.org>
34312
34313         gnulib-tool: Ensure that long-running tests are executed last.
34314         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34315         running tests after the one for the other tests.
34316
34317 2010-04-02  Bruno Haible  <bruno@clisp.org>
34318
34319         gnulib-tool: Ensure the tests in the main directory are executed first.
34320         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34321         start with the current directory.
34322
34323 2010-04-02  Bruno Haible  <bruno@clisp.org>
34324
34325         Tests for module 'havelib', moved here from GNU gettext.
34326         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34327         modifications.
34328         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34329         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34330         with modifications.
34331         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34332         modifications.
34333         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34334         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34335         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34336         with modifications.
34337         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34338         with modifications.
34339         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34340         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34341         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34342         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34343         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34344         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34345         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34346         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34347         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34348         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34349         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34350         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34351         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34352         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34353         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34354         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34355         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34356         with modifications.
34357         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34358         with modifications.
34359         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34360         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34361         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34362         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34363         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34364         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34365         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34366         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34367         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34368         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34369         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34370         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34371         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34372         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34373         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34374         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34375         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34376         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34377         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34378         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34379         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34380         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34381         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34382         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34383         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34384         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34385         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34386         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34387         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34388         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34389         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34390         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34391         * tests/havelib/rpathx/rpathx.c: New file, from
34392         gettext/autoconf-lib-link.
34393         * tests/havelib/rpathx/Makefile.am: New file, from
34394         gettext/autoconf-lib-link.
34395         * tests/havelib/rpathx/configure.ac: New file, from
34396         gettext/autoconf-lib-link with modifications.
34397         * tests/havelib/rpathy/rpathy.c: New file, from
34398         gettext/autoconf-lib-link.
34399         * tests/havelib/rpathy/Makefile.am: New file, from
34400         gettext/autoconf-lib-link.
34401         * tests/havelib/rpathy/configure.ac: New file, from
34402         gettext/autoconf-lib-link with modifications.
34403         * tests/havelib/rpathz/rpathz.c: New file, from
34404         gettext/autoconf-lib-link.
34405         * tests/havelib/rpathz/Makefile.am: New file, from
34406         gettext/autoconf-lib-link.
34407         * tests/havelib/rpathz/configure.ac: New file, from
34408         gettext/autoconf-lib-link with modifications.
34409         * tests/havelib/rpathlx/usex.c: New file, from
34410         gettext/autoconf-lib-link.
34411         * tests/havelib/rpathlx/Makefile.am: New file, from
34412         gettext/autoconf-lib-link.
34413         * tests/havelib/rpathlx/configure.ac: New file, from
34414         gettext/autoconf-lib-link with modifications.
34415         * tests/havelib/rpathly/usey.c: New file, from
34416         gettext/autoconf-lib-link.
34417         * tests/havelib/rpathly/Makefile.am: New file, from
34418         gettext/autoconf-lib-link.
34419         * tests/havelib/rpathly/configure.ac: New file, from
34420         gettext/autoconf-lib-link with modifications.
34421         * tests/havelib/rpathlz/usez.c: New file, from
34422         gettext/autoconf-lib-link.
34423         * tests/havelib/rpathlz/Makefile.am: New file, from
34424         gettext/autoconf-lib-link.
34425         * tests/havelib/rpathlz/configure.ac: New file, from
34426         gettext/autoconf-lib-link with modifications.
34427         * tests/havelib/rpathlyx/usey.c: New file, from
34428         gettext/autoconf-lib-link.
34429         * tests/havelib/rpathlyx/Makefile.am: New file, from
34430         gettext/autoconf-lib-link.
34431         * tests/havelib/rpathlyx/configure.ac: New file, from
34432         gettext/autoconf-lib-link with modifications.
34433         * tests/havelib/rpathlzyx/usez.c: New file, from
34434         gettext/autoconf-lib-link.
34435         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34436         gettext/autoconf-lib-link.
34437         * tests/havelib/rpathlzyx/configure.ac: New file, from
34438         gettext/autoconf-lib-link with modifications.
34439         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34440         with modifications.
34441
34442 2010-04-02  Bruno Haible  <bruno@clisp.org>
34443
34444         gnulib-tool: Create distributed built sources also for the tests.
34445         * gnulib-tool (func_create_testdir): Also generate distributed built
34446         sources in the tests directory.
34447
34448 2010-04-02  Bruno Haible  <bruno@clisp.org>
34449
34450         gnulib-tool: Obey user's environment variables.
34451         * gnulib-tool (func_create_testdir): When creating built sources,
34452         respect the environment variables for autoconf, automake, etc. given by
34453         the user.
34454
34455 2010-04-02  Bruno Haible  <bruno@clisp.org>
34456
34457         gnulib-tool: Provide the value of --m4-base to modules.
34458         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34459         of gl_m4_base.
34460
34461 2010-04-02  Eric Blake  <eblake@redhat.com>
34462
34463         maint.mk: fix some fallout
34464         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34465         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34466
34467 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34468
34469         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34470         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34471         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34472         (sc_cast_of_x_alloc_return_value): Likewise.
34473         (sc_cast_of_alloca_return_value): Likewise.
34474         (sc_space_tab): Likewise.
34475         (sc_prohibit_atoi_atof): Likewise.
34476         (sc_prohibit_magic_number_exit): Likewise.
34477         (sc_error_exit_success): Likewise.
34478         (sc_file_system): Likewise.
34479         (sc_prohibit_have_config_h): Likewise.
34480         (sc_require_config_h): Likewise.
34481         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34482         (sc_obsolete_symbols): Likewise.
34483         (sc_changelog): Likewise.
34484         (sc_program_name): Likewise.
34485         (sc_the_the): Likewise.
34486         (sc_trailing_blank): Likewise.
34487         (sc_two_space_separator_in_usage): Likewise.
34488         (sc_useless_cpp_parens): Likewise.
34489         (sc_GPL_version): Likewise.
34490         (sc_GFDL_version): Likewise.
34491         (sc_texinfo_acronym): Likewise.
34492         (sc_prohibit_cvs_keyword): Likewise.
34493         (sc_prohibit_stat_st_blocks): Likewise.
34494         (sc_prohibit_S_IS_definition): Likewise.
34495         (sc_redundant_const): Likewise.
34496         (sc_makefile_TAB_only_indentation): Likewise.
34497         (sc_m4_quote_check): Likewise.
34498         (sc_makefile_path_separator_check): Likewise.
34499         (sc_copyright_check): Likewise.
34500         (sc_Wundef_boolean): Likewise.
34501         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34502
34503         maint.mk: match 0 or more whitespace-before-function-call '('
34504         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34505         that have zero or two-and-more spaces between the function name
34506         and the open parenthesis.
34507         (sc_error_message_warn_fatal): Likewise.
34508         (sc_error_message_uppercase): Likewise.
34509         (sc_error_message_period): Likewise.
34510
34511 2010-03-31  Eric Blake  <eblake@redhat.com>
34512
34513         maint.mk: check for [ as well as test
34514         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34515         Based on a libvirt report by Matthias Bolte.
34516
34517         gnumakefile: don't squelch _version output
34518         * top/GNUmakefile (_version): Create one-shot dependency rather
34519         than using $(shell) when version must be regenerated.
34520         (_autoreconf): Run verbosely, by default.
34521
34522         sys_time: avoid compiler warnings
34523         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34524         unconditional, fixing regression from 2010-03-29.
34525         Reported by Simon Josefsson.
34526
34527 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34528
34529         maint.mk: s/_header_without_use/_sc_header_without_use/
34530         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34531         (sc_prohibit_assert_without_use): Use the new name.
34532         (sc_prohibit_close_stream_without_use): Likewise.
34533         (sc_prohibit_getopt_without_use): Likewise.
34534         (sc_prohibit_quotearg_without_use): Likewise.
34535         (sc_prohibit_quote_without_use): Likewise.
34536         (sc_prohibit_long_options_without_use): Likewise.
34537         (sc_prohibit_inttostr_without_use): Likewise.
34538         (sc_prohibit_ignore_value_without_use): Likewise.
34539         (sc_prohibit_error_without_use): Likewise.
34540         (sc_prohibit_xalloc_without_use): Likewise.
34541         (sc_prohibit_hash_without_use): Likewise.
34542         (sc_prohibit_hash_pjw_without_use): Likewise.
34543         (sc_prohibit_safe_read_without_use): Likewise.
34544         (sc_prohibit_argmatch_without_use): Likewise.
34545         (sc_prohibit_canonicalize_without_use): Likewise.
34546         (sc_prohibit_root_dev_ino_without_use): Likewise.
34547         (sc_prohibit_openat_without_use): Likewise.
34548         (sc_prohibit_c_ctype_without_use): Likewise.
34549         (sc_prohibit_signal_without_use): Likewise.
34550         (sc_prohibit_intprops_without_use): Likewise.
34551
34552 2010-03-30  Eric Blake  <eblake@redhat.com>
34553
34554         maint: improve module indicators
34555         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34556         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34557         columns, and avoid extra macro expansion.
34558
34559         fdopendir: work around FreeBSD bug
34560         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34561         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34562         * modules/dirent (Makefile.am): Substitute it.
34563         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34564         declaration.
34565         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34566         fix.
34567         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34568
34569 2010-03-29  Bruno Haible  <bruno@clisp.org>
34570
34571         Emit #pragma system_header after the inclusion guard, not before.
34572         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34573         guard that spans the entire file, not before. This enables an
34574         optimization in GCC's preprocessor.
34575         * lib/ctype.in.h: Likewise.
34576         * lib/dirent.in.h: Likewise.
34577         * lib/errno.in.h: Likewise.
34578         * lib/float.in.h: Likewise.
34579         * lib/getopt.in.h: Likewise.
34580         * lib/iconv.in.h: Likewise.
34581         * lib/langinfo.in.h: Likewise.
34582         * lib/locale.in.h: Likewise.
34583         * lib/math.in.h: Likewise.
34584         * lib/netdb.in.h: Likewise.
34585         * lib/netinet_in.in.h: Likewise.
34586         * lib/pty.in.h: Likewise.
34587         * lib/sched.in.h: Likewise.
34588         * lib/se-selinux.in.h: Likewise.
34589         * lib/search.in.h: Likewise.
34590         * lib/spawn.in.h: Likewise.
34591         * lib/stdarg.in.h: Likewise.
34592         * lib/stdint.in.h: Likewise.
34593         * lib/string.in.h: Likewise.
34594         * lib/strings.in.h: Likewise.
34595         * lib/sys_file.in.h: Likewise.
34596         * lib/sys_ioctl.in.h: Likewise.
34597         * lib/sys_time.in.h: Likewise.
34598         * lib/sys_times.in.h: Likewise.
34599         * lib/sys_utsname.in.h: Likewise.
34600         * lib/sys_wait.in.h: Likewise.
34601         * lib/sysexits.in.h: Likewise.
34602         * lib/wctype.in.h: Likewise.
34603
34604 2010-03-28  James Youngman  <jay@gnu.org>
34605
34606         save-cwd: don't leak a file descriptor when the caller execs.
34607         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34608         saved file descriptor.
34609         * modules/save-cwd (Depends-on): Depend on cloexec.
34610
34611 2010-03-29  Bruno Haible  <bruno@clisp.org>
34612
34613         Remove vestiges of fts-lgpl module.
34614         * lib/fts_.h: Assume GNULIB_FTS is 1.
34615         * lib/fts.c: Likewise.
34616         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34617
34618 2010-03-28  Bruno Haible  <bruno@clisp.org>
34619
34620         Fix definition of tests witness macro.
34621         * gnulib-tool (func_import): Fix definition of witness macro.
34622
34623 2010-03-28  Bruno Haible  <bruno@clisp.org>
34624
34625         Fix ioctl's protoype on glibc systems.
34626         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34627         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34628         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34629         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34630         signature. If not, arrange to replace the ioctl function.
34631         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34632         REPLACE_IOCTL.
34633         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34634         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34635         Reported by Ludovic Courtès <ludo@gnu.org>.
34636
34637 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34638
34639         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34640         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34641         made it so grep -r --include=GLOB* ... did not work.
34642
34643 2010-03-26  Jim Meyering  <meyering@redhat.com>
34644             Eric Blake  <eblake@redhat.com>
34645
34646         maint.mk: prohibit use of test's -o and -a operators
34647         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34648
34649 2010-03-28  Bruno Haible  <bruno@clisp.org>
34650
34651         Remove unused GNULIB_XYZ macro definitions.
34652         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34653         invocation.
34654
34655 2010-03-28  Bruno Haible  <bruno@clisp.org>
34656
34657         Mark privileged tests modules.
34658         * modules/idpriv-drop-tests (Status): New section.
34659         * modules/idpriv-droptemp-tests (Status): New section.
34660
34661 2010-03-28  Bruno Haible  <bruno@clisp.org>
34662
34663         Split C++ tests into separate tests modules.
34664         * modules/dirent-c++-tests: New file, extracted from
34665         modules/dirent-tests.
34666         * modules/dirent-tests: Depend on it.
34667         * modules/fcntl-h-c++-tests: New file, extracted from
34668         modules/fcntl-h-tests.
34669         * modules/fcntl-h-tests: Depend on it.
34670         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34671         * modules/glob-tests: Depend on it.
34672         * modules/iconv-h-c++-tests: New file, extracted from
34673         modules/iconv-h-tests.
34674         * modules/iconv-h-tests: Depend on it.
34675         * modules/langinfo-c++-tests: New file, extracted from
34676         modules/langinfo-tests.
34677         * modules/langinfo-tests: Depend on it.
34678         * modules/locale-c++-tests: New file, extracted from
34679         modules/locale-tests.
34680         * modules/locale-tests: Depend on it.
34681         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34682         * modules/math-tests: Depend on it.
34683         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34684         * modules/pty-tests: Depend on it.
34685         * modules/search-c++-tests: New file, extracted from
34686         modules/search-tests.
34687         * modules/search-tests: Depend on it.
34688         * modules/signal-c++-tests: New file, extracted from
34689         modules/signal-tests.
34690         * modules/signal-tests: Depend on it.
34691         * modules/spawn-c++-tests: New file, extracted from
34692         modules/spawn-tests.
34693         * modules/spawn-tests: Depend on it.
34694         * modules/stdio-c++-tests: New file, extracted from
34695         modules/stdio-tests.
34696         * modules/stdio-tests: Depend on it.
34697         * modules/stdlib-c++-tests: New file, extracted from
34698         modules/stdlib-tests.
34699         * modules/stdlib-tests: Depend on it.
34700         * modules/string-c++-tests: New file, extracted from
34701         modules/string-tests.
34702         * modules/string-tests: Depend on it.
34703         * modules/sys_ioctl-c++-tests: New file, extracted from
34704         modules/sys_ioctl-tests.
34705         * modules/sys_ioctl-tests: Depend on it.
34706         * modules/sys_select-c++-tests: New file, extracted from
34707         modules/sys_select-tests.
34708         * modules/sys_select-tests: Depend on it.
34709         * modules/sys_socket-c++-tests: New file, extracted from
34710         modules/sys_socket-tests.
34711         * modules/sys_socket-tests: Depend on it.
34712         * modules/sys_stat-c++-tests: New file, extracted from
34713         modules/sys_stat-tests.
34714         * modules/sys_stat-tests: Depend on it.
34715         * modules/sys_time-c++-tests: New file, extracted from
34716         modules/sys_time-tests.
34717         * modules/sys_time-tests: Depend on it.
34718         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34719         * modules/time-tests: Depend on it.
34720         * modules/unistd-c++-tests: New file, extracted from
34721         modules/unistd-tests.
34722         * modules/unistd-tests: Depend on it.
34723         * modules/wchar-c++-tests: New file, extracted from
34724         modules/wchar-tests.
34725         * modules/wchar-tests: Depend on it.
34726         * modules/wctype-c++-tests: New file, extracted from
34727         modules/wctype-tests.
34728         * modules/wctype-tests: Depend on it.
34729         Reported by Simon Josefsson.
34730
34731 2010-03-28  Bruno Haible  <bruno@clisp.org>
34732
34733         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34734         * gnulib-tool (func_exists_module): New function, extracted from
34735         func_verify_module.
34736         (func_verify_module): Use it.
34737         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34738         'foo' only if 'foo' exists.
34739         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34740         module.
34741
34742 2010-03-28  Bruno Haible  <bruno@clisp.org>
34743
34744         gnulib-tool: Add support for special categories of tests.
34745         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34746         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34747         (func_usage): Document them.
34748         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34749         inc_unportable_tests, inc_all_tests): New variables.
34750         (func_acceptable): Consider these variables.
34751         (func_modules_transitive_closure): Make it work when the 'Status' field
34752         consists of multiple words.
34753         (func_import): Store and restore the values of inc_cxx_tests,
34754         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34755         inc_all_tests in gnulib-comp.m4.
34756         (func_create_testdir): Set inc_all_tests to true.
34757         * doc/gnulib.texi (Extra tests modules): New section.
34758         Suggested by Jim Meyering.
34759
34760 2010-03-28  Bruno Haible  <bruno@clisp.org>
34761
34762         ansi-c++-opt: Allow turning off the C++ build by default.
34763         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34764         gl_CXX_CHOICE_DEFAULT_NO is defined.
34765         Requested by Eric Blake.
34766
34767 2010-03-28  Bruno Haible  <bruno@clisp.org>
34768
34769         unistd: Avoid #define replacements in C++ mode.
34770         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34771         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34772         setsockopt, shutdown, select): In C++, attach a warning to the function
34773         if possible, rather than #defining the symbol to a dysfunctional alias.
34774         Reported by John W. Eaton <jwe@gnu.org>.
34775
34776 2010-03-28  Bruno Haible  <bruno@clisp.org>
34777
34778         Fix link errors on mingw.
34779         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34780         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34781         $(LIBSOCKET).
34782         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34783         $(LIBSOCKET).
34784
34785 2010-03-28  Bruno Haible  <bruno@clisp.org>
34786             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34787
34788         lib-ignore: Determine different options for different compilers.
34789         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34790         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34791         Add comments.
34792         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34793         * NEWS: Mention the change.
34794
34795 2010-03-27  Bruno Haible  <bruno@clisp.org>
34796
34797         Remove unused GNULIB_XYZ macro definitions.
34798         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34799         * modules/fseek (configure.ac): Likewise.
34800         * modules/ioctl (configure.ac): Likewise.
34801         * modules/open (configure.ac): Likewise.
34802         * modules/stdlib-safer (configure.ac): Likewise.
34803
34804 2010-03-27  Bruno Haible  <bruno@clisp.org>
34805
34806         Add a remark about certain modules.
34807         * modules/malloc (Comment): New section.
34808         * modules/realloc (Comment): Likewise.
34809         * modules/sigpipe (Comment): Likewise.
34810
34811 2010-03-27  Bruno Haible  <bruno@clisp.org>
34812
34813         Resolve conflict between the two kinds of module indicators.
34814         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34815         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34816         * modules/canonicalize (configure.ac): Invoke
34817         gl_MODULE_INDICATOR_FOR_TESTS.
34818         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34819         GNULIB_XYZ.
34820         * tests/test-dirent-c++.cc: Likewise.
34821         * tests/test-dirent-safer.c: Likewise.
34822         * tests/test-dup2.c: Likewise.
34823         * tests/test-fchdir.c: Likewise.
34824         * tests/test-fcntl-h-c++.cc: Likewise.
34825         * tests/test-getopt.c: Likewise.
34826         * tests/test-getopt.h: Likewise.
34827         * tests/test-langinfo-c++.cc: Likewise.
34828         * tests/test-locale-c++.cc: Likewise.
34829         * tests/test-math-c++.cc: Likewise.
34830         * tests/test-pty-c++.cc: Likewise.
34831         * tests/test-search-c++.cc: Likewise.
34832         * tests/test-signal-c++.cc: Likewise.
34833         * tests/test-spawn-c++.cc: Likewise.
34834         * tests/test-stdio-c++.cc: Likewise.
34835         * tests/test-stdlib-c++.cc: Likewise.
34836         * tests/test-string-c++.cc: Likewise.
34837         * tests/test-sys_ioctl-c++.cc: Likewise.
34838         * tests/test-sys_select-c++.cc: Likewise.
34839         * tests/test-sys_socket-c++.cc: Likewise.
34840         * tests/test-sys_stat-c++.cc: Likewise.
34841         * tests/test-sys_time-c++.cc: Likewise.
34842         * tests/test-time-c++.cc: Likewise.
34843         * tests/test-unistd-c++.cc: Likewise.
34844         * tests/test-wchar-c++.cc: Likewise.
34845         * tests/uninorm/test-u8-nfc.c: Likewise.
34846         * tests/uninorm/test-u8-nfd.c: Likewise.
34847         * tests/uninorm/test-u8-nfkc.c: Likewise.
34848         * tests/uninorm/test-u8-nfkd.c: Likewise.
34849         * tests/uninorm/test-u16-nfc.c: Likewise.
34850         * tests/uninorm/test-u16-nfd.c: Likewise.
34851         * tests/uninorm/test-u16-nfkc.c: Likewise.
34852         * tests/uninorm/test-u16-nfkd.c: Likewise.
34853         * tests/uninorm/test-u32-nfc.c: Likewise.
34854         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34855         * tests/uninorm/test-u32-nfd.c: Likewise.
34856         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34857         * tests/uninorm/test-u32-nfkc.c: Likewise.
34858         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34859         * tests/uninorm/test-u32-nfkd.c: Likewise.
34860         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34861         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34862
34863 2010-03-27  Bruno Haible  <bruno@clisp.org>
34864
34865         Distinguish two kinds of module indicators.
34866         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34867         gl_MODULE_INDICATOR.
34868         (gl_MODULE_INDICATOR): New macro.
34869         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34870         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34871         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34872         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34873         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34874         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34875         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34876         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34877         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34878         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34879         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34880         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34882         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34883         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34884         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34885         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34886         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34887         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34888         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34889         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34890         * modules/cloexec (configure.ac): Likewise.
34891         * modules/getopt-gnu (configure.ac): Likewise.
34892         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34893         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34894         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34895         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34896
34897 2010-03-27  Bruno Haible  <bruno@clisp.org>
34898
34899         New module description field 'Comment'.
34900         * gnulib-tool: New option --extract-comment.
34901         (func_usage): Document it.
34902         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34903         (func_get_comment): New function.
34904         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34905
34906 2010-03-27  Bruno Haible  <bruno@clisp.org>
34907
34908         Addendum to 2010-02-07 commit.
34909         * gnulib-tool (func_usage): Document --extract-applicability option.
34910
34911 2010-03-27  Bruno Haible  <bruno@clisp.org>
34912
34913         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34914         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34915         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34916         rather than link errors.
34917
34918 2010-03-27  Bruno Haible  <bruno@clisp.org>
34919
34920         Avoid side effects from tests-related modules on the compilation of lib.
34921         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34922         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34923         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34924         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34925         macro.
34926         (func_import): Define a witness macro. Assign it a value that depends
34927         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34928         tests-related modules.
34929         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34930         Reported by Jim Meyering.
34931
34932 2010-03-27  Bruno Haible  <bruno@clisp.org>
34933
34934         Factorize common .m4 code.
34935         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34936         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34937         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34938         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34939         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34940         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34941         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34942         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34943         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34944         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34945         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34946         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34947         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34948         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34949         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34950         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34951         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34952         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34953         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34954         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34955         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34956         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34957         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34958         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34959         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34960         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34961         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34962         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34963         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34964         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34965         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34966         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34967
34968 2010-03-27  Bruno Haible  <bruno@clisp.org>
34969
34970         Fix a compilation error on Cygwin with g++ >= 4.3.
34971         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34972         if it is undefined or if we alias it to chmod.
34973         (lstat): Don't warn about the use of this function if it is undefined
34974         or if we alias it to stat.
34975         Reported by Simon Josefsson.
34976
34977 2010-03-27  Bruno Haible  <bruno@clisp.org>
34978
34979         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34980         * modules/getlogin (configure.ac): Update.
34981
34982         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34983         * modules/getlogin_r (configure.ac): Update.
34984
34985         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34986         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34987         * modules/inet_ntop (configure.ac): Update.
34988
34989         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34990         * modules/inet_pton (configure.ac): Update.
34991
34992         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34993         * modules/mbslen (configure.ac): Update.
34994
34995         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34996         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34997         * modules/forkpty (configure.ac): Update.
34998         * modules/openpty (configure.ac): Update.
34999
35000 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35001
35002         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35003         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35004
35005 2010-03-25  Eric Blake  <eblake@redhat.com>
35006
35007         maint: use pragma consistently across replacement headers
35008         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35009         * lib/dirent.in.h (system_header): Likewise.
35010         * lib/errno.in.h (system_header): Likewise.
35011         * lib/float.in.h (system_header): Likewise.
35012         * lib/getopt.in.h (system_header): Likewise.
35013         * lib/iconv.in.h (system_header): Likewise.
35014         * lib/inttypes.in.h (system_header): Likewise.
35015         * lib/langinfo.in.h (system_header): Likewise.
35016         * lib/locale.in.h (system_header): Likewise.
35017         * lib/math.in.h (system_header): Likewise.
35018         * lib/netdb.in.h (system_header): Likewise.
35019         * lib/netinet_in.in.h (system_header): Likewise.
35020         * lib/pty.in.h (system_header): Likewise.
35021         * lib/sched.in.h (system_header): Likewise.
35022         * lib/se-selinux.in.h (system_header): Likewise.
35023         * lib/search.in.h (system_header): Likewise.
35024         * lib/spawn.in.h (system_header): Likewise.
35025         * lib/stdarg.in.h (system_header): Likewise.
35026         * lib/stdint.in.h (system_header): Likewise.
35027         * lib/string.in.h (system_header): Likewise.
35028         * lib/strings.in.h (system_header): Likewise.
35029         * lib/sys_file.in.h (system_header): Likewise.
35030         * lib/sys_ioctl.in.h (system_header): Likewise.
35031         * lib/sys_socket.in.h (system_header): Likewise.
35032         * lib/sys_times.in.h (system_header): Likewise.
35033         * lib/sys_utsname.in.h (system_header): Likewise.
35034         * lib/sys_wait.in.h (system_header): Likewise.
35035         * lib/sysexits.in.h (system_header): Likewise.
35036         * lib/unistd.in.h (system_header): Likewise.
35037         * lib/wctype.in.h (system_header): Likewise.
35038
35039         arpa/inet: fix mingw compilation warning
35040         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35041         Reported by Matthew Bolte.
35042
35043 2010-03-25  Bruno Haible  <bruno@clisp.org>
35044
35045         Avoid collision between gnulib wrapper and libintl wrapper.
35046         * lib/printf.c (printf): Don't define if a printf wrapper is already
35047         defined in intl/printf.c.
35048         Reported by Michel Boaventura <michel@michelboaventura.com>.
35049
35050 2010-03-25  Bruno Haible  <bruno@clisp.org>
35051
35052         Use ANSI C.
35053         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35054
35055 2010-03-25  Bruno Haible  <bruno@clisp.org>
35056
35057         Minor formatting changes.
35058         * lib/acosl.c: Insert space before function argument list.
35059         * lib/argz.c: Likewise.
35060         * lib/asinl.c: Likewise.
35061         * lib/expl.c: Likewise.
35062         * lib/gen-uni-tables.c: Likewise.
35063         * lib/gettext.h: Likewise.
35064         * lib/glthread/lock.h: Likewise.
35065         * lib/tanl.c: Likewise.
35066         * lib/uniname/uniname.c: Likewise.
35067         * tests/test-idpriv-drop.c: Likewise.
35068         * tests/test-idpriv-droptemp.c: Likewise.
35069         * tests/test-lock.c: Likewise.
35070         * tests/test-tls.c: Likewise.
35071         * lib/argp-help.c: Insert space before function-like macro argument
35072         list.
35073         * lib/memcmp.c: Likewise.
35074         * tests/test-base64.c: Likewise.
35075         * lib/localename.c: Insert space before sizeof's argument list.
35076         * lib/safe-alloc.h: Likewise.
35077         * lib/file-set.h: Insert space before macro argument list.
35078         * tests/test-argp.c: Likewise.
35079         * lib/argp-namefrob.h: Insert space before function parameter list.
35080         * lib/getaddrinfo.c: Likewise.
35081         * lib/netdb.in.h: Likewise.
35082         * lib/parse-duration.h: Likewise.
35083         * lib/parse-duration.c: Likewise.
35084         * lib/poll.c: Likewise.
35085         * lib/select.c: Likewise.
35086         * lib/trim.h: Likewise.
35087         * tests/test-usleep.c: Likewise.
35088         * lib/ldexpl.c: Insert space before function parameter list and before
35089         function argument list.
35090         * lib/logl.c: Likewise.
35091         * lib/sqrtl.c: Likewise.
35092         * lib/trim.c: Likewise.
35093         * lib/cosl.c: Use GNU style indentation. Insert space before function
35094         argument list.
35095         * lib/sinl.c: Likewise.
35096         * lib/tsearch.c: Insert space after 'for'.
35097         Reported by Jim Meyering.
35098
35099 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35100
35101         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35102         config header before grepping, as it's not present before
35103         autoreconf/configure are run.  Reported by Simon Josefsson.
35104
35105 2010-03-23  Bruno Haible  <bruno@clisp.org>
35106
35107         pt_chown: Make it work with automake < 1.11.
35108         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35109         Reported by Simon Josefsson.
35110
35111 2010-03-23  Bruno Haible  <bruno@clisp.org>
35112
35113         pt_chown: Don't depend on GPLed modules.
35114         * lib/pt_chown.c: Don't include idpriv.h.
35115         (main): Don't drop privileges.
35116         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35117         Reported by Simon Josefsson.
35118
35119 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35120
35121         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35122         suggestions from karl@freefriends.org (Karl Berry).
35123
35124 2010-03-22  Eric Blake  <eblake@redhat.com>
35125
35126         gethostname: further tweaks
35127         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35128         are overriding gethostname.
35129         Suggested by Bruno Haible.
35130
35131 2010-03-21  Bruno Haible  <bruno@clisp.org>
35132
35133         Fix comments.
35134         * lib/forkpty.c (rpl_forkpty): Fix comment.
35135         * lib/openpty.c (rpl_openpty): Likewise.
35136         Reported by Eric Blake.
35137
35138 2010-03-22  Eric Blake  <eblake@redhat.com>
35139
35140         gethostname: fix build on mingw
35141         * lib/unistd.in.h (includes): Work around fact that mingw
35142         <winsock2.h> re-includes <unistd.h>, by avoiding any
35143         redeclarations if we are being included by <winsock2.h>.
35144         Reported by Matthias Bolte.
35145
35146 2010-03-21  Bruno Haible  <bruno@clisp.org>
35147
35148         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35149         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35150         modifications.
35151         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35152         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35153         provide the replacement.
35154         * modules/forkpty (Depends-on): Add openpty, login_tty.
35155         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35156         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35157         * doc/glibc-functions/forkpty.texi: More supported platforms.
35158         * config/srclist.txt: Add forkpty.c (commented).
35159
35160 2010-03-21  Bruno Haible  <bruno@clisp.org>
35161
35162         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35163         (Makefile.am): Verify that PTY_LIB is defined.
35164
35165         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35166
35167 2010-03-21  Bruno Haible  <bruno@clisp.org>
35168
35169         Tests for module 'login_tty'.
35170         * modules/login_tty-tests: New file.
35171         * tests/test-login_tty.c: New file.
35172
35173         New module 'login_tty'.
35174         * lib/login_tty.c: New file.
35175         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35176         * modules/login_tty: New file.
35177         * doc/glibc-functions/login_tty.texi: Mention the new module.
35178
35179 2010-03-21  Bruno Haible  <bruno@clisp.org>
35180
35181         login_tty: Documentation.
35182         * doc/glibc-functions/login_tty.texi: New file.
35183         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35184
35185 2010-03-21  Bruno Haible  <bruno@clisp.org>
35186
35187         pty: Consistent macro naming.
35188         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35189         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35190         * modules/pty (configure.ac): Update.
35191
35192 2010-03-21  Bruno Haible  <bruno@clisp.org>
35193
35194         Tests for openpty: Make stricter.
35195         * tests/test-openpty.c (main): Add test of canonical processing and
35196         erase.
35197         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35198
35199         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35200         * lib/openpty.c (openpty): New replacement function.
35201         * lib/pty.in.h: Include <termios.h>.
35202         (openpty): Update declaration. Add comments.
35203         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35204         is not declared, arrange to provide the replacement. Check for _getpty
35205         and posix_openpt.
35206         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35207         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35208         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35209         * modules/pty-tests (test_pty_c___LDADD): New variable.
35210         * doc/glibc-functions/openpty.texi: More supported platforms.
35211
35212 2010-03-21  Bruno Haible  <bruno@clisp.org>
35213
35214         setenv: Tweaks.
35215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35216         the test program.
35217         * doc/posix-functions/setenv.texi: Update platforms list.
35218
35219 2010-03-21  Bruno Haible  <bruno@clisp.org>
35220
35221         New module 'unlockpt'.
35222         * lib/unlockpt.c: New file, from glibc with modifications.
35223         * m4/unlockpt.m4: New file.
35224         * modules/unlockpt: New file.
35225         * lib/stdlib.in.h (unlockpt): New declaration.
35226         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35227         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35228         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35229         HAVE_UNLOCKPT.
35230         * doc/posix-functions/unlockpt.texi: Mention the new module.
35231         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35232         * config/srclist.txt: Add unlockpt.c (commented).
35233
35234 2010-03-21  Jim Meyering  <meyering@redhat.com>
35235
35236         maint.mk: prohibit inclusion of "intprops.h" without use
35237         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35238
35239 2010-03-21  Bruno Haible  <bruno@clisp.org>
35240
35241         New module 'grantpt'.
35242         * lib/grantpt.c: New file, from glibc with modifications.
35243         * m4/grantpt.m4: New file.
35244         * modules/grantpt: New file.
35245         * lib/stdlib.in.h (grantpt): New declaration.
35246         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35247         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35248         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35249         HAVE_GRANTPT.
35250         * doc/posix-functions/grantpt.texi: Mention the new module.
35251         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35252         * config/srclist.txt: Add grantpt.c (commented).
35253
35254 2010-03-21  Bruno Haible  <bruno@clisp.org>
35255
35256         New module 'pt_chown'.
35257         * lib/pt_chown.c: New file, from glibc with modifications.
35258         * lib/pty-private.h: New file, from glibc with modifications.
35259         * modules/pt_chown: New file.
35260         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35261
35262 2010-03-21  Bruno Haible  <bruno@clisp.org>
35263
35264         Tests for module 'ptsname'.
35265         * modules/ptsname-tests: New file.
35266         * tests/test-ptsname.c: New file.
35267
35268         New module 'ptsname'.
35269         * lib/ptsname.c: New file, from glibc with modifications.
35270         * m4/ptsname.m4: New file.
35271         * modules/ptsname: New file.
35272         * lib/stdlib.in.h (ptsname): New declaration.
35273         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35274         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35275         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35276         HAVE_PTSNAME.
35277         * doc/posix-functions/ptsname.texi: Mention the new module.
35278         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35279         * config/srclist.txt: Add ptsname.c (commented).
35280
35281 2010-03-21  Bruno Haible  <bruno@clisp.org>
35282
35283         Tests for module 'ttyname_r'.
35284         * modules/ttyname_r-tests: New file.
35285         * tests/test-ttyname_r.c: New file.
35286
35287         New module 'ttyname_r'.
35288         * lib/ttyname_r.c: New file.
35289         * m4/ttyname_r.m4: New file.
35290         * modules/ttyname_r: New file.
35291         * lib/unistd.in.h (ttyname_r): New declaration.
35292         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35293         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35294         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35295         HAVE_TTYNAME_R.
35296         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35297         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35298
35299 2010-03-20  Bruno Haible  <bruno@clisp.org>
35300
35301         signal: Undefine macro definitions in C++ mode.
35302         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35303         sigfillset): Undefine macro definitions from the system header in C++
35304         mode.
35305         Reported by John W. Eaton <jwe@gnu.org>.
35306
35307 2010-03-20  Bruno Haible  <bruno@clisp.org>
35308
35309         Ensure no #include statements inside extern "C" { ... }.
35310         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35311         contain #include statements.
35312         * lib/time.in.h: Likewise.
35313
35314 2010-03-20  Bruno Haible  <bruno@clisp.org>
35315
35316         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35317         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35318         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35319         Reported by John W. Eaton <jwe@gnu.org>.
35320
35321 2010-03-20  Bruno Haible  <bruno@clisp.org>
35322
35323         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35324         Reported by Jim Meyering.
35325
35326 2010-03-20  Bruno Haible  <bruno@clisp.org>
35327
35328         pipe: Set errno upon failure.
35329         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35330         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35331         errno value in error message.
35332
35333 2010-03-20  Bruno Haible  <bruno@clisp.org>
35334             Jim Meyering  <meyering@redhat.com>
35335
35336         lchown: Avoid "unused variable" warning.
35337         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35338
35339 2010-03-20  Bruno Haible  <bruno@clisp.org>
35340
35341         Work around unlink() bug on MacOS X 10.5.6.
35342         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35343         attempting to unlink a parent directory.
35344         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35345         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35346         activate for the replacement function.
35347         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35348
35349 2010-03-20  Bruno Haible  <bruno@clisp.org>
35350
35351         Fix link errors on Solaris 8.
35352         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35353         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35354
35355 2010-03-19  Jim Meyering  <meyering@redhat.com>
35356
35357         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35358         The _LIBC implementation of build_range_exp correctly honors the
35359         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35360         However, the non-_LIBC implementation would ignore that syntax-bit
35361         flag and return REG_ERANGE unconditionally.
35362         This change makes it honor that flag.
35363         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35364         Make two pointer parameters "const".
35365         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35366         (parse_bracket_exp): Update caller.
35367
35368         regex.m4: correct the reversed range endpoint ([b-a]) test
35369         * m4/regex.m4: When requiring that [b-a] evoke failure,
35370         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35371         test pass once again for x86-based systems.
35372
35373 2010-03-19  Bruno Haible  <bruno@clisp.org>
35374
35375         scandir: Fix link error on Solaris 8.
35376         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35377         macros.
35378
35379 2010-03-19  Bruno Haible  <bruno@clisp.org>
35380
35381         getusershell: Fix documentation.
35382         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35383         module.
35384         * doc/glibc-functions/setusershell.texi: Likewise.
35385
35386         getusershell: Provide declaration, missing on Solaris 9.
35387         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35388         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35389         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35390         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35392         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35393         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35394         HAVE_GETUSERSHELL.
35395         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35396
35397 2010-03-19  Bruno Haible  <bruno@clisp.org>
35398
35399         wctype: Provide iswblank function.
35400         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35401         exists and is fine.
35402         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35403         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35404         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35405         * doc/posix-functions/iswblank.texi: Update.
35406
35407 2010-03-19  Bruno Haible  <bruno@clisp.org>
35408
35409         Tests of module 'pty' in C++ mode.
35410         * modules/pty-tests: New file.
35411         * tests/test-pty-c++.cc: New file.
35412         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35413
35414 2010-03-19  Eric Blake  <eblake@redhat.com>
35415
35416         logb: fix documentation
35417         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35418         1.5 declaration bug.
35419
35420         forkpty, openpty: prefer glibc's const-safe prototype
35421         * lib/forkpty.c (rpl_forkpty): New file.
35422         * lib/openpty.c (rpl_openpty): Likewise.
35423         * modules/forkpty (Files): Distribute it.
35424         * modules/openpty (Files): Likewise.
35425         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35426         check...
35427         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35428         replacement for for non-const BSD signature.
35429         * modules/pty (Makefile.am): Substitute witnesses.
35430         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35431         * tests/test-forkpty.c: Update signature check.
35432         * tests/test-openpty.c: Likewise.
35433         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35434         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35435
35436         forkpty, openpty: split functions into new modules
35437         * modules/pty (Makefile.am): Substitute new witnesses.
35438         (Libraries): Move library detection...
35439         * modules/forkpty: ...into new module.
35440         * modules/openpty: Another new module.
35441         * modules/pty-tests: Rename and split...
35442         * modules/forkpty-tests: ...to this...
35443         * modules/openpty-tests: ...and this.
35444         * tests/test-pty.c: Rename and split...
35445         * tests/test-forkpty.c: ...to this...
35446         * tests/test-openpty.c: ...and this.
35447         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35448         (gl_PTY): Split library searching...
35449         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35450         (gl_FORKPTY, gl_OPENPTY): New macros.
35451         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35452         * NEWS: Mention the split.
35453         * MODULES.html.sh (Misc): Document the modules.
35454         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35455         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35456
35457         pty: improve replacement header
35458         * lib/pty.in.h: New file.
35459         * modules/pty (Files): Ship it.
35460         (Makefile.am): Always build replacement.
35461         * m4/pty.m4: Rename...
35462         * m4/pty_h.m4: ...to this.
35463         (gl_PTY): Modernize setting of witness macros; update check of
35464         forkpty to take proper advantage of cache.
35465         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35466
35467         getopt: avoid compiler warning
35468         * lib/getopt.c (attribute_hidden): Remove unused macro.
35469
35470 2010-03-18  Bruno Haible  <bruno@clisp.org>
35471
35472         Fix link errors on Solaris 8.
35473         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35474         * modules/search-tests (test_search_c___LDADD): Likewise.
35475         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35476         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35477         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35478         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35479         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35480         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35481         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35482
35483 2010-03-18  Bruno Haible  <bruno@clisp.org>
35484
35485         Fix bug introduced on 2010-03-14.
35486         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35487         (gl_SPAWN_H): Require it.
35488         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35489         Reported by Simon Josefsson.
35490
35491 2010-03-18  Bruno Haible  <bruno@clisp.org>
35492
35493         Fix typo introduced on 2009-12-31.
35494         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35495         posix_spawn_file_actions_adddup2.
35496
35497 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35498         and Eric Blake  <eblake@redhat.com>
35499
35500         test-vc-list-files-git: make more robust
35501         * tests/test-vc-list-files-git.sh: Unset problematic environment
35502         variables.  Chain commands together.
35503
35504 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35505
35506         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35507         `AC_CHECK_DECL' invocation.
35508
35509 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35510
35511         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35512         appears before executable statements. Suggested by Petr Sumbera
35513         <Petr.Sumbera@Sun.COM>.
35514
35515 2010-03-14  Bruno Haible  <bruno@clisp.org>
35516
35517         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35518         portability problems. Instead use a simpler test.
35519         (main): Check that invalid arguments are rejected only on Linux.
35520
35521 2010-03-14  Bruno Haible  <bruno@clisp.org>
35522
35523         Fix bug introduced on 2009-12-31.
35524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35525         gl_PREREQ_SYS_H_WINSOCK2 always.
35526         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35527         SYS_SOCKET_H variable.
35528         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35529         Update comments.
35530         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35531         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35532         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35533         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35534         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35535
35536 2010-03-14  Bruno Haible  <bruno@clisp.org>
35537
35538         Fix values returned by sinl, cosl.
35539         * lib/trigl.h: Add specification comments.
35540         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35541         that combines the values from the precomputed table with the values of
35542         the Chebyshev polynomials.
35543
35544 2010-03-14  Bruno Haible  <bruno@clisp.org>
35545
35546         Fix compilation error when modules 'posix_spawn[p]' are not used.
35547         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35549
35550 2010-03-14  Bruno Haible  <bruno@clisp.org>
35551
35552         Fix compilation error on mingw when module 'time_r' is not used.
35553         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35554         is 1.
35555         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35556         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35557         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35558         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35559
35560 2010-03-14  Bruno Haible  <bruno@clisp.org>
35561
35562         Fix compilation error with Sun C.
35563         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35564         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35565         instead of GCC specific ULONG_LONG_MAX.
35566         * lib/xstrtoll.c: Likewise.
35567         * lib/xstrtoull.c: Likewise.
35568
35569 2010-03-13  Bruno Haible  <bruno@clisp.org>
35570
35571         Allow the user to disable C++ code and tests.
35572         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35573         (gl_PROG_ANSI_CXX): Require it.
35574
35575 2010-03-13  Bruno Haible  <bruno@clisp.org>
35576
35577         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35578         cases.
35579
35580 2010-03-13  Bruno Haible  <bruno@clisp.org>
35581
35582         Test that gnulib does not break the standard C++ headers.
35583         * tests/test-locale-c++2.cc: New file.
35584         * modules/locale-tests (Files): Add it.
35585         (Makefile.am): Compile it for test-locale-c++.
35586         * tests/test-math-c++2.cc: New file.
35587         * modules/math-tests (Files): Add it.
35588         (Makefile.am): Compile it for test-math-c++.
35589         * tests/test-signal-c++2.cc: New file.
35590         * modules/signal-tests (Files): Add it.
35591         (Makefile.am): Compile it for test-signal-c++.
35592         * tests/test-stdio-c++2.cc: New file.
35593         * modules/stdio-tests (Files): Add it.
35594         (Makefile.am): Compile it for test-stdio-c++.
35595         * tests/test-stdlib-c++2.cc: New file.
35596         * modules/stdlib-tests (Files): Add it.
35597         (Makefile.am): Compile it for test-stdlib-c++.
35598         * tests/test-string-c++2.cc: New file.
35599         * modules/string-tests (Files): Add it.
35600         (Makefile.am): Compile it for test-string-c++.
35601         * tests/test-time-c++2.cc: New file.
35602         * modules/time-tests (Files): Add it.
35603         (Makefile.am): Compile it for test-time-c++.
35604         Reported by John W. Eaton <jwe@gnu.org>.
35605
35606 2010-03-13  Bruno Haible  <bruno@clisp.org>
35607
35608         * gnulib-tool (func_usage): Clarify which options are available for
35609         --create-testdir and --create-megatestdir.
35610
35611 2010-03-13  Bruno Haible  <bruno@clisp.org>
35612
35613         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35614         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35615         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35616         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35617         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35618         when appropriate.
35619         Reported by Jim Meyering.
35620
35621 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35622
35623         * gnulib-tool (func_import): Explain origin of code.
35624
35625 2010-03-12  Bruno Haible  <bruno@clisp.org>
35626
35627         Fix problem with automake's definition of CXXLINK.
35628         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35629         Reported by Simon Josefsson and Ludovic Courtès.
35630
35631 2010-03-12  Bruno Haible  <bruno@clisp.org>
35632
35633         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35634         stable releases.
35635
35636 2010-03-11  Bruno Haible  <bruno@clisp.org>
35637
35638         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35639         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35640         whether the system provides one variant or multiple variants of the
35641         function.
35642         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35643         C++ compilers.
35644         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35645         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35646         Reported by Jim Meyering.
35647
35648 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35649
35650         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35651
35652 2010-03-08  Bruno Haible  <bruno@clisp.org>
35653
35654         gnulib-tool: Add support for --libtool in --create-testdir.
35655         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35656         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35657
35658 2010-03-08  Eric Blake  <eblake@redhat.com>
35659
35660         gnulib-tool.texi: mention possibility of git submodule
35661         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35662         submodules.
35663         * doc/.gitignore: Ignore another generated file.
35664
35665 2010-03-08  Karl Berry  <karl@gnu.org>
35666
35667         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35668         of committing gnulib files while skipping others.
35669
35670 2010-03-07  Bruno Haible  <bruno@clisp.org>
35671
35672         Tests of module 'wctype' in C++ mode.
35673         * tests/test-wctype-c++.cc: New file.
35674         * modules/wctype-tests (Files): Add it and tests/signature.h.
35675         (Depends-on): Add ansi-c++-opt.
35676         (Makefile.am): Arrange to compile and run test-wctype-c++.
35677
35678         Tests of module 'wchar' in C++ mode.
35679         * tests/test-wchar-c++.cc: New file.
35680         * modules/wchar-tests (Files): Add it and tests/signature.h.
35681         (Depends-on): Add ansi-c++-opt.
35682         (Makefile.am): Arrange to compile and run test-wchar-c++.
35683         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35684         gl_MODULE_INDICATOR.
35685
35686         Tests of module 'unistd' in C++ mode.
35687         * tests/test-unistd-c++.cc: New file.
35688         * modules/unistd-tests (Files): Add it and tests/signature.h.
35689         (Depends-on): Add ansi-c++-opt.
35690         (Makefile.am): Arrange to compile and run test-unistd-c++.
35691         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35692         gl_MODULE_INDICATOR.
35693
35694         Tests of module 'time' in C++ mode.
35695         * tests/test-time-c++.cc: New file.
35696         * modules/time-tests (Files): Add it and tests/signature.h.
35697         (Depends-on): Add ansi-c++-opt.
35698         (Makefile.am): Arrange to compile and run test-time-c++.
35699         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35700
35701         Tests of module 'sys_time' in C++ mode.
35702         * tests/test-sys_time-c++.cc: New file.
35703         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35704         (Depends-on): Add ansi-c++-opt.
35705         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35706         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35707         gl_MODULE_INDICATOR.
35708
35709         Tests of module 'sys_stat' in C++ mode.
35710         * tests/test-sys_stat-c++.cc: New file.
35711         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35712         (Depends-on): Add ansi-c++-opt.
35713         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35714         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35715         gl_MODULE_INDICATOR.
35716
35717         Tests of module 'sys_socket' in C++ mode.
35718         * tests/test-sys_socket-c++.cc: New file.
35719         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35720         (Depends-on): Add ansi-c++-opt.
35721         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35722         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35723         gl_MODULE_INDICATOR.
35724
35725         Tests of module 'sys_select' in C++ mode.
35726         * tests/test-sys_select-c++.cc: New file.
35727         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35728         (Depends-on): Add ansi-c++-opt.
35729         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35730         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35731         gl_MODULE_INDICATOR.
35732
35733         Tests of module 'sys_ioctl' in C++ mode.
35734         * tests/test-sys_ioctl-c++.cc: New file.
35735         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35736         (Depends-on): Add ansi-c++-opt.
35737         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35738         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35739         gl_MODULE_INDICATOR.
35740
35741         Tests of module 'string' in C++ mode.
35742         * tests/test-string-c++.cc: New file.
35743         * modules/string-tests (Files): Add it and tests/signature.h.
35744         (Depends-on): Add ansi-c++-opt.
35745         (Makefile.am): Arrange to compile and run test-string-c++.
35746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35747         gl_MODULE_INDICATOR.
35748
35749         Tests of module 'stdlib' in C++ mode.
35750         * tests/test-stdlib-c++.cc: New file.
35751         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35752         (Depends-on): Add ansi-c++-opt.
35753         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35754         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35755         gl_MODULE_INDICATOR.
35756
35757         Tests of module 'stdio' in C++ mode.
35758         * tests/test-stdio-c++.cc: New file.
35759         * modules/stdio-tests (Files): Add it and tests/signature.h.
35760         (Depends-on): Add ansi-c++-opt.
35761         (Makefile.am): Arrange to compile and run test-stdio-c++.
35762         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35763         gl_MODULE_INDICATOR.
35764
35765         Tests of module 'spawn' in C++ mode.
35766         * tests/test-spawn-c++.cc: New file.
35767         * modules/spawn-tests (Files): Add it and tests/signature.h.
35768         (Depends-on): Add ansi-c++-opt.
35769         (Makefile.am): Arrange to compile and run test-spawn-c++.
35770         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35771         gl_MODULE_INDICATOR.
35772
35773         Tests of module 'signal' in C++ mode.
35774         * tests/test-signal-c++.cc: New file.
35775         * modules/signal-tests (Files): Add it and tests/signature.h.
35776         (Depends-on): Add ansi-c++-opt.
35777         (Makefile.am): Arrange to compile and run test-signal-c++.
35778         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35779         gl_MODULE_INDICATOR.
35780
35781         Tests of module 'search' in C++ mode.
35782         * tests/test-search-c++.cc: New file.
35783         * modules/search-tests (Files): Add it and tests/signature.h.
35784         (Depends-on): Add ansi-c++-opt.
35785         (Makefile.am): Arrange to compile and run test-search-c++.
35786         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35787         gl_MODULE_INDICATOR.
35788
35789         Tests of module 'math' in C++ mode.
35790         * tests/test-math-c++.cc: New file.
35791         * modules/math-tests (Files): Add it and tests/signature.h.
35792         (Depends-on): Add ansi-c++-opt.
35793         (Makefile.am): Arrange to compile and run test-math-c++.
35794         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35795
35796         Tests of module 'locale' in C++ mode.
35797         * tests/test-locale-c++.cc: New file.
35798         * modules/locale-tests (Files): Add it and tests/signature.h.
35799         (Depends-on): Add ansi-c++-opt.
35800         (Makefile.am): Arrange to compile and run test-locale-c++.
35801         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35802         gl_MODULE_INDICATOR.
35803
35804         Tests of module 'langinfo' in C++ mode.
35805         * tests/test-langinfo-c++.cc: New file.
35806         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35807         (Depends-on): Add ansi-c++-opt.
35808         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35809         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35810         gl_MODULE_INDICATOR.
35811
35812         Tests of module 'iconv-h' in C++ mode.
35813         * tests/test-iconv-h-c++.cc: New file.
35814         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35815         (Depends-on): Add ansi-c++-opt.
35816         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35817
35818         Tests of module 'glob' in C++ mode.
35819         * tests/test-glob-c++.cc: New file.
35820         * modules/glob-tests (Files): Add it.
35821         (Depends-on): Add ansi-c++-opt.
35822         (Makefile.am): Arrange to compile and run test-glob-c++.
35823
35824         Tests of module 'fcntl-h' in C++ mode.
35825         * tests/test-fcntl-h-c++.cc: New file.
35826         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35827         (Depends-on): Add ansi-c++-opt.
35828         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35829         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35830         gl_MODULE_INDICATOR.
35831
35832         Tests of module 'dirent' in C++ mode.
35833         * tests/test-dirent-c++.cc: New file.
35834         * modules/dirent-tests (Files): Add it and tests/signature.h.
35835         (Depends-on): Add ansi-c++-opt.
35836         (Makefile.am): Arrange to compile and run test-dirent-c++.
35837         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35838         gl_MODULE_INDICATOR.
35839
35840         New module 'ansi-c++-opt'.
35841         * modules/ansi-c++-opt: New file.
35842         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35843
35844         Document C++ namespace mode.
35845         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35846
35847         wctype: Avoid #define replacements in C++ mode.
35848         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35849         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35850         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35851         In C++, define a namespaced alias symbol.
35852         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35853         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35854         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35855         rule.
35856
35857         wchar: Avoid #define replacements in C++ mode.
35858         * lib/wchar.in.h: Include c++defs.h.
35859         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35860         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35861         symbol.
35862         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35863         * modules/wchar (Depends-on): Add c++defs.
35864         (Makefile.am): Update wchar.h rule.
35865
35866         unistd: Avoid #define replacements in C++ mode.
35867         * lib/unistd.in.h: Include c++defs.h.
35868         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35869         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35870         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35871         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35872         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35873         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35874         symbol.
35875         (environ): Update.
35876         * modules/unistd (Depends-on): Add c++defs.
35877         (Makefile.am): Update unistd.h rule.
35878
35879         time: Avoid #define replacements in C++ mode.
35880         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35881         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35882         define a namespaced alias symbol.
35883         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35884         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35885         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35886         * modules/time (Depends-on): Add c++defs, warn-on-use.
35887         (Makefile.am): Update time.h rule.
35888         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35889         * modules/nanosleep (configure.ac): Likewise.
35890         * modules/strptime (configure.ac): Likewise.
35891         * modules/timegm (configure.ac): Likewise.
35892
35893         sys_time: Avoid #define replacements in C++ mode.
35894         * lib/sys_time.in.h: Include c++defs.h.
35895         (gettimeofday): In C++, define a namespaced alias symbol.
35896         * modules/sys_time (Depends-on): Add c++defs.
35897         (Makefile.am): Update sys/time.h rule.
35898
35899         sys_stat: Avoid #define replacements in C++ mode.
35900         * lib/sys_stat.in.h: Include c++defs.h.
35901         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35902         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35903         namespaced alias symbol.
35904         In C++, define a namespaced alias symbol.
35905         * modules/sys_stat (Depends-on): Add c++defs.
35906         (Makefile.am): Update sys/stat.h rule.
35907
35908         sys_socket: Avoid #define replacements in C++ mode.
35909         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35910         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35911         definitions also when the system has a <sys/socket.h>.
35912         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35913         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35914         In C++, define a namespaced alias symbol.
35915         * modules/sys_socket (Depends-on): Add c++defs.
35916         (Makefile.am): Update sys/socket.h rule.
35917
35918         sys_select: Avoid #define replacements in C++ mode.
35919         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35920         definitions also when the system has a <sys/select.h>.
35921         (select): In C++, define a namespaced alias symbol.
35922         * modules/sys_select (Depends-on): Add c++defs.
35923         (Makefile.am): Update sys/select.h rule.
35924
35925         sys_ioctl: Avoid #define replacements in C++ mode.
35926         * lib/sys_ioctl.in.h: Include c++defs.h.
35927         (ioctl): In C++, define a namespaced alias symbol.
35928         * modules/sys_ioctl (Depends-on): Add c++defs.
35929         (Makefile.am): Update sys/ioctl.h rule.
35930
35931         string: Avoid #define replacements in C++ mode.
35932         * lib/string.in.h: Include c++defs.h.
35933         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35934         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35935         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35936         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35937         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35938         * modules/string (Depends-on): Add c++defs.
35939         (Makefile.am): Update string.h rule.
35940
35941         stdlib: Avoid #define replacements in C++ mode.
35942         * lib/stdlib.in.h: Include c++defs.h.
35943         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35944         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35945         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35946         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35947         symbol.
35948         * modules/stdlib (Depends-on): Add c++defs.
35949         (Makefile.am): Update stdlib.h rule.
35950
35951         stdio: Avoid #define replacements in C++ mode.
35952         * lib/stdio.in.h: Include c++defs.h.
35953         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35954         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35955         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35956         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35957         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35958         namespaced alias symbol.
35959         * modules/stdio (Depends-on): Add c++defs.
35960         (Makefile.am): Update stdio.h rule.
35961
35962         spawn: Avoid #define replacements in C++ mode.
35963         * lib/spawn.in.h: Include c++defs.h.
35964         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35965         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35966         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35967         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35968         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35969         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35970         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35971         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35972         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35973         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35974         In C++, define a namespaced alias symbol.
35975         * modules/spawn (Depends-on): Add c++defs.
35976         (Makefile.am): Update spawn.h rule.
35977
35978         signal: Avoid #define replacements in C++ mode.
35979         * lib/signal.in.h: Include c++defs.h.
35980         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35981         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35982         namespaced alias symbol.
35983         * modules/signal (Depends-on): Add c++defs.
35984         (Makefile.am): Update signal.h rule.
35985
35986         search: Avoid #define replacements in C++ mode.
35987         * lib/search.in.h: Include c++defs.h.
35988         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35989         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35990         symbol.
35991         * modules/search (Depends-on): Add c++defs.
35992         (Makefile.am): Update search.h rule.
35993
35994         math: Avoid #define replacements in C++ mode.
35995         * lib/math.in.h: Include c++defs.h.
35996         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35997         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35998         trunc, truncl): In C++, define a namespaced alias symbol.
35999         * modules/math (Depends-on): Add c++defs.
36000         (Makefile.am): Update math.h rule.
36001
36002         locale: Avoid #define replacements in C++ mode.
36003         * lib/locale.in.h: Include c++defs.h.
36004         (duplocale): In C++, define a namespaced alias symbol.
36005         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36006         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36007         * modules/locale (Depends-on): Add c++defs.
36008         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36009
36010         langinfo: Avoid #define replacements in C++ mode.
36011         * lib/langinfo.in.h: Include c++defs.h.
36012         (nl_langinfo): In C++, define a namespaced alias symbol.
36013         * modules/langinfo (Depends-on): Add c++defs.
36014         (Makefile.am): Update langinfo.h rule.
36015
36016         iconv-h: Avoid #define replacements in C++ mode.
36017         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36018         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36019         symbol.
36020         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36021         whenever iconv is present.
36022         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36023         (Makefile.am): Update iconv.h rule.
36024
36025         glob: Avoid #define replacements in C++ mode.
36026         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36027         (_gl_glob_errfunc_fn): New type.
36028         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36029         symbol.
36030         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36031         (Makefile.am): Update glob.h rule.
36032
36033         fcntl-h: Avoid #define replacements in C++ mode.
36034         * lib/fcntl.in.h: Include c++defs.h.
36035         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36036         * modules/fcntl-h (Depends-on): Add c++defs.
36037         (Makefile.am): Update fcntl.h rule.
36038
36039         dirent: Avoid #define replacements in C++ mode.
36040         * lib/dirent.in.h: Include c++defs.h.
36041         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36042         namespaced alias symbol.
36043         (dirfd): Update declaration.
36044         * modules/dirent (Depends-on): Add c++defs.
36045         (Makefile.am): Update dirent.h rule.
36046
36047         ctype: Make it usable in C++ code.
36048         * lib/ctype.in.h: Include c++defs.h.
36049         (isblank): Declare as extern "C".
36050         * modules/ctype (Depends-on): Add c++defs.
36051         (Makefile.am): Update ctype.h rule.
36052
36053         New module 'c++defs'.
36054         * modules/c++defs: New file.
36055         * build-aux/c++defs.h: New file.
36056         Reported by John W. Eaton <jwe@gnu.org>.
36057
36058 2010-03-07  Bruno Haible  <bruno@clisp.org>
36059
36060         logb: Provide missing declaration for Cygwin.
36061         * lib/math.in.h (logb): New declaration.
36062         * m4/logb.m4: New file.
36063         * modules/logb (Files): Add m4/logb.m4.
36064         (Depends-on): Add math.
36065         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36066         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36068         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36069         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36070
36071 2010-03-07  Bruno Haible  <bruno@clisp.org>
36072
36073         Fix test-cond link error.
36074         * tests/test-cond.c: Include <stdio.h>.
36075
36076 2010-03-07  Bruno Haible  <bruno@clisp.org>
36077
36078         Fix test-dirent-safer link error.
36079         * modules/dirent-safer-tests (Makefile.am): Define
36080         test_dirent_safer_LDADD.
36081
36082 2010-03-07  Bruno Haible  <bruno@clisp.org>
36083
36084         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36085         among default module list.
36086
36087 2010-03-07  Bruno Haible  <bruno@clisp.org>
36088
36089         Fix link error on platforms with GNU libiconv.
36090         * modules/unistr/u8-strcoll-tests (Makefile): Define
36091         test_u8_strcoll_LDADD.
36092         * modules/unistr/u16-strcoll-tests (Makefile): Define
36093         test_u16_strcoll_LDADD.
36094         * modules/unistr/u32-strcoll-tests (Makefile): Define
36095         test_u32_strcoll_LDADD.
36096
36097 2010-03-07  Bruno Haible  <bruno@clisp.org>
36098
36099         Use POSIX declarations for socket functions.
36100         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36101         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36102         rpl_sendto): Change declaration to match POSIX.
36103         * lib/connect.c (rpl_connect): Likewise.
36104         * lib/accept.c (rpl_accept): Likewise.
36105         * lib/bind.c (rpl_bind): Likewise.
36106         * lib/getpeername.c (rpl_getpeername): Likewise.
36107         * lib/getsockname.c (rpl_getsockname): Likewise.
36108         * lib/recv.c (rpl_recv): Likewise.
36109         * lib/send.c (rpl_send): Likewise.
36110         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36111         * lib/sendto.c (rpl_sendto): Likewise.
36112
36113 2010-03-06  Bruno Haible  <bruno@clisp.org>
36114
36115         Clarify access, euidaccess, faccessat.
36116         * doc/posix-functions/faccessat.texi: Mention security problem under
36117         "Other problems", not "Portability problems".
36118         * doc/posix-functions/access.texi: Likewise. Mention a related security
36119         problem.
36120         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36121         * lib/euidaccess.c: Add comments about platforms.
36122         * lib/unistd.in.h (access, euidaccess): Add warnings.
36123
36124 2010-03-07  Bruno Haible  <bruno@clisp.org>
36125
36126         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36127         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36128         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36129         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36130         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36131         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36132         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36133         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36134         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36135         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36136         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36137         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36138         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36139         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36140         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36141         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36142         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36143         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36144         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36145         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36146         Likewise.
36147         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36148         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36149         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36150         Likewise.
36151         * tests/test-spawn.c (main): Make it work when
36152         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36153
36154 2010-03-07  Bruno Haible  <bruno@clisp.org>
36155
36156         Fix incorrect Makefile.am generation in German locale.
36157         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36158         Execute sed command with character range in C locale.
36159
36160 2010-03-06  Bruno Haible  <bruno@clisp.org>
36161
36162         Tests for module 'iconv-h'.
36163         * modules/iconv-h-tests: New file.
36164         * tests/test-iconv-h.c: New file.
36165
36166         New module 'iconv-h'.
36167         * modules/iconv-h: New file.
36168         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36169         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36170         (configure.ac): Remove gl_ICONV_H.
36171         (Makefile.am): Remove rule for iconv.h.
36172
36173 2010-03-06  Bruno Haible  <bruno@clisp.org>
36174
36175         More consistent naming of *.m4 files.
36176         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36177         * modules/wctype (Files): Update.
36178
36179         More consistent naming of *.m4 files.
36180         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36181         * modules/wchar (Files): Update.
36182
36183 2010-03-06  Jim Meyering  <meyering@redhat.com>
36184
36185         euidaccess: relax license to LGPLv2+
36186         * modules/euidaccess (License): Relax to LGPLv2+.
36187
36188 2010-03-06  Bruno Haible  <bruno@clisp.org>
36189
36190         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36191         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36192         (Makefile.am): Augment lib_SOURCES instead.
36193
36194 2010-03-04  Jim Meyering  <meyering@redhat.com>
36195
36196         utime: remove obsolete module
36197         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36198         unnecessary for years, and has been marked as obsolete for 10 months.
36199         * modules/utime: Remove file.
36200         * lib/utime.c: Remove file.
36201         * m4/utime.m4: Remove file.
36202         * m4/utimes-null.m4: Remove file.
36203         * doc/posix-functions/utime.texi (utime): Remove reference to
36204         the module.  Move the sole "fixed by gnulib" item into the
36205         "problems not fixed by Gnulib" list.
36206         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36207
36208 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36209
36210         * modules/exit (License): Relax license to LGPLv2+.
36211         (Status): Mark as obsolete.
36212         * NEWS: Mention deprecated 'exit' module.
36213         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36214         of now obsolete 'exit'.
36215
36216 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36217
36218         fts-lgpl: remove unused module
36219         * modules/fts-lgpl: Remove.
36220         * MODULES.html.sh (func_all_modules): Adjust.
36221         * check-module (find_included_lib_files): Adjust.
36222         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36223
36224 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36225
36226         copy-acl: enhance Solaris ACL error handling
36227         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36228         * lib/set-mode-acl.c (qset_acl): Likewise.
36229
36230 2010-03-02  Bruno Haible  <bruno@clisp.org>
36231
36232         spawn: Don't override the system defined values on FreeBSD 8.
36233         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36234         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36235         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36236         if HAVE_POSIX_SPAWN is 1.
36237         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36238
36239 2010-03-01  Bruno Haible  <bruno@clisp.org>
36240
36241         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36242         regarding Automake.
36243
36244 2010-02-25  Bruno Haible  <bruno@clisp.org>
36245
36246         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36247         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36248         setting, not afterwards.
36249         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36250
36251 2010-02-24  Eric Blake  <eblake@redhat.com>
36252
36253         bootstrap, git-version-gen: use timestamp
36254         * build-aux/git-version-gen (scriptversion): Force UTC.
36255         * build-aux/bootstrap (scriptversion): New variable.
36256
36257         bootstrap: allow older git
36258         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36259         older than 1.6.4.  Requested by the libvirt project.
36260
36261 2010-02-23  Eric Blake  <eblake@redhat.com>
36262
36263         warn-on-use: work with old autoconf
36264         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36265         AS_VAR semantics of autoconf 2.60.
36266         Reported by Bruno Haible.
36267
36268         bootstrap: improve some comments
36269         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36270         clarification comments.
36271
36272         gettimeofday: provide correct function
36273         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36274         when replacement is declared, otherwise provide gettimeofday.
36275         Reported by Michael Goffioul.
36276
36277 2010-02-23  Jim Meyering  <meyering@redhat.com>
36278
36279         lib-ignore: relax license to "unlimited", not LGPLv2+
36280         * modules/lib-ignore (License): Relax to "unlimited".
36281
36282 2010-02-23  Jim Meyering  <meyering@redhat.com>
36283
36284         lib-ignore: relax license to LGPLv2+
36285         * modules/lib-ignore (License): Relax to LGPLv2+.
36286
36287 2010-02-22  Eric Blake  <eblake@redhat.com>
36288
36289         lseek: avoid bash 3.2 broken pipe bug
36290         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36291         warning from bash 3.2.
36292         Reported by Ben Pfaff, with analysis from Bruno Haible.
36293
36294         bootstrap: support non-FSF copyright holder
36295         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36296         bootstrap.conf override of COPYRIGHT_HOLDER.
36297         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36298
36299         bootstrap: interoperate with gettext 0.14.1
36300         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36301
36302         bootstrap: allow for alternate submodule location
36303         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36304         hardcoding submodule location.
36305         (gnulib_mk): Allow direct use of Makefile.am.
36306
36307         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36308         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36309         rather than reconfiguring where the submodule points.
36310
36311         gettimeofday: restore support for platforms that lack function
36312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36313         replacement if function is missing.
36314         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36315         * modules/sys_time (Makefile.am): Substitute it.
36316         * lib/sys_time.in.h (gettimeofday): Check it.
36317         Reported by Michael Goffioul.
36318
36319 2010-02-21  Bruno Haible  <bruno@clisp.org>
36320
36321         * lib/stdio.in.h (obstack_printf): Fix typo.
36322
36323 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36324
36325         vc-list-files: use bzr ls's -R option
36326         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36327         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36328
36329 2010-02-21  Jim Meyering  <meyering@redhat.com>
36330
36331         init.sh: fix EXEEXT shims to work also for names like test-prog
36332         * tests/init.sh: Re-exec a better shell, when needed.
36333         If the current shell lacks support for posix $(...), an init.sh-using
36334         test will now try to find a shell that supports that.  If EXEEXT is
36335         nonempty, we also require support for hyphen-in-alias-name and shell
36336         substitutions like ${var#glob}.  Failure to find such a shell results
36337         in a skipped test.
36338
36339 2010-02-21  Bruno Haible  <bruno@clisp.org>
36340
36341         Really work around around "broken pipe" error message from bash 3.2.
36342         * gnulib-tool (func_reset_sigpipe): Remove function.
36343         (echo): In bash 3.2, define to a function that uses printf.
36344         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36345
36346 2010-02-20  Bruno Haible  <bruno@clisp.org>
36347
36348         Restore support for automake 1.9.6 with autoconf 2.61.
36349         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36350         Reported by James Youngman <jay@gnu.org>.
36351
36352 2010-02-20  Bruno Haible  <bruno@clisp.org>
36353
36354         Improve *printf warning condition.
36355         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36356         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36357         and the function is overridden due to SIGPIPE emulation.
36358
36359 2010-02-20  Bruno Haible  <bruno@clisp.org>
36360
36361         * lib/stdio.in.h: Tweak comments.
36362
36363 2010-02-19  Bruno Haible  <bruno@clisp.org>
36364
36365         Make it easier to find modules. New gnulib-tool option '--find'.
36366         * gnulib-tool: New option --find.
36367         (func_usage): Document it.
36368         (func_sanitize_modulelist): New function, extracted from
36369         func_all_modules.
36370         (func_all_modules): Invoke it.
36371         * doc/gnulib-tool.texi (Which modules?): New node.
36372
36373 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36374
36375         * lib/sys_select.in.h: Provide select replacement even if
36376         sys/select.h exists on a system, for Interix.
36377
36378 2010-02-18  Jim Meyering  <meyering@redhat.com>
36379
36380         init.sh: don't use $(...) just yet
36381         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36382         to accommodate e.g., Solaris' /bin/sh.
36383
36384 2010-02-17  Bruno Haible  <bruno@clisp.org>
36385
36386         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36387         Reported by Ludovic Courtès <ludo@gnu.org>.
36388
36389 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36390
36391         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36392         linking with -lintl.
36393
36394 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36395
36396         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36397         if not provided by the system's netdb.h.  Reported by
36398         ludo@gnu.org (Ludovic Courtès).
36399
36400 2010-02-15  Jim Meyering  <meyering@redhat.com>
36401
36402         init.sh: improve portability and efficiency
36403         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36404         "dummy" in a for loop.
36405         Use '!', not '^' to select the complement of a character set used
36406         in a "case" statement.
36407         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36408         Suggestions from Eric Blake.
36409
36410         init.sh: automatically accommodate programs with the .exe suffix
36411         Automatically arrange for an invocation of "prog" to execute the
36412         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36413         may use the simpler "prog", yet still work when built on a system
36414         that requires specifying the added suffix.
36415         Do this by constructing a function named "prog" that invokes
36416         "prog.exe" for each .exe file in selected directories.
36417         * tests/init.sh (find_exe_basenames_): New function.
36418         (create_exe_shim_functions_): New function.
36419         (path_prepend_): Use it.
36420
36421         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36422         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36423         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36424
36425 2010-02-14  Jim Meyering  <meyering@redhat.com>
36426
36427         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36428         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36429         (sc_prohibit_hash_pjw_without_use): New rule.
36430
36431         maint.mk: allow the default upload destination dir to be overridden
36432         * top/maint.mk (upload_dest_dir_): Define with a default that
36433         preserves the status quo.
36434         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36435         Reported by Peter Simons.
36436
36437         maint.mk: prohibit inclusion of "hash.h" without_use
36438         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36439
36440 2010-02-10  Jim Meyering  <meyering@redhat.com>
36441
36442         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36443         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36444
36445 2010-02-09  Eric Blake  <ebb9@byu.net>
36446         and Bruno Haible  <bruno@clisp.org>
36447
36448         obstack-printf-posix: ensure declaration
36449         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36450         extracted from gl_FUNC_OBSTACK_PRINTF.
36451         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36452         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36453         Likewise.
36454         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36455         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36456         0.
36457
36458 2010-02-08  Bruno Haible  <bruno@clisp.org>
36459
36460         gnulib-tool: Fix typo in 2010-02-07 commit.
36461         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36462         Reported by Eric Blake.
36463
36464 2010-02-07  Bruno Haible  <bruno@clisp.org>
36465
36466         gnulib-tool: Fix up caching patches.
36467         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36468         option --no-cache. Use associative arrays when supported by the shell.
36469         (sed_comments): New variable.
36470         (modcache): Renamed from do_cache.
36471         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36472         abbreviate unnecessarily.
36473         (have_associative): New variable.
36474         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36475         way also for ksh and zsh.
36476         (func_init_sed_convert_to_cache_statements): New function, extracted
36477         from func_cache_lookup_module. Add support for associative arrays.
36478         Don't set the c_MODULE_cached variable here. Ignore all lines before
36479         the first field header. Remove only the final newline, not all trailing
36480         newlines. Support empty fields correctly. Limit the use of 'eval' to
36481         assignments.
36482         (func_get_description, func_get_status, func_get_notice,
36483         func_get_applicability, func_get_filelist, func_get_dependencies,
36484         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36485         func_get_automake_snippet, func_get_include_directive,
36486         func_get_link_directive, func_get_license, func_get_maintainer):
36487         Update documentation. List the unoptimized code first. Add support for
36488         associative arrays. Limit the use of 'eval' to assignments.
36489         (func_get_applicability): Undo stylistic pessimisations.
36490         (func_get_automake_snippet, func_get_include_directive): Reduce code
36491         duplication.
36492         (func_modules_transitive_closure, func_modules_add_dummy,
36493         func_modules_notice, func_modules_to_filelist, func_add_file,
36494         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36495         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36496         func_create_testdir, func_create_megatestdir): Update documentation.
36497
36498 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36499
36500         * gnulib-tool (func_cache_lookup_module): Store the module name
36501         belonging to the cache variable; error out if two different
36502         module names map to the same cache variable name.
36503
36504 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36505
36506         gnulib-tool: Make caching optional.
36507         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36508         Update matching short versions of --no-changelog.
36509         (func_usage): Update.
36510         (sed_extract_cache_prog): Renamed from ...
36511         (sed_extract_prog): ... this; revert to old extraction script.
36512         (func_get_description, func_get_status)
36513         (func_get_notice, func_get_applicability, func_get_filelist)
36514         (func_get_dependencies, func_get_autoconf_early_snippet)
36515         (func_get_autoconf_snippet, func_get_automake_snippet)
36516         (func_get_include_directive, func_get_link_directive)
36517         (func_get_license, func_get_maintainer): If $do_cache is false,
36518         use old, non-caching extraction scripts.
36519         Suggestion by Bruno Haible.
36520
36521 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36522
36523         gnulib-tool: cache module metainformation.
36524         * gnulib-tool (sed_extract_prog): Match newline before each
36525         header, and rewrite header to a shell variable suffix.
36526         (func_cache_var, func_cache_lookup_module): New functions,
36527         to turn a module name into a cache variable prefix, and to
36528         look up and cache module metainformation.
36529         (func_get_description, func_get_status)
36530         (func_get_notice, func_get_applicability, func_get_filelist)
36531         (func_get_dependencies, func_get_autoconf_early_snippet)
36532         (func_get_autoconf_snippet, func_get_automake_snippet)
36533         (func_get_include_directive, func_get_link_directive)
36534         (func_get_license, func_get_maintainer): Use
36535         func_cache_lookup_module.
36536
36537 2010-02-07  Bruno Haible  <bruno@clisp.org>
36538
36539         fnctl: Fix missing dependency.
36540         * modules/fcntl (Depends-on): Add getdtablesize.
36541         Reported by John W. Eaton <jwe@gnu.org>.
36542
36543 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36544
36545         Argp: fix recognition of short alias options.
36546
36547         * lib/argp-parse.c (convert_options): Fix improper use of
36548         `|' between character values.
36549         * tests/test-argp.c (group1_option): New alias option
36550         --read (-r).
36551         (group1_parser): Special handling for 'r'.
36552         (test15): New test case.
36553         (test_fun): Add test15.
36554         * tests/test-argp-2.sh: Update expected --help and --usage
36555         outputs.
36556
36557 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36558
36559         * tests/test-argp.c: Fix indentation.
36560
36561 2010-02-04  Eric Blake  <ebb9@byu.net>
36562
36563         gettimeofday: expose type of second argument
36564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36565         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36566         * tests/test-gettimeofday.c: Use it to silence warning.
36567         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36568         the issue.
36569
36570 2010-02-03  Jim Meyering  <meyering@redhat.com>
36571
36572         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36573         * lib/regcomp.c (TYPE_SIGNED): Define.
36574         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36575
36576         regcomp.c: avoid a new -Wshadow warning
36577         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36578
36579 2010-02-01  Jim Meyering  <meyering@redhat.com>
36580
36581         removing useless parentheses in cpp #define directives
36582         For motivation, see commit c0221df4, "define STREQ(a,b)
36583         consistently, removing useless parentheses"
36584         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36585         * lib/mountlist.c (MNT_IGNORE): Likewise.
36586         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36587
36588 2010-02-01  Eric Blake  <ebb9@byu.net>
36589
36590         sys_time: use link-warning
36591         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36592         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36593         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36594         * modules/sys_time (Depends-on): Add warn-on-use.
36595         (Makefile.am): Always build replacement.
36596         (configure.ac): Update substitutions.
36597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36598         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36599         bother with SYS_TIME_H.
36600         * modules/gettimeofday (configure.ac): Declare indicator.
36601         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36602         in use.
36603
36604         closein-tests: silence compiler warning
36605         * tests/test-closein.c (main): Ignore fread result.
36606         * modules/closein-tests (Depends-on): Add ignore-value.
36607
36608         tests: silence warning about system return
36609         * tests/test-areadlink-with-size.c (main): Ignore system result.
36610         * tests/test-areadlink.c (main): Likewise.
36611         * tests/test-areadlinkat-with-size.c (main): Likewise.
36612         * tests/test-areadlinkat.c (main): Likewise.
36613         * tests/test-canonicalize-lgpl.c (main): Likewise.
36614         * tests/test-canonicalize.c (main): Likewise.
36615         * tests/test-chown.c (main): Likewise.
36616         * tests/test-fchownat.c (main): Likewise.
36617         * tests/test-fdutimensat.c (main): Likewise.
36618         * tests/test-fstatat.c (main): Likewise.
36619         * tests/test-futimens.c (main): Likewise.
36620         * tests/test-lchown.c (main): Likewise.
36621         * tests/test-link.c (main): Likewise.
36622         * tests/test-linkat.c (main): Likewise.
36623         * tests/test-lstat.c (main): Likewise.
36624         * tests/test-mkdir.c (main): Likewise.
36625         * tests/test-mkdirat.c (main): Likewise.
36626         * tests/test-mkfifo.c (main): Likewise.
36627         * tests/test-mkfifoat.c (main): Likewise.
36628         * tests/test-mknod.c (main): Likewise.
36629         * tests/test-readlink.c (main): Likewise.
36630         * tests/test-remove.c (main): Likewise.
36631         * tests/test-rename.c (main): Likewise.
36632         * tests/test-renameat.c (main): Likewise.
36633         * tests/test-rmdir.c (main): Likewise.
36634         * tests/test-symlink.c (main): Likewise.
36635         * tests/test-symlinkat.c (main): Likewise.
36636         * tests/test-unlink.c (main): Likewise.
36637         * tests/test-unlinkat.c (main): Likewise.
36638         * tests/test-utimens.c (main): Likewise.
36639         * tests/test-utimensat.c (main): Likewise.
36640         * modules/areadlink-tests (Depends-on): Add ignore-value.
36641         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36642         * modules/areadlinkat-tests (Depends-on): Likewise.
36643         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36644         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36645         * modules/canonicalize-tests (Depends-on): Likewise.
36646         * modules/chown-tests (Depends-on): Likewise.
36647         * modules/fdutimensat-tests (Depends-on): Likewise.
36648         * modules/futimens-tests (Depends-on): Likewise.
36649         * modules/lchown-tests (Depends-on): Likewise.
36650         * modules/link-tests (Depends-on): Likewise.
36651         * modules/linkat-tests (Depends-on): Likewise.
36652         * modules/lstat-tests (Depends-on): Likewise.
36653         * modules/mkdir-tests (Depends-on): Likewise.
36654         * modules/mkfifo-tests (Depends-on): Likewise.
36655         * modules/mkfifoat-tests (Depends-on): Likewise.
36656         * modules/mknod-tests (Depends-on): Likewise.
36657         * modules/openat-tests (Depends-on): Likewise.
36658         * modules/readlink-tests (Depends-on): Likewise.
36659         * modules/remove-tests (Depends-on): Likewise.
36660         * modules/rename-tests (Depends-on): Likewise.
36661         * modules/renameat-tests (Depends-on): Likewise.
36662         * modules/rmdir-tests (Depends-on): Likewise.
36663         * modules/symlink-tests (Depends-on): Likewise.
36664         * modules/symlinkat-tests (Depends-on): Likewise.
36665         * modules/unlink-tests (Depends-on): Likewise.
36666         * modules/utimens-tests (Depends-on): Likewise.
36667         * modules/utimensat-tests (Depends-on): Likewise.
36668
36669 2010-01-31  Bruno Haible  <bruno@clisp.org>
36670
36671         Perform the same test for many <math.h> functions.
36672         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36673         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36674         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36675         of gl_MATHFUNC.
36676         * modules/acos (configure.ac): Likewise.
36677         * modules/asin (configure.ac): Likewise.
36678         * modules/atan (configure.ac): Likewise.
36679         * modules/atan2 (configure.ac): Likewise.
36680         * modules/cbrt (configure.ac): Likewise.
36681         * modules/copysign (configure.ac): Likewise.
36682         * modules/cos (configure.ac): Likewise.
36683         * modules/cosh (configure.ac): Likewise.
36684         * modules/erf (configure.ac): Likewise.
36685         * modules/erfc (configure.ac): Likewise.
36686         * modules/exp (configure.ac): Likewise.
36687         * modules/fmod (configure.ac): Likewise.
36688         * modules/hypot (configure.ac): Likewise.
36689         * modules/j0 (configure.ac): Likewise.
36690         * modules/j1 (configure.ac): Likewise.
36691         * modules/jn (configure.ac): Likewise.
36692         * modules/lgamma (configure.ac): Likewise.
36693         * modules/log (configure.ac): Likewise.
36694         * modules/log10 (configure.ac): Likewise.
36695         * modules/log1p (configure.ac): Likewise.
36696         * modules/pow (configure.ac): Likewise.
36697         * modules/remainder (configure.ac): Likewise.
36698         * modules/sin (configure.ac): Likewise.
36699         * modules/sinh (configure.ac): Likewise.
36700         * modules/tan (configure.ac): Likewise.
36701         * modules/tanh (configure.ac): Likewise.
36702         * modules/y0 (configure.ac): Likewise.
36703         * modules/y1 (configure.ac): Likewise.
36704         * modules/yn (configure.ac): Likewise.
36705         Suggested by Paolo Bonzini.
36706
36707 2010-01-31  Bruno Haible  <bruno@clisp.org>
36708
36709         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36710
36711 2010-01-31  Bruno Haible  <bruno@clisp.org>
36712
36713         Work around getdelim() bug on FreeBSD 8.0.
36714         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36715         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36716         not work.
36717         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36718         is 1.
36719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36720         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36721         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36722         a non-zero size.
36723         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36724
36725 2010-01-31  Bruno Haible  <bruno@clisp.org>
36726
36727         Work around getline() bug on FreeBSD 8.0.
36728         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36729         and a non-zero size.
36730         * tests/test-getline.c (main): Likewise.
36731         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36732         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36733
36734 2010-01-28  Eric Blake  <ebb9@byu.net>
36735
36736         regex: fix build failure
36737         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36738         platforms.
36739
36740 2010-01-28  Jim Meyering  <meyering@redhat.com>
36741
36742         regex: do not ignore memory allocation failure
36743         * lib/regex_internal.c (create_cd_newstate): Detect
36744         re_node_set_init_copy failure.   Extracted from glibc commit
36745         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36746
36747         regex: sync more white-space changes from libc
36748         * lib/regex_internal.c: White-space only changes.
36749         * lib/regexec.c: Likewise.
36750
36751         regex: add many uses of __attribute_warn_unused_result__
36752         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36753         * lib/regexec.c: Likewise.
36754         Extracted from a messy glibc commit.
36755
36756         regcomp.c: spelling and merge-artifact from glibc
36757         * lib/regcomp.c: Merge remainder of glibc's
36758         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36759
36760         regcomp.c: sync white-space changes from glibc
36761         * lib/regcomp.c: Merge to accommodate white space
36762         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36763
36764         regcomp.c: do not ignore internal return values
36765         * lib/regcomp.c: Do not ignore internal return values.
36766         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36767         but without its white-space changes and spelling fixes.
36768
36769         regex_internal.h: define __attribute_warn_unused_result__
36770         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36771
36772         maint: add a syntax-check rule to check for vulnerable Makefile.in
36773         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36774
36775 2010-01-27  Jim Meyering  <meyering@redhat.com>
36776
36777         ncftpput-ftp: clean up spaces
36778         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36779         Remove trailing blanks.
36780
36781 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36782
36783         * build-aux/git-version-gen: Fix copyright statement.
36784         * build-aux/gnupload: Likewise.
36785         * tests/test-arcfour.c: Likewise.
36786         * tests/test-arctwo.c: Likewise.
36787         * tests/test-count-one-bits.c: Likewise.
36788         * tests/test-crc.c: Likewise.
36789         * tests/test-des.c: Likewise.
36790         * tests/test-gc-arcfour.c: Likewise.
36791         * tests/test-gc-arctwo.c: Likewise.
36792         * tests/test-gc-des.c: Likewise.
36793         * tests/test-gc-hmac-md5.c: Likewise.
36794         * tests/test-gc-hmac-sha1.c: Likewise.
36795         * tests/test-gc-md2.c: Likewise.
36796         * tests/test-gc-md4.c: Likewise.
36797         * tests/test-gc-md5.c: Likewise.
36798         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36799         * tests/test-gc-rijndael.c: Likewise.
36800         * tests/test-gc-sha1.c: Likewise.
36801         * tests/test-gc.c: Likewise.
36802         * tests/test-gethostname.c: Likewise.
36803         * tests/test-gettimeofday.c: Likewise.
36804         * tests/test-hash.c: Likewise.
36805         * tests/test-hmac-md5.c: Likewise.
36806         * tests/test-hmac-sha1.c: Likewise.
36807         * tests/test-md2.c: Likewise.
36808         * tests/test-md4.c: Likewise.
36809         * tests/test-md5.c: Likewise.
36810         * tests/test-memchr.c: Likewise.
36811         * tests/test-memchr2.c: Likewise.
36812         * tests/test-memcmp.c: Likewise.
36813         * tests/test-memmem.c: Likewise.
36814         * tests/test-memrchr.c: Likewise.
36815         * tests/test-rawmemchr.c: Likewise.
36816         * tests/test-read-file.c: Likewise.
36817         * tests/test-rijndael.c: Likewise.
36818         * tests/test-sockets.c: Likewise.
36819         * tests/test-strchrnul.c: Likewise.
36820         * tests/test-strstr.c: Likewise.
36821         * tests/test-strtod.c: Likewise.
36822         * build-aux/ncftpput-ftp: Likewise.
36823
36824 2010-01-26  Eric Blake  <ebb9@byu.net>
36825
36826         ignore-value: update recommended header name
36827         * modules/ignore-value (Include): Only use <> for headers that
36828         exist in glibc.
36829
36830 2010-01-26  Jim Meyering  <meyering@redhat.com>
36831
36832         test-userspec.c: avoid compiler warnings
36833         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36834         and "initialization discards qualifiers..." warnings.
36835         Put the first "uid" in its own scope, and make char* members "const".
36836
36837 2010-01-25  Bruno Haible  <bruno@clisp.org>
36838
36839         gnulib-tool: Make warning diagnostics consistent.
36840         * gnulib-tool (func_warning): New function.
36841         Use it everywhere where gnulib-tool produces output to stderr and it is
36842         not a fatal error.
36843
36844 2010-01-25  Bruno Haible  <bruno@clisp.org>
36845
36846         Fix test dependencies.
36847         * modules/xstrtol-tests (Depends-on): Add inttypes.
36848         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36849
36850 2010-01-25 Pádraig Brady <P@draigBrady.com>
36851
36852         syntax-check: detect incorrect boolean macro values in config.h
36853         * modules/maintainer-makefile (configure.ac): Parameterize the location
36854         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36855         The logic is from Eric Blake and the location indicated by Jim Meyering.
36856         Note the more natural CONFIG_HEADER name is prohibited by automake
36857         for backwards compatibility reasons.
36858         * top/maint.mk (sc_Wundef_boolean): New rule.
36859
36860 2010-01-25  Jim Meyering  <meyering@redhat.com>
36861
36862         bootstrap: detect MacOS 10.6's shasum, too
36863         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36864         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36865
36866 2010-01-23  Jim Meyering  <meyering@redhat.com>
36867
36868         xstrtoll: new module
36869         * modules/xstrtoll: New file.
36870         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36871         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36872         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36873         ./configure fails if you use this module and lack "long long".
36874         * modules/xstrtoll-tests: New module.
36875         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36876         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36877         new init.sh-based test framework.
36878
36879 2010-01-24  Bruno Haible  <bruno@clisp.org>
36880
36881         Tests for module 'yn'.
36882         * modules/yn-tests: New file.
36883         * tests/test-yn.c: New file.
36884
36885         Tests for module 'y1'.
36886         * modules/y1-tests: New file.
36887         * tests/test-y1.c: New file.
36888
36889         Tests for module 'y0'.
36890         * modules/y0-tests: New file.
36891         * tests/test-y0.c: New file.
36892
36893         Tests for module 'tanh'.
36894         * modules/tanh-tests: New file.
36895         * tests/test-tanh.c: New file.
36896
36897         Tests for module 'tan'.
36898         * modules/tan-tests: New file.
36899         * tests/test-tan.c: New file.
36900
36901         Tests for module 'sqrt'.
36902         * modules/sqrt-tests: New file.
36903         * tests/test-sqrt.c: New file.
36904
36905         Tests for module 'sinh'.
36906         * modules/sinh-tests: New file.
36907         * tests/test-sinh.c: New file.
36908
36909         Tests for module 'sin'.
36910         * modules/sin-tests: New file.
36911         * tests/test-sin.c: New file.
36912
36913         Tests for module 'rint'.
36914         * modules/rint-tests: New file.
36915         * tests/test-rint.c: New file.
36916
36917         Tests for module 'remainder'.
36918         * modules/remainder-tests: New file.
36919         * tests/test-remainder.c: New file.
36920
36921         Tests for module 'pow'.
36922         * modules/pow-tests: New file.
36923         * tests/test-pow.c: New file.
36924
36925         Tests for module 'nextafter'.
36926         * modules/nextafter-tests: New file.
36927         * tests/test-nextafter.c: New file.
36928
36929         Tests for module 'modf'.
36930         * modules/modf-tests: New file.
36931         * tests/test-modf.c: New file.
36932
36933         Tests for module 'logb'.
36934         * modules/logb-tests: New file.
36935         * tests/test-logb.c: New file.
36936
36937         Tests for module 'log1p'.
36938         * modules/log1p-tests: New file.
36939         * tests/test-log1p.c: New file.
36940
36941         Tests for module 'log10'.
36942         * modules/log10-tests: New file.
36943         * tests/test-log10.c: New file.
36944
36945         Tests for module 'log'.
36946         * modules/log-tests: New file.
36947         * tests/test-log.c: New file.
36948
36949         Tests for module 'lgamma'.
36950         * modules/lgamma-tests: New file.
36951         * tests/test-lgamma.c: New file.
36952
36953         Tests for module 'ldexp'.
36954         * modules/ldexp-tests: New file.
36955         * tests/test-ldexp.c: New file.
36956
36957         Tests for module 'jn'.
36958         * modules/jn-tests: New file.
36959         * tests/test-jn.c: New file.
36960
36961         Tests for module 'j1'.
36962         * modules/j1-tests: New file.
36963         * tests/test-j1.c: New file.
36964
36965         Tests for module 'j0'.
36966         * modules/j0-tests: New file.
36967         * tests/test-j0.c: New file.
36968
36969         Tests for module 'hypot'.
36970         * modules/hypot-tests: New file.
36971         * tests/test-hypot.c: New file.
36972
36973         Tests for module 'fmod'.
36974         * modules/fmod-tests: New file.
36975         * tests/test-fmod.c: New file.
36976
36977         Tests for module 'fabs'.
36978         * modules/fabs-tests: New file.
36979         * tests/test-fabs.c: New file.
36980
36981         Tests for module 'exp'.
36982         * modules/exp-tests: New file.
36983         * tests/test-exp.c: New file.
36984
36985         Tests for module 'erfc'.
36986         * modules/erfc-tests: New file.
36987         * tests/test-erfc.c: New file.
36988
36989         Tests for module 'erf'.
36990         * modules/erf-tests: New file.
36991         * tests/test-erf.c: New file.
36992
36993         Tests for module 'cosh'.
36994         * modules/cosh-tests: New file.
36995         * tests/test-cosh.c: New file.
36996
36997         Tests for module 'cos'.
36998         * modules/cos-tests: New file.
36999         * tests/test-cos.c: New file.
37000
37001         Tests for module 'copysign'.
37002         * modules/copysign-tests: New file.
37003         * tests/test-copysign.c: New file.
37004
37005         Tests for module 'cbrt'.
37006         * modules/cbrt-tests: New file.
37007         * tests/test-cbrt.c: New file.
37008
37009         Tests for module 'atan2'.
37010         * modules/atan2-tests: New file.
37011         * tests/test-atan2.c: New file.
37012
37013         Tests for module 'atan'.
37014         * modules/atan-tests: New file.
37015         * tests/test-atan.c: New file.
37016
37017         Tests for module 'asin'.
37018         * modules/asin-tests: New file.
37019         * tests/test-asin.c: New file.
37020
37021         Tests for module 'acos'.
37022         * modules/acos-tests: New file.
37023         * tests/test-acos.c: New file.
37024
37025 2010-01-24  Bruno Haible  <bruno@clisp.org>
37026
37027         Fix tests for common <math.h> functions.
37028         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37029         code snippet that references the function pointer, rather than merely
37030         calling the function. Substitute the FUNC_LIBM variable.
37031         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37032         * modules/acos (configure.ac): Likewise.
37033         * modules/asin (configure.ac): Likewise.
37034         * modules/atan (configure.ac): Likewise.
37035         * modules/atan2 (configure.ac): Likewise.
37036         * modules/cbrt (configure.ac): Likewise.
37037         * modules/copysign (configure.ac): Likewise.
37038         * modules/cos (configure.ac): Likewise.
37039         * modules/cosh (configure.ac): Likewise.
37040         * modules/erf (configure.ac): Likewise.
37041         * modules/erfc (configure.ac): Likewise.
37042         * modules/exp (configure.ac): Likewise.
37043         * modules/fabs (configure.ac): Likewise.
37044         * modules/fmod (configure.ac): Likewise.
37045         * modules/hypot (configure.ac): Likewise.
37046         * modules/j0 (configure.ac): Likewise.
37047         * modules/j1 (configure.ac): Likewise.
37048         * modules/jn (configure.ac): Likewise.
37049         * modules/ldexp (configure.ac): Likewise.
37050         * modules/lgamma (configure.ac): Likewise.
37051         * modules/log (configure.ac): Likewise.
37052         * modules/log10 (configure.ac): Likewise.
37053         * modules/log1p (configure.ac): Likewise.
37054         * modules/logb (configure.ac): Likewise.
37055         * modules/modf (configure.ac): Likewise.
37056         * modules/nextafter (configure.ac): Likewise.
37057         * modules/pow (configure.ac): Likewise.
37058         * modules/remainder (configure.ac): Likewise.
37059         * modules/rint (configure.ac): Likewise.
37060         * modules/sin (configure.ac): Likewise.
37061         * modules/sinh (configure.ac): Likewise.
37062         * modules/tan (configure.ac): Likewise.
37063         * modules/tanh (configure.ac): Likewise.
37064         * modules/y0 (configure.ac): Likewise.
37065         * modules/y1 (configure.ac): Likewise.
37066         * modules/yn (configure.ac): Likewise.
37067
37068 2010-01-24  Bruno Haible  <bruno@clisp.org>
37069
37070         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37071         * tests/test-acosl.c (x): New variable.
37072         (main): Store argument in x and fetch it from x.
37073         * tests/test-asinl.c (x): New variable.
37074         (main): Store argument in x and fetch it from x.
37075         * tests/test-atanl.c (x): New variable.
37076         (main): Store argument in x and fetch it from x.
37077         * tests/test-cosl.c (x): New variable.
37078         (main): Store argument in x and fetch it from x.
37079         * tests/test-expl.c (x): New variable.
37080         (main): Store argument in x and fetch it from x.
37081         * tests/test-logl.c (x): New variable.
37082         (main): Store argument in x and fetch it from x.
37083         * tests/test-sinl.c (x): New variable.
37084         (main): Store argument in x and fetch it from x.
37085         * tests/test-sqrtl.c (x): New variable.
37086         (main): Store argument in x and fetch it from x.
37087         * tests/test-tanl.c (x): New variable.
37088         (main): Store argument in x and fetch it from x.
37089
37090 2010-01-24  Bruno Haible  <bruno@clisp.org>
37091
37092         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37093         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37094         assignments to the initial TESTS_ENVIRONMENT.
37095         * doc/gnulib.texi (Unit test modules): Document it.
37096         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37097         TESTS_ENVIRONMENT.
37098         * modules/btowc-tests (Makefile.am): Likewise.
37099         * modules/c-stack-tests (Makefile.am): Likewise.
37100         * modules/c-strcase-tests (Makefile.am): Likewise.
37101         * modules/copy-file-tests (Makefile.am): Likewise.
37102         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37103         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37104         * modules/mbrtowc-tests (Makefile.am): Likewise.
37105         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37106         * modules/mbscasestr-tests (Makefile.am): Likewise.
37107         * modules/mbschr-tests (Makefile.am): Likewise.
37108         * modules/mbscspn-tests (Makefile.am): Likewise.
37109         * modules/mbsinit-tests (Makefile.am): Likewise.
37110         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37111         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37112         * modules/mbspbrk-tests (Makefile.am): Likewise.
37113         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37114         * modules/mbsrchr-tests (Makefile.am): Likewise.
37115         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37116         * modules/mbsspn-tests (Makefile.am): Likewise.
37117         * modules/mbsstr-tests (Makefile.am): Likewise.
37118         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37119         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37120         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37121         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37122         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37123         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37124         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37125         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37126         * modules/wcrtomb-tests (Makefile.am): Likewise.
37127         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37128         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37129         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37130         assignments from TESTS_ENVIRONMENT.
37131         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37132         augmentation.
37133         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37134         * modules/atexit-tests (Makefile.am): Likewise.
37135         * modules/binary-io-tests (Makefile.am): Likewise.
37136         * modules/closein-tests (Makefile.am): Likewise.
37137         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37138         * modules/exclude-tests (Makefile.am): Likewise.
37139         * modules/fflush-tests (Makefile.am): Likewise.
37140         * modules/fpending-tests (Makefile.am): Likewise.
37141         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37142         * modules/freadahead-tests (Makefile.am): Likewise.
37143         * modules/freadptr-tests (Makefile.am): Likewise.
37144         * modules/freadseek-tests (Makefile.am): Likewise.
37145         * modules/fseek-tests (Makefile.am): Likewise.
37146         * modules/fseeko-tests (Makefile.am): Likewise.
37147         * modules/ftell-tests (Makefile.am): Likewise.
37148         * modules/ftello-tests (Makefile.am): Likewise.
37149         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37150         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37151         * modules/lseek-tests (Makefile.am): Likewise.
37152         * modules/parse-duration-tests (Makefile.am): Likewise.
37153         * modules/perror-tests (Makefile.am): Likewise.
37154         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37155         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37156         * modules/pipe-tests (Makefile.am): Likewise.
37157         * modules/pread-tests (Makefile.am): Likewise.
37158         * modules/printf-posix-tests (Makefile.am): Likewise.
37159         * modules/select-tests (Makefile.am): Likewise.
37160         * modules/sigpipe-tests (Makefile.am): Likewise.
37161         * modules/tsearch-tests (Makefile.am): Likewise.
37162         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37163         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37164         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37165         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37166         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37167         * modules/version-etc-tests (Makefile.am): Likewise.
37168         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37169         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37170         * modules/xalloc-die-tests (Makefile.am): Likewise.
37171         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37172         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37173         * modules/xstrtol-tests (Makefile.am): Likewise.
37174         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37175         * modules/yesno-tests (Makefile.am): Likewise.
37176         Suggested by Jim Meyering.
37177
37178 2010-01-24  Bruno Haible  <bruno@clisp.org>
37179
37180         More documentation.
37181         * doc/gnulib.texi (Writing modules): New chapter.
37182         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37183         the new chapter.
37184
37185 2010-01-24  Jim Meyering  <meyering@redhat.com>
37186
37187         maint.mk: do not prepend "./" after filtering
37188         * top/maint.mk (_prepend_srcdir_prefix): New variable
37189         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37190         "./" when $(srcdir) is ".".
37191
37192         define STREQ(a,b) consistently, removing useless parentheses
37193         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37194         since the only risk is that "a" or "b" contains an unparenthesized
37195         comma, but if either did that, STREQ would have 3 or more arguments.
37196         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37197         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37198         * lib/hash-triple.c (STREQ): Likewise.
37199         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37200         * lib/getugroups.c (STREQ): Likewise.
37201
37202 2010-01-23  Jim Meyering  <meyering@redhat.com>
37203
37204         maint.mk: fix syntax-check in a non-srcdir build directory
37205         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37206         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37207
37208 2010-01-22  Jim Meyering  <meyering@redhat.com>
37209
37210         userspec: add unit tests
37211         * tests/test-userspec.c: New file.
37212         * modules/userspec-tests: Likewise.
37213
37214 2010-01-21  Jim Meyering  <meyering@redhat.com>
37215
37216         maint.mk: handle source file names containing "." robustly
37217         * top/maint.mk (_dot_escaped_srcdir): Define.
37218         (VC_LIST): Use it in LHS of sed substitution.
37219
37220 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37221
37222         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37223         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37224         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37225         from a non-srcdir build.
37226
37227 2010-01-20  Eric Blake  <ebb9@byu.net>
37228
37229         warn-on-use: use instead of link-warning
37230         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37231         * modules/unistd (Depends-on, Makefile.am): Likewise.
37232         * modules/arpa_inet (Depends-on): Replace link-warning with
37233         warn-on-use.
37234         (Makefile.am): Update rules accordingly.
37235         * modules/ctype (Depends-on, Makefile.am): Likewise.
37236         * modules/dirent (Depends-on, Makefile.am): Likewise.
37237         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37238         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37239         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37240         * modules/locale (Depends-on, Makefile.am): Likewise.
37241         * modules/math (Depends-on, Makefile.am): Likewise.
37242         * modules/search (Depends-on, Makefile.am): Likewise.
37243         * modules/signal (Depends-on, Makefile.am): Likewise.
37244         * modules/spawn (Depends-on, Makefile.am): Likewise.
37245         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37246         * modules/string (Depends-on, Makefile.am): Likewise.
37247         * modules/strings (Depends-on, Makefile.am): Likewise.
37248         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37249         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37250         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37251         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37252         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37253         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37254         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37255         * modules/wchar (Depends-on, Makefile.am): Likewise.
37256         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37257         should be poisoned.
37258         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37259         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37260         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37261         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37262         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37263         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37264         * m4/math_h.m4 (gl_MATH_H): Likewise.
37265         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37266         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37267         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37268         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37269         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37270         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37271         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37272         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37273         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37276         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37277         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37278         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37279         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37280         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37281         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37282         GL_LINK_WARNING.
37283         * lib/ctype.in.h: Likewise.
37284         * lib/dirent.in.h: Likewise.
37285         * lib/fcntl.in.h: Likewise.
37286         * lib/inttypes.in.h: Likewise.
37287         * lib/langinfo.in.h: Likewise.
37288         * lib/locale.in.h: Likewise.
37289         * lib/math.in.h: Likewise.
37290         * lib/search.in.h: Likewise.
37291         * lib/signal.in.h: Likewise.
37292         * lib/spawn.in.h: Likewise.
37293         * lib/stdio.in.h: Likewise.
37294         * lib/stdlib.in.h: Likewise.
37295         * lib/string.in.h: Likewise.
37296         * lib/strings.in.h: Likewise.
37297         * lib/sys_file.in.h: Likewise.
37298         * lib/sys_ioctl.in.h: Likewise.
37299         * lib/sys_select.in.h: Likewise.
37300         * lib/sys_socket.in.h: Likewise.
37301         * lib/sys_stat.in.h: Likewise.
37302         * lib/sys_times.in.h: Likewise.
37303         * lib/sys_utsname.in.h: Likewise.
37304         * lib/unistd.in.h: Likewise.
37305         * lib/wchar.in.h: Likewise.
37306
37307 2010-01-20  Bruno Haible  <bruno@clisp.org>
37308
37309         Avoid duplicate -lm.
37310         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37311         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37313         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37314         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37315         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37316         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37317         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37318         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37319         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37320         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37321         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37322         Reported by Paolo Bonzini.
37323
37324 2010-01-19  Bruno Haible  <bruno@clisp.org>
37325
37326         langinfo, nl_langinfo: Relicense under LGPLv2+.
37327         * modules/langinfo (License): Change to LGPLv2+.
37328         * modules/nl_langinfo (License): Likewise.
37329         Patch by David Lutterkort <lutter@redhat.com>.
37330
37331 2010-01-19  Bruno Haible  <bruno@clisp.org>
37332
37333         Avoid compilation error with cc on OSF/1 5.1.
37334         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37335         statement, not before.
37336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37337
37338 2010-01-18  Bruno Haible  <bruno@clisp.org>
37339
37340         Avoid a link error due to the __printf__ symbol.
37341         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37342         and 2.6.x.
37343         (__format__, __printf__): Remove definitions.
37344         * lib/argp-fmtstream.h: Likewise.
37345         * lib/argp.h: Likewise.
37346         * lib/error.h: Likewise.
37347         * lib/vasnprintf.h: Likewise.
37348         * lib/xprintf.h: Likewise.
37349         * lib/xvasprintf.h: Likewise.
37350         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37351
37352 2010-01-18  Bruno Haible  <bruno@clisp.org>
37353
37354         Tests for module 'tanl'.
37355         * modules/tanl-tests: New file.
37356         * tests/test-tanl.c: New file.
37357
37358         Tests for module 'sqrtl'.
37359         * modules/sqrtl-tests: New file.
37360         * tests/test-sqrtl.c: New file.
37361
37362         Tests for module 'sinl'.
37363         * modules/sinl-tests: New file.
37364         * tests/test-sinl.c: New file.
37365
37366         Tests for module 'logl'.
37367         * modules/logl-tests: New file.
37368         * tests/test-logl.c: New file.
37369
37370         Tests for module 'expl'.
37371         * modules/expl-tests: New file.
37372         * tests/test-expl.c: New file.
37373
37374         Tests for module 'cosl'.
37375         * modules/cosl-tests: New file.
37376         * tests/test-cosl.c: New file.
37377
37378         Tests for module 'atanl'.
37379         * modules/atanl-tests: New file.
37380         * tests/test-atanl.c: New file.
37381
37382         Tests for module 'asinl'.
37383         * modules/asinl-tests: New file.
37384         * tests/test-asinl.c: New file.
37385
37386         Tests for module 'acosl'.
37387         * modules/acosl-tests: New file.
37388         * tests/test-acosl.c: New file.
37389
37390         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37391         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37392         tanl): Use the standard gnulib idiom.
37393         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37394         * lib/sinl.c: Likewise.
37395         * lib/tanl.c: Don't include trigl.c.
37396         (kernel_tanl): Make static.
37397         * lib/sincosl.c: Include trigl.h first.
37398         * lib/trigl.c: Likewise.
37399         * m4/acosl.m4: New file.
37400         * m4/asinl.m4: New file.
37401         * m4/atanl.m4: New file.
37402         * m4/cosl.m4: New file.
37403         * m4/expl.m4: New file.
37404         * m4/logl.m4: New file.
37405         * m4/sinl.m4: New file.
37406         * m4/sqrtl.m4: New file.
37407         * m4/tanl.m4: New file.
37408         * m4/mathl.m4: Remove file.
37409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37410         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37411         Don't initialize GNULIB_MATHL.
37412         * modules/acosl: New file.
37413         * modules/asinl: New file.
37414         * modules/atanl: New file.
37415         * modules/cosl: New file.
37416         * modules/expl: New file.
37417         * modules/logl: New file.
37418         * modules/sinl: New file.
37419         * modules/sqrtl: New file.
37420         * modules/tanl: New file.
37421         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37422         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37423         substitute GNULIB_MATHL.
37424         * modules/mathl: Rewritten.
37425         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37426         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37427         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37428         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37429         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37430         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37431         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37432         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37433         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37434
37435 2010-01-18  Bruno Haible  <bruno@clisp.org>
37436
37437         sqrt: Make gl_FUNC_SQRT requirable.
37438         * m4/sqrt.m4: New file.
37439         * modules/sqrt (Files): Add it.
37440         (configure.ac): Invoke gl_FUNC_SQRT.
37441
37442 2010-01-18  Bruno Haible  <bruno@clisp.org>
37443
37444         New modules for common <math.h> functions.
37445         * m4/mathfunc.m4: New file.
37446         * modules/acos: New file.
37447         * modules/asin: New file.
37448         * modules/atan: New file.
37449         * modules/atan2: New file.
37450         * modules/cbrt: New file.
37451         * modules/copysign: New file.
37452         * modules/cos: New file.
37453         * modules/cosh: New file.
37454         * modules/erf: New file.
37455         * modules/erfc: New file.
37456         * modules/exp: New file.
37457         * modules/fabs: New file.
37458         * modules/fmod: New file.
37459         * modules/hypot: New file.
37460         * modules/j0: New file.
37461         * modules/j1: New file.
37462         * modules/jn: New file.
37463         * modules/ldexp: New file.
37464         * modules/lgamma: New file.
37465         * modules/log: New file.
37466         * modules/log10: New file.
37467         * modules/log1p: New file.
37468         * modules/logb: New file.
37469         * modules/modf: New file.
37470         * modules/nextafter: New file.
37471         * modules/pow: New file.
37472         * modules/remainder: New file.
37473         * modules/rint: New file.
37474         * modules/sin: New file.
37475         * modules/sinh: New file.
37476         * modules/sqrt: New file.
37477         * modules/tan: New file.
37478         * modules/tanh: New file.
37479         * modules/y0: New file.
37480         * modules/y1: New file.
37481         * modules/yn: New file.
37482         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37483         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37484         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37485         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37486         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37487         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37488         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37489         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37490         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37491         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37492         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37493         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37494         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37495         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37496         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37497         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37498         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37499         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37500         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37501         * doc/posix-functions/log.texi: Mention the 'log' module.
37502         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37503         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37504         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37505         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37506         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37507         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37508         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37509         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37510         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37511         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37512         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37513         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37514         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37515         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37516         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37517         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37518
37519 2010-01-18  Jim Meyering  <meyering@redhat.com>
37520
37521         ignore-value: relax license to LGPLv2+
37522         * modules/ignore-value (License): Relax to LGPLv2+.
37523
37524         getdate: don't leak when TZ contains two or more '"'s
37525         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37526         double quote in TZ after the first one.
37527
37528         readtokens: do not leak internal token_lengths buffer
37529         * lib/readtokens.c (readtokens): Free the local, lengths,
37530         when the supplied "token_lengths" parameter is NULL.
37531
37532 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37533
37534         Fix a couple of missing LIBTHREAD link failures on AIX.
37535         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37536         $(LIBTHREAD).
37537         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37538
37539         Link test-poll against INET_PTON_LIB.
37540         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37541         for inet_pton on Solaris 10.
37542
37543 2010-01-17  Bruno Haible  <bruno@clisp.org>
37544
37545         unistdio/*-sprintf: Fix typo in module description.
37546         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37547         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37548         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37549         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37550         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37551         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37552         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37553         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37554
37555 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37556
37557         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37558         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37559         variables in shell case patterns, for AIX and HP-UX ksh.
37560
37561         Split large sed scripts, for HP-UX sed.
37562         * modules/stdio: Split sed scripts around 50 sed commands,
37563         to avoid HP-UX limit of 99 commands, in the near future.
37564         * modules/string: Likewise.
37565         * modules/unistd: Likewise.
37566
37567         gnulib-tool: avoid writing in the current directory.
37568         * gnulib-tool (func_emit_lib_Makefile_am)
37569         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37570         not in the current directory, so concurrent gnulib-tool
37571         instances do not interfere.
37572
37573 2010-01-16  Jim Meyering  <meyering@redhat.com>
37574
37575         doc: update users.txt
37576         * users.txt: Add grep.
37577         (diffutils, gzip): Update URLs.
37578
37579 2010-01-12  Bruno Haible  <bruno@clisp.org>
37580
37581         posix_spawn: Avoid test failure on Cygwin.
37582         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37583         characters.
37584         Reported by Simon Josefsson.
37585
37586 2010-01-12  Bruno Haible  <bruno@clisp.org>
37587
37588         * tests/test-cond.c (main): When skipping the test, show the reason.
37589
37590 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37591
37592         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37593
37594 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37595
37596         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37597         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37598
37599 2010-01-12  Eric Blake  <ebb9@byu.net>
37600
37601         build: guarantee AS_VAR_IF
37602         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37603         (gl_AS_VAR_IF): Move...
37604         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37605         Reported by Simon Josefsson.
37606
37607 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37608
37609         * lib/stdio.in.h: Fix typo.
37610
37611 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37612
37613         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37614         libgpg-error.
37615
37616 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37617
37618         * tests/test-xalloc-die.sh: Use $EXEEXT.
37619
37620 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37621             Bruno Haible  <bruno@clisp.org>
37622
37623         getlogin, getlogin_r: Avoid test failure.
37624         * tests/test-getlogin.c: Include <stdio.h>.
37625         (main): Skip the test when the function fails because stdin is not a
37626         tty.
37627         * tests/test-getlogin_r.c: Include <stdio.h>.
37628         (main): Skip the test when the function fails because stdin is not a
37629         tty.
37630
37631 2010-01-11  Eric Blake  <ebb9@byu.net>
37632
37633         tests: avoid more large file warnings
37634         * tests/test-fflush.c: Avoid warning about ftell use.
37635         * tests/test-fseek.c: Avoid warning about fseek use.
37636
37637 2010-01-10  Bruno Haible  <bruno@clisp.org>
37638
37639         nproc: Work better on Linux when /proc and /sys are not mounted.
37640         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37641         as lower bound when, on glibc/Linux systems,
37642         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37643         Suggested by Pádraig Brady <P@draigbrady.com>.
37644         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37645
37646         nproc: Refactor.
37647         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37648         extracted from num_processors.
37649         (num_processors): Call it.
37650
37651 2010-01-11  Jim Meyering  <meyering@redhat.com>
37652
37653         utimecmp: avoid new warning from upcoming gcc-4.5.0
37654         * lib/utimecmp.c (BILLION): Define using #define rather than an
37655         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37656
37657 2010-01-11  Eric Blake  <ebb9@byu.net>
37658
37659         math: add portability warnings for classification macros
37660         * modules/math (Depends-on): Add warn-on-use.
37661         (Makefile.am): Provide new substitutions.
37662         * m4/math_h.m4 (gl_MATH_H): Require inline.
37663         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37664         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37665         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37666         implement warnings.
37667
37668         unistd: warn on use of environ without module
37669         * modules/unistd (Depends-on): Add warn-on-use.
37670         (Makefile.am): Provide new substitutions.
37671         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37672         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37673
37674         stdio: warn on suspicious uses
37675         * modules/stdio (Depends-on): Add warn-on-use.
37676         (Makefile.am): Provide new substitutions.
37677         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37678         fseeko.
37679         * lib/stdio.in.h (gets): Always warn on use.
37680         (fseek, ftell): Adjust when warnings are issued, and honor
37681         _GL_NO_LARGE_FILES as a way to silence the warning.
37682         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37683         any warning about large file offsets.
37684         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37685         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37686         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37687         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37688         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37689         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37690         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37691         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37692
37693         warn-on-use: new module
37694         * modules/warn-on-use: New file.
37695         * build-aux/warn-on-use.h: Likewise.
37696         * m4/warn-on-use.m4: Likewise.
37697         * MODULES.html.sh (Support for building): Mention it.
37698
37699 2010-01-10  Bruno Haible  <bruno@clisp.org>
37700
37701         Tests for module 'unistr/u32-strdup'.
37702         * modules/unistr/u32-strdup-tests: New file.
37703         * tests/unistr/test-u32-strdup.c: New file.
37704
37705         Tests for module 'unistr/u16-strdup'.
37706         * modules/unistr/u16-strdup-tests: New file.
37707         * tests/unistr/test-u16-strdup.c: New file.
37708
37709         Tests for module 'unistr/u8-strdup'.
37710         * modules/unistr/u8-strdup-tests: New file.
37711         * tests/unistr/test-u8-strdup.c: New file.
37712         * tests/unistr/test-strdup.h: New file.
37713
37714         Tests for module 'unistr/u32-strncmp'.
37715         * modules/unistr/u32-strncmp-tests: New file.
37716         * tests/unistr/test-u32-strncmp.c: New file.
37717
37718         Tests for module 'unistr/u16-strncmp'.
37719         * modules/unistr/u16-strncmp-tests: New file.
37720         * tests/unistr/test-u16-strncmp.c: New file.
37721
37722         Tests for module 'unistr/u8-strncmp'.
37723         * modules/unistr/u8-strncmp-tests: New file.
37724         * tests/unistr/test-u8-strncmp.c: New file.
37725         * tests/unistr/test-strncmp.h: New file.
37726
37727         Tests for module 'unistr/u32-strcoll'.
37728         * modules/unistr/u32-strcoll-tests: New file.
37729         * tests/unistr/test-u32-strcoll.c: New file.
37730
37731         Tests for module 'unistr/u16-strcoll'.
37732         * modules/unistr/u16-strcoll-tests: New file.
37733         * tests/unistr/test-u16-strcoll.c: New file.
37734
37735         Tests for module 'unistr/u8-strcoll'.
37736         * modules/unistr/u8-strcoll-tests: New file.
37737         * tests/unistr/test-u8-strcoll.c: New file.
37738
37739         Tests for module 'unistr/u32-strcmp'.
37740         * modules/unistr/u32-strcmp-tests: New file.
37741         * tests/unistr/test-u32-strcmp.c: New file.
37742         * tests/unistr/test-u32-strcmp.h: New file.
37743
37744         Tests for module 'unistr/u16-strcmp'.
37745         * modules/unistr/u16-strcmp-tests: New file.
37746         * tests/unistr/test-u16-strcmp.c: New file.
37747         * tests/unistr/test-u16-strcmp.h: New file.
37748
37749         Tests for module 'unistr/u8-strcmp'.
37750         * modules/unistr/u8-strcmp-tests: New file.
37751         * tests/unistr/test-u8-strcmp.c: New file.
37752         * tests/unistr/test-u8-strcmp.h: New file.
37753         * tests/unistr/test-strcmp.h: New file.
37754
37755         Tests for module 'unistr/u32-strncat'.
37756         * modules/unistr/u32-strncat-tests: New file.
37757         * tests/unistr/test-u32-strncat.c: New file.
37758
37759         Tests for module 'unistr/u16-strncat'.
37760         * modules/unistr/u16-strncat-tests: New file.
37761         * tests/unistr/test-u16-strncat.c: New file.
37762
37763         Tests for module 'unistr/u8-strncat'.
37764         * modules/unistr/u8-strncat-tests: New file.
37765         * tests/unistr/test-u8-strncat.c: New file.
37766         * tests/unistr/test-strncat.h: New file.
37767
37768         Tests for module 'unistr/u32-strcat'.
37769         * modules/unistr/u32-strcat-tests: New file.
37770         * tests/unistr/test-u32-strcat.c: New file.
37771
37772         Tests for module 'unistr/u16-strcat'.
37773         * modules/unistr/u16-strcat-tests: New file.
37774         * tests/unistr/test-u16-strcat.c: New file.
37775
37776         Tests for module 'unistr/u8-strcat'.
37777         * modules/unistr/u8-strcat-tests: New file.
37778         * tests/unistr/test-u8-strcat.c: New file.
37779         * tests/unistr/test-strcat.h: New file.
37780
37781         Tests for module 'unistr/u32-stpncpy'.
37782         * modules/unistr/u32-stpncpy-tests: New file.
37783         * tests/unistr/test-u32-stpncpy.c: New file.
37784
37785         Tests for module 'unistr/u16-stpncpy'.
37786         * modules/unistr/u16-stpncpy-tests: New file.
37787         * tests/unistr/test-u16-stpncpy.c: New file.
37788
37789         Tests for module 'unistr/u8-stpncpy'.
37790         * modules/unistr/u8-stpncpy-tests: New file.
37791         * tests/unistr/test-u8-stpncpy.c: New file.
37792         * tests/unistr/test-stpncpy.h: New file.
37793
37794         Tests for module 'unistr/u32-strncpy'.
37795         * modules/unistr/u32-strncpy-tests: New file.
37796         * tests/unistr/test-u32-strncpy.c: New file.
37797
37798         Tests for module 'unistr/u16-strncpy'.
37799         * modules/unistr/u16-strncpy-tests: New file.
37800         * tests/unistr/test-u16-strncpy.c: New file.
37801
37802         Tests for module 'unistr/u8-strncpy'.
37803         * modules/unistr/u8-strncpy-tests: New file.
37804         * tests/unistr/test-u8-strncpy.c: New file.
37805         * tests/unistr/test-strncpy.h: New file.
37806
37807         Tests for module 'unistr/u32-stpcpy'.
37808         * modules/unistr/u32-stpcpy-tests: New file.
37809         * tests/unistr/test-u32-stpcpy.c: New file.
37810
37811         Tests for module 'unistr/u16-stpcpy'.
37812         * modules/unistr/u16-stpcpy-tests: New file.
37813         * tests/unistr/test-u16-stpcpy.c: New file.
37814
37815         Tests for module 'unistr/u8-stpcpy'.
37816         * modules/unistr/u8-stpcpy-tests: New file.
37817         * tests/unistr/test-u8-stpcpy.c: New file.
37818         * tests/unistr/test-stpcpy.h: New file.
37819
37820         Tests for module 'unistr/u32-strcpy'.
37821         * modules/unistr/u32-strcpy-tests: New file.
37822         * tests/unistr/test-u32-strcpy.c: New file.
37823
37824         Tests for module 'unistr/u16-strcpy'.
37825         * modules/unistr/u16-strcpy-tests: New file.
37826         * tests/unistr/test-u16-strcpy.c: New file.
37827
37828         Tests for module 'unistr/u8-strcpy'.
37829         * modules/unistr/u8-strcpy-tests: New file.
37830         * tests/unistr/test-u8-strcpy.c: New file.
37831         * tests/unistr/test-strcpy.h: New file.
37832
37833         Tests for module 'unistr/u32-strnlen'.
37834         * modules/unistr/u32-strnlen-tests: New file.
37835         * tests/unistr/test-u32-strnlen.c: New file.
37836
37837         Tests for module 'unistr/u16-strnlen'.
37838         * modules/unistr/u16-strnlen-tests: New file.
37839         * tests/unistr/test-u16-strnlen.c: New file.
37840
37841         Tests for module 'unistr/u8-strnlen'.
37842         * modules/unistr/u8-strnlen-tests: New file.
37843         * tests/unistr/test-u8-strnlen.c: New file.
37844         * tests/unistr/test-strnlen.h: New file.
37845
37846         Tests for module 'unistr/u32-strlen'.
37847         * modules/unistr/u32-strlen-tests: New file.
37848         * tests/unistr/test-u32-strlen.c: New file.
37849
37850         Tests for module 'unistr/u16-strlen'.
37851         * modules/unistr/u16-strlen-tests: New file.
37852         * tests/unistr/test-u16-strlen.c: New file.
37853
37854         Tests for module 'unistr/u8-strlen'.
37855         * modules/unistr/u8-strlen-tests: New file.
37856         * tests/unistr/test-u8-strlen.c: New file.
37857
37858         Tests for module 'unistr/u32-prev'.
37859         * modules/unistr/u32-prev-tests: New file.
37860         * tests/unistr/test-u32-prev.c: New file.
37861
37862         Tests for module 'unistr/u16-prev'.
37863         * modules/unistr/u16-prev-tests: New file.
37864         * tests/unistr/test-u16-prev.c: New file.
37865
37866         Tests for module 'unistr/u8-prev'.
37867         * modules/unistr/u8-prev-tests: New file.
37868         * tests/unistr/test-u8-prev.c: New file.
37869
37870         Tests for module 'unistr/u32-next'.
37871         * modules/unistr/u32-next-tests: New file.
37872         * tests/unistr/test-u32-next.c: New file.
37873
37874         Tests for module 'unistr/u16-next'.
37875         * modules/unistr/u16-next-tests: New file.
37876         * tests/unistr/test-u16-next.c: New file.
37877
37878         Tests for module 'unistr/u8-next'.
37879         * modules/unistr/u8-next-tests: New file.
37880         * tests/unistr/test-u8-next.c: New file.
37881
37882         Tests for module 'unistr/u32-strmbtouc'.
37883         * modules/unistr/u32-strmbtouc-tests: New file.
37884         * tests/unistr/test-u32-strmbtouc.c: New file.
37885
37886         Tests for module 'unistr/u16-strmbtouc'.
37887         * modules/unistr/u16-strmbtouc-tests: New file.
37888         * tests/unistr/test-u16-strmbtouc.c: New file.
37889
37890         Tests for module 'unistr/u8-strmbtouc'.
37891         * modules/unistr/u8-strmbtouc-tests: New file.
37892         * tests/unistr/test-u8-strmbtouc.c: New file.
37893
37894         Tests for module 'unistr/u32-strmblen'.
37895         * modules/unistr/u32-strmblen-tests: New file.
37896         * tests/unistr/test-u32-strmblen.c: New file.
37897
37898         Tests for module 'unistr/u16-strmblen'.
37899         * modules/unistr/u16-strmblen-tests: New file.
37900         * tests/unistr/test-u16-strmblen.c: New file.
37901
37902         Tests for module 'unistr/u8-strmblen'.
37903         * modules/unistr/u8-strmblen-tests: New file.
37904         * tests/unistr/test-u8-strmblen.c: New file.
37905
37906         Tests for module 'unistr/u32-cpy-alloc'.
37907         * modules/unistr/u32-cpy-alloc-tests: New file.
37908         * tests/unistr/test-u32-cpy-alloc.c: New file.
37909
37910         Tests for module 'unistr/u16-cpy-alloc'.
37911         * modules/unistr/u16-cpy-alloc-tests: New file.
37912         * tests/unistr/test-u16-cpy-alloc.c: New file.
37913
37914         Tests for module 'unistr/u8-cpy-alloc'.
37915         * modules/unistr/u8-cpy-alloc-tests: New file.
37916         * tests/unistr/test-u8-cpy-alloc.c: New file.
37917         * tests/unistr/test-cpy-alloc.h: New file.
37918
37919         Tests for module 'unistr/u32-mbsnlen'.
37920         * modules/unistr/u32-mbsnlen-tests: New file.
37921         * tests/unistr/test-u32-mbsnlen.c: New file.
37922
37923         Tests for module 'unistr/u16-mbsnlen'.
37924         * modules/unistr/u16-mbsnlen-tests: New file.
37925         * tests/unistr/test-u16-mbsnlen.c: New file.
37926
37927         Tests for module 'unistr/u8-mbsnlen'.
37928         * modules/unistr/u8-mbsnlen-tests: New file.
37929         * tests/unistr/test-u8-mbsnlen.c: New file.
37930
37931         Tests for module 'unistr/u32-chr'.
37932         * modules/unistr/u32-chr-tests: New file.
37933         * tests/unistr/test-u32-chr.c: New file.
37934
37935         Tests for module 'unistr/u16-chr'.
37936         * modules/unistr/u16-chr-tests: New file.
37937         * tests/unistr/test-u16-chr.c: New file.
37938
37939         Tests for module 'unistr/u8-chr'.
37940         * modules/unistr/u8-chr-tests: New file.
37941         * tests/unistr/test-u8-chr.c: New file.
37942         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37943
37944         Tests for module 'unistr/u32-cmp2'.
37945         * modules/unistr/u32-cmp2-tests: New file.
37946         * tests/unistr/test-u32-cmp2.c: New file.
37947
37948         Tests for module 'unistr/u16-cmp2'.
37949         * modules/unistr/u16-cmp2-tests: New file.
37950         * tests/unistr/test-u16-cmp2.c: New file.
37951
37952         Tests for module 'unistr/u8-cmp2'.
37953         * modules/unistr/u8-cmp2-tests: New file.
37954         * tests/unistr/test-u8-cmp2.c: New file.
37955         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37956
37957         Tests for module 'unistr/u32-cmp'.
37958         * modules/unistr/u32-cmp-tests: New file.
37959         * tests/unistr/test-u32-cmp.c: New file.
37960
37961         Tests for module 'unistr/u16-cmp'.
37962         * modules/unistr/u16-cmp-tests: New file.
37963         * tests/unistr/test-u16-cmp.c: New file.
37964
37965         Tests for module 'unistr/u8-cmp'.
37966         * modules/unistr/u8-cmp-tests: New file.
37967         * tests/unistr/test-u8-cmp.c: New file.
37968         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37969
37970         Tests for module 'unistr/u32-set'.
37971         * modules/unistr/u32-set-tests: New file.
37972         * tests/unistr/test-u32-set.c: New file.
37973
37974         Tests for module 'unistr/u16-set'.
37975         * modules/unistr/u16-set-tests: New file.
37976         * tests/unistr/test-u16-set.c: New file.
37977
37978         Tests for module 'unistr/u8-set'.
37979         * modules/unistr/u8-set-tests: New file.
37980         * tests/unistr/test-u8-set.c: New file.
37981         * tests/unistr/test-set.h: New file.
37982
37983         Tests for module 'unistr/u32-move'.
37984         * modules/unistr/u32-move-tests: New file.
37985         * tests/unistr/test-u32-move.c: New file.
37986
37987         Tests for module 'unistr/u16-move'.
37988         * modules/unistr/u16-move-tests: New file.
37989         * tests/unistr/test-u16-move.c: New file.
37990
37991         Tests for module 'unistr/u8-move'.
37992         * modules/unistr/u8-move-tests: New file.
37993         * tests/unistr/test-u8-move.c: New file.
37994         * tests/unistr/test-move.h: New file.
37995
37996         Tests for module 'unistr/u32-cpy'.
37997         * modules/unistr/u32-cpy-tests: New file.
37998         * tests/unistr/test-u32-cpy.c: New file.
37999
38000         Tests for module 'unistr/u16-cpy'.
38001         * modules/unistr/u16-cpy-tests: New file.
38002         * tests/unistr/test-u16-cpy.c: New file.
38003
38004         Tests for module 'unistr/u8-cpy'.
38005         * modules/unistr/u8-cpy-tests: New file.
38006         * tests/unistr/test-u8-cpy.c: New file.
38007         * tests/unistr/test-cpy.h: New file.
38008
38009 2010-01-09  Bruno Haible  <bruno@clisp.org>
38010
38011         Tests for module 'unistr/u32-uctomb'.
38012         * modules/unistr/u32-uctomb-tests: New file.
38013         * tests/unistr/test-u32-uctomb.c: New file.
38014
38015         Tests for module 'unistr/u16-uctomb'.
38016         * modules/unistr/u16-uctomb-tests: New file.
38017         * tests/unistr/test-u16-uctomb.c: New file.
38018
38019         Tests for module 'unistr/u8-uctomb'.
38020         * modules/unistr/u8-uctomb-tests: New file.
38021         * tests/unistr/test-u8-uctomb.c: New file.
38022
38023         Tests for module 'unistr/u32-mbtoucr'.
38024         * modules/unistr/u32-mbtoucr-tests: New file.
38025         * tests/unistr/test-u32-mbtoucr.c: New file.
38026
38027         Tests for module 'unistr/u16-mbtoucr'.
38028         * modules/unistr/u16-mbtoucr-tests: New file.
38029         * tests/unistr/test-u16-mbtoucr.c: New file.
38030
38031         Tests for module 'unistr/u8-mbtoucr'.
38032         * modules/unistr/u8-mbtoucr-tests: New file.
38033         * tests/unistr/test-u8-mbtoucr.c: New file.
38034
38035         Tests for module 'unistr/u32-mbtouc'.
38036         * modules/unistr/u32-mbtouc-tests: New file.
38037         * tests/unistr/test-u32-mbtouc.c: New file.
38038
38039         Tests for module 'unistr/u16-mbtouc'.
38040         * modules/unistr/u16-mbtouc-tests: New file.
38041         * tests/unistr/test-u16-mbtouc.c: New file.
38042
38043         Tests for module 'unistr/u8-mbtouc'.
38044         * modules/unistr/u8-mbtouc-tests: New file.
38045         * tests/unistr/test-u8-mbtouc.c: New file.
38046
38047         Tests for module 'unistr/u32-mbtouc-unsafe'.
38048         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38049         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38050         * tests/unistr/test-u32-mbtouc.h: New file.
38051
38052         Tests for module 'unistr/u16-mbtouc-unsafe'.
38053         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38054         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38055         * tests/unistr/test-u16-mbtouc.h: New file.
38056
38057         Tests for module 'unistr/u8-mbtouc-unsafe'.
38058         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38059         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38060         * tests/unistr/test-u8-mbtouc.h: New file.
38061
38062         Tests for module 'unistr/u32-mblen'.
38063         * modules/unistr/u32-mblen-tests: New file.
38064         * tests/unistr/test-u32-mblen.c: New file.
38065
38066         Tests for module 'unistr/u16-mblen'.
38067         * modules/unistr/u16-mblen-tests: New file.
38068         * tests/unistr/test-u16-mblen.c: New file.
38069
38070         Tests for module 'unistr/u8-mblen'.
38071         * modules/unistr/u8-mblen-tests: New file.
38072         * tests/unistr/test-u8-mblen.c: New file.
38073
38074         Tests for module 'unistr/u32-to-u16'.
38075         * modules/unistr/u32-to-u16-tests: New file.
38076         * tests/unistr/test-u32-to-u16.c: New file.
38077
38078         Tests for module 'unistr/u32-to-u8'.
38079         * modules/unistr/u32-to-u8-tests: New file.
38080         * tests/unistr/test-u32-to-u8.c: New file.
38081
38082         Tests for module 'unistr/u16-to-u32'.
38083         * modules/unistr/u16-to-u32-tests: New file.
38084         * tests/unistr/test-u16-to-u32.c: New file.
38085
38086         Tests for module 'unistr/u16-to-u8'.
38087         * modules/unistr/u16-to-u8-tests: New file.
38088         * tests/unistr/test-u16-to-u8.c: New file.
38089
38090         Tests for module 'unistr/u8-to-u32'.
38091         * modules/unistr/u8-to-u32-tests: New file.
38092         * tests/unistr/test-u8-to-u32.c: New file.
38093
38094         Tests for module 'unistr/u8-to-u16'.
38095         * modules/unistr/u8-to-u16-tests: New file.
38096         * tests/unistr/test-u8-to-u16.c: New file.
38097
38098         Tests for module 'unistr/u32-check'.
38099         * modules/unistr/u32-check-tests: New file.
38100         * tests/unistr/test-u32-check.c: New file.
38101
38102         Tests for module 'unistr/u16-check'.
38103         * modules/unistr/u16-check-tests: New file.
38104         * tests/unistr/test-u16-check.c: New file.
38105
38106         Tests for module 'unistr/u8-check'.
38107         * modules/unistr/u8-check-tests: New file.
38108         * tests/unistr/test-u8-check.c: New file.
38109
38110         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38111         (category_equals): New function.
38112         (main): Add more tests.
38113         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38114
38115         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38116
38117 2010-01-10  Bruno Haible  <bruno@clisp.org>
38118
38119         unistr/u*-strcoll: Try harder to distinguish different strings.
38120         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38121         compare s1 and s2 to see if they are different.
38122
38123 2010-01-10  Bruno Haible  <bruno@clisp.org>
38124
38125         unistr/u*-stpncpy: Fix the return value.
38126         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38127         description of the return value consistent with stpncpy in glibc.
38128         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38129         written non-NUL unit.
38130
38131 2010-01-10  Bruno Haible  <bruno@clisp.org>
38132
38133         unistr/u*-next: Add missing dependencies.
38134         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38135         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38136         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38137
38138 2010-01-10  Bruno Haible  <bruno@clisp.org>
38139
38140         unistr/u8-mbsnlen: Fix return value for incomplete character.
38141         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38142         u8_mblen.
38143         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38144         Remove unistr/u8-mblen.
38145         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38146         u16_mblen.
38147         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38148         Remove unistr/u16-mblen.
38149
38150 2010-01-10  Bruno Haible  <bruno@clisp.org>
38151
38152         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38153         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38154         Reported by Brian Gough <bjg@gnu.org> and
38155         Chris Clayton <chris2553@googlemail.com> via
38156         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38157
38158 2010-01-09  Bruno Haible  <bruno@clisp.org>
38159
38160         unistr/u16-to-u32: Reject invalid input.
38161         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38162         u16_mbtouc.
38163         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38164         Remove unistr/u16-mbtouc.
38165
38166         unistr/u16-to-u8: Reject invalid input.
38167         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38168         u16_mbtouc.
38169         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38170         Remove unistr/u16-mbtouc.
38171
38172         unistr/u8-to-u32: Reject invalid input.
38173         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38174         u8_mbtouc.
38175         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38176         Remove unistr/u8-mbtouc.
38177
38178         unistr/u8-to-u16: Reject invalid input.
38179         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38180         u8_mbtouc.
38181         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38182         Remove unistr/u8-mbtouc.
38183
38184 2010-01-09  Bruno Haible  <bruno@clisp.org>
38185
38186         Tests for module 'getlogin'.
38187         * modules/getlogin-tests: New file.
38188         * tests/test-getlogin.c: New file.
38189
38190         New module 'getlogin'.
38191         * lib/unistd.in.h (getlogin): New declaration.
38192         * lib/getlogin.c: New file.
38193         * m4/getlogin.m4: New file.
38194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38195         HAVE_GETLOGIN.
38196         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38197         HAVE_GETLOGIN.
38198         * modules/getlogin: New file.
38199         * doc/posix-functions/getlogin.texi: Mention the new module.
38200         Reported by John W. Eaton <jwe@gnu.org>.
38201
38202 2010-01-09  Bruno Haible  <bruno@clisp.org>
38203
38204         getlogin_r: Support for native Windows.
38205         * lib/getlogin_r.c: Include <windows.h>
38206         (getlogin_r): Implement for native Windows.
38207         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38208         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38209         via John W. Eaton <jwe@gnu.org>.
38210
38211 2010-01-09  Bruno Haible  <bruno@clisp.org>
38212
38213         getlogin_r: Small fixes.
38214         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38215         succeeds.
38216         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38217         before testing whether getlogin_r is declared. No need to set
38218         HAVE_DECL_GETLOGIN_R to 1.
38219         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38220
38221 2010-01-09  Bruno Haible  <bruno@clisp.org>
38222
38223         * lib/unistd.in.h (getlogin_r): Add comment.
38224
38225 2010-01-09  Bruno Haible  <bruno@clisp.org>
38226
38227         Tests for module 'getlogin_r'.
38228         * modules/getlogin_r-tests: New file.
38229         * tests/test-getlogin_r.c: New file.
38230
38231 2010-01-09  Jim Meyering  <meyering@redhat.com>
38232
38233         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38234         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38235         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38236
38237 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38238
38239         * lib/dup2.c (rpl_dup2): Improve comment.
38240
38241 2010-01-08  Eric Blake  <ebb9@byu.net>
38242
38243         maint.mk: allow packages to add makefile @@ exceptions
38244         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38245         (sc_makefile_check): Rename...
38246         (sc_makefile_at_at_check): ...to this, and use hook.
38247
38248         dup2: work around mingw bug
38249         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38250         Reported by Simon Josefsson.
38251
38252 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38253
38254         glob: Fix C++ compilation.
38255         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38256         C++.
38257
38258 2010-01-07  Bruno Haible  <bruno@clisp.org>
38259
38260         Fix indentation of wctype.in.h, broken since 2007-01-06.
38261         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38262
38263 2010-01-07  Bruno Haible  <bruno@clisp.org>
38264
38265         mbslen: Avoid collision with system function.
38266         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38267         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38268         * m4/mbslen.m4: New file.
38269         * modules/mbslen (Files): Add it.
38270         (configure.ac): Invoke gl_MBSLEN.
38271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38272         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38273         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38274         via Ian Beckwith <ianb@erislabs.net>.
38275
38276 2010-01-07  Bruno Haible  <bruno@clisp.org>
38277
38278         dirent: Document the last fix.
38279         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38280
38281 2010-01-07  Bruno Haible  <bruno@clisp.org>
38282
38283         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38284         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38285         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38286         va_list are defined.
38287         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38288         Reported by Eric Blake.
38289
38290 2010-01-07  Bruno Haible  <bruno@clisp.org>
38291
38292         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38293         * modules/xlist (Depends-on): Add 'list',
38294         * modules/xoset (Depends-on): Add 'oset'.
38295         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38296
38297 2010-01-07  Bruno Haible  <bruno@clisp.org>
38298
38299         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38300         * doc/posix-functions/strncasecmp.texi: Likewise.
38301
38302 2010-01-07  Bruno Haible  <bruno@clisp.org>
38303
38304         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38305
38306 2010-01-07  John W. Eaton  <jwe@octave.org>
38307
38308         wctype: allow C++ use
38309         * lib/wctype.in.h: Add extern "C" block for C++.
38310
38311 2010-01-06  Eric Blake  <ebb9@byu.net>
38312
38313         maint.mk: detect incorrect GFDL usage
38314         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38315
38316 2010-01-06  Jim Meyering  <meyering@redhat.com>
38317         and Eric Blake  <ebb9@byu.net>
38318
38319         maint.mk: ignore multi-line copyright in NEWS
38320         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38321
38322 2010-01-06  Eric Blake  <ebb9@byu.net>
38323
38324         select: add missing dependency
38325         * modules/select-tests (Depends-on): Move sockets dependency...
38326         * modules/select (Depends-on): ...here.
38327         Reported by Ian Beckwith.
38328
38329         doc: regenerate INSTALL
38330         * doc/INSTALL: Reflect recent autoconf update.
38331         * doc/INSTALL.ISO: Likewise.
38332         * doc/INSTALL.UTF-8: Likewise.
38333
38334         pread: fix compilation on glibc
38335         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38336         Reported by Ralf Wildenhues.
38337
38338         dirent: fix test failure
38339         * lib/dirent.in.h (includes): Guarantee ino_t.
38340         Reported by Ralf Wildenhues.
38341
38342 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38343
38344         linkat, renameat: avoid bad free
38345         * lib/at-func2.c (at_func2): Fix typo.
38346         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38347
38348 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38349
38350         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38351         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38352         to avoid failure of symlink test later.
38353
38354 2010-01-06  Eric Blake  <ebb9@byu.net>
38355
38356         stdio, unistd: guarantee ssize_t
38357         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38358         2008 are exposed when needed.
38359         * lib/stdio.in.h (includes): Likewise.
38360         Reported by Ralf Wildenhues.
38361
38362 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38363
38364         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38365         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38366         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38367
38368 2010-01-06  Jim Meyering  <meyering@redhat.com>
38369
38370         readtokens: this module *does* require xalloc.h
38371         It uses only functions that were omitted by the old syntax-check rule.
38372         * lib/readtokens.c: Include "xalloc.h" once again.
38373         * modules/readtokens (Depends-on): Add xalloc.
38374         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38375
38376 2010-01-05  Eric Blake  <ebb9@byu.net>
38377
38378         maint: support 'make announcement' from a VPATH build
38379         * top/maint.mk (announcement): Look for correct NEWS file.
38380
38381 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38382
38383         utimens (fdutimens): ignore a negative FD, per contract
38384         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38385         when we have a valid file descriptor.  Otherwise, using a brand
38386         new glibc (with just-patched futimens that now fails with EBADF)
38387         would cause this function to fail with ENOSYS.
38388         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38389         See also http://bugzilla.redhat.com/552320.
38390
38391 2010-01-05  Eric Blake  <ebb9@byu.net>
38392
38393         strcase: document what it provides
38394         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38395         gnulib module.
38396         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38397         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38398
38399 2010-01-05  Jim Meyering  <meyering@redhat.com>
38400
38401         maint: remove useless inclusions of "xalloc.h"
38402         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38403         * lib/readtokens.c: Likewise.
38404         * lib/same.c: Likewise.
38405         * modules/getloadavg (Depends-on): Remove xalloc.
38406         * modules/readtokens: Likewise.
38407         * modules/same: Likewise.
38408
38409         maint.mk: include 4 more function names in alloca.h-checking regexp
38410         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38411         regexp.  Before, we would give a false-positive (saying alloca.h
38412         is included unnecessarily) when the only uses involved omitted symbols.
38413
38414         xalloc.h: use consistent formatting
38415         * lib/xalloc.h: Move declarations to start in the first column.
38416
38417 2010-01-05  Eric Blake  <ebb9@byu.net>
38418
38419         mkdir: avoid xalloc
38420         * lib/mkdir.c (includes): Drop unused header.
38421         Reported by John W. Eaton.
38422
38423 2010-01-04  Jim Meyering  <meyering@redhat.com>
38424
38425         nl_langinfo: avoid configure-time syntax error
38426         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38427         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38428         the empty string.  Don't let that provoke a shell syntax error.
38429
38430         regcomp, regexec, fnmatch: avoid array bounds read error
38431         * lib/regcomp.c (build_equiv_class): From glibc:
38432         Use only the low 24 bits of a findidx return value as an index
38433         into the weights array.  Patch by Ulrich Drepper:
38434         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38435         * lib/regexec.c (check_node_accept_bytes): Likewise.
38436         * lib/fnmatch_loop.c (FCT): Likewise.
38437
38438         regcomp: skip collseq lookup when there are no rules
38439         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38440         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38441
38442         regcomp: recognize ill-formed { } expressions
38443         * lib/regcomp.c (parse_dup_op): From glibc:
38444         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38445
38446         regcomp: fix typo in comment
38447         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38448         s/satisfy/satisfies/.
38449
38450         regcomp: sync from glibc: remove dead store
38451         * lib/regcomp.c (duplicate_node_closure): Remove useless
38452         search_duplicated_node call and dead store.
38453
38454         regcomp: sync from glibc; always use nl_langinfo
38455         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38456         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38457         * modules/regex (Depends-on): Add nl_langinfo.
38458
38459 2010-01-04  Eric Blake  <ebb9@byu.net>
38460
38461         fdopendir: fix configure test
38462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38463
38464 2010-01-01  Bruno Haible  <bruno@clisp.org>
38465
38466         wchar: Remove unused configure check.
38467         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38468
38469 2010-01-01  Eric Blake  <ebb9@byu.net>
38470
38471         headers: make check of system header explicit
38472         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38473         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38474         ourselves.
38475         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38476         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38478         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38479         internals.
38480         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38481         missing.
38482         Suggested by Bruno Haible.
38483
38484 2010-01-01  Jim Meyering  <meyering@redhat.com>
38485
38486         ChangeLog: tweak to eliminate unnecessary copyright line
38487         * ChangeLog: Remove a copyright line that was mistakenly updated
38488         by today's update-copyright run.  Reported by Eric Blake.
38489
38490         test-update-copyright: don't let envvar setting cause test failure
38491         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38492
38493 2010-01-01  Bruno Haible  <bruno@clisp.org>
38494
38495         localename: Avoid gcc warning.
38496         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38497         function if it is not used.
38498
38499 2010-01-01  Jim Meyering  <meyering@redhat.com>
38500
38501         update nearly all FSF copyright year lists to include 2010
38502         Use the same procedure as for 2009, outlined in
38503         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38504
38505         version-etc: set COPYRIGHT_YEAR to 2010
38506         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38507
38508 2009-12-31  Eric Blake  <ebb9@byu.net>
38509
38510         doc: correct availability of cygwin 1.5.x getopt
38511         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38512         variables.
38513         * doc/posix-functions/opterr.texi (opterr): Likewise.
38514         * doc/posix-functions/optind.texi (optind): Likewise.
38515         * doc/posix-functions/optopt.texi (optopt): Likewise.
38516         * doc/posix-functions/tzname.texi (tzname): Likewise.
38517
38518         openat: update maintainer
38519         * modules/openat (Maintainer): Add myself.
38520
38521         utimens: avoid shadowing warning
38522         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38523         buffers into one, to avoid shadowing, as well as avoiding a
38524         redundant stat.
38525         Reported by Jim Meyering.
38526
38527         test-dup2: avoid compiler warning
38528         * tests/test-dup2.c (is_inheritable): Only define if used.
38529
38530 2010-01-01  Bruno Haible  <bruno@clisp.org>
38531
38532         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38533         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38534         defined, use wctomb instead of wcrtomb.
38535
38536 2010-01-01  Bruno Haible  <bruno@clisp.org>
38537
38538         iconv: Reject native Solaris iconv.
38539         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38540         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38541
38542 2009-12-31  Bruno Haible  <bruno@clisp.org>
38543
38544         * tests/test-signal.c (main): Remove test of 'SIG'.
38545
38546 2009-12-31  Bruno Haible  <bruno@clisp.org>
38547
38548         spawn: Fix incomplete fix.
38549         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38550         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38551         warnings for GNULIB_POSIXCHECK again.
38552         Reported by Eric Blake.
38553
38554 2009-12-31  Bruno Haible  <bruno@clisp.org>
38555
38556         Avoid namespace pollution on glibc systems.
38557         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38558         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38559         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38560         glibc systems.
38561
38562 2009-12-31  Bruno Haible  <bruno@clisp.org>
38563
38564         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38565         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38566         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38567         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38568         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38569         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38570         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38571
38572 2009-12-31  Bruno Haible  <bruno@clisp.org>
38573
38574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38575         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38576         afterwards.
38577
38578 2009-12-31  Bruno Haible  <bruno@clisp.org>
38579
38580         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38581         SYS_UTSNAME_H.
38582
38583 2009-12-31  Bruno Haible  <bruno@clisp.org>
38584
38585         spawn: Fix misapplied patch.
38586         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38587         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38588         warnings for GNULIB_POSIXCHECK.
38589
38590 2009-12-31  Bruno Haible  <bruno@clisp.org>
38591
38592         times: Update after sys_times changed.
38593         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38594         * modules/times (Files): Add it.
38595         (configure.ac): Invoke gl_FUNC_TIMES.
38596
38597 2009-12-31  Bruno Haible  <bruno@clisp.org>
38598
38599         Use AC_C_INLINE where necessary.
38600         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38601         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38602         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38603         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38604         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38605         * m4/mbiter.m4 (gl_MBITER): Likewise.
38606         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38607         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38608         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38609         * modules/u64 (configure.ac): Likewise.
38610
38611 2009-12-31  Bruno Haible  <bruno@clisp.org>
38612
38613         Use AC_C_INLINE instead of module 'inline' where possible.
38614         * modules/inline (Description): Clarify purpose.
38615         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38616         * modules/count-one-bits (Depends-on): Remove inline.
38617         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38618         * modules/openat (Depends-on): Remove inline.
38619         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38620         instead of depending on module 'inline'.
38621         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38622         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38623         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38624         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38625         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38626         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38627         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38628         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38629         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38630         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38631         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38632         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38633         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38634         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38635         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38636         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38637         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38638         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38639         Likewise.
38640         * modules/unictype/property-ascii-hex-digit (Depends-on,
38641         configure.ac): Likewise.
38642         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38643         configure.ac): Likewise.
38644         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38645         configure.ac): Likewise.
38646         * modules/unictype/property-bidi-block-separator (Depends-on,
38647         configure.ac): Likewise.
38648         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38649         configure.ac): Likewise.
38650         * modules/unictype/property-bidi-common-separator (Depends-on,
38651         configure.ac): Likewise.
38652         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38653         Likewise.
38654         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38655         configure.ac): Likewise.
38656         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38657         configure.ac): Likewise.
38658         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38659         configure.ac): Likewise.
38660         * modules/unictype/property-bidi-european-digit (Depends-on,
38661         configure.ac): Likewise.
38662         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38663         configure.ac): Likewise.
38664         * modules/unictype/property-bidi-left-to-right (Depends-on,
38665         configure.ac): Likewise.
38666         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38667         configure.ac): Likewise.
38668         * modules/unictype/property-bidi-other-neutral (Depends-on,
38669         configure.ac): Likewise.
38670         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38671         Likewise.
38672         * modules/unictype/property-bidi-segment-separator (Depends-on,
38673         configure.ac): Likewise.
38674         * modules/unictype/property-bidi-whitespace (Depends-on,
38675         configure.ac): Likewise.
38676         * modules/unictype/property-combining (Depends-on, configure.ac):
38677         Likewise.
38678         * modules/unictype/property-composite (Depends-on, configure.ac):
38679         Likewise.
38680         * modules/unictype/property-currency-symbol (Depends-on,
38681         configure.ac): Likewise.
38682         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38683         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38684         Likewise.
38685         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38686         configure.ac): Likewise.
38687         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38688         Likewise.
38689         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38690         Likewise.
38691         * modules/unictype/property-extender (Depends-on, configure.ac):
38692         Likewise.
38693         * modules/unictype/property-format-control (Depends-on, configure.ac):
38694         Likewise.
38695         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38696         Likewise.
38697         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38698         Likewise.
38699         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38700         Likewise.
38701         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38702         Likewise.
38703         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38704         Likewise.
38705         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38706         Likewise.
38707         * modules/unictype/property-id-start (Depends-on, configure.ac):
38708         Likewise.
38709         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38710         Likewise.
38711         * modules/unictype/property-ids-binary-operator (Depends-on,
38712         configure.ac): Likewise.
38713         * modules/unictype/property-ids-trinary-operator (Depends-on,
38714         configure.ac): Likewise.
38715         * modules/unictype/property-ignorable-control (Depends-on,
38716         configure.ac): Likewise.
38717         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38718         Likewise.
38719         * modules/unictype/property-join-control (Depends-on, configure.ac):
38720         Likewise.
38721         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38722         Likewise.
38723         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38724         Likewise.
38725         * modules/unictype/property-logical-order-exception (Depends-on,
38726         configure.ac): Likewise.
38727         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38728         Likewise.
38729         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38730         * modules/unictype/property-non-break (Depends-on, configure.ac):
38731         Likewise.
38732         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38733         Likewise.
38734         * modules/unictype/property-numeric (Depends-on, configure.ac):
38735         Likewise.
38736         * modules/unictype/property-other-alphabetic (Depends-on,
38737         configure.ac): Likewise.
38738         * modules/unictype/property-other-default-ignorable-code-point
38739         (Depends-on, configure.ac): Likewise.
38740         * modules/unictype/property-other-grapheme-extend (Depends-on,
38741         configure.ac): Likewise.
38742         * modules/unictype/property-other-id-continue (Depends-on,
38743         configure.ac): Likewise.
38744         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38745         Likewise.
38746         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38747         Likewise.
38748         * modules/unictype/property-other-math (Depends-on, configure.ac):
38749         Likewise.
38750         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38751         Likewise.
38752         * modules/unictype/property-paired-punctuation (Depends-on,
38753         configure.ac): Likewise.
38754         * modules/unictype/property-paragraph-separator (Depends-on,
38755         configure.ac): Likewise.
38756         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38757         Likewise.
38758         * modules/unictype/property-pattern-white-space (Depends-on,
38759         configure.ac): Likewise.
38760         * modules/unictype/property-private-use (Depends-on, configure.ac):
38761         Likewise.
38762         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38763         Likewise.
38764         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38765         Likewise.
38766         * modules/unictype/property-radical (Depends-on, configure.ac):
38767         Likewise.
38768         * modules/unictype/property-sentence-terminal (Depends-on,
38769         configure.ac): Likewise.
38770         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38771         Likewise.
38772         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38773         * modules/unictype/property-terminal-punctuation (Depends-on,
38774         configure.ac): Likewise.
38775         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38776         Likewise.
38777         * modules/unictype/property-unassigned-code-value (Depends-on,
38778         configure.ac): Likewise.
38779         * modules/unictype/property-unified-ideograph (Depends-on,
38780         configure.ac): Likewise.
38781         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38782         Likewise.
38783         * modules/unictype/property-variation-selector (Depends-on,
38784         configure.ac): Likewise.
38785         * modules/unictype/property-white-space (Depends-on, configure.ac):
38786         Likewise.
38787         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38788         Likewise.
38789         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38790         Likewise.
38791         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38792         Likewise.
38793         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38794         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38795         Likewise.
38796
38797 2009-12-31  Bruno Haible  <bruno@clisp.org>
38798
38799         Remove unnecessary AC_C_INLINE invocation.
38800         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38801         since 2009-08-21.
38802
38803 2009-12-31  Jim Meyering  <meyering@redhat.com>
38804
38805         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38806         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38807         With this change, we can all remove the gpg_key_ID = ... definition
38808         from our respective cfg.mk files.
38809
38810         maint.mk: create announcement template in ~/, not in /tmp
38811         * top/maint.mk (emit_upload_commands): Adjust.
38812         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38813         Remove temporary file, .ci-msg.
38814
38815 2009-12-31  Eric Blake  <ebb9@byu.net>
38816
38817         link-warning: always build headers with link warnings
38818         * modules/arpa_inet (Makefile.am): Always build replacement
38819         header.
38820         * modules/ctype (Makefile.am): Likewise.
38821         * modules/dirent (Makefile.am): Likewise.
38822         * modules/inttypes (Makefile.am): Likewise.
38823         * modules/langinfo (Makefile.am): Likewise.
38824         * modules/locale (Makefile.am): Likewise.
38825         * modules/spawn (Makefile.am): Likewise.
38826         * modules/sys_file (Makefile.am): Likewise.
38827         * modules/sys_ioctl (Makefile.am): Likewise.
38828         * modules/sys_select (Makefile.am): Likewise.
38829         * modules/sys_socket (Makefile.am): Likewise.
38830         * modules/sys_times (Makefile.am): Likewise.
38831         * modules/sys_utsname (Makefile.am): Likewise.
38832         * modules/sys_wait (Makefile.am): Likewise.
38833         * modules/wchar (Makefile.am): Likewise.
38834         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38835         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38836         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38837         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38838         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38839         Likewise.
38840         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38841         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38842         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38843         Likewise.
38844         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38845         Likewise.
38846         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38847         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38848         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38849         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38850         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38851         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38852         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38853         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38854         (gl_WCHAR_H_DEFAULTS): Likewise.
38855
38856 2009-12-31  Eric Blake  <ebb9@byu.net>
38857
38858         signal, spawn: use link warnings
38859         * lib/signal.in.h (sigset_t): Make unconditional.
38860         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38861         (sigpending, sigprocmask, sigaction): Add link warnings.
38862         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38863         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38864         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38865         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38866         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38867         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38868         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38869         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38870         (posix_spawn_file_actions_destroy)
38871         (posix_spawn_file_actions_addopen)
38872         (posix_spawn_file_actions_addclose)
38873         (posix_spawn_file_actions_adddup2): Likewise.
38874         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38875         * tests/test-signal.c (main): Enhance test.
38876
38877         spawn: improve wrapper support
38878         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38879         (gl_SPAWN_H_DEFAULTS): New defaults.
38880         * modules/spawn (Makefile.am): Substitute them.
38881         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38882         Only declare if missing or broken.
38883
38884         sys_times, sys_utsname: use include_next
38885         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38886         header.
38887         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38888         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38889         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38890         * modules/sys_times (Depends-on): Add include_next.
38891         (Makefile.am): Substitute additional values.
38892         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38893         * lib/sys_times.in.h (includes): Include native header, if
38894         available.
38895         * lib/sys_utsname.in.h (includes): Likewise.
38896         * tests/test-sys_times.c (main): Enhance test.
38897
38898         fdutimensat: revert prior patch
38899         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38900         utimens.h.
38901         Reported by Bruno Haible.
38902
38903 2009-12-30  Eric Blake  <ebb9@byu.net>
38904
38905         sys_wait: drop link-warning dependency
38906         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38907         link-warning efforts.
38908         * lib/sys_wait.in.h: Likewise.
38909
38910         fdutimensat: remove bogus dependency
38911         * modules/fdutimensat (Depends-on): Drop inline.
38912
38913         unistd: fix typo
38914         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38915
38916 2009-12-30  Bruno Haible  <bruno@clisp.org>
38917
38918         Fix compilation error with Solaris cc.
38919         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38920         * lib/unicase/u16-is-invariant.c: Likewise.
38921         * lib/unicase/u32-is-invariant.c: Likewise.
38922         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38923
38924 2009-12-30  Bruno Haible  <bruno@clisp.org>
38925
38926         Fix test crash.
38927         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38928         locales.
38929         Reported by Simon Josefsson <simon@josefsson.org>.
38930
38931 2009-12-30  Bruno Haible  <bruno@clisp.org>
38932
38933         Fix compilation error on most platforms.
38934         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38935         Reported by Simon Josefsson <simon@josefsson.org>
38936         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38937
38938 2009-12-30  Eric Blake  <ebb9@byu.net>
38939
38940         futimens, utimensat: work around ntfs-3g bug
38941         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38942         a ctime bug is present, and expand workaround to cover ntfs-3g.
38943         * lib/utimens.c (fdutimens, lutimens): Likewise.
38944         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38945         (validate_timespec): Adjust return value.
38946         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38947         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38948         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38949
38950 2009-12-29  Eric Blake  <ebb9@byu.net>
38951
38952         link-warning: make usage consistent
38953         * modules/ctype (Depends-on): Add link-warning.
38954         (Makefile.am): Update rules accordingly.
38955         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38956         * modules/locale (Depends-on, Makefile.am): Likewise.
38957         * modules/sys_file (Makefile.am): Likewise.
38958         * modules/getopt-posix (Makefile.am): Delete unused link warning
38959         efforts.
38960         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38961         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38962         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38963         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38964
38965         stdio: remove unused variables
38966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38967         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38968         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38969
38970         tests: test more substitute headers
38971         * modules/ctype-tests: New file.
38972         * modules/dirent-tests: Likewise.
38973         * modules/spawn-tests: Likewise.
38974         * modules/sys_file-tests: Likewise.
38975         * modules/sys_ioctl-tests: Likewise.
38976         * modules/sys_wait-tests: Likewise.
38977         * tests/test-ctype.c: Likewise.
38978         * tests/test-dirent.c: Likewise.
38979         * tests/test-spawn.c: Likewise.
38980         * tests/test-sys_file.c: Likewise.
38981         * tests/test-sys_ioctl.c: Likewise.
38982         * tests/test-sys_wait.c: Likewise.
38983         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38984         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38985         whether or not flock is in use.
38986
38987         tests: remove License section from module
38988         * modules/arpa_inet-tests: Remove unneeded section.
38989         * modules/byteswap-tests: Likewise.
38990         * modules/ceilf-tests: Likewise.
38991         * modules/ceill-tests: Likewise.
38992         * modules/crypto/des-tests: Likewise.
38993         * modules/crypto/gc-arcfour-tests: Likewise.
38994         * modules/crypto/gc-arctwo-tests: Likewise.
38995         * modules/crypto/gc-des-tests: Likewise.
38996         * modules/crypto/gc-hmac-md5-tests: Likewise.
38997         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38998         * modules/crypto/gc-md2-tests: Likewise.
38999         * modules/crypto/gc-md4-tests: Likewise.
39000         * modules/crypto/gc-md5-tests: Likewise.
39001         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39002         * modules/crypto/gc-rijndael-tests: Likewise.
39003         * modules/crypto/gc-sha1-tests: Likewise.
39004         * modules/crypto/gc-tests: Likewise.
39005         * modules/crypto/md2-tests: Likewise.
39006         * modules/crypto/md4-tests: Likewise.
39007         * modules/fcntl-h-tests: Likewise.
39008         * modules/floorf-tests: Likewise.
39009         * modules/floorl-tests: Likewise.
39010         * modules/frexp-nolibm-tests: Likewise.
39011         * modules/frexp-tests: Likewise.
39012         * modules/frexpl-nolibm-tests: Likewise.
39013         * modules/frexpl-tests: Likewise.
39014         * modules/getaddrinfo-tests: Likewise.
39015         * modules/inttypes-tests: Likewise.
39016         * modules/isfinite-tests: Likewise.
39017         * modules/isinf-tests: Likewise.
39018         * modules/ldexpl-tests: Likewise.
39019         * modules/locale-tests: Likewise.
39020         * modules/math-tests: Likewise.
39021         * modules/netdb-tests: Likewise.
39022         * modules/netinet_in-tests: Likewise.
39023         * modules/printf-frexp-tests: Likewise.
39024         * modules/printf-frexpl-tests: Likewise.
39025         * modules/priv-set-tests: Likewise.
39026         * modules/random_r-tests: Likewise.
39027         * modules/round-tests: Likewise.
39028         * modules/roundf-tests: Likewise.
39029         * modules/roundl-tests: Likewise.
39030         * modules/search-tests: Likewise.
39031         * modules/select-tests: Likewise.
39032         * modules/signal-tests: Likewise.
39033         * modules/stdbool-tests: Likewise.
39034         * modules/stddef-tests: Likewise.
39035         * modules/stdint-tests: Likewise.
39036         * modules/stdio-tests: Likewise.
39037         * modules/stdlib-tests: Likewise.
39038         * modules/string-tests: Likewise.
39039         * modules/strings-tests: Likewise.
39040         * modules/sys_select-tests: Likewise.
39041         * modules/sys_socket-tests: Likewise.
39042         * modules/sys_stat-tests: Likewise.
39043         * modules/sys_time-tests: Likewise.
39044         * modules/sys_utsname-tests: Likewise.
39045         * modules/sysexits-tests: Likewise.
39046         * modules/time-tests: Likewise.
39047         * modules/trunc-tests: Likewise.
39048         * modules/truncf-tests: Likewise.
39049         * modules/truncl-tests: Likewise.
39050         * modules/tsearch-tests: Likewise.
39051         * modules/unistd-tests: Likewise.
39052         * modules/wchar-tests: Likewise.
39053         * modules/wctype-tests: Likewise.
39054
39055         tests: fix license on several tests
39056         * tests/test-des.c: Update to GPLv3+.
39057         * tests/test-flock.c: Likewise.
39058         * tests/test-fsync.c: Likewise.
39059         * tests/test-futimens.h: Likewise.
39060         * tests/test-gc-arcfour.c: Likewise.
39061         * tests/test-gc-arctwo.c: Likewise.
39062         * tests/test-gc-des.c: Likewise.
39063         * tests/test-gc-hmac-md5.c: Likewise.
39064         * tests/test-gc-hmac-sha1.c: Likewise.
39065         * tests/test-gc-md2.c: Likewise.
39066         * tests/test-gc-md4.c: Likewise.
39067         * tests/test-gc-md5.c: Likewise.
39068         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39069         * tests/test-gc-rijndael.c: Likewise.
39070         * tests/test-gc-sha1.c: Likewise.
39071         * tests/test-gc.c: Likewise.
39072         * tests/test-getcwd.c: Likewise.
39073         * tests/test-link.c: Likewise.
39074         * tests/test-link.h: Likewise.
39075         * tests/test-lutimens.h: Likewise.
39076         * tests/test-md2.c: Likewise.
39077         * tests/test-md4.c: Likewise.
39078         * tests/test-mkdir.h: Likewise.
39079         * tests/test-rename.c: Likewise.
39080         * tests/test-rename.h: Likewise.
39081         * tests/test-safe-alloc.c: Likewise.
39082         * tests/test-utimens-common.h: Likewise.
39083         * tests/test-utimens.h: Likewise.
39084
39085         maint: sync license texts
39086         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39087         * doc/gpl-3.0.texi: Revert copyright year update.
39088         * doc/lgpl-3.0.texi: Likewise.
39089
39090 2009-12-29  Jim Meyering  <meyering@redhat.com>
39091
39092         update nearly all FSF copyright year lists to include 2009
39093         The files named by the following are exempted:
39094             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39095               test -f "$dst" && { echo "$dst"; continue; }
39096               test -d "$dst" || continue
39097               echo "$dst"/$(basename "$src")
39098             done > exempt
39099             git ls-files tests/unictype >> exempt
39100         In the remaining files, convert to all-interval notation if
39101         - there is already at least one year interval like 2000-2003
39102         - the file is maintained by me
39103         - the file is in lib/uni*/, where that style already prevails
39104         Otherwise, use update-copyright's default.
39105
39106 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39107         and Eric Blake  <ebb9@byu.net>
39108
39109         tests: don't require debug system() to pass
39110         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39111         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39112         * tests/test-unlink.h (test_unlink_func): Likewise.
39113         * tests/test-fstatat.c (main): ...into callers.
39114         * tests/test-lstat.c (main): Likewise.
39115         * tests/test-rmdir.c (main): Likewise.
39116         * tests/test-unlink.c (main): Likewise.
39117         * tests/test-unlinkat.c (main): Likewise.
39118         * tests/test-areadlink-with-size.c (main): Don't require a
39119         debug-only system call to pass, aiding cross-testing to mingw.
39120         * tests/test-areadlink.c (main): Likewise.
39121         * tests/test-areadlinkat-with-size.c (main): Likewise.
39122         * tests/test-areadlinkat.c (main): Likewise.
39123         * tests/test-canonicalize-lgpl.c (main): Likewise.
39124         * tests/test-canonicalize.c (main): Likewise.
39125         * tests/test-chown.c (main): Likewise.
39126         * tests/test-fchownat.c (main): Likewise.
39127         * tests/test-lchown.c (main): Likewise.
39128         * tests/test-fdutimensat.c (main): Likewise.
39129         * tests/test-futimens.c (main): Likewise.
39130         * tests/test-link.c (main): Likewise.
39131         * tests/test-linkat.c (main): Likewise.
39132         * tests/test-mkdir.c (main): Likewise.
39133         * tests/test-mkdirat.c (main): Likewise.
39134         * tests/test-mkfifo.c (main): Likewise.
39135         * tests/test-mkfifoat.c (main): Likewise.
39136         * tests/test-mknod.c (main): Likewise.
39137         * tests/test-readlink.c (main): Likewise.
39138         * tests/test-remove.c (main): Likewise.
39139         * tests/test-rename.c (main): Likewise.
39140         * tests/test-renameat.c (main): Likewise.
39141         * tests/test-symlink.c (main): Likewise.
39142         * tests/test-symlinkat.c (main): Likewise.
39143         * tests/test-utimens.c (main): Likewise.
39144         * tests/test-utimensat.c (main): Likewise.
39145
39146 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39147
39148         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39149         on $(UNUSED_PARAMETER_H) to avoid build failure.
39150
39151 2009-12-28  Jim Meyering  <meyering@redhat.com>
39152
39153         update-copyright: you may specify a max. line length other than 72
39154         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39155
39156         maint: use consistent FSF copyright line syntax
39157         * lib/posixtm.c: Add missing comma in FSF copyright line.
39158         * lib/posixtm.h: Likewise.
39159         * lib/getugroups.c: Add missing ", Inc.".
39160
39161         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39162         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39163         FSF copyright line.  Remove trailing blanks.
39164
39165 2009-12-28  Eric Blake  <ebb9@byu.net>
39166
39167         test-dup2: reduce dependencies
39168         * modules/cloexec (Configure.ac): Set witness.
39169         * modules/dup2-tests (Depends-on): Drop cloexec.
39170         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39171         not present.
39172         Suggested by Bruno Haible.
39173
39174 2009-12-26  Bruno Haible  <bruno@clisp.org>
39175
39176         Remove an unneeded dependency.
39177         * modules/fseterr (Depends-on): Remove dup2.
39178
39179 2009-12-26  Eric Blake  <ebb9@byu.net>
39180
39181         tests: use macros.h in more places
39182         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39183         (ASSERT_STREAM): Provide default of stderr.
39184         * tests/test-dirent-safer.c: Include macros.h, using alternate
39185         stream for assertions.
39186         * tests/test-dup-safer.c: Likewise.
39187         * tests/test-freopen-safer.c: Likewise.
39188         * tests/test-getopt.c: Likewise.
39189         * tests/test-openat-safer.c: Likewise.
39190         * tests/test-pipe.c: Likewise.
39191         * tests/test-popen-safer.c: Likewise.
39192         * modules/dirent-safer-tests (Files): Include macros.h.
39193         * modules/unistd-safer-tests (Files): Likewise.
39194         * modules/freopen-safer-tests (Files): Likewise.
39195         * modules/getopt-posix-tests (Files): Likewise.
39196         * modules/openat-safer-tests (Files): Likewise.
39197         * modules/pipe-tests (Files): Likewise.
39198
39199 2009-12-26  Bruno Haible  <bruno@clisp.org>
39200
39201         javacomp: Portability fix.
39202         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39203         that it also works on Solaris.
39204
39205 2009-12-26  Bruno Haible  <bruno@clisp.org>
39206
39207         localename: Fix storage allocation of gl_locale_name_thread's result.
39208         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39209         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39210         all platforms that have 'uselocale'.
39211         (gl_locale_name_thread_unsafe): New function, extracted from
39212         gl_locale_name_thread.
39213         (gl_locale_name_thread): Call struniq on all platforms that have
39214         'uselocale'.
39215         * tests/test-localename.c (test_locale_name_thread): Check that the
39216         resulting strings are permanently allocated.
39217         * modules/localename-tests (Depends-on): Add strdup.
39218
39219 2009-12-26  Bruno Haible  <bruno@clisp.org>
39220
39221         * tests/test-localename.c (categories): Fill in the strings.
39222
39223 2009-12-26  Jim Meyering  <meyering@redhat.com>
39224
39225         isdir: complete the removal of m4/isdir.m4
39226         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39227
39228         isdir: clean up, since at least grep still uses it
39229         * lib/isdir.c: Include "isdir.h".
39230         (S_ISDIR): Remove now-unneeded definition.
39231         * modules/isdir (Files): Add lib/isdir.h.
39232         * lib/isdir.h: New file, with declaration.
39233         * m4/isdir.m4: Remove file -- unneeded.
39234
39235 2009-12-25  Bruno Haible  <bruno@clisp.org>
39236
39237         selinux-h: Make generated .h files standalone.
39238         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39239         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39240         * lib/se-selinux.in.h: Likewise.
39241         * modules/selinux-h (Depends-on): Add unused-parameter.
39242         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39243         selinux/selinux.h and selinux/context.h.
39244         Suggested by Eric Blake.
39245
39246 2009-12-25  Bruno Haible  <bruno@clisp.org>
39247
39248         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39249         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39250         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39251         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39252         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39253
39254 2009-12-24  Bruno Haible  <bruno@clisp.org>
39255
39256         openat: Fix warning.
39257         * lib/openat-proc.c: Include <unistd.h>.
39258
39259 2009-12-24  Bruno Haible  <bruno@clisp.org>
39260
39261         New module 'unused-parameter'.
39262         * build-aux/unused-parameter.h: New file, extracted from earlier
39263         gnulib-common.m4.
39264         * modules/unused-parameter: New file.
39265         * lib/unistr.h: Include unused-parameter.h.
39266         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39267         _GL_UNUSED.
39268         * modules/unistr/base (Depends-on): Add unused-parameter.
39269
39270 2009-12-24  Bruno Haible  <bruno@clisp.org>
39271
39272         Add missing dependencies to 'extensions' module.
39273         * m4/extensions.m4: Add comment.
39274         * modules/accept4 (Depends-on): Add extensions.
39275         * modules/dup3 (Depends-on): Likewise.
39276         * modules/fcntl (Depends-on): Likewise.
39277         * modules/futimens (Depends-on): Likewise.
39278         * modules/mknod (Depends-on): Likewise.
39279         * modules/pipe2 (Depends-on): Likewise.
39280         * modules/stat-time (Depends-on): Likewise.
39281         * modules/strcasestr-simple (Depends-on): Likewise.
39282         * modules/strsignal (Depends-on): Likewise.
39283         * modules/utimensat (Depends-on): Likewise.
39284         * modules/localcharset (Depends-on): Likewise. Needed because of
39285         gl_FCNTL_O_FLAGS.
39286         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39287         AC_TYPE_MBSTATE_T.
39288         * modules/wcsnrtombs (Depends-on): Likewise.
39289         * modules/wcsrtombs (Depends-on): Likewise.
39290
39291 2009-12-24  Bruno Haible  <bruno@clisp.org>
39292
39293         binary-io: Avoid gcc warning due to SET_BINARY.
39294         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39295         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39296
39297 2009-12-24  Bruno Haible  <bruno@clisp.org>
39298
39299         Avoid future namespace pollution on glibc systems.
39300         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39301         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39302         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39303         glibc systems.
39304
39305 2009-12-24  Bruno Haible  <bruno@clisp.org>
39306
39307         Refactor common macros used in tests.
39308         * tests/macros.h: New file.
39309         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39310         and/or <stdlib.h>, if appropriate.
39311         (ASSERT, SIZEOF): Remove macros.
39312         * tests/test-areadlink-with-size.c: Likewise.
39313         * tests/test-areadlinkat.c: Likewise.
39314         * tests/test-areadlinkat-with-size.c: Likewise.
39315         * tests/test-argmatch.c: Likewise.
39316         * tests/test-argv-iter.c: Likewise.
39317         * tests/test-array-mergesort.c: Likewise.
39318         * tests/test-array_list.c: Likewise.
39319         * tests/test-array_oset.c: Likewise.
39320         * tests/test-avltree_list.c: Likewise.
39321         * tests/test-avltree_oset.c: Likewise.
39322         * tests/test-avltreehash_list.c: Likewise.
39323         * tests/test-base64.c: Likewise.
39324         * tests/test-binary-io.c: Likewise.
39325         * tests/test-bitrotate.c: Likewise.
39326         * tests/test-btowc.c: Likewise.
39327         * tests/test-byteswap.c: Likewise.
39328         * tests/test-c-ctype.c: Likewise.
39329         * tests/test-c-stack.c: Likewise.
39330         * tests/test-c-strcasecmp.c: Likewise.
39331         * tests/test-c-strcasestr.c: Likewise.
39332         * tests/test-c-strncasecmp.c: Likewise.
39333         * tests/test-c-strstr.c: Likewise.
39334         * tests/test-canonicalize-lgpl.c: Likewise.
39335         * tests/test-canonicalize.c: Likewise.
39336         * tests/test-carray_list.c: Likewise.
39337         * tests/test-ceilf1.c: Likewise.
39338         * tests/test-ceilf2.c: Likewise.
39339         * tests/test-ceill.c: Likewise.
39340         * tests/test-chown.c: Likewise.
39341         * tests/test-cloexec.c: Likewise.
39342         * tests/test-copy-acl.c: Likewise.
39343         * tests/test-copy-file.c: Likewise.
39344         * tests/test-count-one-bits.c: Likewise.
39345         * tests/test-dprintf-posix.c: Likewise.
39346         * tests/test-dup2.c: Likewise.
39347         * tests/test-dup3.c: Likewise.
39348         * tests/test-duplocale.c: Likewise.
39349         * tests/test-fbufmode.c: Likewise.
39350         * tests/test-fchdir.c: Likewise.
39351         * tests/test-fchownat.c: Likewise.
39352         * tests/test-fcntl-safer.c: Likewise.
39353         * tests/test-fcntl.c: Likewise.
39354         * tests/test-fdopendir.c: Likewise.
39355         * tests/test-fdutimensat.c: Likewise.
39356         * tests/test-fflush2.c: Likewise.
39357         * tests/test-file-has-acl.c: Likewise.
39358         * tests/test-filevercmp.c: Likewise.
39359         * tests/test-flock.c: Likewise.
39360         * tests/test-floorf1.c: Likewise.
39361         * tests/test-floorf2.c: Likewise.
39362         * tests/test-floorl.c: Likewise.
39363         * tests/test-fnmatch.c: Likewise.
39364         * tests/test-fopen.h: Likewise.
39365         * tests/test-fpending.c: Likewise.
39366         * tests/test-fprintf-posix.c: Likewise.
39367         * tests/test-fpurge.c: Likewise.
39368         * tests/test-freadable.c: Likewise.
39369         * tests/test-freadahead.c: Likewise.
39370         * tests/test-freading.c: Likewise.
39371         * tests/test-freadptr.c: Likewise.
39372         * tests/test-freadptr2.c: Likewise.
39373         * tests/test-freadseek.c: Likewise.
39374         * tests/test-freopen.c: Likewise.
39375         * tests/test-frexp.c: Likewise.
39376         * tests/test-frexpl.c: Likewise.
39377         * tests/test-fseek.c: Likewise.
39378         * tests/test-fseeko.c: Likewise.
39379         * tests/test-fstatat.c: Likewise.
39380         * tests/test-fstrcmp.c: Likewise.
39381         * tests/test-fsync.c: Likewise.
39382         * tests/test-ftell.c: Likewise.
39383         * tests/test-ftello.c: Likewise.
39384         * tests/test-func.c: Likewise.
39385         * tests/test-futimens.c: Likewise.
39386         * tests/test-fwritable.c: Likewise.
39387         * tests/test-fwriting.c: Likewise.
39388         * tests/test-getcwd.c: Likewise.
39389         * tests/test-getdate.c: Likewise.
39390         * tests/test-getdelim.c: Likewise.
39391         * tests/test-getdtablesize.c: Likewise.
39392         * tests/test-getgroups.c: Likewise.
39393         * tests/test-getline.c: Likewise.
39394         * tests/test-getndelim2.c: Likewise.
39395         * tests/test-glob.c: Likewise.
39396         * tests/test-hash.c: Likewise.
39397         * tests/test-i-ring.c: Likewise.
39398         * tests/test-iconv-utf.c: Likewise.
39399         * tests/test-iconv.c: Likewise.
39400         * tests/test-idpriv-drop.c: Likewise.
39401         * tests/test-idpriv-droptemp.c: Likewise.
39402         * tests/test-inet_ntop.c: Likewise.
39403         * tests/test-inet_pton.c: Likewise.
39404         * tests/test-isblank.c: Likewise.
39405         * tests/test-isfinite.c: Likewise.
39406         * tests/test-isinf.c: Likewise.
39407         * tests/test-isnan.c: Likewise.
39408         * tests/test-isnand.h: Likewise.
39409         * tests/test-isnanf.h: Likewise.
39410         * tests/test-isnanl.h: Likewise.
39411         * tests/test-lchown.c: Likewise.
39412         * tests/test-ldexpl.c: Likewise.
39413         * tests/test-link.c: Likewise.
39414         * tests/test-linkat.c: Likewise.
39415         * tests/test-linked_list.c: Likewise.
39416         * tests/test-linkedhash_list.c: Likewise.
39417         * tests/test-localename.c: Likewise.
39418         * tests/test-lseek.c: Likewise.
39419         * tests/test-lstat.c: Likewise.
39420         * tests/test-mbmemcasecmp.c: Likewise.
39421         * tests/test-mbmemcasecoll.c: Likewise.
39422         * tests/test-mbrtowc.c: Likewise.
39423         * tests/test-mbscasecmp.c: Likewise.
39424         * tests/test-mbscasestr1.c: Likewise.
39425         * tests/test-mbscasestr2.c: Likewise.
39426         * tests/test-mbscasestr3.c: Likewise.
39427         * tests/test-mbscasestr4.c: Likewise.
39428         * tests/test-mbschr.c: Likewise.
39429         * tests/test-mbscspn.c: Likewise.
39430         * tests/test-mbsinit.c: Likewise.
39431         * tests/test-mbsncasecmp.c: Likewise.
39432         * tests/test-mbsnrtowcs.c: Likewise.
39433         * tests/test-mbspbrk.c: Likewise.
39434         * tests/test-mbspcasecmp.c: Likewise.
39435         * tests/test-mbsrchr.c: Likewise.
39436         * tests/test-mbsrtowcs.c: Likewise.
39437         * tests/test-mbsspn.c: Likewise.
39438         * tests/test-mbsstr1.c: Likewise.
39439         * tests/test-mbsstr2.c: Likewise.
39440         * tests/test-mbsstr3.c: Likewise.
39441         * tests/test-memchr.c: Likewise.
39442         * tests/test-memchr2.c: Likewise.
39443         * tests/test-memcmp.c: Likewise.
39444         * tests/test-memmem.c: Likewise.
39445         * tests/test-memrchr.c: Likewise.
39446         * tests/test-mkdir.c: Likewise.
39447         * tests/test-mkdirat.c: Likewise.
39448         * tests/test-mkfifo.c: Likewise.
39449         * tests/test-mkfifoat.c: Likewise.
39450         * tests/test-mknod.c: Likewise.
39451         * tests/test-nanosleep.c: Likewise.
39452         * tests/test-nl_langinfo.c: Likewise.
39453         * tests/test-obstack-printf.c: Likewise.
39454         * tests/test-open.c: Likewise.
39455         * tests/test-openat.c: Likewise.
39456         * tests/test-pipe-filter-gi1.c: Likewise.
39457         * tests/test-pipe-filter-gi2-main.c: Likewise.
39458         * tests/test-pipe-filter-ii1.c: Likewise.
39459         * tests/test-pipe-filter-ii2-main.c: Likewise.
39460         * tests/test-pipe2.c: Likewise.
39461         * tests/test-popen.h: Likewise.
39462         * tests/test-posixtm.c: Likewise.
39463         * tests/test-pread.c: Likewise.
39464         * tests/test-printf-frexp.c: Likewise.
39465         * tests/test-printf-frexpl.c: Likewise.
39466         * tests/test-printf-posix.c: Likewise.
39467         * tests/test-priv-set.c: Likewise.
39468         * tests/test-quotearg.c: Likewise.
39469         * tests/test-random_r.c: Likewise.
39470         * tests/test-rawmemchr.c: Likewise.
39471         * tests/test-rbtree_list.c: Likewise.
39472         * tests/test-rbtree_oset.c: Likewise.
39473         * tests/test-rbtreehash_list.c: Likewise.
39474         * tests/test-readlink.c: Likewise.
39475         * tests/test-remove.c: Likewise.
39476         * tests/test-rename.c: Likewise.
39477         * tests/test-renameat.c: Likewise.
39478         * tests/test-rmdir.c: Likewise.
39479         * tests/test-round1.c: Likewise.
39480         * tests/test-roundf1.c: Likewise.
39481         * tests/test-roundl.c: Likewise.
39482         * tests/test-safe-alloc.c: Likewise.
39483         * tests/test-sameacls.c: Likewise.
39484         * tests/test-set-mode-acl.c: Likewise.
39485         * tests/test-setenv.c: Likewise.
39486         * tests/test-sigaction.c: Likewise.
39487         * tests/test-signbit.c: Likewise.
39488         * tests/test-sleep.c: Likewise.
39489         * tests/test-snprintf-posix.c: Likewise.
39490         * tests/test-snprintf.c: Likewise.
39491         * tests/test-sprintf-posix.c: Likewise.
39492         * tests/test-stat-time.c: Likewise.
39493         * tests/test-stat.c: Likewise.
39494         * tests/test-strcasestr.c: Likewise.
39495         * tests/test-strchrnul.c: Likewise.
39496         * tests/test-strerror.c: Likewise.
39497         * tests/test-striconv.c: Likewise.
39498         * tests/test-striconveh.c: Likewise.
39499         * tests/test-striconveha.c: Likewise.
39500         * tests/test-strsignal.c: Likewise.
39501         * tests/test-strstr.c: Likewise.
39502         * tests/test-strtod.c: Likewise.
39503         * tests/test-strverscmp.c: Likewise.
39504         * tests/test-symlink.c: Likewise.
39505         * tests/test-symlinkat.c: Likewise.
39506         * tests/test-trunc1.c: Likewise.
39507         * tests/test-trunc2.c: Likewise.
39508         * tests/test-truncf1.c: Likewise.
39509         * tests/test-truncf2.c: Likewise.
39510         * tests/test-truncl.c: Likewise.
39511         * tests/test-uname.c: Likewise.
39512         * tests/test-unlink.c: Likewise.
39513         * tests/test-unlinkat.c: Likewise.
39514         * tests/test-unsetenv.c: Likewise.
39515         * tests/test-usleep.c: Likewise.
39516         * tests/test-utimens.c: Likewise.
39517         * tests/test-utimensat.c: Likewise.
39518         * tests/test-vasnprintf-posix.c: Likewise.
39519         * tests/test-vasnprintf-posix2.c: Likewise.
39520         * tests/test-vasnprintf.c: Likewise.
39521         * tests/test-vasprintf-posix.c: Likewise.
39522         * tests/test-vasprintf.c: Likewise.
39523         * tests/test-vdprintf-posix.c: Likewise.
39524         * tests/test-vfprintf-posix.c: Likewise.
39525         * tests/test-vprintf-posix.c: Likewise.
39526         * tests/test-vsnprintf-posix.c: Likewise.
39527         * tests/test-vsnprintf.c: Likewise.
39528         * tests/test-vsprintf-posix.c: Likewise.
39529         * tests/test-wcrtomb.c: Likewise.
39530         * tests/test-wcsnrtombs.c: Likewise.
39531         * tests/test-wcsrtombs.c: Likewise.
39532         * tests/test-wctype.c: Likewise.
39533         * tests/test-wcwidth.c: Likewise.
39534         * tests/test-xfprintf-posix.c: Likewise.
39535         * tests/test-xmemdup0.c: Likewise.
39536         * tests/test-xprintf-posix.c: Likewise.
39537         * tests/test-xvasprintf.c: Likewise.
39538         * tests/unicase/test-locale-language.c: Likewise.
39539         * tests/unicase/test-mapping-part1.h: Likewise.
39540         * tests/unicase/test-predicate-part1.h: Likewise.
39541         * tests/unicase/test-u8-casecmp.c: Likewise.
39542         * tests/unicase/test-u8-casecoll.c: Likewise.
39543         * tests/unicase/test-u8-casefold.c: Likewise.
39544         * tests/unicase/test-u8-is-cased.c: Likewise.
39545         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39546         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39547         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39548         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39549         * tests/unicase/test-u8-tolower.c: Likewise.
39550         * tests/unicase/test-u8-totitle.c: Likewise.
39551         * tests/unicase/test-u8-toupper.c: Likewise.
39552         * tests/unicase/test-u16-casecmp.c: Likewise.
39553         * tests/unicase/test-u16-casecoll.c: Likewise.
39554         * tests/unicase/test-u16-casefold.c: Likewise.
39555         * tests/unicase/test-u16-is-cased.c: Likewise.
39556         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39557         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39558         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39559         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39560         * tests/unicase/test-u16-tolower.c: Likewise.
39561         * tests/unicase/test-u16-totitle.c: Likewise.
39562         * tests/unicase/test-u16-toupper.c: Likewise.
39563         * tests/unicase/test-u32-casecmp.c: Likewise.
39564         * tests/unicase/test-u32-casecoll.c: Likewise.
39565         * tests/unicase/test-u32-casefold.c: Likewise.
39566         * tests/unicase/test-u32-is-cased.c: Likewise.
39567         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39568         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39569         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39570         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39571         * tests/unicase/test-u32-tolower.c: Likewise.
39572         * tests/unicase/test-u32-totitle.c: Likewise.
39573         * tests/unicase/test-u32-toupper.c: Likewise.
39574         * tests/unicase/test-ulc-casecmp.c: Likewise.
39575         * tests/unicase/test-ulc-casecoll.c: Likewise.
39576         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39577         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39578         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39579         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39580         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39581         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39582         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39583         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39584         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39585         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39586         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39587         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39588         * tests/unictype/test-bidi_byname.c: Likewise.
39589         * tests/unictype/test-bidi_name.c: Likewise.
39590         * tests/unictype/test-bidi_of.c: Likewise.
39591         * tests/unictype/test-bidi_test.c: Likewise.
39592         * tests/unictype/test-block_list.c: Likewise.
39593         * tests/unictype/test-block_of.c: Likewise.
39594         * tests/unictype/test-block_test.c: Likewise.
39595         * tests/unictype/test-categ_and.c: Likewise.
39596         * tests/unictype/test-categ_and_not.c: Likewise.
39597         * tests/unictype/test-categ_byname.c: Likewise.
39598         * tests/unictype/test-categ_name.c: Likewise.
39599         * tests/unictype/test-categ_none.c: Likewise.
39600         * tests/unictype/test-categ_of.c: Likewise.
39601         * tests/unictype/test-categ_or.c: Likewise.
39602         * tests/unictype/test-categ_test_withtable.c: Likewise.
39603         * tests/unictype/test-combining.c: Likewise.
39604         * tests/unictype/test-decdigit.c: Likewise.
39605         * tests/unictype/test-digit.c: Likewise.
39606         * tests/unictype/test-mirror.c: Likewise.
39607         * tests/unictype/test-numeric.c: Likewise.
39608         * tests/unictype/test-pr_byname.c: Likewise.
39609         * tests/unictype/test-pr_test.c: Likewise.
39610         * tests/unictype/test-predicate-part1.h: Likewise.
39611         * tests/unictype/test-scripts.c: Likewise.
39612         * tests/unictype/test-sy_c_ident.c: Likewise.
39613         * tests/unictype/test-sy_java_ident.c: Likewise.
39614         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39615         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39616         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39617         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39618         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39619         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39620         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39621         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39622         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39623         * tests/uninorm/test-compat-decomposition.c: Likewise.
39624         * tests/uninorm/test-composition.c: Likewise.
39625         * tests/uninorm/test-decomposing-form.c: Likewise.
39626         * tests/uninorm/test-decomposition.c: Likewise.
39627         * tests/uninorm/test-u8-nfc.c: Likewise.
39628         * tests/uninorm/test-u8-nfd.c: Likewise.
39629         * tests/uninorm/test-u8-nfkc.c: Likewise.
39630         * tests/uninorm/test-u8-nfkd.c: Likewise.
39631         * tests/uninorm/test-u8-normcmp.c: Likewise.
39632         * tests/uninorm/test-u8-normcoll.c: Likewise.
39633         * tests/uninorm/test-u16-nfc.c: Likewise.
39634         * tests/uninorm/test-u16-nfd.c: Likewise.
39635         * tests/uninorm/test-u16-nfkc.c: Likewise.
39636         * tests/uninorm/test-u16-nfkd.c: Likewise.
39637         * tests/uninorm/test-u16-normcmp.c: Likewise.
39638         * tests/uninorm/test-u16-normcoll.c: Likewise.
39639         * tests/uninorm/test-u32-nfc.c: Likewise.
39640         * tests/uninorm/test-u32-nfd.c: Likewise.
39641         * tests/uninorm/test-u32-nfkc.c: Likewise.
39642         * tests/uninorm/test-u32-nfkd.c: Likewise.
39643         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39644         * tests/uninorm/test-u32-normcmp.c: Likewise.
39645         * tests/uninorm/test-u32-normcoll.c: Likewise.
39646         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39647         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39648         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39649         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39650         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39651         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39652         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39653         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39654         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39655         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39656         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39657         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39658         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39659         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39660         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39661         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39662         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39663         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39664         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39665         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39666         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39667         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39668         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39669         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39670         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39671         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39672         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39673         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39674         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39675         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39676         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39677         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39678         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39679         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39680         * tests/uniwidth/test-u8-width.c: Likewise.
39681         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39682         * tests/uniwidth/test-u16-width.c: Likewise.
39683         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39684         * tests/uniwidth/test-u32-width.c: Likewise.
39685         * tests/uniwidth/test-uc_width.c: Likewise.
39686         * tests/uniwidth/test-uc_width2.c: Likewise.
39687         * modules/acl-tests (Files): Add tests/macros.h.
39688         * modules/areadlink-tests (Files): Likewise.
39689         * modules/areadlink-with-size-tests (Files): Likewise.
39690         * modules/areadlinkat-tests (Files): Likewise.
39691         * modules/areadlinkat-with-size-tests (Files): Likewise.
39692         * modules/argmatch-tests (Files): Likewise.
39693         * modules/argv-iter-tests (Files): Likewise.
39694         * modules/array-list-tests (Files): Likewise.
39695         * modules/array-mergesort-tests (Files): Likewise.
39696         * modules/array-oset-tests (Files): Likewise.
39697         * modules/avltree-list-tests (Files): Likewise.
39698         * modules/avltree-oset-tests (Files): Likewise.
39699         * modules/avltreehash-list-tests (Files): Likewise.
39700         * modules/base64-tests (Files): Likewise.
39701         * modules/binary-io-tests (Files): Likewise.
39702         * modules/bitrotate-tests (Files): Likewise.
39703         * modules/btowc-tests (Files): Likewise.
39704         * modules/byteswap-tests (Files): Likewise.
39705         * modules/c-ctype-tests (Files): Likewise.
39706         * modules/c-stack-tests (Files): Likewise.
39707         * modules/c-strcase-tests (Files): Likewise.
39708         * modules/c-strcasestr-tests (Files): Likewise.
39709         * modules/c-strstr-tests (Files): Likewise.
39710         * modules/canonicalize-lgpl-tests (Files): Likewise.
39711         * modules/canonicalize-tests (Files): Likewise.
39712         * modules/carray-list-tests (Files): Likewise.
39713         * modules/ceilf-tests (Files): Likewise.
39714         * modules/ceill-tests (Files): Likewise.
39715         * modules/chown-tests (Files): Likewise.
39716         * modules/cloexec-tests (Files): Likewise.
39717         * modules/copy-file-tests (Files): Likewise.
39718         * modules/count-one-bits-tests (Files): Likewise.
39719         * modules/dprintf-posix-tests (Files): Likewise.
39720         * modules/dup2-tests (Files): Likewise.
39721         * modules/dup3-tests (Files): Likewise.
39722         * modules/duplocale-tests (Files): Likewise.
39723         * modules/fbufmode-tests (Files): Likewise.
39724         * modules/fchdir-tests (Files): Likewise.
39725         * modules/fcntl-safer-tests (Files): Likewise.
39726         * modules/fcntl-tests (Files): Likewise.
39727         * modules/fdopendir-tests (Files): Likewise.
39728         * modules/fdutimensat-tests (Files): Likewise.
39729         * modules/fflush-tests (Files): Likewise.
39730         * modules/filevercmp-tests (Files): Likewise.
39731         * modules/flock-tests (Files): Likewise.
39732         * modules/floorf-tests (Files): Likewise.
39733         * modules/floorl-tests (Files): Likewise.
39734         * modules/fnmatch-tests (Files): Likewise.
39735         * modules/fopen-safer-tests (Files): Likewise.
39736         * modules/fopen-tests (Files): Likewise.
39737         * modules/fpending-tests (Files): Likewise.
39738         * modules/fprintf-posix-tests (Files): Likewise.
39739         * modules/fpurge-tests (Files): Likewise.
39740         * modules/freadable-tests (Files): Likewise.
39741         * modules/freadahead-tests (Files): Likewise.
39742         * modules/freading-tests (Files): Likewise.
39743         * modules/freadptr-tests (Files): Likewise.
39744         * modules/freadseek-tests (Files): Likewise.
39745         * modules/freopen-tests (Files): Likewise.
39746         * modules/frexp-nolibm-tests (Files): Likewise.
39747         * modules/frexp-tests (Files): Likewise.
39748         * modules/frexpl-nolibm-tests (Files): Likewise.
39749         * modules/frexpl-tests (Files): Likewise.
39750         * modules/fseek-tests (Files): Likewise.
39751         * modules/fseeko-tests (Files): Likewise.
39752         * modules/fstrcmp-tests (Files): Likewise.
39753         * modules/fsync-tests (Files): Likewise.
39754         * modules/ftell-tests (Files): Likewise.
39755         * modules/ftello-tests (Files): Likewise.
39756         * modules/func-tests (Files): Likewise.
39757         * modules/futimens-tests (Files): Likewise.
39758         * modules/fwritable-tests (Files): Likewise.
39759         * modules/fwriting-tests (Files): Likewise.
39760         * modules/getcwd-tests (Files): Likewise.
39761         * modules/getdate-tests (Files): Likewise.
39762         * modules/getdelim-tests (Files): Likewise.
39763         * modules/getdtablesize-tests (Files): Likewise.
39764         * modules/getgroups-tests (Files): Likewise.
39765         * modules/getline-tests (Files): Likewise.
39766         * modules/getndelim2-tests (Files): Likewise.
39767         * modules/glob-tests (Files): Likewise.
39768         * modules/hash-tests (Files): Likewise.
39769         * modules/i-ring-tests (Files): Likewise.
39770         * modules/iconv-tests (Files): Likewise.
39771         * modules/iconv_open-utf-tests (Files): Likewise.
39772         * modules/idpriv-drop-tests (Files): Likewise.
39773         * modules/idpriv-droptemp-tests (Files): Likewise.
39774         * modules/inet_ntop-tests (Files): Likewise.
39775         * modules/inet_pton-tests (Files): Likewise.
39776         * modules/isblank-tests (Files): Likewise.
39777         * modules/isfinite-tests (Files): Likewise.
39778         * modules/isinf-tests (Files): Likewise.
39779         * modules/isnan-tests (Files): Likewise.
39780         * modules/isnand-nolibm-tests (Files): Likewise.
39781         * modules/isnand-tests (Files): Likewise.
39782         * modules/isnanf-nolibm-tests (Files): Likewise.
39783         * modules/isnanf-tests (Files): Likewise.
39784         * modules/isnanl-nolibm-tests (Files): Likewise.
39785         * modules/isnanl-tests (Files): Likewise.
39786         * modules/lchown-tests (Files): Likewise.
39787         * modules/ldexpl-tests (Files): Likewise.
39788         * modules/link-tests (Files): Likewise.
39789         * modules/linkat-tests (Files): Likewise.
39790         * modules/linked-list-tests (Files): Likewise.
39791         * modules/linkedhash-list-tests (Files): Likewise.
39792         * modules/localename-tests (Files): Likewise.
39793         * modules/lseek-tests (Files): Likewise.
39794         * modules/lstat-tests (Files): Likewise.
39795         * modules/mbmemcasecmp-tests (Files): Likewise.
39796         * modules/mbmemcasecoll-tests (Files): Likewise.
39797         * modules/mbrtowc-tests (Files): Likewise.
39798         * modules/mbscasecmp-tests (Files): Likewise.
39799         * modules/mbscasestr-tests (Files): Likewise.
39800         * modules/mbschr-tests (Files): Likewise.
39801         * modules/mbscspn-tests (Files): Likewise.
39802         * modules/mbsinit-tests (Files): Likewise.
39803         * modules/mbsncasecmp-tests (Files): Likewise.
39804         * modules/mbsnrtowcs-tests (Files): Likewise.
39805         * modules/mbspbrk-tests (Files): Likewise.
39806         * modules/mbspcasecmp-tests (Files): Likewise.
39807         * modules/mbsrchr-tests (Files): Likewise.
39808         * modules/mbsrtowcs-tests (Files): Likewise.
39809         * modules/mbsspn-tests (Files): Likewise.
39810         * modules/mbsstr-tests (Files): Likewise.
39811         * modules/memchr-tests (Files): Likewise.
39812         * modules/memchr2-tests (Files): Likewise.
39813         * modules/memcmp-tests (Files): Likewise.
39814         * modules/memmem-tests (Files): Likewise.
39815         * modules/memrchr-tests (Files): Likewise.
39816         * modules/mkdir-tests (Files): Likewise.
39817         * modules/mkfifo-tests (Files): Likewise.
39818         * modules/mkfifoat-tests (Files): Likewise.
39819         * modules/mknod-tests (Files): Likewise.
39820         * modules/nanosleep-tests (Files): Likewise.
39821         * modules/nl_langinfo-tests (Files): Likewise.
39822         * modules/obstack-printf-tests (Files): Likewise.
39823         * modules/open-tests (Files): Likewise.
39824         * modules/openat-tests (Files): Likewise.
39825         * modules/pipe-filter-gi-tests (Files): Likewise.
39826         * modules/pipe-filter-ii-tests (Files): Likewise.
39827         * modules/pipe2-tests (Files): Likewise.
39828         * modules/popen-safer-tests (Files): Likewise.
39829         * modules/popen-tests (Files): Likewise.
39830         * modules/posixtm-tests (Files): Likewise.
39831         * modules/pread-tests (Files): Likewise.
39832         * modules/printf-frexp-tests (Files): Likewise.
39833         * modules/printf-frexpl-tests (Files): Likewise.
39834         * modules/printf-posix-tests (Files): Likewise.
39835         * modules/priv-set-tests (Files): Likewise.
39836         * modules/quotearg-tests (Files): Likewise.
39837         * modules/random_r-tests (Files): Likewise.
39838         * modules/rawmemchr-tests (Files): Likewise.
39839         * modules/rbtree-list-tests (Files): Likewise.
39840         * modules/rbtree-oset-tests (Files): Likewise.
39841         * modules/rbtreehash-list-tests (Files): Likewise.
39842         * modules/readlink-tests (Files): Likewise.
39843         * modules/remove-tests (Files): Likewise.
39844         * modules/rename-tests (Files): Likewise.
39845         * modules/renameat-tests (Files): Likewise.
39846         * modules/rmdir-tests (Files): Likewise.
39847         * modules/round-tests (Files): Likewise.
39848         * modules/roundf-tests (Files): Likewise.
39849         * modules/roundl-tests (Files): Likewise.
39850         * modules/safe-alloc-tests (Files): Likewise.
39851         * modules/setenv-tests (Files): Likewise.
39852         * modules/sigaction-tests (Files): Likewise.
39853         * modules/signbit-tests (Files): Likewise.
39854         * modules/sleep-tests (Files): Likewise.
39855         * modules/snprintf-posix-tests (Files): Likewise.
39856         * modules/snprintf-tests (Files): Likewise.
39857         * modules/sprintf-posix-tests (Files): Likewise.
39858         * modules/stat-tests (Files): Likewise.
39859         * modules/stat-time-tests (Files): Likewise.
39860         * modules/strcasestr-tests (Files): Likewise.
39861         * modules/strchrnul-tests (Files): Likewise.
39862         * modules/strerror-tests (Files): Likewise.
39863         * modules/striconv-tests (Files): Likewise.
39864         * modules/striconveh-tests (Files): Likewise.
39865         * modules/striconveha-tests (Files): Likewise.
39866         * modules/strsignal-tests (Files): Likewise.
39867         * modules/strstr-tests (Files): Likewise.
39868         * modules/strtod-tests (Files): Likewise.
39869         * modules/strverscmp-tests (Files): Likewise.
39870         * modules/symlink-tests (Files): Likewise.
39871         * modules/symlinkat-tests (Files): Likewise.
39872         * modules/trunc-tests (Files): Likewise.
39873         * modules/truncf-tests (Files): Likewise.
39874         * modules/truncl-tests (Files): Likewise.
39875         * modules/uname-tests (Files): Likewise.
39876         * modules/unicase/cased-tests (Files): Likewise.
39877         * modules/unicase/ignorable-tests (Files): Likewise.
39878         * modules/unicase/locale-language-tests (Files): Likewise.
39879         * modules/unicase/tolower-tests (Files): Likewise.
39880         * modules/unicase/totitle-tests (Files): Likewise.
39881         * modules/unicase/toupper-tests (Files): Likewise.
39882         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39883         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39884         * modules/unicase/u8-casefold-tests (Files): Likewise.
39885         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39886         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39887         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39888         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39889         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39890         * modules/unicase/u8-tolower-tests (Files): Likewise.
39891         * modules/unicase/u8-totitle-tests (Files): Likewise.
39892         * modules/unicase/u8-toupper-tests (Files): Likewise.
39893         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39894         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39895         * modules/unicase/u16-casefold-tests (Files): Likewise.
39896         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39897         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39898         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39899         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39900         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39901         * modules/unicase/u16-tolower-tests (Files): Likewise.
39902         * modules/unicase/u16-totitle-tests (Files): Likewise.
39903         * modules/unicase/u16-toupper-tests (Files): Likewise.
39904         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39905         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39906         * modules/unicase/u32-casefold-tests (Files): Likewise.
39907         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39908         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39909         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39910         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39911         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39912         * modules/unicase/u32-tolower-tests (Files): Likewise.
39913         * modules/unicase/u32-totitle-tests (Files): Likewise.
39914         * modules/unicase/u32-toupper-tests (Files): Likewise.
39915         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39916         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39917         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39918         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39919         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39920         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39921         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39922         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39923         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39924         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39925         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39926         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39927         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39928         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39929         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39930         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39931         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39932         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39933         * modules/unictype/block-list-tests (Files): Likewise.
39934         * modules/unictype/block-of-tests (Files): Likewise.
39935         * modules/unictype/block-test-tests (Files): Likewise.
39936         * modules/unictype/category-C-tests (Files): Likewise.
39937         * modules/unictype/category-Cc-tests (Files): Likewise.
39938         * modules/unictype/category-Cf-tests (Files): Likewise.
39939         * modules/unictype/category-Cn-tests (Files): Likewise.
39940         * modules/unictype/category-Co-tests (Files): Likewise.
39941         * modules/unictype/category-Cs-tests (Files): Likewise.
39942         * modules/unictype/category-L-tests (Files): Likewise.
39943         * modules/unictype/category-Ll-tests (Files): Likewise.
39944         * modules/unictype/category-Lm-tests (Files): Likewise.
39945         * modules/unictype/category-Lo-tests (Files): Likewise.
39946         * modules/unictype/category-Lt-tests (Files): Likewise.
39947         * modules/unictype/category-Lu-tests (Files): Likewise.
39948         * modules/unictype/category-M-tests (Files): Likewise.
39949         * modules/unictype/category-Mc-tests (Files): Likewise.
39950         * modules/unictype/category-Me-tests (Files): Likewise.
39951         * modules/unictype/category-Mn-tests (Files): Likewise.
39952         * modules/unictype/category-N-tests (Files): Likewise.
39953         * modules/unictype/category-Nd-tests (Files): Likewise.
39954         * modules/unictype/category-Nl-tests (Files): Likewise.
39955         * modules/unictype/category-No-tests (Files): Likewise.
39956         * modules/unictype/category-P-tests (Files): Likewise.
39957         * modules/unictype/category-Pc-tests (Files): Likewise.
39958         * modules/unictype/category-Pd-tests (Files): Likewise.
39959         * modules/unictype/category-Pe-tests (Files): Likewise.
39960         * modules/unictype/category-Pf-tests (Files): Likewise.
39961         * modules/unictype/category-Pi-tests (Files): Likewise.
39962         * modules/unictype/category-Po-tests (Files): Likewise.
39963         * modules/unictype/category-Ps-tests (Files): Likewise.
39964         * modules/unictype/category-S-tests (Files): Likewise.
39965         * modules/unictype/category-Sc-tests (Files): Likewise.
39966         * modules/unictype/category-Sk-tests (Files): Likewise.
39967         * modules/unictype/category-Sm-tests (Files): Likewise.
39968         * modules/unictype/category-So-tests (Files): Likewise.
39969         * modules/unictype/category-Z-tests (Files): Likewise.
39970         * modules/unictype/category-Zl-tests (Files): Likewise.
39971         * modules/unictype/category-Zp-tests (Files): Likewise.
39972         * modules/unictype/category-Zs-tests (Files): Likewise.
39973         * modules/unictype/category-and-not-tests (Files): Likewise.
39974         * modules/unictype/category-and-tests (Files): Likewise.
39975         * modules/unictype/category-byname-tests (Files): Likewise.
39976         * modules/unictype/category-name-tests (Files): Likewise.
39977         * modules/unictype/category-none-tests (Files): Likewise.
39978         * modules/unictype/category-of-tests (Files): Likewise.
39979         * modules/unictype/category-or-tests (Files): Likewise.
39980         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39981         * modules/unictype/combining-class-tests (Files): Likewise.
39982         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39983         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39984         * modules/unictype/ctype-blank-tests (Files): Likewise.
39985         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39986         * modules/unictype/ctype-digit-tests (Files): Likewise.
39987         * modules/unictype/ctype-graph-tests (Files): Likewise.
39988         * modules/unictype/ctype-lower-tests (Files): Likewise.
39989         * modules/unictype/ctype-print-tests (Files): Likewise.
39990         * modules/unictype/ctype-punct-tests (Files): Likewise.
39991         * modules/unictype/ctype-space-tests (Files): Likewise.
39992         * modules/unictype/ctype-upper-tests (Files): Likewise.
39993         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39994         * modules/unictype/decimal-digit-tests (Files): Likewise.
39995         * modules/unictype/digit-tests (Files): Likewise.
39996         * modules/unictype/mirror-tests (Files): Likewise.
39997         * modules/unictype/numeric-tests (Files): Likewise.
39998         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39999         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40000         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40001         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40002         Likewise.
40003         * modules/unictype/property-bidi-block-separator-tests (Files):
40004         Likewise.
40005         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40006         Likewise.
40007         * modules/unictype/property-bidi-common-separator-tests (Files):
40008         Likewise.
40009         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40010         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40011         Likewise.
40012         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40013         Likewise.
40014         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40015         Likewise.
40016         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40017         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40018         Likewise.
40019         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40020         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40021         Likewise.
40022         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40023         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40024         * modules/unictype/property-bidi-segment-separator-tests (Files):
40025         Likewise.
40026         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40027         * modules/unictype/property-byname-tests (Files): Likewise.
40028         * modules/unictype/property-combining-tests (Files): Likewise.
40029         * modules/unictype/property-composite-tests (Files): Likewise.
40030         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40031         * modules/unictype/property-dash-tests (Files): Likewise.
40032         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40033         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40034         Likewise.
40035         * modules/unictype/property-deprecated-tests (Files): Likewise.
40036         * modules/unictype/property-diacritic-tests (Files): Likewise.
40037         * modules/unictype/property-extender-tests (Files): Likewise.
40038         * modules/unictype/property-format-control-tests (Files): Likewise.
40039         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40040         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40041         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40042         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40043         * modules/unictype/property-hyphen-tests (Files): Likewise.
40044         * modules/unictype/property-id-continue-tests (Files): Likewise.
40045         * modules/unictype/property-id-start-tests (Files): Likewise.
40046         * modules/unictype/property-ideographic-tests (Files): Likewise.
40047         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40048         * modules/unictype/property-ids-trinary-operator-tests (Files):
40049         Likewise.
40050         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40051         * modules/unictype/property-iso-control-tests (Files): Likewise.
40052         * modules/unictype/property-join-control-tests (Files): Likewise.
40053         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40054         * modules/unictype/property-line-separator-tests (Files): Likewise.
40055         * modules/unictype/property-logical-order-exception-tests (Files):
40056         Likewise.
40057         * modules/unictype/property-lowercase-tests (Files): Likewise.
40058         * modules/unictype/property-math-tests (Files): Likewise.
40059         * modules/unictype/property-non-break-tests (Files): Likewise.
40060         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40061         * modules/unictype/property-numeric-tests (Files): Likewise.
40062         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40063         * modules/unictype/property-other-default-ignorable-code-point-tests
40064         (Files): Likewise.
40065         * modules/unictype/property-other-grapheme-extend-tests (Files):
40066         Likewise.
40067         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40068         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40069         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40070         * modules/unictype/property-other-math-tests (Files): Likewise.
40071         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40072         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40073         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40074         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40075         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40076         * modules/unictype/property-private-use-tests (Files): Likewise.
40077         * modules/unictype/property-punctuation-tests (Files): Likewise.
40078         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40079         * modules/unictype/property-radical-tests (Files): Likewise.
40080         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40081         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40082         * modules/unictype/property-space-tests (Files): Likewise.
40083         * modules/unictype/property-terminal-punctuation-tests (Files):
40084         Likewise.
40085         * modules/unictype/property-test-tests (Files): Likewise.
40086         * modules/unictype/property-titlecase-tests (Files): Likewise.
40087         * modules/unictype/property-unassigned-code-value-tests (Files):
40088         Likewise.
40089         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40090         * modules/unictype/property-uppercase-tests (Files): Likewise.
40091         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40092         * modules/unictype/property-white-space-tests (Files): Likewise.
40093         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40094         * modules/unictype/property-xid-start-tests (Files): Likewise.
40095         * modules/unictype/property-zero-width-tests (Files): Likewise.
40096         * modules/unictype/scripts-tests (Files): Likewise.
40097         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40098         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40099         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40100         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40101         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40102         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40103         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40104         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40105         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40106         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40107         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40108         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40109         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40110         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40111         * modules/uninorm/composition-tests (Files): Likewise.
40112         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40113         * modules/uninorm/decomposition-tests (Files): Likewise.
40114         * modules/uninorm/filter-tests (Files): Likewise.
40115         * modules/uninorm/nfc-tests (Files): Likewise.
40116         * modules/uninorm/nfd-tests (Files): Likewise.
40117         * modules/uninorm/nfkc-tests (Files): Likewise.
40118         * modules/uninorm/nfkd-tests (Files): Likewise.
40119         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40120         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40121         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40122         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40123         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40124         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40125         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40126         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40127         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40128         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40129         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40130         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40131         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40132         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40133         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40134         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40135         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40136         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40137         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40138         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40139         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40140         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40141         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40142         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40143         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40144         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40145         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40146         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40147         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40148         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40149         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40150         * modules/uniwidth/u8-width-tests (Files): Likewise.
40151         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40152         * modules/uniwidth/u16-width-tests (Files): Likewise.
40153         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40154         * modules/uniwidth/u32-width-tests (Files): Likewise.
40155         * modules/uniwidth/width-tests (Files): Likewise.
40156         * modules/unlink-tests (Files): Likewise.
40157         * modules/unsetenv-tests (Files): Likewise.
40158         * modules/usleep-tests (Files): Likewise.
40159         * modules/utimens-tests (Files): Likewise.
40160         * modules/utimensat-tests (Files): Likewise.
40161         * modules/vasnprintf-posix-tests (Files): Likewise.
40162         * modules/vasnprintf-tests (Files): Likewise.
40163         * modules/vasprintf-posix-tests (Files): Likewise.
40164         * modules/vasprintf-tests (Files): Likewise.
40165         * modules/vdprintf-posix-tests (Files): Likewise.
40166         * modules/vfprintf-posix-tests (Files): Likewise.
40167         * modules/vprintf-posix-tests (Files): Likewise.
40168         * modules/vsnprintf-posix-tests (Files): Likewise.
40169         * modules/vsnprintf-tests (Files): Likewise.
40170         * modules/vsprintf-posix-tests (Files): Likewise.
40171         * modules/wcrtomb-tests (Files): Likewise.
40172         * modules/wcsnrtombs-tests (Files): Likewise.
40173         * modules/wcsrtombs-tests (Files): Likewise.
40174         * modules/wctype-tests (Files): Likewise.
40175         * modules/wcwidth-tests (Files): Likewise.
40176         * modules/xmemdup0-tests (Files): Likewise.
40177         * modules/xprintf-posix-tests (Files): Likewise.
40178         * modules/xvasprintf-tests (Files): Likewise.
40179
40180 2009-12-24  Eric Blake  <ebb9@byu.net>
40181
40182         test-nanosleep: fix typo
40183         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40184         patch.
40185         Reported by Bruno Haible.
40186
40187 2009-12-24  Bruno Haible  <bruno@clisp.org>
40188
40189         Reduce namespace pollution on glibc systems.
40190         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40191         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40192         systems.
40193         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40194         <getopt.h> on glibc systems.
40195         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40196         systems.
40197         * lib/fcntl.c: Include <unistd.h> here instead.
40198
40199 2009-12-24  Bruno Haible  <bruno@clisp.org>
40200
40201         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40202
40203 2009-12-24  Eric Blake  <ebb9@byu.net>
40204
40205         tests: add signature checks
40206         * tests/signature.h (SIGNATURE_CHECK): New file.
40207         * modules/atexit-tests (Files): Use it.
40208         * modules/btowc-tests (Files): Likewise.
40209         * modules/canonicalize-lgpl-tests (Files): Likewise.
40210         * modules/ceilf-tests (Files): Likewise.
40211         * modules/ceill-tests (Files): Likewise.
40212         * modules/chown-tests (Files): Likewise.
40213         * modules/dprintf-posix-tests (Files): Likewise.
40214         * modules/dup2-tests (Files): Likewise.
40215         * modules/dup3-tests (Files): Likewise.
40216         * modules/duplocale-tests (Files): Likewise.
40217         * modules/fchdir-tests (Files): Likewise.
40218         * modules/fcntl-tests (Files): Likewise.
40219         * modules/fdopendir-tests (Files): Likewise.
40220         * modules/fflush-tests (Files): Likewise.
40221         * modules/flock-tests (Files): Likewise.
40222         * modules/floorf-tests (Files): Likewise.
40223         * modules/floorl-tests (Files): Likewise.
40224         * modules/fnmatch-tests (Files): Likewise.
40225         * modules/fopen-tests (Files): Likewise.
40226         * modules/fprintf-posix-tests (Files): Likewise.
40227         * modules/freopen-tests (Files): Likewise.
40228         * modules/frexp-nolibm-tests (Files): Likewise.
40229         * modules/frexp-tests (Files): Likewise.
40230         * modules/frexpl-nolibm-tests (Files): Likewise.
40231         * modules/frexpl-tests (Files): Likewise.
40232         * modules/fseek-tests (Files): Likewise.
40233         * modules/fseeko-tests (Files): Likewise.
40234         * modules/fsync-tests (Files): Likewise.
40235         * modules/ftell-tests (Files): Likewise.
40236         * modules/ftello-tests (Files): Likewise.
40237         * modules/futimens-tests (Files): Likewise.
40238         * modules/getaddrinfo-tests (Files): Likewise.
40239         * modules/getcwd-tests (Files): Likewise.
40240         * modules/getdelim-tests (Files): Likewise.
40241         * modules/getdtablesize-tests (Files): Likewise.
40242         * modules/getgroups-tests (Files): Likewise.
40243         * modules/gethostname-tests (Files): Likewise.
40244         * modules/getline-tests (Files): Likewise.
40245         * modules/getopt-posix-tests (Files): Likewise.
40246         * modules/gettimeofday-tests (Files): Likewise.
40247         * modules/glob-tests (Files): Likewise.
40248         * modules/iconv-tests (Files): Likewise.
40249         * modules/inet_ntop-tests (Files): Likewise.
40250         * modules/inet_pton-tests (Files): Likewise.
40251         * modules/isblank-tests (Files): Likewise.
40252         * modules/lchown-tests (Files): Likewise.
40253         * modules/ldexpl-tests (Files): Likewise.
40254         * modules/link-tests (Files): Likewise.
40255         * modules/linkat-tests (Files): Likewise.
40256         * modules/lseek-tests (Files): Likewise.
40257         * modules/lstat-tests (Files): Likewise.
40258         * modules/mbrtowc-tests (Files): Likewise.
40259         * modules/mbsinit-tests (Files): Likewise.
40260         * modules/mbsnrtowcs-tests (Files): Likewise.
40261         * modules/mbsrtowcs-tests (Files): Likewise.
40262         * modules/memchr-tests (Files): Likewise.
40263         * modules/memcmp-tests (Files): Likewise.
40264         * modules/memmem-tests (Files): Likewise.
40265         * modules/memrchr-tests (Files): Likewise.
40266         * modules/mkdir-tests (Files): Likewise.
40267         * modules/mkfifo-tests (Files): Likewise.
40268         * modules/mkfifoat-tests (Files): Likewise.
40269         * modules/mknod-tests (Files): Likewise.
40270         * modules/nanosleep-tests (Files): Likewise.
40271         * modules/nl_langinfo-tests (Files): Likewise.
40272         * modules/obstack-printf-tests (Files): Likewise.
40273         * modules/open-tests (Files): Likewise.
40274         * modules/openat-tests (Files): Likewise.
40275         * modules/perror-tests (Files): Likewise.
40276         * modules/pipe2-tests (Files): Likewise.
40277         * modules/poll-tests (Files): Likewise.
40278         * modules/popen-tests (Files): Likewise.
40279         * modules/posix_spawn-tests (Files): Likewise.
40280         * modules/posix_spawnp-tests (Files): Likewise.
40281         * modules/pread-tests (Files): Likewise.
40282         * modules/printf-posix-tests (Files): Likewise.
40283         * modules/pty-tests (Files): Likewise.
40284         * modules/random_r-tests (Files): Likewise.
40285         * modules/rawmemchr-tests (Files): Likewise.
40286         * modules/readlink-tests (Files): Likewise.
40287         * modules/remove-tests (Files): Likewise.
40288         * modules/rename-tests (Files): Likewise.
40289         * modules/renameat-tests (Files): Likewise.
40290         * modules/rmdir-tests (Files): Likewise.
40291         * modules/round-tests (Files): Likewise.
40292         * modules/roundf-tests (Files): Likewise.
40293         * modules/roundl-tests (Files): Likewise.
40294         * modules/select-tests (Files): Likewise.
40295         * modules/setenv-tests (Files): Likewise.
40296         * modules/sigaction-tests (Files): Likewise.
40297         * modules/sleep-tests (Files): Likewise.
40298         * modules/snprintf-posix-tests (Files): Likewise.
40299         * modules/snprintf-tests (Files): Likewise.
40300         * modules/sprintf-posix-tests (Files): Likewise.
40301         * modules/stat-tests (Files): Likewise.
40302         * modules/strcasestr-tests (Files): Likewise.
40303         * modules/strchrnul-tests (Files): Likewise.
40304         * modules/strerror-tests (Files): Likewise.
40305         * modules/strsignal-tests (Files): Likewise.
40306         * modules/strstr-tests (Files): Likewise.
40307         * modules/strtod-tests (Files): Likewise.
40308         * modules/strverscmp-tests (Files): Likewise.
40309         * modules/symlink-tests (Files): Likewise.
40310         * modules/symlinkat-tests (Files): Likewise.
40311         * modules/times-tests (Files): Likewise.
40312         * modules/trunc-tests (Files): Likewise.
40313         * modules/truncf-tests (Files): Likewise.
40314         * modules/truncl-tests (Files): Likewise.
40315         * modules/tsearch-tests (Files): Likewise.
40316         * modules/uname-tests (Files): Likewise.
40317         * modules/unlink-tests (Files): Likewise.
40318         * modules/unsetenv-tests (Files): Likewise.
40319         * modules/usleep-tests (Files): Likewise.
40320         * modules/utimensat-tests (Files): Likewise.
40321         * modules/vasprintf-tests (Files): Likewise.
40322         * modules/vdprintf-posix-tests (Files): Likewise.
40323         * modules/vfprintf-posix-tests (Files): Likewise.
40324         * modules/vprintf-posix-tests (Files): Likewise.
40325         * modules/vsnprintf-posix-tests (Files): Likewise.
40326         * modules/vsnprintf-tests (Files): Likewise.
40327         * modules/vsprintf-posix-tests (Files): Likewise.
40328         * modules/wcrtomb-tests (Files): Likewise.
40329         * modules/wcsnrtombs-tests (Files): Likewise.
40330         * modules/wcsrtombs-tests (Files): Likewise.
40331         * modules/wcwidth-tests (Files): Likewise.
40332         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40333         * tests/test-isinf.c (isinf): Likewise.
40334         * tests/test-isnan.c (isnan): Likewise.
40335         * tests/test-signbit.c (signbit): Likewise.
40336         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40337         declaration, either as macro or with correct signature.
40338         (select): Ensure function under test is declared with correct
40339         signature in correct header.
40340         * tests/test-atexit.c (atexit): Likewise.
40341         * tests/test-btowc.c (btowc): Likewise.
40342         * tests/test-canonicalize-lgpl.c (realpath)
40343         (canonicalize_file_name): Likewise.
40344         * tests/test-ceilf1.c (ceilf): Likewise.
40345         * tests/test-ceill.c (ceill): Likewise.
40346         * tests/test-chown.c (chown): Likewise.
40347         * tests/test-dprintf-posix.c (dprintf): Likewise.
40348         * tests/test-dup2.c (dup2): Likewise.
40349         * tests/test-dup3.c (dup3): Likewise.
40350         * tests/test-duplocale.c (duplocale): Likewise.
40351         * tests/test-fchdir.c (fchdir): Likewise.
40352         * tests/test-fchownat.c (fchownat): Likewise.
40353         * tests/test-fcntl.c (fcntl): Likewise.
40354         * tests/test-fdopendir.c (fdopendir): Likewise.
40355         * tests/test-fflush.c (fflush): Likewise.
40356         * tests/test-flock.c (flock): Likewise.
40357         * tests/test-floorf1.c (floorf): Likewise.
40358         * tests/test-floorl.c (floorl): Likewise.
40359         * tests/test-fnmatch.c (fnmatch): Likewise.
40360         * tests/test-fopen.c (fopen): Likewise.
40361         * tests/test-fprintf-posix.c (fprintf): Likewise.
40362         * tests/test-freopen.c (freopen): Likewise.
40363         * tests/test-frexp.c (frexp): Likewise.
40364         * tests/test-frexpl.c (frexpl): Likewise.
40365         * tests/test-fseek.c (fseek): Likewise.
40366         * tests/test-fseeko.c (fseeko): Likewise.
40367         * tests/test-fstatat.c (fstatat): Likewise.
40368         * tests/test-fsync.c (fsync): Likewise.
40369         * tests/test-ftell.c (ftell): Likewise.
40370         * tests/test-ftello.c (ftello): Likewise.
40371         * tests/test-futimens.c (futimens): Likewise.
40372         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40373         (gai_strerror): Likewise.
40374         * tests/test-getcwd.c (getcwd): Likewise.
40375         * tests/test-getdelim.c (getdelim): Likewise.
40376         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40377         * tests/test-getgroups.c (getgroups): Likewise.
40378         * tests/test-gethostname.c (gethostname): Likewise.
40379         * tests/test-getline.c (getline): Likewise.
40380         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40381         Likewise.
40382         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40383         * tests/test-glob.c (glob, globfree): Likewise.
40384         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40385         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40386         * tests/test-inet_pton.c (inet_pton): Likewise.
40387         * tests/test-isblank.c (isblank): Likewise.
40388         * tests/test-lchown.c (lchown): Likewise.
40389         * tests/test-ldexpl.c (ldexpl): Likewise.
40390         * tests/test-link.c (link): Likewise.
40391         * tests/test-linkat.c (linkat): Likewise.
40392         * tests/test-lseek.c (lseek): Likewise.
40393         * tests/test-lstat.c (lstat): Likewise.
40394         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40395         * tests/test-mbsinit.c (mbsinit): Likewise.
40396         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40397         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40398         * tests/test-memchr.c (memchr): Likewise.
40399         * tests/test-memcmp.c (memcmp): Likewise.
40400         * tests/test-memmem.c (memmem): Likewise.
40401         * tests/test-memrchr.c (memrchr): Likewise.
40402         * tests/test-mkdir.c (mkdir): Likewise.
40403         * tests/test-mkdirat.c (mkdirat): Likewise.
40404         * tests/test-mkfifo.c (mkfifo): Likewise.
40405         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40406         * tests/test-mknod.c (mknod): Likewise.
40407         * tests/test-nanosleep.c (nanosleep): Likewise.
40408         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40409         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40410         Likewise.
40411         * tests/test-open.c (open): Likewise.
40412         * tests/test-openat.c (openat): Likewise.
40413         * tests/test-perror.c (perror): Likewise.
40414         * tests/test-pipe2.c (pipe2): Likewise.
40415         * tests/test-poll.c (poll): Likewise.
40416         * tests/test-popen.c (popen, pclose): Likewise.
40417         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40418         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40419         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40420         (posix_spawn_file_actions_destroy)
40421         (posix_spawn_file_actions_addclose)
40422         (posix_spawn_file_actions_addopen)
40423         (posix_spawn_file_actions_adddup2): Likewise.
40424         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40425         * tests/test-pread.c (pread): Likewise.
40426         * tests/test-printf-posix.c (printf): Likewise.
40427         * tests/test-pty.c (openpty, forkpty): Likewise.
40428         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40429         (random_r): Likewise.
40430         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40431         * tests/test-readlink.c (readlink): Likewise.
40432         * tests/test-remove.c (remove): Likewise.
40433         * tests/test-rename.c (rename): Likewise.
40434         * tests/test-renameat.c (renameat): Likewise.
40435         * tests/test-rmdir.c (rmdir): Likewise.
40436         * tests/test-round1.c (round): Likewise.
40437         * tests/test-roundf1.c (roundf): Likewise.
40438         * tests/test-roundl.c (roundl): Likewise.
40439         * tests/test-setenv.c (setenv): Likewise.
40440         * tests/test-sigaction.c (sigaction): Likewise.
40441         * tests/test-sleep.c (sleep): Likewise.
40442         * tests/test-snprintf.c (snprintf): Likewise.
40443         * tests/test-sprintf-posix.c (sprintf): Likewise.
40444         * tests/test-stat.c (stat): Likewise.
40445         * tests/test-stpncpy.c (stpncpy): Likewise.
40446         * tests/test-strcasestr.c (strcasestr): Likewise.
40447         * tests/test-strchrnul.c (strchrnul): Likewise.
40448         * tests/test-strerror.c (strerror): Likewise.
40449         * tests/test-strsignal.c (strsignal): Likewise.
40450         * tests/test-strstr.c (strstr): Likewise.
40451         * tests/test-strtod.c (strtod): Likewise.
40452         * tests/test-strverscmp.c (strverscmp): Likewise.
40453         * tests/test-symlink.c (symlink): Likewise.
40454         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40455         * tests/test-times.c (times): Likewise.
40456         * tests/test-trunc1.c (trunc): Likewise.
40457         * tests/test-truncf1.c (truncf): Likewise.
40458         * tests/test-truncl.c (truncl): Likewise.
40459         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40460         Likewise.
40461         * tests/test-uname.c (uname): Likewise.
40462         * tests/test-unlink.c (unlink): Likewise.
40463         * tests/test-unlinkat.c (unlinkat): Likewise.
40464         * tests/test-unsetenv.c (unsetenv): Likewise.
40465         * tests/test-usleep.c (usleep): Likewise.
40466         * tests/test-utimensat.c (utimensat): Likewise.
40467         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40468         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40469         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40470         * tests/test-vprintf-posix.c (vprintf): Likewise.
40471         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40472         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40473         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40474         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40475         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40476         * tests/test-wcwidth.c (wcwidth): Likewise.
40477
40478         build: pull in conditional headers during GNULIB_POSIXCHECK
40479         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40480         definitions from any conditionally-included headers.
40481         * lib/stdlib.in.h (includes): Likewise.
40482         * lib/unistd.in.h (includes): Likewise.
40483
40484 2009-12-24  Bruno Haible  <bruno@clisp.org>
40485
40486         * tests/test-argv-iter.c: Include header file being tested immediately
40487         after config.h.
40488         * tests/test-base64.c: Likewise.
40489         * tests/test-flock.c: Likewise.
40490         * tests/test-fsync.c: Likewise.
40491         * tests/test-getdate.c: Likewise.
40492         * tests/test-getndelim2.c: Likewise.
40493         * tests/test-isfinite.c: Likewise.
40494         * tests/test-isinf.c: Likewise.
40495         * tests/test-strerror.c: Likewise.
40496         * tests/test-strsignal.c: Likewise.
40497
40498 2009-12-23  Eric Blake  <ebb9@byu.net>
40499
40500         unistd: work around cygwin bug
40501         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40502         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40503         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40504
40505 2009-12-23  Bruno Haible  <bruno@clisp.org>
40506
40507         localename: More tests.
40508         * tests/test-localename.c (SIZEOF): New macro.
40509         (categories): New variable.
40510         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40511         test_locale_name_default): Add test w.r.t. thread locale.
40512         (test_locale_name_thread): New function.
40513         (main): Invoke it.
40514
40515         localename: Make aware of thread locale.
40516         * lib/localename.h (gl_locale_name_thread): New declaration.
40517         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40518         behaviour with respect to thread locale.
40519         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40520         <langinfo.h>, glthread/lock.h.
40521         (SIZE_BITS): New macro.
40522         (string_hash): New function.
40523         (struct hash_node): New type.
40524         (HASH_TABLE_SIZE): New macro.
40525         (struniq_hash_table, struniq_lock): New variables.
40526         (struniq): New function.
40527         (gl_locale_name_thread): New function.
40528         (gl_locale_name): Invoke it.
40529         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40530         * modules/localename (Depends-on): Add lock.
40531         Reported by Mike Gran <spk121@yahoo.com>.
40532
40533 2009-12-23  Eric Blake  <ebb9@byu.net>
40534
40535         va-args: new module
40536         * modules/va-args: New file.
40537         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40538         * MODULES.html.sh (Core language properties): Mention it.
40539
40540         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40541         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40542         named alias for __attribute__((__unused__)).
40543         * lib/chown.c: Update client.
40544         * lib/fchmodat.c: Likewise.
40545         * lib/fts.c: Likewise.
40546         * lib/getdate.y: Likewise.
40547         * lib/getgroups.c: Likewise.
40548         * lib/getopt.c: Likewise.
40549         * lib/getugroups.c: Likewise.
40550         * lib/mkdir.c: Likewise.
40551         * lib/mkfifo.c: Likewise.
40552         * lib/mkfifoat.c: Likewise.
40553         * lib/mknod.c: Likewise.
40554         * lib/mknodat.c: Likewise.
40555         * lib/readlink.c: Likewise.
40556         * lib/se-context.in.h: Likewise.
40557         * lib/se-selinux.in.h: Likewise.
40558         * lib/sockets.c: Likewise.
40559         * lib/symlink.c: Likewise.
40560         * lib/symlinkat.c: Likewise.
40561         * lib/unicodeio.c: Likewise.
40562         * lib/unistr.h: Likewise.
40563         * tests/test-areadlink.c: Likewise.
40564         * tests/test-areadlinkat.c: Likewise.
40565         * tests/test-filenamecat.c: Likewise.
40566         * tests/test-fseeko.c: Likewise.
40567         * tests/test-ftello.c: Likewise.
40568         * tests/test-getdate.c: Likewise.
40569         * tests/test-getgroups.c: Likewise.
40570         * tests/test-gethostname.c: Likewise.
40571         * tests/test-quotearg.c: Likewise.
40572         * tests/test-version-etc.c: Likewise.
40573         * tests/test-xalloc-die.c: Likewise.
40574         * tests/test-xfprintf-posix.c: Likewise.
40575         * tests/test-xprintf-posix.c: Likewise.
40576         * tests/test-xvasprintf.c: Likewise.
40577
40578         tests: avoid compiler warnings
40579         * tests/test-fcntl.c (main): Delete unused parameters.
40580         * tests/test-freopen-safer.c (main): Likewise.
40581         * tests/test-xalloc-die.c (main): Mark unused parameters.
40582         * tests/test-fseeko.c (main): Likewise.
40583         * tests/test-ftello.c (main): Likewise.
40584         * tests/test-nanosleep.c (main): Avoid declaration warning.
40585         * tests/test-sleep.c (main): Likewise.
40586         * tests/test-unsetenv.c (main): Silence warning about string
40587         literal.
40588         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40589
40590 2009-12-23  Bruno Haible  <bruno@clisp.org>
40591
40592         * tests/test-localename.c (test_locale_name): New function, extracted
40593         from main. Also test mixed situations.
40594         (test_locale_name_posix, test_locale_name_environ,
40595         test_locale_name_default): New functions.
40596         (main): Invoke them all.
40597         * modules/localename-tests (configure.ac): Test for newlocale.
40598
40599 2009-12-23  Bruno Haible  <bruno@clisp.org>
40600
40601         unistd: Ensure getcwd gets declared before being overridden.
40602         * lib/unistd.in.h: Conditionally include <io.h>.
40603
40604 2009-12-22  Bruno Haible  <bruno@clisp.org>
40605
40606         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40607         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40608         (gl_WCHAR_H): Invoke it.
40609         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40610         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40611         Reported by Karl Berry <karl@freefriends.org>.
40612
40613 2009-12-22  Eric Blake  <ebb9@byu.net>
40614
40615         math, unistd: avoid redundant includes
40616         * lib/math.in.h (isnan): No need to re-include <math.h>.
40617         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40618
40619         getsubopt: work around cygwin bug
40620         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40621         avoid conflicting with system getsubopt.
40622         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40623         bug.
40624
40625         getopt: synchronize from glibc
40626         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40627         parameter order.  Adjust all callers.
40628         (_getopt_internal_r, main): Adjust quoting in error messages.
40629         Drop considerations for outdated POSIX 1003.2 error message.
40630         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40631         callers.
40632         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40633
40634         test-getopt: test stderr behavior
40635         * modules/getopt-posix-tests (Depends-on): Add dup2.
40636         * tests/test-getopt.c (ASSERT): Avoid stderr.
40637         (main): Move stderr to a temporary file.
40638         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40639         Instead, add parameter to inform caller if output occurred.
40640         (test_getopt): Adjust all existing tests to expect silence, and
40641         add new tests of leading ":".
40642         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40643         glibc shortcomings with leading "-:" or "+:" in optstring.
40644         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40645         Likewise.
40646         * doc/posix-functions/getopt.texi (getopt): Likewise.
40647
40648         test-getopt: enhance test
40649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40650         supports optind=0.
40651         * tests/test-getopt.c (OPTIND_MIN): Move...
40652         * tests/test-getopt.h (OPTIND_MIN): ...here.
40653         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40654         Require that optind=0 works, since modern BSD supports it in
40655         addition to optreset, and since coreutils expects it.
40656         (test_getopt_long_only): New test.
40657         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40658         glibc shortcomings with 'W;', and enforcement of optind=0.
40659         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40660         Likewise.
40661
40662 2009-12-21  Bruno Haible  <bruno@clisp.org>
40663
40664         localename: Improvements for MacOS X and Cygwin.
40665         * lib/localename.h (gl_locale_name_environ): New declaration.
40666         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40667         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40668         (gl_locale_name_posix): Invoke it.
40669         (gl_locale_name_default): Add comments. Use Windows native API also on
40670         Cygwin.
40671
40672 2009-12-21  Bruno Haible  <bruno@clisp.org>
40673
40674         Update list of Win32 locale ids.
40675         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40676         (LANG_SAMI): Renamed from LANG_SAAMI.
40677         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40678         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40679         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40680         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40681         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40682         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40683         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40684         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40685         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40686         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40687         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40688         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40689         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40690         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40691         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40692         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40693         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40694         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40695         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40696         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40697         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40698         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40699         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40700         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40701         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40702         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40703         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40704         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40705         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40706         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40707         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40708         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40709         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40710         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40711         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40712         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40713         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40714         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40715         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40716         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40717         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40718         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40719         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40720         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40721         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40722         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40723         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40724         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40725         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40726         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40727         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40728         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40729         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40730         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40731         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40732         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40733         Add more languages and countries for Sami, Sorbian. Add more countries
40734         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40735         for Pashto. Change country for Syriac, Tswana.
40736
40737 2009-12-21  Eric Blake  <ebb9@byu.net>
40738
40739         test-utimens: avoid spurious failure
40740         * tests/test-chown.h (nap): Factor...
40741         * tests/nap.h: ...into new file.
40742         * tests/test-lchown.h (nap): Avoid duplication.
40743         * tests/test-utimens-common.h (nap): Use shared implementation,
40744         necessary on file systems with 1-second resolution.
40745         * modules/chown-tests (Files): Include new file.
40746         * modules/fdutimensat-tests (Files): Likewise.
40747         * modules/futimens-tests (Files): Likewise.
40748         * modules/lchown-tests (Files): Likewise.
40749         * modules/openat-tests (Files): Likewise.
40750         * modules/utimens-tests (Files): Likewise.
40751         * modules/utimensat-tests (Files): Likewise.
40752
40753 2009-12-19  Eric Blake  <ebb9@byu.net>
40754
40755         futimens, utimensat: work around Linux bug
40756         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40757         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40758         * lib/utimensat.c (rpl_utimensat): Work around it.
40759         * lib/futimens.c (rpl_futimens): Adjust comment.
40760
40761         utimens: work around Linux ctime bug
40762         * lib/utimens.c (detect_ctime_bug): New helper function.
40763         (update_timespec): Differentiate between workaround needed for
40764         this bug vs. what is needed for systems that lack utimensat.
40765         (fdutimens, lutimens): Work around bug.
40766
40767         utimens: check for ctime update
40768         * tests/test-utimens-common.h (check_ctime): Define.
40769         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40770         * tests/test-futimens.h (test_futimens): Likewise.
40771         * tests/test-lutimens.h (test_lutimens): Likewise.
40772         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40773         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40774
40775 2009-12-19  Bruno Haible  <bruno@clisp.org>
40776
40777         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40778         * tests/test-dprintf-posix2.sh: New file.
40779         * tests/test-dprintf-posix2.c: New file.
40780         * modules/dprintf-posix-tests (Files): Add them.
40781         (configure.ac): Check for getrlimit and setrlimit.
40782         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40783
40784 2009-12-19  Bruno Haible  <bruno@clisp.org>
40785
40786         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40787         * tests/test-fprintf-posix3.sh: New file.
40788         * tests/test-fprintf-posix3.c: New file.
40789         * modules/fprintf-posix-tests (Files): Add them.
40790         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40791
40792 2009-12-19  Eric Blake  <ebb9@byu.net>
40793
40794         dirfd: fix prototype
40795         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40796         * lib/dirfd.c (dirfd): Likewise.
40797
40798         canonicalize: reduce memory usage
40799         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40800         allocation to size.
40801         Reported by Solar Designer <solar@openwall.com>.
40802
40803 2009-12-19  Bruno Haible  <bruno@clisp.org>
40804
40805         New module attribute 'Applicability'.
40806         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40807         * gnulib-tool: New option --extract-applicability.
40808         (func_usage): Document it.
40809         (sed_extract_prog): Recognize it.
40810         (func_get_applicability): New function.
40811         (func_import): Generalize handling of 'link-warning' module.
40812         * modules/link-warning (Applicability): New section.
40813         * modules/arg-nonnull (Applicability): New section.
40814         Repoted by Simon Josefsson <simon@josefsson.org>.
40815
40816 2009-12-19  Bruno Haible  <bruno@clisp.org>
40817
40818         fflush: tweak
40819         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40820         * lib/fseeko.c (rpl_fseeko): Likewise.
40821
40822 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40823
40824         * lib/gl_list.h: Fix typo in comment.
40825
40826 2009-12-16  Eric Blake  <ebb9@byu.net>
40827
40828         fcntl: use to simplify other modules
40829         * modules/cloexec (Depends-on): Add fcntl.
40830         * modules/fchdir (Depends-on): Likewise.
40831         * modules/fd-safer-flag (Depends-on): Likewise.
40832         * modules/unistd-safer (Depends-on): Likewise.
40833         * modules/dup3 (configure.ac): Set module indicator.
40834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40835         missing.
40836         * lib/fchdir.c (_gl_register_dup): Fix comment.
40837         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40838         * lib/dup-safer.c (dup_safer): Likewise.
40839         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40840         * lib/dup3.c (dup3): Likewise.
40841         * tests/test-fchdir.c (main): Enhance test.
40842         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40843
40844         fcntl: port portions of fcntl to mingw
40845         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40846         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40847         replacement for mingw.
40848         * modules/fcntl (Description): Update.
40849         (Depends-on): Add dup2.
40850         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40851         * modules/fcntl-h (Makefile.am): Substitute it.
40852         * lib/fcntl.in.h (fcntl): Update declaration.
40853         (F_DUPFD, F_GETFD): New macros, when needed.
40854         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40855         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40856         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40857         we now guarantee.
40858
40859         fcntl: work around cygwin bug in F_DUPFD
40860         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40861         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40862         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40863         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40864         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40865
40866         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40867         * modules/fcntl (Files): List new files.
40868         (configure.ac): Run a test.
40869         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40870         * lib/fcntl.c (rpl_fcntl): Likewise.
40871         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40872         (gl_FCNTL_H): Always replace fcntl.h.
40873         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40874         * lib/fcntl.in.h (fcntl): Declare replacement.
40875         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40876         needed, plus a witness.
40877         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40878         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40879         * tests/test-fcntl.c: New file.
40880         * modules/fcntl-tests: Likewise.
40881
40882         binary-io: avoid potential compilation warning
40883         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40884         directives.
40885
40886         fflush: avoid compilation error on NetBSD
40887         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40888         between off_t and fpos_t, since the latter is sometimes a struct.
40889         * lib/fseeko.c (rpl_fseeko): Likewise.
40890         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40891
40892 2009-12-15  Eric Blake  <ebb9@byu.net>
40893
40894         fcntl-h, stdio, sys_ioctl: fix declarations
40895         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40896         function must not take arguments.
40897         * lib/sys_ioctl.in.h (ioctl): Likewise.
40898         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40899         (open): Add a link warning.
40900
40901 2009-12-15  Jim Meyering  <meyering@redhat.com>
40902
40903         areadlink, areadlink-with-size: relax license to LGPLv2+
40904         * modules/areadlink (License): Relax to LGPLv2+.
40905         * modules/areadlink-with-size (License): Likewise.
40906
40907 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40908             Bruno Haible  <bruno@clisp.org>
40909
40910         *printf: Fix memory leak.
40911         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40912         * lib/vfprintf.c (vfprintf): Likewise.
40913         * lib/dprintf.c (dprintf): Likewise.
40914         * lib/vdprintf.c (vdprintf): Likewise.
40915
40916 2009-12-14  Eric Blake  <ebb9@byu.net>
40917
40918         accept4: adjust module dependencies
40919         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40920
40921         utimens: one more try at avoiding compiler warning
40922         * lib/utimens.c (lutimens): Lower scope of result.
40923
40924 2009-12-13  Bruno Haible  <bruno@clisp.org>
40925
40926         Move the malloc checking from module 'list' to new module 'xlist'.
40927         * modules/xlist: New file.
40928         * lib/gl_xlist.h: New file.
40929         * lib/gl_xlist.c: New file.
40930         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40931         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40932         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40933         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40934         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40935         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40936         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40937         gl_sortedlist_nx_add): New declarations.
40938         (struct gl_list_implementation): Rename and change methods accordingly.
40939         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40940         (gl_list_nx_create): Renamed from gl_list_create.
40941         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40942         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40943         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40944         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40945         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40946         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40947         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40948         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40949         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40950         gl_list_create_empty.
40951         (gl_list_nx_create): Renamed from gl_list_create.
40952         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40953         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40954         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40955         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40956         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40957         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40958         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40959         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40960         * lib/gl_array_list.c: Don't include xalloc.h.
40961         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40962         NULL upon out-of-memory.
40963         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40964         out-of-memory.
40965         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40966         Change return type to 'int'.
40967         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40968         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40969         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40970         upon out-of-memory.
40971         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40972         upon out-of-memory.
40973         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40974         upon out-of-memory.
40975         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40976         upon out-of-memory.
40977         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40978         out-of-memory.
40979         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40980         Update.
40981         (gl_array_list_implementation): Update.
40982         * lib/gl_carray_list.c: Don't include xalloc.h.
40983         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40984         Return NULL upon out-of-memory.
40985         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40986         out-of-memory.
40987         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40988         Change return type to 'int'.
40989         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40990         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40991         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40992         upon out-of-memory.
40993         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40994         upon out-of-memory.
40995         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40996         out-of-memory.
40997         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40998         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40999         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41000         Update.
41001         (gl_carray_list_implementation): Update.
41002         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41003         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41004         gl_linked_create_empty. Return NULL upon out-of-memory.
41005         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41006         out-of-memory.
41007         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41008         Change return type to 'int'. Return -1 upon out-of-memory.
41009         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41010         out-of-memory.
41011         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41012         upon out-of-memory.
41013         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41014         upon out-of-memory.
41015         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41016         NULL upon out-of-memory.
41017         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41018         upon out-of-memory.
41019         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41020         out-of-memory.
41021         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41022         Update.
41023         * lib/gl_linked_list.c: Don't include xalloc.h.
41024         (gl_linked_list_implementation): Update.
41025         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41026         (add_to_bucket): Change return type to 'int'.
41027         (gl_linkedhash_list_implementation): Update.
41028         * lib/gl_anytree_list1.h (free_subtree): New function.
41029         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41030         gl_tree_create_empty. Return NULL upon out-of-memory.
41031         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41032         Change return type to 'int'. Return -1 upon out-of-memory.
41033         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41034         out-of-memory.
41035         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41036         (gl_tree_remove_node): New function, moved here from
41037         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41038         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41039         Update.
41040         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41041         malloc, not xmalloc. Return NULL upon out-of-memory.
41042         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41043         out-of-memory.
41044         (gl_tree_remove_node_from_tree): New function, extracted from
41045         gl_tree_remove_node.
41046         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41047         upon out-of-memory.
41048         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41049         out-of-memory.
41050         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41051         upon out-of-memory.
41052         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41053         upon out-of-memory.
41054         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41055         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41056         not xmalloc. Return NULL upon out-of-memory.
41057         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41058         out-of-memory.
41059         (gl_tree_remove_node_from_tree): New function, extracted from
41060         gl_tree_remove_node.
41061         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41062         upon out-of-memory.
41063         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41064         out-of-memory.
41065         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41066         upon out-of-memory.
41067         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41068         upon out-of-memory.
41069         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41070         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41071         gl_anytree_list1.h before gl_anyavltree_list2.h.
41072         (gl_avltree_list_implementation): Update.
41073         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41074         gl_anytree_list1.h before gl_anyavltree_list2.h.
41075         (gl_rbtree_list_implementation): Update.
41076         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41077         Change return type to 'int'. Return -1 upon out-of-memory. Use
41078         __builtin_expect.
41079         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41080         (gl_avltreehash_list_implementation): Update.
41081         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41082         (gl_rbtreehash_list_implementation): Update.
41083         * modules/array-list (Depends-on): Remove xalloc.
41084         * modules/carray-list (Depends-on): Likewise.
41085         * modules/linked-list (Depends-on): Likewise.
41086         * modules/linkedhash-list (Depends-on): Likewise.
41087         * modules/avltree-list (Depends-on): Likewise.
41088         * modules/rbtree-list (Depends-on): Likewise.
41089         * modules/avltreehash-list (Depends-on): Likewise.
41090         * modules/rbtreehash-list (Depends-on): Likewise.
41091
41092         * modules/xsublist: New file.
41093         * lib/gl_xsublist.h: New file.
41094         * lib/gl_xsublist.c: New file.
41095         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41096         (gl_sublist_nx_create): New declaration.
41097         * lib/gl_sublist.c: Don't include xalloc.h.
41098         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41099         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41100         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41101         Change return type to 'int'. Return -1 upon out-of-memory.
41102         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41103         upon out-of-memory.
41104         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41105         NULL upon out-of-memory.
41106         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41107         upon out-of-memory.
41108         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41109         NULL upon out-of-memory.
41110         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41111         NULL upon out-of-memory.
41112         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41113         upon out-of-memory.
41114         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41115         (gl_sublist_list_implementation): Update.
41116         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41117         upon out-of-memory.
41118         * modules/sublist (Depends-on): Remove xalloc.
41119
41120         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41121         * tests/test-carray_list.c: Likewise.
41122         * tests/test-linked_list.c: Likewise.
41123         * tests/test-linkedhash_list.c: Likewise.
41124         * tests/test-avltree_list.c: Likewise.
41125         * tests/test-rbtree_list.c: Likewise.
41126         * tests/test-avltreehash_list.c: Likewise.
41127         * tests/test-rbtreehash_list.c: Likewise.
41128         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41129         * modules/carray-list-tests (Makefile.am): Likewise.
41130         * modules/linked-list-tests (Makefile.am): Likewise.
41131         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41132         * modules/avltree-list-tests (Makefile.am): Likewise.
41133         * modules/rbtree-list-tests (Makefile.am): Likewise.
41134         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41135         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41136
41137         * NEWS: Mention the changes.
41138
41139         * lib/clean-temp.c: Include gl_xlist.h.
41140         * modules/clean-temp (Depends-on): Add xlist.
41141
41142         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41143         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41144
41145         * tests/test-array_oset.c: Include gl_xlist.h.
41146         * modules/array-oset-tests (Depends-on): Add xlist.
41147
41148         Reported by José E. Marchesi <jemarch@gnu.org>.
41149
41150 2009-12-13  Bruno Haible  <bruno@clisp.org>
41151
41152         Move the malloc checking from module 'oset' to new module 'xoset'.
41153         * modules/xoset: New file.
41154         * lib/gl_xoset.h: New file.
41155         * lib/gl_xoset.c: New file.
41156         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41157         declarations.
41158         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41159         (struct gl_oset_implementation): Rename and change methods accordingly.
41160         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41161         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41162         'int'. Mark as __warn_unused_result__.
41163         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41164         gl_oset_create_empty.
41165         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41166         'int'.
41167         * lib/gl_array_oset.c: Don't include xalloc.h.
41168         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41169         malloc, not xmalloc.
41170         (grow): Change return type to 'int'. Don't call xalloc_die.
41171         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41172         to 'int'.
41173         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41174         'int'.
41175         (gl_array_oset_implementation): Update.
41176         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41177         gl_tree_create_empty.
41178         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41179         'int'.
41180         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41181         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41182         xmalloc.
41183         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41184         not xmalloc.
41185         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41186         xmalloc.
41187         (gl_avltree_oset_implementation): Update.
41188         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41189         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41190         xmalloc.
41191         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41192         not xmalloc.
41193         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41194         xmalloc.
41195         (gl_rbtree_oset_implementation): Update.
41196         * modules/array-oset (Depends-on): Remove xalloc.
41197         * modules/avltree-oset (Depends-on): Likewise.
41198         * modules/rbtree-oset (Depends-on): Likewise.
41199         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41200         * tests/test-avltree_oset.c: Likewise.
41201         * tests/test-rbtree_oset.c: Likewise.
41202         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41203         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41204         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41205         * NEWS: Mention the change.
41206
41207 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41208
41209         maint.mk: allow a project to override release-prep commands
41210         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41211         commands into a new rule.
41212         (release-prep): New rule.
41213         (release-prep-hook): New overridable variable.
41214
41215 2009-12-13  Bruno Haible  <bruno@clisp.org>
41216
41217         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41218
41219 2009-12-13  Jim Meyering  <meyering@redhat.com>
41220
41221         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41222         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41223
41224 2009-12-12  Bruno Haible  <bruno@clisp.org>
41225
41226         duplocale: Tweak.
41227         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41228
41229 2009-12-12  Karl Berry  <karl@gnu.org>
41230
41231         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41232
41233 2009-12-12  Bruno Haible  <bruno@clisp.org>
41234
41235         * m4/po.m4: Undo incorrect untabification.
41236
41237 2009-12-12  Bruno Haible  <bruno@clisp.org>
41238
41239         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41240         * modules/c-strtod (Depends-on): Add locale.
41241         * modules/c-strtold (Depends-on): Likewise.
41242
41243 2009-12-12  Bruno Haible  <bruno@clisp.org>
41244
41245         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41246
41247 2009-12-11  Eric Blake  <ebb9@byu.net>
41248
41249         setenv: relax requirement in light of POSIX ruling
41250         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41251         not NULL.
41252         * tests/test-setenv.c (main): Relax test.
41253         * tests/test-unsetenv.c (main): Likewise.
41254         * doc/posix-functions/setenv.texi (setenv): Document this.
41255         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41256
41257 2009-12-11  Bruno Haible  <bruno@clisp.org>
41258
41259         New module 'fd-safer-flag'.
41260         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41261         * lib/dup-safer.c (dup_safer_flag): Remove function.
41262         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41263         * lib/fd-safer.c (fd_safer_flag): Remove function.
41264         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41265         * modules/cloexec (configure.ac): Drop indicator macro.
41266         * modules/fd-safer-flag: New file.
41267         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41268         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41269         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41270
41271 2009-12-11  Bruno Haible  <bruno@clisp.org>
41272
41273         Tests for module 'nl_langinfo'.
41274         * modules/nl_langinfo-tests: New file.
41275         * tests/test-nl_langinfo.sh: New file.
41276         * tests/test-nl_langinfo.c: New file.
41277
41278         New module 'nl_langinfo'.
41279         * lib/nl_langinfo.c: New file.
41280         * m4/nl_langinfo.m4: New file.
41281         * modules/nl_langinfo: New file.
41282         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41283
41284 2009-12-11  Bruno Haible  <bruno@clisp.org>
41285
41286         Tests for module 'langinfo'.
41287         * modules/langinfo-tests: New file.
41288         * tests/test-langinfo.c: New file.
41289
41290         New module 'langinfo'.
41291         * lib/langinfo.in.h: New file.
41292         * m4/langinfo_h.m4: New file.
41293         * modules/langinfo: New file.
41294         * doc/posix-headers/langinfo.texi: Mention the new module.
41295
41296 2009-12-11  Bruno Haible  <bruno@clisp.org>
41297
41298         * lib/config.charset: Untabify.
41299
41300 2009-12-11  Bruno Haible  <bruno@clisp.org>
41301
41302         * modules/unistd-safer (configure.ac): Drop indicator macro.
41303
41304 2009-12-11  Bruno Haible  <bruno@clisp.org>
41305
41306         Move pipe2-safer code to its own file.
41307         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41308         * lib/pipe-safer.c (pipe2_safer): Remove function.
41309         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41310         (Makefile.am): Add it to lib_SOURCES.
41311
41312 2009-12-10  Bruno Haible  <bruno@clisp.org>
41313
41314         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41315
41316 2009-12-10  Bruno Haible  <bruno@clisp.org>
41317
41318         Declare which arguments expect non-NULL values, for GCC and clang.
41319         * build-aux/arg-nonnull.h: New file.
41320         * modules/arg-nonnull: New file.
41321         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41322         (inet_ntop, inet_pton): Use it.
41323         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41324         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41325         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41326         (open, openat): Use it.
41327         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41328         (fnmatch): Use it.
41329         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41330         (getopt, getopt_long, getopt_long_only): Use it.
41331         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41332         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41333         Use it.
41334         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41335         (iconv_open): Use it.
41336         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41337         (strtoimax, strtoumax): Use it.
41338         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41339         (duplocale): Use it.
41340         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41341         (frexp, frexpl): Use it.
41342         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41343         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41344         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41345         (tsearch, tfind, tdelete, twalk): Use it.
41346         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41347         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41348         sigpending): Use it.
41349         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41350         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41351         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41352         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41353         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41354         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41355         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41356         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41357         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41358         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41359         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41360         Use it.
41361         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41362         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41363         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41364         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41365         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41366         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41367         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41368         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41369         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41370         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41371         strtoull, unsetenv): Use it.
41372         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41373         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41374         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41375         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41376         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41377         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41378         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41379         (strcasecmp, strncasecmp): Use it.
41380         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41381         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41382         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41383         rpl_setsockopt): Use it.
41384         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41385         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41386         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41387         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41388         (gettimeofday): Use it.
41389         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41390         (times): Use it.
41391         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41392         (uname): Use it.
41393         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41394         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41395         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41396         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41397         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41398         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41399         unlinkat, write): Use it.
41400         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41401         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41402         * lib/argv-iter.h: Include arg-nonnull.h.
41403         (_ATTRIBUTE_NONNULL_): Remove macro.
41404         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41405         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41406         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41407         optimization.
41408         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41409         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41410         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41411         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41412         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41413         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41414         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41415         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41416         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41417         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41418         * modules/dirent (Depends-on): Add arg-nonnull.
41419         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41420         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41421         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41422         * modules/fnmatch (Depends-on): Add arg-nonnull.
41423         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41424         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41425         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41426         * modules/glob (Depends-on): Add arg-nonnull.
41427         (Makefile.am): Insert arg-nonnull.h into glob.h.
41428         * modules/iconv_open (Depends-on): Add arg-nonnull.
41429         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41430         * modules/inttypes (Depends-on): Add arg-nonnull.
41431         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41432         * modules/locale (Depends-on): Add arg-nonnull.
41433         (Makefile.am): Insert arg-nonnull.h into locale.h.
41434         * modules/math (Depends-on): Add arg-nonnull.
41435         (Makefile.am): Insert arg-nonnull.h into math.h.
41436         * modules/netdb (Depends-on): Add arg-nonnull.
41437         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41438         * modules/search (Depends-on): Add arg-nonnull.
41439         (Makefile.am): Insert arg-nonnull.h into search.h.
41440         * modules/signal (Depends-on): Add arg-nonnull.
41441         (Makefile.am): Insert arg-nonnull.h into signal.h.
41442         * modules/spawn (Depends-on): Add arg-nonnull.
41443         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41444         * modules/stdio (Depends-on): Add arg-nonnull.
41445         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41446         * modules/stdlib (Depends-on): Add arg-nonnull.
41447         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41448         * modules/string (Depends-on): Add arg-nonnull.
41449         (Makefile.am): Insert arg-nonnull.h into string.h.
41450         * modules/strings (Depends-on): Add arg-nonnull.
41451         (Makefile.am): Insert arg-nonnull.h into strings.h.
41452         * modules/sys_socket (Depends-on): Add arg-nonnull.
41453         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41454         * modules/sys_stat (Depends-on): Add arg-nonnull.
41455         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41456         * modules/sys_time (Depends-on): Add arg-nonnull.
41457         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41458         * modules/sys_times (Depends-on): Add arg-nonnull.
41459         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41460         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41461         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41462         * modules/time (Depends-on): Add arg-nonnull.
41463         (Makefile.am): Insert arg-nonnull.h into time.h.
41464         * modules/unistd (Depends-on): Add arg-nonnull.
41465         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41466         * modules/wchar (Depends-on): Add arg-nonnull.
41467         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41468         * modules/argv-iter (Depends-on): Add arg-nonnull.
41469         * tests/test-canonicalize.c (null_ptr): New function.
41470         (main): Use it.
41471         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41472         (main): Use it.
41473         * tests/test-memmem.c (null_ptr): New function.
41474         (main): Use it.
41475         Reported by Jim Meyering.
41476
41477 2009-12-10  Bruno Haible  <bruno@clisp.org>
41478
41479         Use spaces for indentation, not tabs.
41480         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41481         * m4/*.m4: Untabify.
41482         * build-aux/*.h: Untabify.
41483         * tests/**/*.[hc]: Untabify.
41484         * README: New section "Indent with spaces, not TABs", based on
41485         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41486         * NEWS: Mention the change.
41487
41488 2009-12-10  Bruno Haible  <bruno@clisp.org>
41489
41490         pty test: Fix link error.
41491         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41492         test_pty_LDADD.
41493
41494 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41495
41496         * modules/pty: New file.
41497         * modules/pty-tests: New file.
41498         * m4/pty.m4: New file.
41499         * tests/test-pty.c: New file.
41500         * doc/glibc-headers/pty.texi: Modified.
41501         * doc/glibc-functions/forkpty.texi: Modified.
41502         * doc/glibc-functions/openpty.texi: Modified.
41503
41504 2009-12-10  Bruno Haible  <bruno@clisp.org>
41505
41506         Avoid syntax error in C++ mode.
41507         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41508
41509 2009-12-10  Bruno Haible  <bruno@clisp.org>
41510
41511         Use sed with option -e.
41512         * gnulib-tool (func_version, func_emit_copyright_notice,
41513         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41514         option -e to sed.
41515         * modules/link-warning (Makefile.am): Likewise.
41516
41517 2009-12-10  Jim Meyering  <meyering@redhat.com>
41518
41519         mgetgroups: do not write bytes beyond end of malloc'd buffer
41520         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41521         username, we call getgroups with a one-element-shorter buffer,
41522         but still told it the length was original, max_n_groups.
41523
41524 2009-12-09  Eric Blake  <ebb9@byu.net>
41525
41526         cloexec: relax license
41527         * modules/cloexec (Maintainer): Add myself.
41528         (License): Use LGPL, not GPL.
41529
41530         link-warning: optimize generation
41531         * modules/link-warning (Makefile.am): Reduce process usage.
41532
41533 2009-12-09  Bruno Haible  <bruno@clisp.org>
41534
41535         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41536         workaround was added on 2009-11-17.
41537
41538 2009-12-09  Jim Meyering  <meyering@redhat.com>
41539             Bruno Haible  <bruno@clisp.org>
41540
41541         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41542         * modules/link-warning (Makefile.am): Make the comment-removing sed
41543         command more robust in the face of bootstrap-prepended comment lines.
41544
41545 2009-12-09  Bruno Haible  <bruno@clisp.org>
41546
41547         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41548         most one group.
41549
41550 2009-12-09  Simon Josefsson <simon@josefsson.org>
41551             Bruno Haible  <bruno@clisp.org>
41552
41553         * build-aux/link-warning.h: Add copyright notice.
41554         * modules/link-warning (Makefile.am): Generate link-warning.h from
41555         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41556         * NEWS: Mention change in link-warning module.
41557         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41558         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41559         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41560         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41561         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41562         * modules/math (Makefile.am): Add dependency to math.h.
41563         * modules/search (Makefile.am): Add dependency to search.h.
41564         * modules/signal (Makefile.am): Add dependency to signal.h.
41565         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41566         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41567         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41568         * modules/string (Makefile.am): Add dependency to string.h.
41569         * modules/strings (Makefile.am): Add dependency to strings.h.
41570         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41571         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41572         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41573         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41574         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41575         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41576         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41577         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41578         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41579
41580 2009-12-09  Bruno Haible  <bruno@clisp.org>
41581
41582         fchdir: Optimize away rpl_fstat when possible.
41583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41584         REPLACE_OPEN_DIRECTORY.
41585         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41586
41587 2009-12-09  Bruno Haible  <bruno@clisp.org>
41588
41589         * lib/fchdir.c: Update comment.
41590
41591 2009-12-09  Bruno Haible  <bruno@clisp.org>
41592
41593         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41594
41595 2009-12-08  Eric Blake  <ebb9@byu.net>
41596
41597         fchdir: avoid memory leak on re-registration.
41598         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41599
41600 2009-12-08  Jim Meyering  <meyering@redhat.com>
41601
41602         init.sh: avoid Solaris 10 /bin/sh portability problem
41603         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41604         sourced script:
41605           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41606           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41607           bar
41608         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41609         and two tests used that idiom.
41610         * tests/init.sh: Update suggested usage comments.
41611         (path_prepend_): New function, to be used in place
41612         of the --src-path=DIR option.
41613         (setup_): Move PATH-prepending code into path_prepend_.
41614         * tests/test-pread.sh: Adapt to new usage.
41615         * tests/test-xalloc-die.sh: Likewise.
41616
41617 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41618
41619         * doc/gnulib.texi (Glibc pty.h): Add.
41620         * doc/glibc-functions/forkpty.texi: Add.
41621         * doc/glibc-functions/openpty.texi: Add.
41622         Suggested by Bruno Haible.
41623
41624 2009-12-08  Eric Blake  <ebb9@byu.net>
41625
41626         fchdir: fix logic bugs
41627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41628         * tests/test-fchdir.c (main): Enhance test.
41629         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41630         is in use.
41631
41632         dup2: fix logic bugs
41633         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41634         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41635         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41636         exists.
41637         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41638
41639 2009-12-07  Eric Blake  <ebb9@byu.net>
41640
41641         unlink: fix m4 detection
41642         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41643
41644         unistd-safer: add unit test
41645         * modules/unistd-safer-tests: New file.
41646         * tests/test-dup-safer.c: Likewise.
41647         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41648         * tests/test-dup2.c (setmode): Likewise.
41649         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41650
41651         cloexec: preserve text vs. binary across dup_cloexec
41652         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41653         mode.
41654         * modules/dup2-tests (Depends-on): Add binary-io.
41655         * modules/cloexec-tests (Depends-on): Likewise.
41656         * tests/test-dup2.c (setmode, is_mode): New helpers.
41657         (main): Add tests that translation mode is preserved.
41658         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41659         Reported by Bruno Haible.
41660
41661         mgetgroups: reduce duplicate listings
41662         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41663         resulting array.
41664         * tests/test-chown.h (test_chown): Simplify client.
41665         * tests/test-lchown.h (test_lchown): Likewise.
41666
41667 2009-12-06  Bruno Haible  <bruno@clisp.org>
41668
41669         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41670         value.
41671
41672 2009-12-06  Bruno Haible  <bruno@clisp.org>
41673
41674         * lib/progname.c: Include stdio.h, stdlib.h.
41675         (set_program_name): Reject a NULL argument.
41676
41677 2009-12-05  Eric Blake  <ebb9@byu.net>
41678
41679         pipe2-safer: new module
41680         * modules/pipe2-safer: New file.
41681         * lib/unistd-safer.h (pipe2_safer): New prototype.
41682         * lib/unistd--.h (pipe2): New wrapper.
41683         * lib/pipe-safer.c (pipe2_safer): New function.
41684         * modules/pipe (Depends-on): Add pipe2-safer.
41685         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41686
41687         stdlib-safer: preserve cloexec flag for mkostemp[s]
41688         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41689         fd_safer_flag.
41690
41691         unistd-safer: allow preservation of cloexec status via flag
41692         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41693         prototypes.
41694         * lib/dup-safer.c (dup_safer_flag): New function.
41695         * lib/fd-safer.c (fd_safer_flag): Likewise.
41696         * modules/cloexec (configure.ac): Set witness.
41697
41698         test-dup2: enhance test
41699         * modules/dup2-tests (Depends-on): Add cloexec.
41700         * tests/test-dup2.c (main): Enhance test.
41701
41702         cloexec: add dup_cloexec
41703         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41704         header and comments.
41705         * lib/cloexec.c (set_cloexec_flag): Add comments.
41706         (dup_cloexec): New function, with mingw implementation borrowed
41707         from...
41708         * lib/w32spawn.h (dup_noinherit): ...here.
41709         * modules/execute (Depends-on): Add cloexec.
41710         * modules/pipe (Depends-on): Likewise.
41711         * modules/cloexec (Depends-on): Add dup2.
41712         * modules/cloexec-tests (Files): New file.
41713         * tests/test-cloexec.c: Likewise.
41714
41715         test-xalloc-die: fix test for mingw
41716         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41717         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41718         directory and .exe suffix off argv[0] output.
41719
41720         test-fseeko: fix test for mingw
41721         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41722         than undefining fseek, so test will pass on mingw.
41723
41724 2009-12-05  Bruno Haible  <bruno@clisp.org>
41725
41726         * lib/progname.h (set_program_name): Clarify specification.
41727         * lib/progname.c (set_program_name): Likewise.
41728         Reported by Jim Meyering.
41729
41730 2009-12-05  Jim Meyering  <meyering@redhat.com>
41731
41732         maint.mk: backslash-escape parens in default regexp
41733         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41734         backslash-escape the literal parentheses.
41735
41736         maint.mk: news-date-check: use grep -E
41737         * top/maint.mk (today): Define a Make variable, not a...
41738         (news-date-check): ...shell variable.
41739         (news-date-regexp): Use the Make variable.
41740         Use grep's -E option.  Change the failing diagnostic to mention
41741         the variable, $(news-date-regexp).
41742
41743 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41744
41745         maintainer-makefile: allow customization of NEWS entry format
41746         * top/maint.mk (news-date-regexp): New overridable variable.
41747         (news-date-check): Use it.
41748
41749 2009-12-04  Eric Blake  <ebb9@byu.net>
41750
41751         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41752         * lib/mgetgroups.h (xgetgroups): New prototype.
41753         * lib/mgetgroups.c (xgetgroups): New wrapper.
41754         (mgetgroups): Handle ENOSYS.
41755         * modules/mgetgroups (Depends-on): Add realloc.
41756         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41757
41758         mgetgroups: avoid argument promotion issues with -1
41759         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41760         for invalid gid_t.
41761         * tests/test-chown.h (getegid, test_chown): Likewise.
41762         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41763
41764 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41765
41766         exclude: Fix header file problems.
41767         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41768
41769 2009-12-01  Jim Meyering  <meyering@redhat.com>
41770
41771         fts: fts_open: do not let an empty string cause immediate failure
41772         This is required in support of GNU rm, for which the command
41773         "rm A '' B" must process and remove both A and B, in spite of
41774         the empty string argument.
41775         * lib/fts.c (fts_open): Do not let the presence of an empty string
41776         cause fts_open to fail immediately.  Most fts-using tools must be
41777         able to process all arguments, in order, and can be expected to
41778         diagnose such arguments themselves.
41779
41780 2009-11-30  Eric Blake  <ebb9@byu.net>
41781
41782         utimens: fix compilation error
41783         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41784         Declare variable at right scope.
41785
41786 2009-11-29  Jim Meyering  <meyering@redhat.com>
41787
41788         bootstrap: handle perl-5.11's changed --version output
41789         * build-aux/bootstrap (get_version): Handle perl separately,
41790         since perl-5.11's --version output is different.
41791
41792 2009-11-28  Jim Meyering  <meyering@redhat.com>
41793
41794         userspec: depend on the inttostr module, too
41795         * modules/userspec (Depends-on): Add inttostr.
41796
41797         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41798         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41799         number of MAXUID when it evaluates to (uid_t) -1.
41800         Likewise for group ID.  Reported by Matt McCutchen in
41801         <http://savannah.gnu.org/bugs/?28113>
41802
41803         userspec: reformat to use spaces, not TABs
41804         * lib/userspec.c: Expand TABs to spaces.
41805         Add Emacs' "indent-tabs-mode: nil" hint.
41806
41807 2009-11-27  Eric Blake  <ebb9@byu.net>
41808
41809         getopt-gnu: flush out another BSD bug
41810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41811         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41812         flush out BSD bug.
41813         * tests/test-getopt.h (test_getopt): End lists with NULL.
41814         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41815         (test_getopt_long_posix): Enhance test.
41816         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41817         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41818         getopt-gnu.
41819         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41820         Likewise.
41821
41822 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41823
41824         * modules/idpriv-droptemp-tests (Notice): Fix text.
41825
41826 2009-11-27  Jim Meyering  <meyering@redhat.com>
41827
41828         test-xalloc-die: avoid spurious failure due to libtool argv difference
41829         In a libtool-enabled project, this test would fail due to a difference
41830         in the emitted program name, e.g.,
41831         -test-xalloc-die: memory exhausted
41832         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41833         Use program to avoid that.
41834         * modules/xalloc-die-tests (Depends-on): Add progname.
41835         * tests/test-xalloc-die.c: Include progname.h".
41836         (program_name): Remove decl.
41837         (main): Call set_program_name.
41838         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41839
41840 2009-11-26  Richard Jones  <rjones@redhat.com>
41841
41842         w32sock: leave win32 error in place.
41843         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41844
41845 2009-11-26  Eric Blake  <ebb9@byu.net>
41846
41847         init.sh: suggest to use skip_ and fail_ functions in comments
41848         * tests/init.sh: Add a sentence.
41849
41850 2009-11-25  Bruno Haible  <bruno@clisp.org>
41851
41852         init.sh: add documentation in comments
41853         * tests/init.sh: Add some developer and user documentation.
41854
41855 2009-11-26  Jim Meyering  <meyering@redhat.com>
41856
41857         init.sh: accommodate even those who specify bogus srcdir manually
41858         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41859         configure-time tests to be sanitized, so that there is no need to
41860         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41861         (with no double quotes) suffices.  However, since tests may be
41862         invoked manually, and since you may explicitly set srcdir to the
41863         name of a directory containing spaces, do quote its uses here.
41864         * tests/test-pread.sh: Likewise.
41865         Suggested by Bruno Haible.
41866
41867         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41868         * tests/test-pread.sh: Write no data into the pipe, because
41869         test-pread actually reads none.  This avoids a diagnostic,
41870         "bash: echo: write error: Broken pipe", that arises in the unusual
41871         event something is ignoring SIGPIPE, and might be interpreted
41872         as some sort of failure.  Reported by Bruno Haible.
41873
41874 2009-11-25  Jim Meyering  <meyering@redhat.com>
41875
41876         test-pread: cover failure with ESPIPE and EINVAL
41877         * tests/test-pread.c (main): Test for failure, too.
41878         * tests/test-pread.sh: Invoke with stdin on a pipe.
41879         Suggested by Eric Blake.
41880
41881         pread: improvement and fix
41882         * modules/pread (Depends-on): Depend on lseek, for portability to
41883         e.g., mingw.  Suggested by Eric Blake.
41884         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41885
41886         unistd.in.h: correct declaration of pread
41887         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41888         Reported by Richard W.M. Jones.
41889
41890         test-pread.sh: distribute the test script
41891         * modules/pread-tests (Files): Include test-pread.sh.
41892
41893         test-pread.sh: clean up
41894         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41895         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41896         That is unnecessary, since it's always ".".
41897         Suggestion from Eric Blake.
41898
41899         test-pread.sh: make executable
41900         * tests/test-pread.sh: Set executable bit.
41901         Reported by Eric Blake.
41902
41903         correct typo in test-pread.sh
41904         * tests/test-pread.sh: Add #! line.
41905
41906         test pread
41907         * tests/test-pread.c: New file.
41908         * tests/test-pread.sh: Likewise.
41909         * modules/pread-tests: Likewise.
41910
41911         pread: new module
41912         * modules/pread: New file.
41913         * lib/unistd.in.h (pread): Define/declare.
41914         * lib/pread.c (pread): New file.
41915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41916         * modules/unistd (Makefile.am): Substitute witnesses.
41917         * doc/posix-functions/pread.texi (pread): Update.
41918         * MODULES.html.sh: Add pread.
41919
41920 2009-11-25  Jim Meyering  <meyering@redhat.com>
41921
41922         tests/init.sh: new file to be used via most *.sh tests
41923         * tests/init.sh: New file.
41924
41925 2009-11-25  Eric Blake  <ebb9@byu.net>
41926
41927         utimens: work around older Linux failure with symlinks
41928         * lib/utimens.c (lutimensat_works_really): New variable.
41929         (fdutimens, lutimens): Use it to manage kernels that support
41930         nanosecond times on files, but not on symlinks.
41931         Reported by OndÅ™ej Vašík.
41932
41933         utimes: fix configure grammar
41934         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41935
41936 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41937
41938         regex: Fix fastmap for multibyte character ranges.
41939         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41940         characters when a multibyte character range is included.
41941
41942 2009-11-22  Andy Wingo  <wingo@pobox.com>
41943
41944         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41945         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41946
41947 2009-11-24  Bruno Haible  <bruno@clisp.org>
41948
41949         doc: Most *_l functions exist in MacOS X 10.5.
41950         * doc/posix-functions/duplocale.texi: Update platforms list.
41951         * doc/posix-functions/freelocale.texi: Likewise.
41952         * doc/posix-functions/newlocale.texi: Likewise.
41953         * doc/posix-functions/uselocale.texi: Likewise.
41954         * doc/posix-functions/isalnum_l.texi: Likewise.
41955         * doc/posix-functions/isalpha_l.texi: Likewise.
41956         * doc/posix-functions/isblank_l.texi: Likewise.
41957         * doc/posix-functions/iscntrl_l.texi: Likewise.
41958         * doc/posix-functions/isdigit_l.texi: Likewise.
41959         * doc/posix-functions/isgraph_l.texi: Likewise.
41960         * doc/posix-functions/islower_l.texi: Likewise.
41961         * doc/posix-functions/isprint_l.texi: Likewise.
41962         * doc/posix-functions/ispunct_l.texi: Likewise.
41963         * doc/posix-functions/isspace_l.texi: Likewise.
41964         * doc/posix-functions/isupper_l.texi: Likewise.
41965         * doc/posix-functions/iswalnum_l.texi: Likewise.
41966         * doc/posix-functions/iswalpha_l.texi: Likewise.
41967         * doc/posix-functions/iswblank_l.texi: Likewise.
41968         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41969         * doc/posix-functions/iswctype_l.texi: Likewise.
41970         * doc/posix-functions/iswdigit_l.texi: Likewise.
41971         * doc/posix-functions/iswgraph_l.texi: Likewise.
41972         * doc/posix-functions/iswlower_l.texi: Likewise.
41973         * doc/posix-functions/iswprint_l.texi: Likewise.
41974         * doc/posix-functions/iswpunct_l.texi: Likewise.
41975         * doc/posix-functions/iswspace_l.texi: Likewise.
41976         * doc/posix-functions/iswupper_l.texi: Likewise.
41977         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41978         * doc/posix-functions/isxdigit_l.texi: Likewise.
41979         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41980         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41981         * doc/posix-functions/strcoll_l.texi: Likewise.
41982         * doc/posix-functions/strfmon_l.texi: Likewise.
41983         * doc/posix-functions/strftime_l.texi: Likewise.
41984         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41985         * doc/posix-functions/strxfrm_l.texi: Likewise.
41986         * doc/posix-functions/tolower_l.texi: Likewise.
41987         * doc/posix-functions/toupper_l.texi: Likewise.
41988         * doc/posix-functions/towctrans_l.texi: Likewise.
41989         * doc/posix-functions/towlower_l.texi: Likewise.
41990         * doc/posix-functions/towupper_l.texi: Likewise.
41991         * doc/posix-functions/wcscoll_l.texi: Likewise.
41992         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41993         * doc/posix-functions/wctrans_l.texi: Likewise.
41994         * doc/posix-functions/wctype_l.texi: Likewise.
41995         * doc/glibc-functions/strptime_l.texi: Likewise.
41996         * doc/glibc-functions/strtod_l.texi: Likewise.
41997         * doc/glibc-functions/strtof_l.texi: Likewise.
41998         * doc/glibc-functions/strtol_l.texi: Likewise.
41999         * doc/glibc-functions/strtold_l.texi: Likewise.
42000         * doc/glibc-functions/strtoll_l.texi: Likewise.
42001         * doc/glibc-functions/strtoul_l.texi: Likewise.
42002         * doc/glibc-functions/strtoull_l.texi: Likewise.
42003         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42004         * doc/glibc-functions/wcstod_l.texi: Likewise.
42005         * doc/glibc-functions/wcstof_l.texi: Likewise.
42006         * doc/glibc-functions/wcstol_l.texi: Likewise.
42007         * doc/glibc-functions/wcstold_l.texi: Likewise.
42008         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42009         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42010         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42011
42012 2009-11-24  Bruno Haible  <bruno@clisp.org>
42013
42014         duplocale: Fix logic bug.
42015         * lib/duplocale.c: Don't include <langinfo.h>.
42016         (_NL_LOCALE_NAME): Remove macro.
42017         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42018         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42019
42020 2009-11-23  Jim Meyering  <meyering@redhat.com>
42021
42022         test-update-copyright: don't hard-code /usr/bin/perl
42023         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42024         perl to print the current year.  Gilles Espinasse reported that
42025         the replaced use of perl was hard-coded as /usr/bin/perl.
42026
42027 2009-11-23  Bruno Haible  <bruno@clisp.org>
42028
42029         duplocale: Add support for glibc 2.3.x.
42030         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42031
42032 2009-11-22  Bruno Haible  <bruno@clisp.org>
42033
42034         vasnprintf: Tiny optimization.
42035         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42036         MacOS X.
42037
42038 2009-11-22  Bruno Haible  <bruno@clisp.org>
42039
42040         Tests for module 'duplocale'.
42041         * modules/duplocale-tests: New file.
42042         * tests/test-duplocale.c: New file.
42043
42044         New module 'duplocale'.
42045         * m4/duplocale.m4: New file.
42046         * lib/locale.in.h (duplocale): New declaration.
42047         * lib/duplocale.c: New file.
42048         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42049         gl_LOCALE_H_DEFAULTS): New macros.
42050         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42051         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42052         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42053         REPLACE_DUPLOCALE.
42054         * modules/duplocale: New file.
42055         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42056
42057 2009-11-22  Bruno Haible  <bruno@clisp.org>
42058
42059         * modules/locale-tests (configure.ac): Test for newlocale function.
42060         * tests/test-locale.c: When the system has extended locale functions,
42061         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42062
42063         locale: Make locale_t available when possible.
42064         * lib/locale.in.h: Include <xlocale.h> when it exists.
42065         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42066         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42067         * modules/locale (Depends-on): Add extensions.
42068         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42069         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42070
42071 2009-11-22  Bruno Haible  <bruno@clisp.org>
42072
42073         Add comments.
42074         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42075         invocation.
42076         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42077         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42078         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42079
42080 2009-11-22  Bruno Haible  <bruno@clisp.org>
42081
42082         error: account for the possibility of freopen (stdout).
42083         * lib/error.c: Include <unistd.h>.
42084         (flush_stdout): New function, extracted from error and error_at_line.
42085         Determine stdout's fd dynamically.
42086         (error, error_at_line): Invoke flush_stdout.
42087         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42088         * modules/error (Depends-on): Add unistd.
42089
42090 2009-11-22  Bruno Haible  <bruno@clisp.org>
42091
42092         diffseq: Add comment.
42093         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42094
42095 2009-11-22  Jim Meyering  <meyering@redhat.com>
42096
42097         c-stack: avoid defining an unused static function
42098         * lib/c-stack.c (find_stack_direction): Do not define this function
42099         when it will not be used.
42100
42101         diffseq: avoid spurious gcc warnings
42102         * lib/diffseq.h (IF_LINT2): Define.
42103         (compareseq): Use it to initialize two members of "part".
42104         This avoids two used-uninitialized warnings.
42105
42106 2009-11-21  Jim Meyering  <meyering@redhat.com>
42107
42108         c-stack: avoid "ignoring return value of `write'" warning
42109         * lib/c-stack.c: Include "ignore-value.h".
42110         (die): Explicitly ignore each write return value.
42111         * modules/c-stack (Depends-on): Add ignore-value.
42112
42113 2009-11-21  Bruno Haible  <bruno@clisp.org>
42114
42115         diffseq: reduce scope of variable 'best'.
42116         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42117         variable, earlier used for two different purposes.
42118
42119 2009-11-21  Jim Meyering  <meyering@redhat.com>
42120
42121         diffseq: remove useless assignment to "best"
42122         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42123         assignment.  At that point "best" is already guaranteed to be zero.
42124
42125 2009-11-20  Eric Blake  <ebb9@byu.net>
42126
42127         build: mention ftp redirector in release announcements
42128         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42129         values that used to come from cfg.mk; mention FTP redirect URL.
42130         * build-aux/announce-gen: Mention the mirror list.
42131         Suggested by Karl Berry.
42132
42133         nanosleep: improve port to mingw
42134         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42136         LIB_NANOSLEEP, but only when needed.
42137         * modules/select (Link): Document LIBSOCKET.
42138         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42139         enough.
42140
42141         nanosleep: work around cygwin bug
42142         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42143         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42144         bug.
42145         (getnow): Delete, not needed.
42146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42147         LIB_CLOCK_GETTIME.
42148         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42149         clock-time, gettime.
42150         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42151         bug.
42152         * modules/nanosleep-tests: New test.
42153         * tests/test-nanosleep.c: New file.
42154
42155         sleep: work around cygwin bug
42156         * lib/sleep.c (rpl_sleep): Work around the bug.
42157         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42158         (gl_PREREQ_SLEEP): Delete unused macro.
42159         * modules/sleep (Depends-on): Add verify.
42160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42161         * modules/unistd (Makefile.am): Substitute witness.
42162         * lib/unistd.in.h (sleep): Update prototype.
42163         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42164         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42165         * modules/sleep-tests (Depends-on): Check for alarm.
42166
42167 2009-11-20  Jim Meyering  <meyering@redhat.com>
42168
42169         maint.mk: improve sc_prohibit_magic_number_exit
42170         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42171         so it does not match uses like System.exit(1).
42172         Add comments showing how to correct all offenders.
42173
42174 2009-11-19  Eric Blake  <ebb9@byu.net>
42175
42176         xalloc-die-tests: add missing library
42177         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42178
42179         test-xvasprintf: silence compiler warnings
42180         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42181         empty string from gcc.
42182
42183 2009-11-19  Jim Meyering  <meyering@redhat.com>
42184
42185         xfreopen: new module, from coreutils
42186         * modules/xfreopen: New module.
42187         * lib/xfreopen.c: New file.
42188         * lib/xfreopen.h: New file.
42189         * MODULES.html.sh (File stream based Input/Output"): Add it.
42190
42191 2009-11-19  Eric Blake  <ebb9@byu.net>
42192
42193         manywarnings: depend on warnings
42194         * modules/manywarnings (Depends-on): Add warnings.
42195
42196         build: avoid compiler warnings
42197         * lib/select.c (rpl_select): Delete unused variable.
42198         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42199
42200 2009-11-18  Eric Blake  <ebb9@byu.net>
42201
42202         tests: avoid false negative with --with-packager
42203         * tests/test-version-etc.sh: Discard packager information.
42204         * tests/test-argp-version-etc-1.sh: Likewise.
42205         Reported by Mike Frysinger.
42206
42207         utimens: fix regression on Solaris
42208         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42209         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42210         can only change fd timestamps via futimesat.  Instead, use an
42211         additional witness macro to avoid BSD bug.
42212         Reported by Jim Meyering.
42213
42214 2009-11-17  Eric Blake  <ebb9@byu.net>
42215
42216         usleep: use it to simplify tests
42217         * modules/stat-time-tests (Depends-on): Add usleep.
42218         (configure.ac): Drop usleep check.
42219         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42220         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42221         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42222         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42223         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42224         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42225         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42226         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42227         Likewise.
42228         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42229         * tests/test-lchown.h (nap): Likewise.
42230         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42231         * tests/test-stat-time.c (nap): Likewise.
42232         * tests/test-utimens-common.h (nap): Update comments.
42233
42234         usleep: new module
42235         * modules/usleep: New file.
42236         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42237         * lib/usleep.c (usleep): Likewise.
42238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42239         * modules/unistd (Makefile.am): Substitute witnesses.
42240         * lib/unistd.in.h (usleep): Add declaration.
42241         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42242         * MODULES.html.sh (Date and time): Likewise.
42243         * modules/usleep-tests (Depends-on): New test.
42244         * tests/test-usleep.c: New file.
42245
42246         chown: work around OpenBSD bug
42247         * lib/chown.c (rpl_chown): Work around the bug.
42248         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42249         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42250         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42251         * modules/chown (Depends-on): Add stdbool.
42252         * modules/lchown (Depends-on): Likewise.
42253         * doc/posix-functions/chown.texi (chown): Document the bug.
42254         * doc/posix-functions/lchown.texi (lchown): Likewise.
42255         * tests/test-lchown.h (test_chown): Relax test.
42256
42257         mkstemp: avoid conflict with C++ keyword template
42258         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42259         * lib/mkostemp.c (mkostemp): Likewise.
42260         * lib/mkostemps.c (mkostemps): Likewise.
42261         * lib/mkstemp.c (mkstemp): Likewise.
42262         * lib/mkstemps.c (mkstemps): Likewise.
42263
42264         xalloc-die-tests: optimize
42265         * tests/test-xalloc-die.sh: Reduce number of processes.
42266
42267 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42268
42269         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42270         patch from ludo@gnu.org (Ludovic Courtès).
42271
42272 2009-11-17  Jim Meyering  <meyering@redhat.com>
42273
42274         version-etc: use proper license string
42275         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42276         * modules/version-etc-fsf: Likewise.
42277
42278 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42279
42280         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42281         printed to stdout.  Deal with EOL differences.
42282
42283 2009-11-17  Eric Blake  <ebb9@byu.net>
42284
42285         unsetenv: work around Solaris bug
42286         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42287         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42288         Reported by Jim Meyering.
42289
42290         vasnprintf: avoid compiler warnings
42291         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42292         variables.
42293         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42294
42295 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42296
42297         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42298         settings since xalloc-die is no longer the self test,
42299         xalloc-die.sh is.
42300
42301 2009-11-17  Jim Meyering  <meyering@redhat.com>
42302
42303         test-xalloc-die.sh: make the code agree with the commit log
42304         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42305         at the end, just in case you happen to have a test-xalloc-die
42306         program in some other PATH directory.
42307
42308         test-xalloc-die.sh: fix a portability bug
42309         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42310         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42311         Otherwise, argv[0] (as often seen in diagnostics) would be too
42312         system-dependent, sometimes with, and sometimes without the leading "./".
42313
42314         version-etc-fsf: relax license to LGPLv3+
42315         * modules/version-etc-fsf (License): Relax license.
42316
42317 2009-11-16  Eric Blake  <ebb9@byu.net>
42318
42319         xalloc-die-tests: avoid printing null pointer
42320         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42321         shell script.
42322         * tests/test-xalloc-die.c (program_name): Declare.
42323         * tests/test-xalloc-die.sh (tmpfiles): New file.
42324
42325         setenv, unsetenv: work around various bugs
42326         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42327         (setenv) [HAVE_SETENV]: Work around bugs.
42328         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42329         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42330         for bugs.
42331         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42332         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42334         * modules/stdlib (Makefile.am): Update substitutions.
42335         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42336         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42337         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42338         * modules/setenv-tests: New test.
42339         * modules/unsetenv-tests: Likewise.
42340         * tests/test-setenv.c: New file.
42341         * tests/test-unsetenv.c: Likewise.
42342
42343 2009-11-16  Jim Meyering  <meyering@redhat.com>
42344
42345         version-etc: relax license to LGPLv3+
42346         * modules/version-etc (License): Relax license.
42347
42348         better AC_REQUIRE expanded-before-required-warning avoidance
42349         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42350         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42351         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42352         which is no longer needed.
42353
42354 2009-11-16  Eric Blake  <ebb9@byu.net>
42355
42356         test-freading: clean up temporary file
42357         * tests/test-freading.c (main): Remove file on success, and use
42358         ASSERT more liberally.
42359         Reported by Jim Meyering.
42360
42361 2009-11-16  Jim Meyering  <meyering@redhat.com>
42362
42363         avoid new AC_REQUIRE expanded-before-required warnings
42364         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42365         merely using it.
42366         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42367         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42368
42369 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42370
42371         * tests/test-xalloc-die.c: New file.
42372         * modules/xalloc-die-tests: New file.
42373         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42374         XFAIL_TESTS so it can be appended by modules.
42375
42376 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42377
42378         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42379         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42380
42381 2009-11-14  Eric Blake  <ebb9@byu.net>
42382
42383         fnmatch: avoid compiler warning
42384         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42385         to silence compiler warning about mismatch signedness in ?:.
42386         Reported by Robert Millan.
42387
42388         intprops: add double-inclusion guard
42389         * lib/intprops.h: Allow idempotent includes.
42390         Suggested by Bruce Korb.
42391
42392         openat: detect Solaris fchownat bug
42393         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42394         penalizing glibc chownat when only lchownat is broken.
42395         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42396         trailing slash bugs.
42397         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42398         * modules/openat-tests (Files): Include more files.
42399         (Depends-on): Add mgetgroups, sleep, stat-time.
42400         (configure.ac): Add additional checks.
42401         (Makefile.am): Build new test.
42402         * tests/test-fchownat.c: New file.
42403
42404         lchown: detect Solaris and FreeBSD bug
42405         * lib/lchown.c (rpl_lchown): Work around bug.
42406         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42408         * modules/unistd (Makefile.am): Populate it.
42409         * lib/unistd.in.h (lchown): Update declaration.
42410         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42411         * modules/lchown-tests: New file.
42412         * tests/test-lchown.h (test_lchown): Likewise.
42413         * tests/test-lchown.c (main): Likewise.
42414
42415         chown: detect Solaris and FreeBSD bug
42416         * lib/chown.c (rpl_chown): Work around bug.
42417         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42418         (gl_PREREQ_CHOWN): Delete.
42419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42420         * modules/unistd (Makefile.am): Populate it.
42421         * lib/unistd.in.h (chown): Update declaration.
42422         * lib/lchown.c (chown): Update client.
42423         * modules/lchown (Depends-on): Add lstat.
42424         * doc/posix-functions/chown.texi (chown): Document the bug.
42425         * doc/posix-functions/getgroups.texi (getgroups): Document
42426         getgroups pitfall.
42427         * modules/chown-tests: New file.
42428         * tests/test-chown.h (test_chown): Likewise.
42429         * tests/test-chown.c (main): Likewise.
42430
42431 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42432
42433         gnulib-tool: correctly detect absence of m4 directories
42434         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42435
42436 2009-11-14  Jim Meyering  <meyering@redhat.com>
42437
42438         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42439         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42440
42441 2009-11-14  John W. Eaton  <jwe@gnu.org>
42442
42443         strftime.h: wrap function declaration in extern "C" block
42444         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42445
42446 2009-11-13  Eric Blake  <ebb9@byu.net>
42447
42448         getgroups: avoid compiler warning
42449         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42450
42451         getgroups: work around FreeBSD bug
42452         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42453         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42454         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42455         * tests/test-getgroups.c (main): Fix buffer overrun.
42456
42457         getgroups: avoid compilation failure
42458         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42459         * modules/getgroups (Depends-on): Add stdint.
42460
42461 2009-11-13  Jim Meyering  <meyering@redhat.com>
42462
42463         test-getgroups: avoid compilation failure
42464         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42465
42466 2009-11-13  Eric Blake  <ebb9@byu.net>
42467
42468         mgetgroups: new module, taken from coreutils
42469         * modules/mgetgroups: New file.
42470         * lib/mgetgroups.h: Likewise.
42471         * lib/mgetgroups.c (mgetgroups): Likewise.
42472         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42473         * MODULES.html.sh (Users and groups): Mention it.
42474
42475         getgroups: don't expose GETGROUPS_T to user
42476         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42477         an element at a time if GETGROUPS_T is wrong size.
42478         * lib/getugroups.h (getugroups): Change signature.
42479         * lib/unistd.in.h (getgroups): Likewise.
42480         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42481         signature needs fixing.
42482         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42483         AC_TYPE_GETGROUPS.
42484         * modules/group-member (Depends-on): Add getgroups.
42485         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42486         (group_member): Rely on getgroups replacement.
42487         * lib/getugroups.c (getugroups): Use gid_t.
42488         * tests/test-getgroups.c (main): Likewise.
42489         * NEWS: Mention the signature change.
42490         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42491         problem with signature.
42492         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42493         GETGROUPS_T is still useful for setgroups.
42494
42495         getgroups, getugroups: provide stubs for mingw
42496         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42497         * lib/getugroups.c (getugroups): Likewise.
42498         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42499         function.  Modernize replacement scheme.
42500         (gl_PREREQ_GETGROUPS): Delete.
42501         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42502         * modules/getgroups (configure.ac): Declare witness.
42503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42504         * modules/unistd (Depends-on): Substitute witness.
42505         * lib/unistd.in.h (getgroups): Declare replacement.
42506
42507         getgroups: avoid calling exit
42508         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42509         drop xalloc.
42510         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42511         dependencies.
42512         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42513         exiting, in the rare case of malloc failure.
42514
42515         getgroups: fix logic error
42516         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42517         has more than 20 groups.
42518         * modules/getgroups-tests: New test.
42519         * tests/test-getgroups.c: New file.
42520
42521 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42522
42523         * tests/test-base64.c: Improve.
42524
42525 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42526
42527         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42528         Blake <ebb9@byu.net>.
42529
42530 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42531
42532         * tests/test-xvasprintf.c: Add %s%s related checks.
42533
42534 2009-11-12  Eric Blake  <ebb9@byu.net>
42535
42536         version-etc: match standards.texi style
42537         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42538         and use <> only for URLs.
42539
42540 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42541
42542         fts: do not fail on a submount during traversal
42543         * lib/fts.c (fts_build): Read the stat info again after opening
42544         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42545         Original report at http://bugzilla.redhat.com/501848.
42546
42547 2009-11-12  Jim Meyering  <meyering@redhat.com>
42548
42549         bootstrap: sync from coreutils
42550         * build-aux/bootstrap (bootstrap_epilogue): New function.
42551         Use git_modules_config in one more place.  This make bootstrap's
42552         --gnulib-srcdir option more useful for testing.
42553
42554         bootstrap: generalize autoheader check
42555         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42556         AC_CONFIG_HEADERS.
42557
42558 2009-11-11  Eric Blake  <ebb9@byu.net>
42559
42560         mkfifoat: use new modules for Solaris and BSD bugs
42561         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42562         * lib/mkfifoat.c (mknodat): Split...
42563         * lib/mknodat.c (mknodat): ...into new file.
42564         * modules/mkfifoat (Files): Ship new file.
42565         (Depends-on): Add mkfifo, mknod.
42566         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42567         (Depends-on): Add symlink.
42568         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42569         redundant with test_mkfifo.h.
42570         (do_mkfifoat, do_mknodat): New helpers.
42571
42572         mknod: new module
42573         * modules/mknod: New file.
42574         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42575         * lib/mknod.c (mknod): Likewise.
42576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42577         defaults.
42578         * modules/sys_stat (Makefile.am): Substitute them.
42579         * lib/sys_stat.in.h (mknod): Declare replacement.
42580         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42581         Document it.
42582         * doc/posix-functions/mknod.texi (mknod): Likewise.
42583         * modules/mknod-tests: New test.
42584         * tests/test-mknod.c: Likewise.
42585
42586         mkfifo: new module
42587         * modules/mkfifo: New file.
42588         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42589         * lib/mkfifo.c (mkfifo): Likewise.
42590         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42591         defaults.
42592         * modules/sys_stat (Makefile.am): Substitute them.
42593         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42594         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42595         Document it.
42596         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42597         * modules/mkfifo-tests: New test.
42598         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42599         from test-mkfifoat.c.
42600         * tests/test-mkfifo.c: New file.
42601
42602         readlink: detect FreeBSD bug
42603         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42604         slash on symlink.
42605         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42606         * tests/test-readlink.h (test_readlink): Enhance test.
42607
42608         symlink: detect FreeBSD bug
42609         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42610         slash on symlink.
42611         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42612         * tests/test-symlink.h (test_symlink): Enhance test.
42613
42614 2009-11-10  Eric Blake  <ebb9@byu.net>
42615
42616         link: detect FreeBSD bug
42617         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42618         symlink.
42619         * doc/posix-functions/link.texi (link): Document the bug.
42620         * tests/test-link.h (test_link): Enhance test.
42621         * tests/test-linkat.c (main): Update caller.
42622
42623         unlink, remove: detect FreeBSD bug
42624         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42625         slash on symlink.
42626         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42627         * doc/posix-functions/remove.texi (remove): Likewise.
42628         * tests/test-unlink.h (test_unlink): Enhance test.
42629         * tests/test-remove.c (main): Likewise.
42630
42631 2009-11-09  Eric Blake  <ebb9@byu.net>
42632
42633         rename: detect FreeBSD bug
42634         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42635         slash on symlink.
42636         * modules/renameat-tests (Depends-on): Add filenamecat.
42637         * tests/test-rename.h (test_rename): Allow one more errno.
42638         * tests/test-renameat.c (main): Likewise.
42639         * doc/posix-functions/rename.texi (rename): Document the bug.
42640
42641         open: detect FreeBSD bug
42642         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42643         symlink.
42644         * doc/posix-functions/open.texi (open): Document the bug.
42645         * doc/posix-functions/utimes.texi (utimes): Likewise.
42646         * tests/test-open.h (test_open): Add parameters, and test symlink
42647         handling.
42648         * tests/test-open.c (main): Adjust caller.
42649         * tests/test-fcntl-safer.c (main): Likewise.
42650         * modules/open-tests (Depends-on): Add stdbool, symlink.
42651         * modules/fcntl-safer-tests (Depends-on): Likewise.
42652         * tests/test-openat.c (main): Add test-open tests.
42653
42654         stat: detect FreeBSD bug
42655         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42656         symlink.
42657         * doc/posix-functions/stat.texi (stat): Document the bug.
42658         * tests/test-stat.h (test_stat_func): Add argument.
42659         * tests/test-stat.c (main): Adjust caller.
42660         * tests/test-fstatat.c (main): Likewise.
42661         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42662         Reported by Jim Meyering.
42663
42664 2009-11-09  James Youngman  <jay@gnu.org>
42665
42666         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42667         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42668
42669 2009-11-08  Jim Meyering  <meyering@redhat.com>
42670
42671         utimens: remove invalid futimesat call
42672         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42673         It used the file descriptor of the target file as the DIR_FD
42674         parameter and NULL as the file name.  That caused failure with
42675         errno == EFAULT on FreeBSD-8.0-rc2
42676
42677 2009-11-07  Eric Blake  <ebb9@byu.net>
42678
42679         fflush, freadseek: use fseeko, not fseek
42680         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42681         (clear_ungetc_buffer): Avoid potential problems on large files.
42682         * lib/freadseek.c (freadseek): Likewise.
42683         * modules/freadseek (Depends-on): Add fseeko.
42684         * modules/fseek (configure.ac): Set a witness.
42685         * tests/test-fflush.c (main): Use fseeko.
42686         * tests/test-fpurge.c (fseek): Disable link warning.
42687         * tests/test-freadable.c (fseek): Likewise.
42688         * tests/test-freading.c (fseek): Likewise.
42689         * tests/test-fseeko.c (fseek): Likewise.
42690         * tests/test-ftell.c (fseek): Likewise.
42691         * tests/test-ftello.c (fseek): Likewise.
42692         * tests/test-fwritable.c (fseek): Likewise.
42693         * tests/test-fwriting.c (fseek): Likewise.
42694
42695 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42696
42697         * modules/memchr (Depends-on): Drop getpagesize dependency.
42698
42699 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42700
42701         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42702         Reported by Ludovic Courtès.
42703         * build-aux/pmccabe2html: Improve example usage.
42704         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42705
42706 2009-11-06  Jim Meyering  <meyering@redhat.com>
42707
42708         do-release-commit-and-tag: New module.
42709         Automate the release-commit and tag process.
42710         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42711         * modules/do-release-commit-and-tag: New file.
42712         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42713
42714 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42715
42716         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42717         because test-select.c uses inet_pton.
42718
42719 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42720
42721         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42722         GETADDRINFO_LIB.  Bump serial number.
42723         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42724         Suggested by Eric Blake <ebb9@byu.net>.
42725
42726 2009-11-05  Eric Blake  <ebb9@byu.net>
42727
42728         strtod: detect darwin bug
42729         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42730         Reported by Leo Davis.
42731
42732         freopen-safer: new module
42733         * modules/freopen-safer: New module.
42734         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42735         * lib/freopen-safer.c (freopen_safer): New file.
42736         * lib/stdio-safer.h (freopen_safer): New declaration.
42737         * lib/stdio--.h (freopen): New override.
42738         * MODULES.html.sh (File stream based Input/Output): Mention it.
42739         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42740         freopen-safer module.
42741         * doc/posix-functions/stderr.texi (stderr): Likewise.
42742         * doc/posix-functions/stdin.texi (stdin): Likewise.
42743         * doc/posix-functions/stdout.texi (stdout): Likewise.
42744         * modules/freopen-safer-tests: New test.
42745         * tests/test-reopen-safer.c: New file.
42746
42747 2009-11-05  Jim Meyering  <meyering@redhat.com>
42748
42749         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42750         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42751
42752 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42753
42754         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42755
42756 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42757
42758         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42759
42760 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42761
42762         Fix link error.
42763         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42764         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42765
42766 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42767
42768         * tests/test-func.c: Also test value of __func__.
42769
42770 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42771
42772         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42773         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42774
42775 2009-11-05  Bruno Haible  <bruno@clisp.org>
42776
42777         Fix link error.
42778         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42779         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42780         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42781
42782 2009-11-05  Bruno Haible  <bruno@clisp.org>
42783
42784         Tests for module 'inet_pton'.
42785         * modules/inet_pton-tests: New file.
42786         * tests/test-inet_pton.c: New file.
42787
42788 2009-11-05  Bruno Haible  <bruno@clisp.org>
42789
42790         Tests for module 'inet_ntop'.
42791         * modules/inet_ntop-tests: New file.
42792         * tests/test-inet_ntop.c: New file.
42793
42794 2009-11-04  Eric Blake  <ebb9@byu.net>
42795
42796         stdlib-safer: wrap all mkstemp variants
42797         * modules/mkostemp (configure.ac): Set witness.
42798         * modules/mkostemps (configure.ac): Likewise.
42799         * modules/mkstemps (configure.ac): Likewise.
42800         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42801         (mkstemps_safer): Wrap more functions.
42802         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42803         wrapping.
42804         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42805         (mkstemps_safer): Implement the wrappers.
42806
42807         mkstemps, mkostemps: new modules
42808         * modules/mkostemps: New module.
42809         * modules/mkstemps: Likewise.
42810         * lib/mkostemps.c (mkostemps): New file.
42811         * lib/mkstemps.c (mkstemps): Likewise.
42812         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42813         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42815         * modules/stdlib (Makefile.am): Substitute them.
42816         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42817         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42818         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42819         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42820         * MODULES.html.sh (File system functions): Mention them.
42821
42822         tempname: resync from glibc
42823         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42824         same values for __GT_FILE as glibc.  Abort even when assertions
42825         are disabled.
42826         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42827         match its value otherwise.  Allow idempotent inclusion.
42828         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42829         * lib/mkostemp.c (mkostemp): Likewise.
42830         * lib/mkstemp.c (mkstemp): Likewise.
42831         * lib/tmpfile.c (tmpfile): Likewise.
42832         * NEWS: Document this.
42833
42834         utimens: fix use of futimens on older Linux
42835         * lib/utimens.c (fdutimens): Use updated, rather than original,
42836         timespec to avoid bug in older Linux kernel.
42837         Reported by Simon Josefsson.
42838
42839 2009-11-04  Bruno Haible  <bruno@clisp.org>
42840
42841         Make num_processors more flexible and consistent.
42842         * lib/nproc.h (enum nproc_query): New type.
42843         (num_processors): Add a 'query' argument.
42844         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42845         (num_processors): Add a 'query' argument. Test the value of the
42846         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42847         mingw, count the number of CPUs available for the current process.
42848         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42849         Check for sched_getaffinity and sched_getaffinity_np.
42850         * modules/nproc (Depends-on): Add c-ctype, extensions.
42851         * NEWS: Mention the change.
42852
42853 2009-11-03  Bruno Haible  <bruno@clisp.org>
42854
42855         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42856
42857 2009-11-03  Jim Meyering  <meyering@redhat.com>
42858
42859         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42860         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42861         if it is defined.
42862
42863 2009-11-02  Eric Blake  <ebb9@byu.net>
42864
42865         mktime, timegm: share common declaration
42866         * lib/mktime-internal.h: New file.
42867         * lib/mktime.c: Use it rather than open-coding a declaration.
42868         * lib/timegm.c: Likewise.
42869         * modules/mktime (Files): Ship it.
42870         * modules/timegm (Files): Likewise.
42871         Suggested by Bruno Haible.
42872
42873         test-update-copyright: update test to match script changes
42874         * tests/test-update-copyright.sh: Avoid hard-coding perl
42875         location.  Don't update *.bak created by earlier runs.
42876
42877 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42878             Simon Josefsson  <simon@josefsson.org>
42879             Bruno Haible  <bruno@clisp.org>
42880
42881         Fix link error on Solaris 8.
42882         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42883         also in libnsl. Define also INET_PTON_LIB.
42884         * modules/inet_pton (Link): New section.
42885
42886 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42887             Bruno Haible  <bruno@clisp.org>
42888
42889         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42890         * modules/inet_ntop (Link): New section.
42891         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42892
42893 2009-11-02  Eric Blake  <ebb9@byu.net>
42894
42895         maint: avoid compiler warnings in m4 macros
42896         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42897         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42898
42899 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42900
42901         * m4/pmccabe2html.m4: Remove file.
42902         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42903         function.  Change maintainer.
42904         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42905         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42906         Courtès).
42907
42908 2009-10-31  Eric Blake  <ebb9@byu.net>
42909
42910         fseeko: fix m4 regression
42911         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42912         regression from 2009-10-27.
42913         Reported by Ralf Wildenhues.
42914
42915 2009-10-31  Jim Meyering  <meyering@redhat.com>
42916
42917         inttostr: aesthetics and improved (compile-time) safety
42918         Define inttype_is_signed rather than inttype_is_unsigned,
42919         since the sole use is via "#if inttype_is_signed".
42920         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42921         inttype_is_unsigned.
42922         * lib/offtostr.c (inttype_is_signed): Likewise.
42923         * lib/uinttostr.c (inttype_is_signed): Likewise.
42924         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42925         * lib/inttostr.c (inttostr): Use verify to cross-check the
42926         inttype_is_signed value and the signedness of the actual type.
42927         * modules/inttostr (Depends-on): Add verify.
42928
42929 2009-10-30  Eric Blake  <ebb9@byu.net>
42930
42931         build: avoid compiler warnings
42932         * lib/fchmodat.c (lchmod): Mark unused variables.
42933         * lib/getopt.c (_getopt_initialize): Likewise.
42934         * lib/mktime.c (__mktime_internal): Provide prototype.
42935         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42936         older gcc that do not understand #pragma GCC diagnostic.
42937         * lib/uinttostr.c (inttype_is_unsigned): Define.
42938         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42939
42940 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42941
42942         stat: fix compilation on AIX
42943         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42944         only see struct stat64.
42945
42946 2009-10-30  Eric Blake  <ebb9@byu.net>
42947
42948         exclude: make more robust
42949         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42950         rather than masking a coding bug.
42951         Suggested by Bruno Haible.
42952
42953 2009-10-30  Jim Meyering  <meyering@redhat.com>
42954
42955         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42956         Rather than putting #!/usr/bin/perl on the first line,
42957         start with a variant of what's recommended by "man perlrun" that
42958         invokes the first "perl" program from your shell's search path.
42959         * build-aux/gitlog-to-changelog: Replace #!... as above.
42960         Add a "Local Variables" perl mode setting.
42961         Prompted by a patch from Ludovic Courtès.
42962         Improved by Eric Blake.
42963         * build-aux/useless-if-before-free: Likewise.
42964         * build-aux/announce-gen: Likewise.
42965         * build-aux/update-copyright: Likewise.
42966
42967 2009-10-29  Eric Blake  <ebb9@byu.net>
42968
42969         filenamecat-lgpl: adjust clients
42970         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42971         filenamecat.
42972         * modules/renameat (Depends-on): Likewise.
42973
42974         filenamecat: split into filenamecat-lgpl
42975         * modules/filenamecat-lgpl: New module.
42976         * modules/filenamecat (Files): Move library-safe files into
42977         filenamecat-lgpl.
42978         (Depends-on): Add filenamecat-lgpl.
42979         (configure.ac): Declare witness.
42980         * lib/filenamecat.h (file_name_concat): Only declare when using
42981         GPL module.
42982         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42983         Move...
42984         * lib/filenamecat-lgpl.c: ...into new file.
42985         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42986         (gl_FILE_NAME_CONCAT): Use it.
42987         * MODULES.html.sh (File system functions): Mention new module.
42988
42989         argp: avoid memory leak
42990         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42991         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42992         base_name, since the latter malloc()s and can call exit().
42993         Leak introduced 2006-07-03.
42994
42995         dirname-lgpl: adjust clients that don't need full dirname
42996         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42997         * modules/filenamecat (Depends-on): Likewise.
42998         * modules/linkat (Depends-on): Likewise.
42999         * modules/mkancesdirs (Depends-on): Likewise.
43000         * modules/mkdir (Depends-on): Likewise.
43001         * modules/openat (Depends-on): Likewise.
43002         * modules/savewd (Depends-on): Likewise.
43003         * modules/rename (Depends-on): Likewise.
43004         (License): Relax license.
43005         * modules/mkdir-tests (Depends-on): Drop progname.
43006         (Makefile.am): Delete unneeded LDADD.
43007         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43008
43009         dirname: split into dirname-lgpl
43010         * modules/dirname-lgpl: New module.
43011         * modules/dirname (Files): Move library-safe files into
43012         dirname-lgpl.
43013         (Depends-on): Add dirname-lgpl.
43014         (configure.ac): Declare witness.
43015         * modules/double-slash-root (License): Relax license.
43016         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43017         module.
43018         * lib/dirname.c (dir_len, mdir_name): Move...
43019         * lib/dirname-lgpl.c: ...into new file.
43020         * lib/basename.c (last_component, base_len): Move...
43021         * lib/basename-lgpl.c: ...into new file.
43022         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43023         (gl_DIRNAME): Use it.
43024         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43025         Mention new module.
43026         * modules/dirname-tests (Depends-on): Add progname.
43027         * tests/test-dirname.c (program_name): Delete.
43028
43029         mkdir: make safe for libraries
43030         * modules/mkdir (Depends-on): Drop xalloc.
43031         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43032         exit.
43033
43034         tests: avoid some compiler warnings
43035         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43036         literals.
43037         * tests/test-memchr.c (main): Avoid type mismatch.
43038         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43039         * tests/test-base64.c (main): Likewise.
43040         * tests/test-getdelim.c (main): Likewise.
43041         * tests/test-gethostname.c (main): Likewise.
43042         * tests/test-getline.c (main): Likewise.
43043         * tests/test-netinet_in.c (main): Likewise.
43044         * tests/test-select.c (open_server_socket, main): Likewise.
43045         * tests/test-select-stdin.c (main): Likewise.
43046         * tests/test-sockets.c (main): Likewise.
43047         * tests/test-strsignal.c (main): Likewise.
43048         * tests/test-sys_select.c (main): Likewise.
43049         * tests/test-sys_socket.c (main): Likewise.
43050         * tests/test-u64.c (main): Likewise.
43051         * tests/test-xfprintf-posix.c (main): Likewise.
43052         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43053
43054         sockets: avoid compiler warning
43055         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43056
43057         maint: detect usage(1) and other suspicious exits
43058         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43059
43060 2009-10-29  Jim Meyering  <meyering@redhat.com>
43061
43062         timespec: long-to-int truncation could make timespec_cmp malfunction
43063         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43064         a multiple of 2^32 nanoseconds as no difference.
43065
43066 2009-10-28  Jim Meyering  <meyering@redhat.com>
43067
43068         fprintftime: wrap macro code argument in "do {...} while(0)"
43069         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43070         cpy macro must be a statement that can be followed by a semicolon.
43071         Now that the else clause contains a comment and is hence longer
43072         than one line, I require curly braces.  That in turn requires
43073         that we wrap this code block in the standard do...while(0).
43074
43075         fprintftime: remove stray semicolon from previous change
43076         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43077
43078         fprintftime: avoid a warning about ignored fwrite return value
43079         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43080         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43081         that is unsafe.
43082         * modules/fprintftime (Depends-on): Add ignore-value.
43083
43084         exclude: avoid an unwarranted warning
43085         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43086
43087 2009-10-27  Eric Blake  <ebb9@byu.net>
43088
43089         fseek: avoid compilation failure when fflush is replaced
43090         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43091         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43092         module is in use.
43093         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43094         module is not in use; since REPLACE_FSEEK worked otherwise.
43095         (GNULIB_FTELLO): Likewise for ftell.
43096         Reported by Ian Beckwith and others.
43097
43098 2009-10-27  Bruno Haible  <bruno@clisp.org>
43099
43100         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43101         Reported by Jim Meyering.
43102
43103 2009-10-27  Jim Meyering  <jim@meyering.net>
43104             Bruno Haible  <bruno@clisp.org>
43105
43106         Avoid warning despite dropping the return value of fwrite.
43107         * lib/unicodeio.c: Include ignore-value.h.
43108         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43109         * modules/unicodeio (Depends-on): Add ignore-value.
43110
43111 2009-10-26  Eric Blake  <ebb9@byu.net>
43112
43113         areadlinkat: fix fallback path
43114         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43115         pointer and zero.
43116
43117 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43118
43119         Use a better IO block size for modern systems
43120         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43121         * lib/md2.c: Likewise.
43122         * lib/md4.c: Likewise.
43123         * lib/md5.c: Likewise.
43124         * lib/sha1.c: Likewise.
43125         * lib/sha256.c: Likewise.
43126         * lib/sha512.c: Likewise.
43127
43128 2009-10-22  Eric Blake  <ebb9@byu.net>
43129
43130         tests: avoid several compiler warnings
43131         * tests/test-getcwd.c (main): Avoid buffer underflow.
43132         * tests/test-getdate.c (main): String literals are not safe with
43133         putenv, so use setenv.  Declare unused argument.
43134         * modules/getdate-tests (Depends-on): Add setenv.
43135         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43136         problems with string literals in char *.
43137         * tests/test-hash.c (main): Avoid shadowing declaration.
43138         (insert_new): Treat string literals as char const *.
43139         * tests/test-getopt.h (test_getopt): Likewise.
43140         (getopt_loop): Alter types to minimize casting elsewhere.
43141         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43142         (test_getopt_long_posix): Likewise.
43143         (do_getopt_long): Add wrapper to minimize casting.
43144         * tests/test-atexit.c (clear_temp_file): Use void.
43145         * tests/test-areadlink-with-size.c (main): Declare unused
43146         arguments.
43147         * tests/test-areadlink.c (main): Likewise.
43148         * tests/test-areadlinkat-with-size.c (main): Likewise.
43149         * tests/test-areadlinkat.c (main): Likewise.
43150         * tests/test-canonicalize-lgpl.c (main): Likewise.
43151         * tests/test-canonicalize.c (main): Likewise.
43152         * tests/test-dirent-safer.c (main): Likewise.
43153         * tests/test-dirname.c (main): Likewise.
43154         * tests/test-dup2.c (main): Likewise.
43155         * tests/test-fchdir.c (main): Likewise.
43156         * tests/test-fcntl-h.c (main): Likewise.
43157         * tests/test-fcntl-safer.c (main): Likewise.
43158         * tests/test-fdopendir.c (main): Likewise.
43159         * tests/test-fdutimensat.c (main): Likewise.
43160         * tests/test-fflush.c (main): Likewise.
43161         * tests/test-filenamecat.c (main): Likewise.
43162         * tests/test-filevercmp.c (main): Likewise.
43163         * tests/test-fopen-safer.c (main): Likewise.
43164         * tests/test-fopen.c (main): Likewise.
43165         * tests/test-fpending.c (main): Likewise.
43166         * tests/test-fpurge.c (main): Likewise.
43167         * tests/test-freading.c (main): Likewise.
43168         * tests/test-fstatat.c (main): Likewise.
43169         * tests/test-fsync.c (main): Likewise.
43170         * tests/test-futimens.c (main): Likewise.
43171         * tests/test-getndelim2.c (main): Likewise.
43172         * tests/test-gettimeofday.c (main): Likewise.
43173         * tests/test-getopt.c (main): Likewise.
43174         * tests/test-i-ring.c (main): Likewise.
43175         * tests/test-inttypes.c (main): Likewise.
43176         * tests/test-link.c (main): Likewise.
43177         * tests/test-lstat.c (main): Likewise.
43178         * tests/test-math.c (main): Likewise.
43179         * tests/test-md5.c (main): Likewise.
43180         * tests/test-memchr2.c (main): Likewise.
43181         * tests/test-memrchr.c (main): Likewise.
43182         * tests/test-mkdir.c (main): Likewise.
43183         * tests/test-mkdirat.c (main): Likewise.
43184         * tests/test-mkfifoat.c (main): Likewise.
43185         * tests/test-open.c (main): Likewise.
43186         * tests/test-openat-safer.c (main): Likewise.
43187         * tests/test-openat.c (main): Likewise.
43188         * tests/test-quotearg.c (main): Likewise.
43189         * tests/test-rawmemchr.c (main): Likewise.
43190         * tests/test-readlink.c (main): Likewise.
43191         * tests/test-remove.c (main): Likewise.
43192         * tests/test-rename.c (main): Likewise.
43193         * tests/test-renameat.c (main): Likewise.
43194         * tests/test-rmdir.c (main): Likewise.
43195         * tests/test-sha1.c (main): Likewise.
43196         * tests/test-signal.c (main): Likewise.
43197         * tests/test-sigaction.c (main): Likewise.
43198         * tests/test-stat.c (main): Likewise.
43199         * tests/test-stat-time.c (main): Likewise.
43200         * tests/test-stddef.c (main): Likewise.
43201         * tests/test-stdint.c (main): Likewise.
43202         * tests/test-stdio.c (main): Likewise.
43203         * tests/test-stdlib.c (main): Likewise.
43204         * tests/test-strchrnul.c (main): Likewise.
43205         * tests/test-strerror.c (main): Likewise.
43206         * tests/test-string.c (main): Likewise.
43207         * tests/test-strtod.c (main): Likewise.
43208         * tests/test-strverscmp.c (main): Likewise.
43209         * tests/test-symlink.c (main): Likewise.
43210         * tests/test-symlinkat.c (main): Likewise.
43211         * tests/test-sys_stat.c (main): Likewise.
43212         * tests/test-sys_time.c (main): Likewise.
43213         * tests/test-time.c (main): Likewise.
43214         * tests/test-unistd.c (main): Likewise.
43215         * tests/test-unlink.c (main): Likewise.
43216         * tests/test-unlinkat.c (main): Likewise.
43217         * tests/test-utimens.c (main): Likewise.
43218         * tests/test-utimensat.c (main): Likewise.
43219         * tests/test-version-etc.c (main): Likewise.
43220         * tests/test-wchar.c (main): Likewise.
43221         * tests/test-wctype.c (main): Likewise.
43222         * tests/test-xprintf-posix.c (main): Likewise.
43223         * tests/test-posixtm.c (main): Likewise.
43224         (STREQ): Delete unused macro.
43225         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43226         shadowed variables.
43227         * tests/test-memchr.c (main): Likewise.
43228
43229 2009-10-21  Eric Blake  <ebb9@byu.net>
43230
43231         areadlinkat: avoid failure on older glibc
43232         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43233         rather than mis-comparing 0 against FUNC_RESULT of char*.
43234
43235 2009-10-21  Bruno Haible  <bruno@clisp.org>
43236
43237         * modules/stpncpy (License): Relicense under LGPLv2+.
43238         Reported by David Lutterkort <lutter@redhat.com>.
43239
43240 2009-10-20  Eric Blake  <ebb9@byu.net>
43241
43242         utimensat: work around Solaris 9 bug
43243         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43244         has trailing slash bugs.
43245         * tests/test-lutimens.h (test_lutimens): Enhance test.
43246         * tests/test-utimens.h (test_utimens): Likewise.
43247         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43248         * doc/posix-functions/utimes.texi (utimes): Likewise.
43249         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43250         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43251         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43252         * doc/posix-functions/futimens.texi (futimens): Likewise.
43253
43254         fdutimensat: new module
43255         * modules/fdutimensat: New file.
43256         * lib/fdutimensat.c (fdutimensat): Likewise.
43257         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43258         * MODULES.html.sh (File system functions): Mention module.
43259         * modules/fdutimensat-tests: New test.
43260         * tests/test-fdutimensat.c: Likewise.
43261
43262         doc: regenerate INSTALL
43263         * doc/INSTALL: Reflect recent autoconf update.
43264         * doc/INSTALL.ISO: Likewise.
43265         * doc/INSTALL.UTF-8: Likewise.
43266
43267 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43268
43269         acl: warn if ACL support is not detected
43270         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43271
43272 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43273
43274         * lib/nproc.h: Add extern "C" block for C++.
43275
43276 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43277             Bruno Haible  <bruno@clisp.org>
43278
43279         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43280         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43281         * doc/posix-functions/isalpha.texi: Likewise.
43282         * doc/posix-functions/isblank.texi: Likewise.
43283         * doc/posix-functions/iscntrl.texi: Likewise.
43284         * doc/posix-functions/isdigit.texi: Likewise.
43285         * doc/posix-functions/isgraph.texi: Likewise.
43286         * doc/posix-functions/islower.texi: Likewise.
43287         * doc/posix-functions/isprint.texi: Likewise.
43288         * doc/posix-functions/ispunct.texi: Likewise.
43289         * doc/posix-functions/isspace.texi: Likewise.
43290         * doc/posix-functions/isupper.texi: Likewise.
43291         * doc/posix-functions/isxdigit.texi: Likewise.
43292
43293 2009-10-18  Bruno Haible  <bruno@clisp.org>
43294
43295         Tests for module 'isblank'.
43296         * modules/isblank-tests: New file.
43297         * tests/test-isblank.c: New file.
43298
43299         New module 'isblank'.
43300         * lib/isblank.c: New file.
43301         * m4/isblank.m4: New file.
43302         * modules/isblank: New file.
43303         * doc/posix-functions/isblank.texi: Mention the new module.
43304
43305 2009-10-18  Bruno Haible  <bruno@clisp.org>
43306
43307         New module 'ctype'.
43308         * lib/ctype.in.h: New file.
43309         * m4/ctype.m4: New file.
43310         * modules/ctype: New file.
43311         * doc/posix-headers/ctype.texi: Mention the new module.
43312
43313 2009-10-18  Jim Meyering  <meyering@redhat.com>
43314
43315         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43316         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43317         right after its initialization, rather than farther down.
43318         Keeping these in close proximity makes it easier to ensure
43319         that each such variable is initialized.  E.g.,
43320
43321             LIB_CLOCK_GETTIME=
43322             AC_SUBST([LIB_CLOCK_GETTIME])
43323
43324         This change also increments these serial numbers.
43325         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43328
43329 2009-10-18  Bruno Haible  <bruno@clisp.org>
43330
43331         Don't let environment variables perturb build.
43332         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43333         (gl_PREREQ_GETHRXTIME): ... not here.
43334
43335 2009-10-18  Bruno Haible  <bruno@clisp.org>
43336
43337         Avoid symlink attack in localcharset module.
43338         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43339         (O_NOFOLLOW): Define fallback.
43340         (get_charset_aliases): Don't open the file if it is a symbolic link.
43341         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43342         gl_FCNTL_H.
43343         (gl_FCNTL_H): Require it.
43344         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43345         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43346         Reported by Fergal Glynn <fglynn@veracode.com>.
43347
43348 2009-10-18  Bruno Haible  <bruno@clisp.org>
43349
43350         Implement nproc for mingw.
43351         * lib/nproc.c: Include <windows.h>
43352         (num_processors): On native Windows platforms, try GetSystemInfo.
43353
43354 2009-10-18  Bruno Haible  <bruno@clisp.org>
43355
43356         Implement nproc for IRIX.
43357         * lib/nproc.c: Include <sys/sysmp.h>.
43358         (num_processors): On IRIX systems, try sysmp.
43359         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43360
43361 2009-10-18  Bruno Haible  <bruno@clisp.org>
43362
43363         Implement nproc for HP-UX.
43364         * lib/nproc.c: Include <sys/pstat.h>
43365         (num_processors): On HP-UX systems, try pstat_getdynamic.
43366         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43367         pstat_getdynamic.
43368
43369 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43370             Bruno Haible  <bruno@clisp.org>
43371
43372         Implement nproc for NetBSD, OpenBSD.
43373         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43374         (ARRAY_SIZE): New macro.
43375         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43376         * m4/nproc.m4: New file.
43377         * modules/nproc (Files): Add m4/nproc.m4.
43378         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43379         (Makefile.am): Instead, augment lib_SOURCES.
43380
43381 2009-10-18  Bruno Haible  <bruno@clisp.org>
43382
43383         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43384         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43385         sys/param.h.
43386
43387 2009-10-16  Eric Blake  <ebb9@byu.net>
43388
43389         utimensat: new module
43390         * modules/utimensat: New file.
43391         * lib/utimensat.c (utimensat): Likewise.
43392         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43393         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43394         so we can work around Linux bugs.
43395         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43396         * modules/sys_stat (Makefile.am): Substitute them.
43397         * lib/sys_stat.in.h (utimensat): Declare it.
43398         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43399         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43400         * modules/utimensat-tests: New test.
43401         * tests/test-utimensat.c: Likewise.
43402
43403         utimens: let lutimens work on non-symlinks
43404         * lib/utimens.c (lutimens): Fall back to utimens rather than
43405         failing with ENOSYS, when file is not a symlink.
43406         (utimens): Reduce redirection.
43407         * tests/test-lutimens.h (test_lutimens): Update test to cover
43408         non-symlinks.
43409         * tests/test-utimens.h (test_utimens): Update test to cover
43410         symlinks.
43411         * tests/test-utimens.c (main): Update caller.
43412
43413         utimens: cache whether utimensat syscall works
43414         * lib/utimens.c (utimensat_works_really): New cache variable.
43415         (fdutimens, lutimens): Use it to avoid failing syscall.
43416
43417         test-stat-time, test-utimens: improve portability
43418         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43419         ext4 on alpha, and for cygwin.
43420         * tests/test-utimens-common.h: New file.
43421         (nap): Factor delays into single function.
43422         * tests/test-lutimens.h (test_lutimens): Use new header.
43423         * tests/test-futimens.h (test_futimens): Likewise.
43424         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43425         timestamps to occur from same machine, as was done previously for
43426         test_utimens.
43427         * modules/utimens-tests (Files): Ship new file.
43428         * modules/futimens-tests (Files): Likewise.
43429         Reported in part by Jim Meyering.
43430
43431         sys_stat: sort replacement declarations
43432         * lib/sys_stat.in.h: Sort declarations.
43433         * lib/futimens.c (futimens): Fix typo.
43434
43435 2009-10-15  Jim Meyering  <meyering@redhat.com>
43436
43437         don't let environment settings perturb build
43438         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43439         could cause a configure-time and/or build-time malfunction.
43440         Typically, a configure-time function-in-library test is performed
43441         via code like this:
43442
43443           LIB_VAR=
43444           AC_SUBST([LIB_VAR])
43445           prefix_saved_LIBS=$LIBS
43446             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43447                        [test "$ac_cv_search_FUNC" = "none required" ||
43448                         LIB_VAR=$ac_cv_search_FUNC])
43449           LIBS=$prefix_saved_LIBS
43450
43451         However, in each of the files affected by this change, the LIB_VAR=
43452         initialization was omitted.  Thus, when set in the environment, its
43453         value would propagate into generated Makefiles when FUNC is not found
43454         in LIB_NAME.
43455         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43456         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43458
43459 2009-10-14  Eric Blake  <ebb9@byu.net>
43460
43461         fchdir: avoid infinite recursion in mingw
43462         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43463         recursing.
43464
43465         test-stat-time: port to mingw
43466         * tests/test-stat-time.c (force_unlink): Return a value.
43467         (test_ctime) [W32]: Fix compilation error.
43468         (nap): Don't call usleep with too large an argument.  Use
43469         force_unlink.
43470         * doc/pastposix-functions/usleep.texi (usleep): Document the
43471         portability issue.
43472
43473 2009-10-13  Jim Meyering  <meyering@redhat.com>
43474
43475         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43476         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43477         * modules/pipe-filter-ii: Likewise.
43478         * modules/sys_socket-tests: Likewise.
43479         * modules/tsearch-tests: Likewise.
43480         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43481         (check): Depend on it.
43482
43483 2009-10-12  Eric Blake  <ebb9@byu.net>
43484
43485         utimens-tests: port to NFS file systems
43486         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43487         comparisons to avoid spurious failures from timestamp drift
43488         between NFS machines.
43489
43490 2009-10-12  Eric Blake  <ebb9@byu.net>
43491
43492         stat-time-tests: minor cleanups
43493         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43494         * tests/test-stat-time.c (nap): Separate assignment from call.
43495         Suggested by Paolo Bonzini and Bruno Haible.
43496
43497         sys_stat: guarantee struct timespec
43498         * lib/sys_stat.in.h (includes): Always include <time.h>
43499         * modules/sys_stat (Depends-on): Add time.
43500         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43501         mode_t permission values.
43502         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43503         get at subsecond timestamps.
43504
43505 2009-10-10  Eric Blake  <ebb9@byu.net>
43506
43507         futimens: new module
43508         * modules/futimens: New file.
43509         * lib/futimens.c (futimens): Likewise.
43510         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43511         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43512         we can work around Linux bugs.
43513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43514         * modules/sys_stat (Makefile.am): Substitute them.
43515         * lib/sys_stat.in.h (futimens): Declare it.
43516         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43517         * doc/posix-functions/futimens.texi (futimens): Likewise.
43518         * modules/futimens-tests: New test.
43519         * tests/test-futimens.c: Likewise.
43520
43521         utimens: introduce fdutimens
43522         * lib/utimens.h (fdutimens): New prototype.
43523         * lib/utimens.c (gl_futimens): Move guts...
43524         (fdutimens): ...to new interface.
43525         * tests/test-utimens.c (do_fdutimens): Use it.
43526
43527         utimens: add UTIME_NOW and UTIME_OMIT support
43528         * lib/utimens.c (validate_timespec, update_timespec): New helper
43529         functions.
43530         (gl_futimens, lutimens): Use them.
43531         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43532         stdbool, sys_stat.
43533         (Link): Mention resulting library dependency.
43534         * modules/utimecmp (Link): Likewise.
43535         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43536         (Makefile.am): Pick up library dependency.
43537         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43538         definition.
43539         * tests/test-sys_stat.c: Test the definitions.
43540         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43541         * NEWS: Document library dependency.
43542
43543         utimecmp: support symlink timestamps
43544         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43545         hashing when possible.  Use pathconf when available.
43546         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43547         * modules/utimecmp (Depends-on): Add lstat.
43548
43549         utimens: add lutimens interface
43550         * lib/utimens.c (lutimens): New function.
43551         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43552         * lib/utimens.h (lutimens): Declare new interface.
43553         * tests/test-utimens.c (main): Enhance test.
43554         * tests/test-lutimens.h (test_lutimens): New file.
43555         * modules/utimens-tests (Files): Distribute it.
43556         (Depends-on): Add symlink.
43557         (configure.ac): Check for usleep.
43558
43559         utimens: validate futimens usage
43560         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43561         fewer syscalls on failure later on.  Avoid compiler warning on
43562         mingw.
43563         * modules/utimens (Depends-on): Add dup2.
43564
43565         utimens: add test
43566         * modules/utimens-tests: New test.
43567         * tests/test-utimens.h: New file.
43568         * tests/test-futimens.h: Likewise.
43569         * tests/test-utimens.c: Likewise.
43570
43571         doc: mention timestamp portability issues
43572         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43573         instead.
43574         * doc/posix-functions/utime.texi (utime): Likewise.
43575         * doc/posix-functions/utimes.texi (utimes): Likewise.
43576         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43577         instead.
43578         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43579         module.
43580         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43581         Mention weakness with symlink timestamps.
43582         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43583         to utimensat/futimens instead.
43584         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43585
43586         test-dup2: enhance test
43587         * tests/test-dup2.c (main): Also check AT_FDCWD.
43588
43589         test-stat-time: avoid more spurious failures
43590         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43591         xfs; and avoid race if the two timestamps cross quantization edge.
43592
43593         relocatable: prefer 'file system' over 'filesystem'
43594         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43595         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43596         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43597         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43598         * lib/relocatable.c (compute_curr_prefix): Likewise.
43599
43600 2009-10-10  Jim Meyering  <meyering@redhat.com>
43601
43602         stat-time-tests: check for the usleep function
43603         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43604
43605 2009-10-10  Bruno Haible  <bruno@clisp.org>
43606
43607         * modules/xnanosleep: Put the Link section after the Include section.
43608
43609 2009-10-09  Eric Blake  <ebb9@byu.net>
43610
43611         dup2: work around FreeBSD 6.1 bug
43612         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43613         * doc/posix-functions/dup2.texi (dup2): Document it.
43614         Reported by Nelson H. F. Beebe and Jim Meyering.
43615
43616         test-stat-time: port to buggy NFS clients
43617         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43618         (test_ctime): Also skip test if mtime and ctime are skewed.
43619
43620         maint: prefer 'file system' over 'filesystem'
43621         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43622         * doc/posix-functions/lstat.texi (lstat): Likewise.
43623         * lib/file-has-acl.c (file_has_acl): Likewise.
43624         * lib/fwriteerror.c [TEST]: Likewise.
43625         * tests/test-areadlink.h (test_areadlink): Likewise.
43626         * tests/test-areadlinkat-with-size.c (main): Likewise.
43627         * tests/test-areadlinkat.c (main): Likewise.
43628         * tests/test-canonicalize-lgpl.c (main): Likewise.
43629         * tests/test-canonicalize.c (main): Likewise.
43630         * tests/test-fstatat.c (main): Likewise.
43631         * tests/test-linkat.c (main): Likewise.
43632         * tests/test-lstat.h (test_lstat_func): Likewise.
43633         * tests/test-mkdir.h (test_mkdir): Likewise.
43634         * tests/test-readlink.h (test_readlink): Likewise.
43635         * tests/test-remove.c (main): Likewise.
43636         * tests/test-rename.h (test_rename): Likewise.
43637         * tests/test-renameat.c (main): Likewise.
43638         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43639         * tests/test-symlink.h (test_symlink): Likewise.
43640         * tests/test-symlinkat.c (main): Likewise.
43641         * tests/test-unlink.h (test_unlink_func): Likewise.
43642         * tests/test-unlinkat.c (main): Likewise.
43643
43644         maint: make realtime library usage explicit
43645         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43646         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43647         * modules/settime (Link): Likewise.
43648         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43649
43650         test-stat-time: speed up execution
43651         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43652         warning on mingw.
43653         (nap): New helper function.
43654         (prepare_test): Use it to reduce sleep time.
43655         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43656         execution.
43657         * modules/stat-time-tests (configure.ac): Check for usleep.
43658
43659 2009-10-09  Jim Meyering  <meyering@redhat.com>
43660
43661         selinux-h: always use getfilecon wrappers
43662         * lib/getfilecon.c: New file.
43663         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43664         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43665         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43666         (fgetfilecon): Provide a stub.
43667         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43668         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43669         file unconditionally.
43670         When <selinux/selinux.h> is found, arrange to use wrappers.
43671         * modules/selinux-h (Files): Add getfilecon.c.
43672         (Makefile.am): Substitute include-next-related bits
43673         into the now-always-generated selinux/selinux.h file.
43674         * doc/glibc-functions/lgetfilecon.texi: New file.
43675         * doc/glibc-functions/fgetfilecon.texi: New file.
43676         * doc/glibc-functions/getfilecon.texi: New file.
43677         * doc/glibc-functions/getfilecon-desc.texi: New file.
43678         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43679         which to pull in the new files.
43680         * MODULES.html.sh (Misc): Add selinux-h.
43681
43682 2009-10-08  Jim Meyering  <meyering@redhat.com>
43683
43684         unistd: fix comment typo
43685         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43686
43687 2009-10-08  Eric Blake  <ebb9@byu.net>
43688
43689         areadlink: use SIZE_MAX consistently
43690         * modules/areadlink (Depends-on): Add stdint.
43691         * modules/areadlink-with-size (Depends-on): Likewise.
43692         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43693         gives NULL; drop sys/types, since unistd gives size_t; and add
43694         stdint for SIZE_MAX.
43695         (SIZE_MAX): Rely on headers.
43696         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43697         and add stdint.
43698         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43699         (SIZE_MAX): Likewise.
43700         (INITIAL_BUF_SIZE): Turn into enum.
43701         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43702
43703 2009-10-08  Jim Meyering  <meyering@redhat.com>
43704
43705         areadlinkat: avoid compilation failure
43706         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43707         Fix typo in comment.
43708
43709 2009-10-07  Eric Blake  <ebb9@byu.net>
43710
43711         areadlinkat-with-size: new module
43712         * modules/areadlinkat-with-size: New module.
43713         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43714         * lib/areadlink.h (areadlinkat): Declare it.
43715         * MODULES.html.sh (File system functions): Mention it.
43716         * modules/areadlinkat-with-size-tests: New test.
43717         * tests/test-areadlinkat-with-size.c: New file.
43718
43719         xreadlinkat: new module
43720         * modules/xreadlinkat: New module.
43721         * lib/xreadlinkat.c (xreadlinkat): New file.
43722         * lib/xreadlink.h (xreadlinkat): Declare it.
43723         * MODULES.html.sh (File system functions): Mention it.
43724
43725         areadlinkat: new module
43726         * lib/at-func.c (FUNC_FAIL): New define.
43727         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43728         * modules/areadlinkat: New module.
43729         * lib/linkat.c (areadlinkat): Move...
43730         * lib/areadlinkat.c (areadlinkat): ...to new file.
43731         * lib/areadlink.h (areadlinkat): Declare it.
43732         * modules/linkat (Depends-on): Add areadlinkat.
43733         * MODULES.html.sh (File system functions): Mention it.
43734         * modules/areadlinkat-tests: New test.
43735         * tests/test-areadlinkat.c: New file.
43736
43737         areadlink, areadlink-with-size: add tests
43738         * modules/areadlink-tests: New test.
43739         * modules/areadlink-with-size-tests: Likewise.
43740         * tests/test-areadlink.h: New file.
43741         * tests/test-areadlink.c: Likewise.
43742         * tests/test-areadlink-with-size.c: Likewise.
43743
43744         maint: minor cleanups
43745         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43746         _UNUSED_PARAMETER_ instead.
43747         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43748         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43749         * modules/linkat-tests (Files): Distribute test-link.h.
43750
43751         openat, utimens: whitespace cleanup
43752         * lib/openat.c: Prefer space throughout, rather than mix of 8
43753         spaces vs. tabs.
43754         * lib/at-func.c: Likewise.
43755         * lib/utimens.c: Likewise.
43756
43757         openat: avoid using wrong fd
43758         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43759         working directory chooses same fd.
43760         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43761
43762         mkdir, mkdirat: fix cygwin 1.5.x bug
43763         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43764         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43765         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43766         bug.
43767         (gl_PREREQ_MKDIR): Delete unused macro.
43768         * modules/mkdir (Files): Track file rename.
43769         (configure.ac): Update macro name.
43770         * modules/openat (Depends-on): Add mkdir.
43771         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43772
43773         mkdir, mkdirat: add tests
43774         * modules/mkdir-tests: New test.
43775         * tests/test-mkdir.h: New file.
43776         * tests/test-mkdir.c: Likewise.
43777         * tests/test-mkdirat.c: Likewise.
43778         * modules/openat-tests (Files): Add new files.
43779         (Makefile.am): Run new test.
43780
43781 2009-10-06  Eric Blake  <ebb9@byu.net>
43782
43783         doc: tweak *at function documentation
43784         * doc/posix-functions/faccessat.texi (faccessat): Mention
43785         known issue with replacement.
43786         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43787         * doc/posix-functions/linkat.texi (linkat): Likewise.
43788         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43789         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43790         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43791         * doc/posix-functions/renameat.texi (renameat): Likewise.
43792         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43793
43794         openat: fix GNU/Hurd bug in unlinkat
43795         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43796         broken.
43797         * doc/posix-functions/unlink.texi (unlink): Document this.
43798         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43799
43800         fdopendir: fix GNU/Hurd bug
43801         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43802         allowing non-directory fds.
43803         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43804         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43805         * modules/dirent (Makefile.am): Substitute it.
43806         * lib/dirent.in.h (fdopendir): Declare replacement.
43807         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43808         * tests/test-fdopendir.c (main): Test something other than
43809         /dev/null, since on Hurd that behaves like a directory.
43810
43811         test-symlink: port to GNU/Hurd
43812         * tests/test-symlink.h (test_symlink): Relax expected errno.
43813
43814         doc: tweak more cygwin information
43815         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43816         now compatible with glibc.
43817         * doc/posix-functions/getopt.texi (getopt): Likewise.
43818
43819         getopt-gnu: add another test
43820         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43821         guarantee behavior relied on by m4.
43822         * tests/test-getopt.c (main): Use it.
43823         * modules/getopt-posix-tests (Depends-on): Add setenv.
43824         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43825
43826         getopt: fix compilation on darwin
43827         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43828         include.
43829         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43830         Reported by Ludovic Courtès.
43831
43832 2009-10-06  Bruno Haible  <bruno@clisp.org>
43833
43834         * modules/size_max (Description): Discourage its use.
43835         Reported by Simon Josefsson.
43836
43837 2009-10-06  Jim Meyering  <meyering@redhat.com>
43838
43839         linkat: avoid compilation failure
43840         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43841
43842 2009-10-05  Eric Blake  <ebb9@byu.net>
43843
43844         linkat: support Linux 2.6.17
43845         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43846         linkat on Linux, but allow cache variable override.
43847         * lib/linkat.c (rpl_linkat): Define override.
43848         * modules/linkat (Depends-on): Add symlinkat.
43849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43850         * modules/unistd (Makefile.am): Substitute it.
43851         * lib/unistd.in.h (linkat): Declare replacement.
43852         Reported by Pádraig Brady.
43853
43854         quotearg: port test to systems with C.UTF-8 locale
43855         * tests/test-quotearg.c (struct result_strings): Add another
43856         member, differentiating between C.ASCII and C.UTF-8 handling.
43857         (compare_strings): Add parameter.
43858         (main): Adjust all callers.
43859
43860         getopt: avoid clash with FreeBSD _getopt_internal
43861         * lib/getopt.in.h (_getopt_internal): Override the name.
43862         * lib/getopt_int.h (includes): Pick up any overrides.
43863         Reported by Reuben Thomas.
43864
43865         hash: allow C89 compilation
43866         * lib/hash.c (check_tuning): Move declaration before statement.
43867         Reported by Reuben Thomas.
43868
43869 2009-10-05  Karl Berry  <karl@gnu.org>
43870
43871         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43872
43873 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43874             Bruno Haible  <bruno@clisp.org>
43875
43876         * lib/uname.c (uname): Use a table-driven algorithm to compute
43877         Windows NT versions.
43878
43879 2009-10-04  Bruno Haible  <bruno@clisp.org>
43880
43881         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43882         program_invocation_short_name.
43883         * modules/progname (configure.ac): Test for presence of
43884         program_invocation_short_name.
43885         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43886
43887 2009-10-04  Bruno Haible  <bruno@clisp.org>
43888
43889         * lib/progname.c (set_program_name): Fix comment.
43890         Reported by Jim Meyering.
43891
43892 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43893             Bruno Haible  <bruno@clisp.org>
43894
43895         * lib/uname.c: Include <string.h>.
43896         (uname): Do only one call to GetVersionEx in the common case.
43897
43898 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43899             Bruno Haible  <bruno@clisp.org>
43900
43901         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43902         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43903         (uname): Add support for Windows CE and various non-x86 CPU types.
43904
43905 2009-10-03  Bruno Haible  <bruno@clisp.org>
43906
43907         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43908         invocation to tests/configure.ac.
43909         Reported by Ian Beckwith <ianb@erislabs.net>.
43910
43911 2009-10-02  Eric Blake  <ebb9@byu.net>
43912
43913         fchdir: avoid compiler warning
43914         * lib/fchdir.c (canonicalize_file_name)
43915         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43916
43917         test-open: support mingw errno values
43918         * tests/test-open.h (test_open): Relax test.
43919         * tests/test-fopen.h (test_fopen): Likewise.
43920         * tests/test-openat-safer.c (main): Likewise.
43921
43922         open: fix opening directory on mingw
43923         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43924
43925         test-open: on GNU/Hurd, /dev/null is a directory
43926         * tests/test-fopen.h (main): Rename...
43927         (test_fopen): ...to this.  Use a guaranteed non-directory when
43928         confirming open behavior on trailing slash.
43929         * tests/test-openat-safer.c (main): Likewise.
43930         * tests/test-open.h (main): Likewise....
43931         (test_open): ...to this.
43932         * tests/test-fopen.c (main): Adjust caller.
43933         * tests/test-fopen-safer.c (main): Likewise.
43934         * tests/test-open.c (main): Likewise.
43935         * tests/test-fcntl-safer.c (main): Likewise.
43936         Reported by Samuel Thibault.
43937
43938         rename, fchdir: don't ignore chdir failure
43939         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43940         * lib/rename.c (rpl_rename) [W32]: Likewise.
43941         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43942         an empty destination directory if source cannot be renamed,
43943         although there is still possibility for failure.
43944         * doc/posix-functions/rename.texi (rename): Document the race.
43945         Reported by Jim Meyering.
43946
43947         maint: cleanup whitespace in recent commits
43948         * lib/rename.c (rpl_rename): Remove tabs.
43949         * tests/test-link.h (test_link): Likewise.
43950         * lib/fchdir.c (get_name): Likewise.
43951         Reported by Jim Meyering.
43952
43953 2009-10-02  Ben Pfaff  <blp@gnu.org>
43954
43955         relocatable-prog-wrapper: Add missing dependency on
43956         double-slash-root.
43957         * modules/relocatable-prog-wrapper: Add dependency.
43958         Reported by Ian Beckwith <ianb@erislabs.net>.
43959
43960 2009-10-02  Eric Blake  <ebb9@byu.net>
43961
43962         renameat: fix Solaris bugs
43963         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43964         needed fixing.
43965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43966         * modules/stdio (Makefile.am): Substitute it.
43967         * lib/stdio.in.h (renameat): Declare replacement.
43968         * lib/renameat.c (rpl_renameat): Implement fix.
43969
43970         renameat: new module
43971         * modules/renameat: New file.
43972         * lib/renameat.c (renameat): Likewise.
43973         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43975         * modules/stdio (Makefile.am): Substitute them.
43976         * lib/stdio.in.h (renameat): Declare it.
43977         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43978         * doc/posix-functions/renameat.texi (renameat): Likewise.
43979         * modules/renameat-tests: New test.
43980         * tests/test-renameat.c: Likewise.
43981
43982         rename: fix mingw bugs
43983         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43984         directory overwrite bugs.
43985
43986         rename: fix another cygwin 1.5 bug
43987         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43988         checks.
43989         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43990         unnecessary cygwin workarounds.  Also work around bug with moving
43991         full directory onto an empty one.
43992         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43993
43994         rename-dest-slash: merge into rename module
43995         * modules/rename-dest-slash (Status): Mark obsolete.
43996         (Depends-on): Add rename.
43997         (Files): Let rename do it all.
43998         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43999         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44000         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44001         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44002         * lib/rename.c (rpl_rename): Update comments.
44003
44004         rename: fix cygwin 1.5.x bugs
44005         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44006         * lib/rename.c (rpl_rename): Work around them.
44007         * modules/rename (Depends-on): Add same-inode.
44008
44009         rename: fix Solaris 10 bug
44010         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44011         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44012         was the only bug.
44013
44014         rename: fix Solaris 9 bug
44015         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44016         on non-directory.  Avoid calling exit.
44017         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44018         strdup.
44019         * modules/rename-tests (Depends-on): Drop lstat.
44020         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44021         (gl_PREREQ_RENAME): Delete unused macro.
44022
44023         rename-dest-slash: fix NetBSD bug
44024         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44025         links.
44026         * modules/rename-dest-slash (Depends-on): Add same-inode.
44027
44028         rename-tests: new test, exposes several platform bugs
44029         * modules/rename-tests: New file.
44030         * tests/test-rename.h: Likewise.
44031         * tests/test-rename.c: Likewise.
44032         * doc/posix-functions/rename.texi (rename): Improve documentation,
44033         including bugs that will eventually be fixed in gnulib.
44034
44035 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44036
44037         * lib/uname.c: Include <stdlib.h>
44038         (uname): Assume version info is available.
44039
44040 2009-10-02  Jim Meyering  <meyering@redhat.com>
44041
44042         gnu-web-doc-update: correct --help output
44043         * build-aux/gnu-web-doc-update: Make --help output relevant.
44044
44045         gnu-web-doc-update: add standard options
44046         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44047
44048         gnu-web-doc-update: New module.
44049         Use this script to automatically update the on-line web documentation
44050         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44051         * modules/gnu-web-doc-update: New file, from coreutils.
44052         * build-aux/gnu-web-doc-update: New script.
44053
44054 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44055
44056         link: LoadLibrary is not needed.
44057         * lib/link.c: Use GetModuleHandle.
44058
44059 2009-10-01  Eric Blake  <ebb9@byu.net>
44060
44061         getopt: bump serial number
44062         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44063         change.
44064
44065         tests: tighten link, rmdir, and remove tests
44066         * tests/test-link.h (includes): No need to use <config.h> here.
44067         Clean up if directory hard link was created, otherwise test for
44068         trailing '.'.
44069         * tests/test-linkat.c (main): Simplify.
44070         * tests/test-remove.c (main): Enhance test for trailing '.'.
44071         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44072
44073 2009-10-01  Jim Meyering  <meyering@redhat.com>
44074
44075         maint.mk: requiring "make major" was annoying, for a "minor" release.
44076         What is intended is "stable", to contrast with alpha and beta,
44077         so require "make stable", not "make major".
44078         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44079         (get_tool_versions): Likewise.
44080         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44081
44082 2009-09-30  Ben Pfaff  <blp@gnu.org>
44083
44084         Fix broken build of replacement for Windows tmpfile().
44085         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44086         flags argument added along with the 'mkostemp' module.
44087
44088 2009-09-28  Bruno Haible  <bruno@clisp.org>
44089
44090         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44091         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44092         to 'remove_elt'.
44093         (gl_list_remove): Update.
44094         * lib/gl_list.c (gl_list_remove): Update.
44095         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44096         to 'remove_elt'.
44097         (gl_oset_remove): Update.
44098         * lib/gl_list.c (gl_oset_remove): Update.
44099         Reported by Eric Blake.
44100
44101 2009-09-28  Eric Blake  <ebb9@byu.net>
44102
44103         doc: mention yet more cygwin 1.7 status
44104         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44105         cygwin.
44106         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44107         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44108
44109         argp: fix test failure
44110         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44111         that are not upper-case.  Pass correct range to tolower.
44112
44113 2009-09-27  Jim Meyering  <meyering@redhat.com>
44114
44115         test-yesno: work around sparc-dash here-document infelicity
44116         Without this change, the literal \177 byte in a here document
44117         would make dash 0.5.5.1-3 access uninitialized memory.
44118         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44119         Instead, use a marker, "@", and filter through tr to create the desired
44120         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44121
44122 2009-09-27  Bruno Haible  <bruno@clisp.org>
44123
44124         Disable untested support for new flavours of ACLs on AIX.
44125         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44126         progress.
44127         * lib/set-mode-acl.c (qset_acl): Likewise.
44128
44129 2008-12-07  Bruno Haible  <bruno@clisp.org>
44130
44131         Add support for new flavours of ACLs on AIX. (Untested.)
44132         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44133         (file_has_acl): Add support for newer AIX.
44134         * lib/set-mode-acl.c (qset_acl): Likewise.
44135         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44136         Rainer Tammer <tammer@tammer.net>.
44137
44138 2009-09-26  Eric Blake  <ebb9@byu.net>
44139
44140         argp: fix compilation of getopt
44141         * lib/getopt.in.h (includes): Use different guard than glibc.
44142         Reported by Sergey Poznyakoff.
44143
44144         doc: mention more cygwin 1.7 status
44145         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44146         bug.
44147         * doc/posix-functions/execl.texi (execl): Likewise.
44148         * doc/posix-functions/execle.texi (execle): Likewise.
44149         * doc/posix-functions/execlp.texi (execlp): Likewise.
44150         * doc/posix-functions/execv.texi (execv): Likewise.
44151         * doc/posix-functions/execve.texi (execve): Likewise.
44152         * doc/posix-functions/execvp.texi (execvp): Likewise.
44153         * doc/glibc-functions/canonicalize_file_name.texi
44154         (canonicalize_file_name): Cygwin 1.7 now provides this.
44155         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44156         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44157         on AT_SYMLINK_NOFOLLOW.
44158
44159 2009-09-24  Eric Blake  <ebb9@byu.net>
44160
44161         test-linkat: make test more robust
44162         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44163
44164         getopt: fix inclusion guards for cygwin
44165         * modules/getopt-posix (Depends-on): Add include-next.
44166         (Makefile.am): Substitute more items in replacement header.
44167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44168         <getopt.h>.
44169         * lib/getopt.in.h (includes): Use split inclusion guard, and
44170         prefer <getopt.h> over include <unistd.h> when one is present.
44171         (option): Also override name of 'struct option'.
44172
44173         same-inode: revert prior change; it is not yet ready
44174         * NEWS: Undo mention of this change.
44175         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44176         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44177         * lib/cycle-check.c (cycle_check): Likewise.
44178         * lib/same.c (same_name): Likewise.
44179         * lib/at-func2.c (at_func2): Likewise.
44180
44181 2009-09-23  Eric Blake  <ebb9@byu.net>
44182
44183         linkat: new module
44184         * modules/linkat: New file.
44185         * lib/at-func2.c (at_func2): Likewise.
44186         * lib/linkat.c (linkat): Likewise.
44187         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44188         * lib/openat-priv.h (at_func2): Add declaration.
44189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44190         * modules/unistd (Makefile.am): Substitute them.
44191         * lib/unistd.in.h (linkat): Declare it.
44192         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44193         * doc/posix-functions/linkat.texi (linkat): Likewise.
44194         * doc/posix-functions/link.texi (link): Tweak wording.
44195         * tests/test-link.c (main): Move guts...
44196         * tests/test-link.h (test_link): ...into new file.
44197         * modules/linkat-tests: New test.
44198         * tests/test-linkat.c: Likewise.
44199         * modules/link-tests (Files): Ship new file.
44200         (Depends-on): Add stdbool.
44201
44202         dirname: add library-safe mdir_name
44203         * lib/dirname.h (mdir_name): New prototype.
44204         * lib/dirname.c (dir_name): Move guts...
44205         (mdir_name): ...to new function that avoids xalloc_die.
44206
44207         fchdir: another mingw fix
44208         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44209         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44210         on mingw (where it has not yet been ported), and make it optional
44211         elsewhere.
44212         (_gl_register_fd): Use it.
44213
44214         same-inode: make SAME_INODE tri-state, to port to mingw
44215         * NEWS: Mention this change.
44216         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44217         st_ino always being 0.
44218         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44219         * lib/cycle-check.c (cycle_check): Likewise.
44220         * lib/same.c (same_name): Likewise.
44221
44222         lstat: avoid mingw compilation error
44223         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44224         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44225         lstat ourselves.
44226         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44227         was adequate.
44228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44229         the checks for lstat.
44230         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44231
44232         link: fix test failure on Solaris 9
44233         * lib/link.c (rpl_link): Don't assume link will catch bogus
44234         trailing slash on source.
44235
44236         test-symlinkat: enhance test
44237         * tests/test-readlink.c (main): Move guts...
44238         * tests/test-readlink.h (test_readlink): ...into new file.
44239         * tests/test-symlink.c (main): Move guts...
44240         * tests/test-symlink.h (test_symlink): ...into new file.
44241         * tests/test-symlinkat.c (main): Use new files for further
44242         coverage.
44243         (do_symlink, do_readlink): New helper functions.
44244         * modules/symlink-tests (Files): Ship new file.
44245         (Depends-on): Add stdbool.
44246         * modules/readlink-tests (Files): Ship new file.
44247         (Depends-on): Add stdbool.
44248         * modules/symlinkat-tests (Files): Use new files.
44249
44250 2009-09-23  Eric Blake  <ebb9@byu.net>
44251
44252         readlink: document portability issue with symlink length
44253         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44254         systems have bogus st_size on symlinks, and mention the
44255         areadlink-with-size module.
44256         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44257         * doc/posix-functions/readlink.texi (readlink): Mention the
44258         areadlink module, and ERANGE failure.
44259         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44260         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44261
44262         readlink: fix Solaris 9 bug with trailing slash
44263         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44264         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44265         * doc/posix-functions/readlink.texi (readlink): Document this.
44266         * modules/readlink-tests: New test.
44267         * tests/test-readlink.c: Likewise.
44268
44269         readlink: fix cygwin 1.5.x bug with return type
44270         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44271         * lib/unistd.in.h (readlink): Use ssize_t.
44272         * lib/readlink.c (readlink): Likewise.
44273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44274         * modules/unistd (Makefile.am): Substitute it.
44275         * lib/unistd.in.h (readlink): Declare replacement.
44276         * doc/posix-functions/readlink.texi (readlink): Document this.
44277
44278         symlink: use throughout gnulib
44279         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44280         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44281         symlink is not used.
44282         * modules/symlinkat (Depends-on): Add symlink.
44283         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44284         * modules/canonicalize-tests (Depends-on): Likewise.
44285         * modules/lstat-tests (Depends-on): Likewise.
44286         * modules/openat-tests (Depends-on): Likewise.
44287         * modules/remove-tests (Depends-on): Likewise.
44288         * modules/rmdir-tests (Depends-on): Likewise.
44289         * modules/unlink-tests (Depends-on): Likewise.
44290         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44291         * tests/test-canonicalize.c (symlink): Likewise.
44292         * tests/test-fstatat.c (symlink): Likewise.
44293         * tests/test-lstat.c (symlink): Likewise.
44294         * tests/test-remove.c (symlink): Likewise.
44295         * tests/test-rmdir.c (symlink): Likewise.
44296         * tests/test-unlink.c (symlink): Likewise.
44297         * tests/test-unlinkat.c (symlink): Likewise.
44298
44299         symlink: new module, for Solaris 9 bug
44300         * modules/symlink: New file.
44301         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44302         * lib/symlink.c: Likewise.
44303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44304         * modules/unistd (Makefile.am): Substitute them.
44305         * lib/unistd.in.h (symlink): Declare replacement.
44306         * MODULES.html.sh (File system functions): Mention it.
44307         * doc/posix-functions/symlink.texi (symlink): Likewise.
44308         * modules/symlink-tests: New test.
44309         * tests/test-symlink.c: Likewise.
44310
44311 2009-09-23  Bruno Haible  <bruno@clisp.org>
44312
44313         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44314         when needed.
44315         Test case: gnulib-tool --import --with-tests atexit inttypes.
44316         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44317
44318 2009-09-23  Bruno Haible  <bruno@clisp.org>
44319
44320         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44321         subcommand, not in a subshell.
44322
44323 2009-09-22  Eric Blake  <ebb9@byu.net>
44324
44325         unistd: sort replacement declarations
44326         * lib/unistd.in.h: Sort declarations.
44327
44328         open, openat: minor optimization
44329         * lib/open.c (open): If open succeeded, len is non-zero.
44330         * lib/openat.c (rpl_openat): Likewise.
44331
44332         link-follow: ensure correct result
44333         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44334         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44335         distinguish between possible failures.
44336
44337 2009-09-21  Eric Blake  <ebb9@byu.net>
44338
44339         fts: avoid compiler warning
44340         * lib/fts.c (dirent_inode_sort_may_be_useful)
44341         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44342
44343 2009-09-19  Bruno Haible  <bruno@clisp.org>
44344
44345         * lib/progreloc.c (canonicalize_file_name): New declaration.
44346
44347 2009-09-19  Eric Blake  <ebb9@byu.net>
44348
44349         link: fix quoting
44350         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44351
44352         openat: fix openat bugs on Solaris 9
44353         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44354         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44355         * modules/openat (Depends-on): Add open.
44356         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44357         * modules/fcntl-h (Makefile.am): Substitute it.
44358         * lib/fcntl.in.h (openat): Declare replacement.
44359         * doc/posix-functions/openat.texi (openat): Document this.
44360
44361         openat: move fstatat and unlinkat into correct files
44362         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44363         compiled.
44364         * lib/openat.c (fstatat, unlinkat): Move...
44365         * lib/fstatat.c (fstatat): ...into correct files.
44366         * lib/unlinkat.c (unlinkat): Likewise.
44367
44368         openat: fix unlinkat bugs on Solaris 9
44369         * lib/unlinkat.c (unlinkat): New file.
44370         * modules/openat (Depends-on): Add unlink.
44371         (Files): Distribute it.
44372         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44373         trailing slash behavior is broken.
44374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44375         * modules/unistd (Makefile.am): Substitute it.
44376         * lib/unistd.in.h (unlinkat): Declare replacement.
44377         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44378
44379         openat: fix fstatat bugs on Solaris 9
44380         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44381         stat.
44382         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44383
44384         test-unlinkat: enhance test, to expose Solaris 9 bug
44385         * tests/test-unlink.c (main): Factor guts...
44386         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44387         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44388         * tests/test-rmdir.c (main): Adjust caller.
44389         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44390         (unlinker): New helper function.
44391         (rmdirat): Enhance check.
44392         * modules/rmdir-tests (Depends-on): Add stdbool.
44393         * modules/unlink-tests (Depends-on): Likewise.
44394         (Files): Add test-unlink.h.
44395         * modules/openat-tests (Files): Likewise.
44396         (Depends-on): Add unlinkdir.
44397
44398         test-fstatat: new test, to expose Solaris 9 bugs
44399         * tests/test-stat.c (main): Factor guts...
44400         * tests/test-stat.h (test_stat_func): ...into new file.
44401         * tests/test-lstat.c (main): Factor guts...
44402         * tests/test-lstat.h (test_lstat_func): ...into new file.
44403         * tests/test-fstatat.c: New file.
44404         * modules/stat-tests (Files): Add test-stat.h.
44405         * modules/lstat-tests (Files): Add test-lstat.h.
44406         (Depends-on): Add stdbool.
44407         * modules/openat-tests (Depends-on): Add pathmax.
44408         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44409         (Makefile.am): Run new test.
44410
44411         remove: new module, for mingw and Solaris 9 bugs
44412         * modules/remove: New file.
44413         * lib/remove.c: Likewise.
44414         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44416         * modules/stdio (Makefile.am): Use them.
44417         * lib/stdio.in.h (remove): Declare replacement.
44418         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44419         * doc/posix-functions/remove.texi (remove): Likewise.
44420         * modules/remove-tests: New test.
44421         * tests/test-remove.c: Likewise.
44422
44423         unlink: new module, for Solaris 9 bug
44424         * modules/unlink: New file.
44425         * lib/unlink.c: Likewise.
44426         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44428         * modules/unistd (Makefile.am): Use them.
44429         * lib/unistd.in.h (stat): Declare replacement.
44430         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44431         * doc/posix-functions/unlink.texi (unlink): Likewise.
44432         * modules/unlink-tests: New test.
44433         * tests/test-unlink.c: Likewise.
44434
44435         lstat: fix Solaris 9 bug
44436         * lib/lstat.c (lstat): Also check for trailing slash on
44437         non-symlink, non-directories.  Use stat module to simplify logic.
44438         * doc/posix-functions/lstat.texi (lstat): Document it.
44439         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44440         (configure.ac): Check for symlink.
44441         * tests/test-lstat.c (main): Add more tests.
44442
44443         stat: add as dependency to other modules
44444         * modules/chown (Depends-on): Add stat.
44445         * modules/euidaccess (Depends-on): Likewise.
44446         * modules/fchdir (Depends-on): Likewise.
44447         * modules/isdir (Depends-on): Likewise.
44448         * modules/link (Depends-on): Likewise.
44449         * modules/lstat (Depends-on): Likewise.
44450         * modules/mkdir-p (Depends-on): Likewise.
44451         * modules/modechange (Depends-on): Likewise.
44452         * modules/open (Depends-on): Likewise.
44453         * modules/readlink (Depends-on): Likewise.
44454         * modules/same (Depends-on): Likewise.
44455
44456         stat: fix Solaris 9 bug
44457         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44458         slash.
44459         * lib/stat.c (rpl_stat): Work around it.
44460         * doc/posix-functions/stat.texi (stat): Update documentation.
44461
44462         stat: new module, for mingw bug
44463         * modules/stat: New file.
44464         * lib/stat.c: Likewise.
44465         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44466         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44467         * modules/sys_stat (Makefile.am): Use them.
44468         * lib/sys_stat.in.h (stat): Declare replacement.
44469         * lib/openat.c (fstatat): Deal with lstat and stat being function
44470         macros.
44471         * modules/openat (Depends-on): Add inline.
44472         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44473         * doc/posix-functions/stat.texi (stat): Likewise.
44474         * modules/stat-tests: New test.
44475         * tests/test-stat.c: Likewise.
44476
44477 2009-09-19  Jim Meyering  <meyering@redhat.com>
44478
44479         syntax-check: detect unnecessary inclusion of canonicalize.h
44480         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44481
44482 2009-09-19  Eric Blake  <ebb9@byu.net>
44483
44484         canonicalize-lgpl: adjust clients to use correct header
44485         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44486         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44487         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44488         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44489         * lib/progreloc.c (includes): Likewise.
44490
44491 2009-09-19  Jim Meyering  <meyering@redhat.com>
44492
44493         test-posixtm.c: correct a comment
44494         * tests/test-posixtm.c: Correct first-line comment.
44495         Spotted by Eric Blake.
44496
44497 2009-09-16  Jim Meyering  <meyering@redhat.com>
44498
44499         posixtm-tests: make T const-correct; add a test case
44500         * tests/test-posixtm.c (T): Declare const.
44501         Add a test for -(2^31+1).
44502         Remove useless can-succeed-only-in-2002 test.
44503
44504         posixtm-tests: adjust the sole failing test
44505         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44506         expected output matches what mktime now produces.  Cross-checked via
44507         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44508
44509         posixtm: move #ifdef'd tests into a new module
44510         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44511         * tests/test-posixtm.c: ... this new file.
44512         * modules/posixtm-tests: New module.
44513
44514 2009-09-19  Eric Blake  <ebb9@byu.net>
44515
44516         openat: simplify use of at-func.c
44517         * lib/at-func.c (includes): Include prerequisites here, to
44518         simplify requirements on client files.
44519         * lib/openat-priv.h: Add double-inclusion guard.
44520         * lib/faccessat.c (includes): Simplify.
44521         * lib/fchmodat.c (includes): Likewise.
44522         * lib/fchownat.c (includes): Likewise.
44523         * lib/mkdirat.c (includes): Likewise.
44524         * lib/mkfifoat.c (includes): Likewise.
44525         * lib/symlinkat.c (includes): Likewise.
44526
44527         openat: allow return of fd 0
44528         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44529         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44530         unistd-safer.
44531         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44532         <fcntl.h>; this module does not leak fds.
44533         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44534         must be allowed to return 0, leaving openat_safer to add the
44535         safety.
44536         (openat_permissive): Avoid writing to just-opened fd 2 if
44537         restoring the current directory fails.
44538         * lib/openat-die.c (openat_restore_fail): Add comment.
44539         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44540         (save_cwd): Guarantee safe fd, but without use of open_safer.
44541         * tests/test-openat.c: New test.
44542         * modules/openat-tests (Files, Makefile.am): Distribute and build
44543         new file.
44544
44545         relocatable-prog-wrapper: fix build
44546         * modules/relocatable-prog-wrapper (Files): Update name of
44547         canonicalize m4 file, broken on 2009-09-17.
44548         Reported by emad hajjar <aleppos@hotmail.com>.
44549
44550 2009-09-19  Bruno Haible  <bruno@clisp.org>
44551
44552         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44553         * lib/safe-alloc.c: Likewise.
44554         Reported by Ian Beckwith <ianb@erislabs.net>.
44555
44556 2009-09-18  Bruno Haible  <bruno@clisp.org>
44557
44558         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44559         Reported by <erobles@sensacd.com.mx>.
44560
44561 2009-09-17  Eric Blake  <ebb9@byu.net>
44562
44563         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44564         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44565         slashes when checking if last component is missing.
44566         * tests/test-canonicalize.c (main): Test this.
44567
44568         canonicalize, canonicalize-lgpl: honor // if distinct from /
44569         * modules/canonicalize (Files): Add double-slash-root.m4.
44570         * modules/canonicalize-lgpl (Files): Likewise.
44571         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44572         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44573         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44574         fallback definition.
44575         (canonicalize_filename_mode): Use it to protect //.
44576         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44577         (__realpath): Likewise.
44578         * tests/test-canonicalize.c (main): Test this.
44579         * tests/test-canonicalize-lgpl.c (main): Likewise.
44580         * modules/canonicalize-tests (Depends-on): Add same-inode.
44581         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44582
44583         canonicalize-lgpl: fix glibc bug with trailing slash
44584         * m4/canonicalize-lgpl.m4: Move contents...
44585         * m4/canonicalize.m4: ...here.
44586         (gl_CANONICALIZE_LGPL): Factor realpath check...
44587         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44588         glibc 2.3.5 bug, fixed 2005-04-27.
44589         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44590         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44591         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44592         * modules/canonicalize-lgpl (Files): Manage file rename.
44593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44594         * modules/stdlib (Makefile.am): Substitute witness.
44595         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44596         is needed.
44597         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44598         replacement is required.
44599         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44600         * doc/glibc-functions/canonicalize_file_name.texi
44601         (canonicalize_file_name): Document this.
44602         * doc/posix-functions/realpath.texi (realpath): Likewise.
44603
44604         canonicalize-lgpl: reject non-directory with trailing slash
44605         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44606         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44607         catches failures in glibc 2.3.5.
44608         * tests/test-canonicalize.c (main): Likewise.
44609
44610         canonicalize-lgpl: use native realpath if it works
44611         * lib/canonicalize-lgpl.c (realpath): Guard with
44612         FUNC_REALPATH_WORKS.
44613         * lib/stdlib.in.h (realpath): Make declaration optional based on
44614         HAVE_REALPATH.
44615         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44616         native realpath works.
44617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44618         * modules/stdlib (Makefile.am): Substitute witness.
44619
44620         canonicalize, canonicalize-lgpl: use <stdlib.h>
44621         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44622         (Include): Mention <stdlib.h>.
44623         (configure.ac): Mention functions we provide.
44624         * modules/canonicalize (configure.ac): Likewise.
44625         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44626         realpath if canonicalize_file_name is missing.
44627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44628         * modules/stdlib (Makefile.am): Substitute witnesses.
44629         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44630         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44631         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44632         * NEWS: Document this.
44633         * doc/glibc-functions/canonicalize_file_name.texi
44634         (canonicalize_file_name): Likewise.
44635         * doc/posix-functions/realpath.texi (realpath): Likewise.
44636         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44637
44638         test-canonicalize: consolidate into single C program
44639         * tests/test-canonicalize.sh: Delete; move setup into...
44640         * tests/test-canonicalize.c (main): ...the program, making it
44641         easier to run in debugger.  Add some tests.
44642         * modules/canonicalize-tests (Files): Remove unused file.
44643         (Depends-on): Add progname.
44644         (configure.ac, Makefile.am): Simplify.
44645
44646         test-canonicalize-lgpl: consolidate into single C program
44647         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44648         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44649         easier to run in debugger.  Add some tests.
44650         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44651         (configure.ac, Makefile.am): Simplify.
44652
44653         canonicalize: avoid resolvepath
44654         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44655         unnecessary checks.
44656         * lib/canonicalize.c (includes): Simplify.
44657         (canonicalize_file_name): Drop resolvepath implementation.
44658         * modules/canonicalize (Depends-on): Drop filenamecat.
44659
44660         canonicalize: don't lose errno
44661         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44662         over calls to free.
44663
44664         canonicalize: simplify errno handling
44665         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44666         assignment.
44667
44668         canonicalize, canonicalize-lgpl: update module dependencies
44669         * modules/canonicalize (Depends-on): Add extensions, lstat,
44670         pathmax, stdlib.
44671         (Files): Drop pathmax.h.
44672         (configure.ac): Adjust macro name.
44673         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44674         lstat, stdlib, sys_stat.
44675         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44676         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44677         extensions.
44678         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44679         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44680         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44681         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44682         declaration, if available.
44683         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44684         we can rely on the readlink module.
44685         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44686         (includes): Use <unistd.h> unconditionally.
44687
44688 2009-09-17  Eric Blake  <ebb9@byu.net>
44689
44690         maint: make Include sections of modules consistent
44691         * modules/alloca: Use only header name; no need to list #include.
44692         * modules/alloca-opt: Likewise.
44693         * modules/arpa_inet: Likewise.
44694         * modules/canon-host: Likewise.
44695         * modules/configmake: Likewise.
44696         * modules/dirent: Likewise.
44697         * modules/eealloc: Likewise.
44698         * modules/environ: Likewise.
44699         * modules/fchdir: Likewise.
44700         * modules/fcntl: Likewise.
44701         * modules/fcntl-h: Likewise.
44702         * modules/gethrxtime: Likewise.
44703         * modules/gettime: Likewise.
44704         * modules/ignore-value: Likewise.
44705         * modules/inet_ntop: Likewise.
44706         * modules/inet_pton: Likewise.
44707         * modules/inttypes: Likewise.
44708         * modules/isnand-nolibm: Likewise.
44709         * modules/isnanf-nolibm: Likewise.
44710         * modules/mbchar: Likewise.
44711         * modules/mbfile: Likewise.
44712         * modules/mbiter: Likewise.
44713         * modules/mbuiter: Likewise.
44714         * modules/netdb: Likewise.
44715         * modules/netinet_in: Likewise.
44716         * modules/nproc: Likewise.
44717         * modules/pagealign_alloc: Likewise.
44718         * modules/poll: Likewise.
44719         * modules/printf-frexp: Likewise.
44720         * modules/pthread: Likewise.
44721         * modules/putenv: Likewise.
44722         * modules/random_r: Likewise.
44723         * modules/relocatable-prog: Likewise.
44724         * modules/search: Likewise.
44725         * modules/select: Likewise.
44726         * modules/selinux-h: Likewise.
44727         * modules/settime: Likewise.
44728         * modules/signal: Likewise.
44729         * modules/size_max: Likewise.
44730         * modules/socklen: Likewise.
44731         * modules/ssize_t: Likewise.
44732         * modules/stdarg: Likewise.
44733         * modules/stdbool: Likewise.
44734         * modules/stddef: Likewise.
44735         * modules/stdint: Likewise.
44736         * modules/stdio: Likewise.
44737         * modules/stdlib: Likewise.
44738         * modules/string: Likewise.
44739         * modules/strings: Likewise.
44740         * modules/sys_file: Likewise.
44741         * modules/sys_ioctl: Likewise.
44742         * modules/sys_select: Likewise.
44743         * modules/sys_socket: Likewise.
44744         * modules/sys_stat: Likewise.
44745         * modules/sys_time: Likewise.
44746         * modules/sys_times: Likewise.
44747         * modules/sys_utsname: Likewise.
44748         * modules/sys_wait: Likewise.
44749         * modules/sysexits: Likewise.
44750         * modules/time: Likewise.
44751         * modules/times: Likewise.
44752         * modules/tmpfile: Likewise.
44753         * modules/trim: Likewise.
44754         * modules/unistd: Likewise.
44755         * modules/wchar: Likewise.
44756         * modules/wctype: Likewise.
44757
44758 2009-09-17  Bruno Haible  <bruno@clisp.org>
44759
44760         Make getdate.y compile on QNX and NetBSD 5 / i386.
44761         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44762         TIME_T_FITS_IN_LONG_INT.
44763         * lib/getdate.y (long_time_t): New type.
44764         (relative_time): Change type of 'seconds' field to long_time_t.
44765         (get_date): Update types of local variables. Check against overflow
44766         during conversion from long_time_t to time_t.
44767         Reported by Matt Kraai <kraai@ftbfs.org>
44768         and Hasso Tepper <hasso@netbsd.org>.
44769
44770 2009-09-17  Bruno Haible  <bruno@clisp.org>
44771
44772         * modules/COPYING: Update copyright years.
44773         * modules/README: Likeiwse.
44774         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44775         Reported by Ian Beckwith <ianb@erislabs.net>.
44776
44777 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44778
44779         * users.txt: Update references for gnuit package.
44780
44781 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44782
44783         * m4/getdelim.m4: Fix typo in copyright line.
44784
44785 2009-09-17  Bruno Haible  <bruno@clisp.org>
44786
44787         * lib/atoll.c: Use the standard header with GPL copyright.
44788         * lib/argz.in.h: Likewise.
44789         * lib/glob.c: Likewise.
44790         * lib/glob-libc.h: Likewise.
44791         * lib/random_r.c: Likewise.
44792         * lib/siglist.h: Likewise.
44793         * lib/strsignal.c: Likewise.
44794         Reported by Ian Beckwith <ianb@erislabs.net>.
44795
44796 2009-09-17  Eric Blake  <ebb9@byu.net>
44797
44798         rmdir: ensure correct dependency order
44799         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44800
44801 2009-09-17  Bruno Haible  <bruno@clisp.org>
44802
44803         Disable assertion that fails on NetBSD 5 / i386.
44804         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44805         Reported by Sam Steingold <sds@gnu.org>
44806         and Hasso Tepper <hasso@netbsd.org>.
44807
44808 2009-09-16  Eric Blake  <ebb9@byu.net>
44809
44810         unlinkdir: port to mingw
44811         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44812         on which no one can unlink a directory.
44813
44814         stdlib: sort witness names
44815         * modules/stdlib (Makefile.am): Sort replacements.
44816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44817         * lib/stdlib.in.h: Likewise.
44818
44819         parse-duration-tests: avoid link failure
44820         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44821         LIBINTL.
44822         Reported by Tom G. Christensen.
44823
44824         openat-tests: ensure unlinkat behaves like rmdir
44825         * tests/test-rmdir.c (main): Factor guts...
44826         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44827         * modules/rmdir-tests (Files): Ship new file.
44828         * modules/openat-tests: New test.
44829         * tests/test-unlinkat.c: Likewise.
44830
44831         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44832         * modules/rmdir-errno (Status, Notice): Now obsolete.
44833
44834         rmdir: work around cygwin 1.5.x and mingw bugs
44835         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44836         * lib/rmdir.c (rmdir): Work around it.
44837         * modules/rmdir (Status, Notice): No longer obsolete.
44838         (Files): Add dos.m4.
44839         (Depends-on): Add unistd.
44840         (configure.ac): Set witnesses.
44841         (License): Relax to LGPLv2+.
44842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44843         * modules/unistd (Makefile.am): Substitute witnesses.
44844         * lib/unistd.in.h (rmdir): Declare replacement.
44845         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44846         * modules/rmdir-tests: New tests.
44847         * tests/test-rmdir.c: Likewise.
44848
44849 2009-09-15  Eric Blake  <ebb9@byu.net>
44850
44851         fchdir: improve use of replacement functions
44852         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44854         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44855         REPLACE_CLOSEDIR.
44856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44857         * modules/sys_stat (Makefile.am): Substitute correct witness.
44858         * modules/dirent (Makefile.am): Likewise.
44859         * modules/unistd (Makefile.am): Likewise.
44860         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44861         * lib/unistd.in.h (dup): Likewise.
44862         * lib/sys_stat.in.h (fstat): Likewise.
44863
44864         maint: ignore gnulib-tool temp files
44865         * .gitignore: Ignore files created during gnulib-tool --test.
44866
44867 2009-09-13  Jim Meyering  <meyering@redhat.com>
44868
44869         posixtm: don't reject a time that specify "60" as the number of seconds
44870         * lib/posixtm.c (posixtime): The code to reject invalid dates
44871         would also reject a time specified with the .60 suffix.
44872         But POSIX allows that, in order to accommodate leap seconds.
44873         So don't reject it.
44874         (main): Adjust tests accordingly.
44875         * modules/posixtm (Depends-on): Add stpcpy.
44876
44877 2009-09-11  Jim Meyering  <meyering@redhat.com>
44878
44879         announce-gen: include [$release_type] in emitted Subject:
44880         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44881         e.g., [stable] in the emitted Subject: line.
44882
44883 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44884
44885         Remove obsolete macros from several modules.
44886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44887         obsolete Autoconf macros with their modern counterparts.
44888         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44889         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44891         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44892         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44893         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44895         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44896         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44897         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44898         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44899         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44900         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44901         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44902         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44903         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44904         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44905         * m4/time_r.m4 (gl_TIME_R): Likewise.
44906         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44907         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44908         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44909
44910         Fix copyright header in build-aux scripts.
44911         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44912         recommendation.
44913         * build-aux/ncftpput-ftp: Likewise.
44914         * build-aux/update-copyright: Likewise.
44915
44916 2009-09-09  Eric Blake  <ebb9@byu.net>
44917
44918         test-link: allow Linux choice of errno
44919         * tests/test-link.c (main): Relax test for alternate error.
44920
44921         strndup: fix improper m4 caching
44922         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44923         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44924         (gl_PREREQ_STRNDUP): Delete.
44925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44926         * modules/string (Makefile.am): Substitute it.
44927         * lib/string.in.h (strndup): Modernize prototype.
44928
44929         getcwd: port to mingw
44930         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44931         different from the POSIX assumptions made throughout the getcwd
44932         module; fortunately, the mingw getcwd does not need replacement.
44933         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44934         * modules/getcwd-tests: New test.
44935         * tests/test-getcwd.c: Likewise.
44936
44937         link: fix platform bugs
44938         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44939         * lib/link.c (link): Work around them.  Fix related mingw bug.
44940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44941         * modules/unistd (Makefile.am): Substitute it.
44942         * lib/unistd.in.h (link): Declare replacement.
44943         * doc/posix-functions/link.texi (link): Document this.
44944         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44945
44946         test-link: consolidate into single C program, test more cases
44947         * tests/test-link.sh: Delete.
44948         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44949         at least Cygwin and Solaris.
44950         * modules/link-tests (Files): Remove unused file.
44951         (Depends-on): Add errno, sys_stat.
44952         (Makefile.am): Simplify.
44953
44954 2009-09-08  Bruno Haible  <bruno@clisp.org>
44955
44956         Work around towlower, towupper bug on mingw.
44957         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44958         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44959         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44960         * doc/posix-functions/towupper.texi: Likewise.
44961         Reported by Eric Blake.
44962
44963 2009-09-08  Jim Meyering  <meyering@redhat.com>
44964
44965         build: don't try to run autoheader if we don't use it
44966         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44967         is not used in configure.ac.
44968
44969 2009-09-08  Eric Blake  <ebb9@byu.net>
44970
44971         euidaccess: fix compilation error
44972         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44973
44974         rawmemchr: relax license
44975         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44976         okay.
44977         Reported by Jim Meyering.
44978
44979         mkfifoat: new module
44980         * modules/mkfifoat: New file.
44981         * lib/mkfifoat.c: Likewise.
44982         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44984         * modules/sys_stat (Makefile.am): Use them.
44985         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44986         * MODULES.html.sh (File system functions): Mention module.
44987         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44988         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44989         * modules/mkfifoat-tests: New test.
44990         * tests/test-mkfifoat.c: Likewise.
44991
44992         strchrnul: relax license
44993         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44994         okay.
44995         Reported by Jim Meyering.
44996
44997 2009-09-08  Eric Blake  <ebb9@byu.net>
44998
44999         fstatat: fix compilation on Solaris
45000         * lib/fstatat.c (includes): Add fcntl.h.
45001         Reported by Pádraig Brady.
45002
45003 2009-09-07  Eric Blake  <ebb9@byu.net>
45004
45005         rename: modernize replacement
45006         * modules/rename (Depends-on): Add stdio.
45007         (configure.ac): Declare witness.
45008         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45009         stdio take care of replacement.
45010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45011         * modules/stdio (Makefile.am): Substitute them.
45012         * lib/stdio.in.h (rename): Declare replacement.
45013         * lib/rename.c (includes): Allow cross-compilation to non-windows
45014         machines.
45015         * doc/posix-functions/rename.texi (rename): Improve
45016         documentation.
45017
45018         stdio: sort witness names
45019         * modules/stdio (Makefile.am): Sort replacements.
45020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45021         * lib/stdio.in.h: Likewise.
45022
45023         getcwd: minor cleanups
45024         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45025         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45026
45027         openat: provide more convenience names
45028         * modules/faccessat (configure.ac): Add C witness.
45029         * lib/unistd.in.h (readlinkat): Fix typo.
45030         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45031         convenience wrappers.
45032         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45033         wrappers in syntax checks.
45034
45035 2009-09-06  Eric Blake  <ebb9@byu.net>
45036
45037         doc: fix comments in recent patches
45038         * lib/faccessat.c: Mention correct function.
45039         * lib/fchmodat.c: Likewise.
45040         * lib/fchownat.c: Likewise.
45041         * lib/symlinkat.c: Likewise.
45042         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45043         constants.
45044
45045         faccessat, symlinkat: continue cleanup of previous patch
45046         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45047         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45048         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45050         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45051         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45052         set.
45053
45054 2009-09-06  Bruno Haible  <bruno@clisp.org>
45055
45056         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45057         (fstatat): Declare if GNULIB_FSTATAT is set.
45058         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45059         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45060         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45061         * modules/fcntl-h (Files): Remove m4/openat.m4.
45062         * modules/sys_stat (Files): Remove m4/openat.m4.
45063         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45064         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45065         * modules/unistd (Files): Remove m4/openat.m4.
45066         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45067         GNULIB_OPENAT.
45068         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45069         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45070         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45071         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45072         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45073         gl_OPENAT_DEFAULTS.
45074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45075         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45076         Don't require gl_OPENAT_DEFAULTS.
45077         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45078         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45079         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45080         (gl_OPENAT_DEFAULTS): Remove macro.
45081
45082 2009-09-06  Bruno Haible  <bruno@clisp.org>
45083
45084         * modules/openat (configure.ac): Remove unneeded witness.
45085
45086 2009-09-06  Bruno Haible  <bruno@clisp.org>
45087
45088         Set errno to ENOSYS when a function is entirely unsupported.
45089         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45090         EOPNOTSUPP.
45091         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45092         * modules/chown (Depends-on): Remove errno.
45093
45094 2009-09-06  Bruno Haible  <bruno@clisp.org>
45095
45096         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45097
45098 2009-09-06  Bruno Haible  <bruno@clisp.org>
45099
45100         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45101
45102 2009-09-06  Ben Pfaff  <blp@gnu.org>
45103             Bruno Haible  <bruno@clisp.org>
45104
45105         Work around a glibc bug in strtok_r.
45106         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45107         Undefine if UNDEFINE_STRTOK_R is set.
45108         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45110         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45111         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45112         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45113         UNDEFINE_STRTOK_R.
45114         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45115
45116 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45117
45118         exclude: minor fix
45119         * lib/exclude.c: Include wctype.h
45120
45121 2009-09-06  Akim Demaille  <demaille@gostai.com>
45122
45123         bootstrap: improve error message
45124         * build-aux/bootstrap (find_tool): Upon failure, report the list
45125         of candidates.
45126         Honor the initial value of the envvar.
45127
45128 2009-09-05  Eric Blake  <ebb9@byu.net>
45129
45130         symlinkat: new module
45131         * modules/symlinkat: New file.
45132         * lib/symlinkat.c: Likewise.
45133         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45135         * modules/unistd (Makefile.am): Use them.
45136         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45137         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45138         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45139         * MODULES.html.sh (File system functions): Mention module.
45140         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45141         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45142         * modules/symlinkat-tests: New test.
45143         * tests/test-symlinkat.c: Likewise.
45144
45145         test-openat-safer: add more checks
45146         * tests/test-openat-safer.c (main): Check more code paths.
45147
45148 2009-09-05  Jim Meyering  <meyering@redhat.com>
45149
45150         syntax-check: detect unnecessary inclusion of openat.h
45151         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45152
45153 2009-09-05  Bruno Haible  <bruno@clisp.org>
45154
45155         Support towlower, towupper.
45156         * doc/posix-functions/towlower.texi: Mention module wctype.
45157         * doc/posix-functions/towupper.texi: Likewise.
45158         * lib/wctype.in.h (towlower, towupper): New functions.
45159         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45160         (ASSERT): New macro.
45161         (e): New variable.
45162         (main): Test also towlower, towupper. Test WEOF argument.
45163         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45164
45165 2009-09-05  Bruno Haible  <bruno@clisp.org>
45166
45167         Fix conversion behaviour when the input is invalid.
45168         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45169         mark occurring in first pass of indirect conversion.
45170         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45171         input.
45172         Found by clang's static analyzer.
45173
45174 2009-09-05  Bruno Haible  <bruno@clisp.org>
45175
45176         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45177         where direct conversion is possible.
45178
45179 2009-09-04  Eric Blake  <ebb9@byu.net>
45180
45181         openat: fail with ENOENT on empty name
45182         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45183         buffer.
45184
45185         link-follow: fix logic bug in prior patch
45186         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45187         reversed sense of yes and no in prior patch.  Avoid confusing
45188         compilation failure with desired semantics.
45189
45190         link-follow: accommodate mingw and cross-compilation
45191         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45192         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45193         cross-compilation results to -1, to make linkat easier to
45194         implement when cross-compiling.  Trivially support mingw.
45195         * modules/link-follow (configure.ac): Call new name.
45196         * NEWS: Mention this.
45197
45198 2009-09-03  Eric Blake  <ebb9@byu.net>
45199
45200         faccessat: compile replacement
45201         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45202         needed.
45203
45204         fts: fix compilation error
45205         * lib/fts.c (includes): Re-add "openat.h", for
45206         openat_needs_fchdir.
45207
45208         faccessat: new module
45209         * modules/faccessat: New file.
45210         * lib/faccessat.c: Likewise.
45211         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45213         * modules/unistd (Makefile.am): Use it.
45214         * lib/unistd.in.h (faccessat): Declare it.
45215         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45216         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45217         * MODULES.html.sh (File system functions): Mention it.
45218         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45219         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45220
45221         euidaccess: prefer POSIX over non-standard implementation
45222         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45223         * lib/euidaccess.c (euidaccess): Use it if available.
45224
45225         openat: make template easier to use
45226         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45227         AT_FUNC_F2 to be undefined.
45228         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45229         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45230         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45231         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45232         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45233         Likewise.
45234         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45235         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45236         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45237         Likewise.
45238
45239         openat: declare in POSIX headers
45240         * NEWS: Mention this.
45241         * modules/openat (configure.ac): Declare witnesses.
45242         (Depends-on): Add fcntl-h, sys_stat, unistd.
45243         (Include): Mention correct headers.
45244         * modules/fcntl-h (Depends-on): Add link-warning.
45245         (Files): Add openat.m4.
45246         (Makefile.am): Substitute witnesses.
45247         * modules/sys_stat (Files, Makefile.am): Likewise.
45248         * modules/unistd (Files, Makefile.am): Likewise.
45249         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45250         (gl_OPENAT_DEFAULTS): New macro.
45251         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45253         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45254         (SYS_STAT_H): Remove unused variable.
45255         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45256         * lib/fcntl--.h (includes): Remove unneeded header.
45257         * lib/openat-safer.c (includes): Likewise.
45258         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45259         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45260         appropriate headers.
45261         (__OPENAT_PREFIX): Delete.
45262         * lib/fcntl.in.h (openat): Provide declaration.
45263         (AT_FDCWD): Fix Solaris bug.
45264         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45265         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45266         * lib/fchmodat.c (includes):  Adjust to find declaration.
45267         * lib/fchownat.c (includes): Likewise.
45268         * lib/mkdirat.c (includes): Likewise.
45269         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45270         still visible.
45271
45272 2009-09-02  Eric Blake  <ebb9@byu.net>
45273
45274         errno: use consistently
45275         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45276         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45277         * lib/canonicalize.c (ELOOP): Likewise.
45278         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45279         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45280         * lib/lchown.c (EOPNOTSUPP): Likewise.
45281         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45282         * lib/savewd.c (ESTALE): Likewise.
45283         * lib/settime.c (ENOSYS): Likewise.
45284         * lib/utimens.c (ENOSYS): Likewise.
45285         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45286         * lib/chdir-safer.c (ELOOP): Likewise.
45287         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45288         * modules/c-stack (Depends-on): Add errno.
45289         * modules/canonicalize (Depends-on): Likewise.
45290         * modules/chdir-safer (Depends-on): Likewise.
45291         * modules/fdopendir (Depends-on): Likewise.
45292         * modules/inet_ntop (Depends-on): Likewise.
45293         * modules/inet_pton (Depends-on): Likewise.
45294         * modules/lchown (Depends-on): Likewise.
45295         * modules/openat (Depends-on): Likewise.
45296         * modules/savewd (Depends-on): Likewise.
45297         * modules/settime (Depends-on): Likewise.
45298         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45299
45300         fts: avoid leaking fds
45301         * modules/fts (Depends-on): Add cloexec.
45302         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45303         flag.
45304
45305         fts: make directory fds more robust
45306         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45307         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45308
45309         backupfile, chdir-long, fts, savedir: make safer
45310         * lib/backupfile.c (includes): Use "dirent--.h", since
45311         numbered_backup can write to stderr during readdir.
45312         * lib/savedir.c (includes): Likewise.
45313         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45314         emulation can write to stderr on failure.
45315         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45316         * lib/getcwd.c: Document why opendir_safer is unused.
45317         * lib/glob.c: Likewise.
45318         * lib/scandir.c: Likewise.
45319         * lib/openat-proc.c: Likewise, for open_safer.
45320         * modules/backupfile (Depends-on): Add dirent-safer.
45321         * modules/savedir (Depends-on): Likewise.
45322         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45323         * modules/chdir-long (Depends-on): Add openat-safer.
45324
45325         openat-safer: new module
45326         * modules/openat-safer: New file.
45327         * lib/openat-safer.c: Likewise.
45328         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45329         * lib/fcntl-safer.h (openat_safer): Declare.
45330         * lib/fcntl--.h (openat): Override.
45331         * MODULES.html.sh (File descriptor based I/O): Mention it.
45332         * lib/openat.h: Add double-inclusion guards.
45333         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45334         "fcntl--.h", so we can implement openat.
45335         * modules/openat-safer-tests: New test.
45336         * tests/test-openat-safer.c: New file.
45337
45338         dirent-safer: new module
45339         * modules/dirent-safer: New file.
45340         * lib/dirent--.h: Likewise.
45341         * lib/dirent-safer.h: Likewise.
45342         * lib/opendir-safer.c: Likewise.
45343         * m4/dirent-safer.m4: Likewise.
45344         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45345         * modules/dirent-safer-tests: New test.
45346         * tests/test-dirent-safer.c: New file.
45347         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45348
45349         fdopendir: optimize on mingw
45350         * lib/unistd.in.h (_gl_directory_name): New prototype.
45351         * lib/fchdir.c (_gl_directory_name): Implement it.
45352         (fchdir): Use it to simplify implementation.
45353         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45354         fchdir, when available, to avoid calling [f]chdir().
45355
45356         fdopendir: split into its own module
45357         * lib/openat.c (fdopendir): Move...
45358         * lib/fdopendir.c: ...into new file.
45359         * modules/fdopendir: New module.
45360         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45361         * modules/openat (Depends-on): Add fdopendir.
45362         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45363         fdopendir here.
45364         * modules/savedir (Depends-on): Only need fdopendir, not full
45365         openat.
45366         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45367         * lib/openat.h (fdopendir): Drop prototype.
45368         * lib/dirent.in.h (fdopendir): Provide prototype.
45369         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45370         * modules/dirent (Makefile.am): Substitute them.
45371         * MODULES.html.sh (File system functions): Mention it.
45372         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45373         * modules/fdopendir-tests: New file.
45374         * tests/test-fdopendir.c: Likewise.
45375
45376         fchdir: use more consistent macro convention
45377         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45378         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45379         REPLACE_FCHDIR, rather than relying on config.h macros.
45380         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45381         inside a single make-time REPLACE_FCHDIR block, rather than using
45382         the config.h FCHDIR_REPLACEMENT.
45383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45384         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45385         Manage fstat replacement.
45386         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45387         REPLACE_FCHDIR.
45388         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45389         (Makefile.am): Substitute REPLACE_FCHDIR.
45390         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45391         FCHDIR_REPLACEMENT.
45392         * lib/dup-safer.c (dup_safer): Likewise.
45393         * lib/dup2.c (rpl_dup2): Likewise.
45394         * lib/dup3.c (rpl_dup3): Likewise.
45395         * lib/open.c (rpl_open): Likewise.
45396
45397         fchdir: simplify error handling, and support dup3
45398         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45399         stdbool, malloc-posix, realloc-posix.
45400         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45401         (ensure_dirs_slot): Return false on allocation failure.
45402         (rpl_dup2): Delete.
45403         (_gl_register_dup): New function.
45404         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45405         (_gl_register_fd): Close fd on allocation failure.
45406         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45407         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45408         prototype.
45409         (rpl_dup2_fchdir): Delete prototype.
45410         * lib/open.c (open): Update caller.
45411         * lib/dup2.c (dup2): Track fchdir metadata.
45412         * lib/dup3.c (dup3): Likewise.
45413         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45415
45416 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45417
45418         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45419         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45420         don't pass arguments to AC_OUTPUT.
45421
45422 2009-09-02  Bruno Haible  <bruno@clisp.org>
45423
45424         * modules/mkdtemp (License): Relicense under LGPLv2+.
45425         Reported by Paolo Bonzini.
45426
45427 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45428
45429         Replace uses of obsolete autoconf macros in Jim's modules.
45430         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45431         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45432         can evoke a warning from autoconf when run with -Wobsolete
45433         enabled.  They were declared obsolete for good reasons (see
45434         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45435         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45436         should not continue using the deprecated macros.
45437         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45438         obsolete Autoconf macros with modern counterparts.
45439         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45440         * m4/dos.m4 (gl_AC_DOS): Likewise.
45441         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45443         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45444         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45445         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45447         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45448         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45449         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45450         Likewise.
45451         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45452         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45453         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45454         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45455         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45456         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45457
45458 2009-09-01  Eric Blake  <ebb9@byu.net>
45459
45460         fchdir: fix off-by-one bug in previous patch
45461         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45462         (_gl_unregister_fd): Delete useless if.
45463
45464 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45465
45466         maint.mk: sort the list of syntax-check rules
45467         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45468         easier to get a sense of progress when the rules are run sequentially
45469         and take a long time.
45470
45471 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45472
45473         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45474         * modules/netinet_in: Likewise.
45475         * modules/sys_file: Likewise.
45476         * modules/sys_ioctl: Likewise.
45477         * modules/sys_select: Likewise.
45478         * modules/sys_socket: Likewise.
45479         * modules/sys_stat: Likewise.
45480         * modules/sys_time: Likewise.
45481         * modules/sys_times: Likewise.
45482         * modules/sys_utsname: Likewise.
45483         * modules/sys_wait: Likewise.
45484
45485 2009-09-01  Jim Meyering  <meyering@redhat.com>
45486
45487         fts: help ensure that return values are not ignored
45488         * lib/fts_.h (__GNUC_PREREQ): Define.
45489         (__attribute_warn_unused_result__): Define.
45490         (fts_children, fts_close, fts_open, fts_read): Declare with
45491         __attribute_warn_unused_result__.
45492
45493         fts: fts_close now fails also when closing a dir file descriptor fails
45494         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45495         and propagate to caller, along with errno.
45496
45497         announce-gen: correct formatting in --help output
45498         * build-aux/announce-gen (usage): Move the one-line description in
45499         --help output "up", to where it belongs, just after Usage:.
45500
45501 2009-08-31  Eric Blake  <ebb9@byu.net>
45502
45503         fchdir: port to mingw
45504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45505         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45506         opened, then use a substitute.
45507         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45508         replacement.
45509         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45510         (_gl_register_fd): No need to check stat if open already filters
45511         all directories.
45512         (fchdir): Fix error condition to match POSIX.
45513         * modules/fchdir (Depends-on): Add sys_stat.
45514         * doc/posix-functions/open.texi (open): Document the limitation.
45515         * modules/fchdir-tests: New file.
45516         * tests/test-fchdir.c: Likewise.
45517
45518         canonicalize: allow cross-testing from cygwin to mingw
45519         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45520         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45521         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45522         Likewise.
45523         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45524         target does not support symlinks.
45525         * tests/test-canonicalize-lgpl.sh: Likewise.
45526
45527         chown: avoid compilation warning on mingw
45528         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45529         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45530         mingw.
45531         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45532         * modules/chown (Depends-on): Add errno.
45533
45534 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45535
45536         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45537         command.
45538
45539 2009-08-31  Jim Meyering  <meyering@redhat.com>
45540
45541         canonicalize: remove useless initialization
45542         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45543         initialization of local, "end".
45544
45545 2009-08-30  Bruno Haible  <bruno@clisp.org>
45546
45547         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45548         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45549         ENOSYS.
45550
45551 2009-08-30  Bruno Haible  <bruno@clisp.org>
45552
45553         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45554         /usr/xpg4/bin/tr when it exists.
45555         * tests/test-pipe-filter-gi1.sh: Likewise.
45556
45557 2009-08-30  Bruno Haible  <bruno@clisp.org>
45558
45559         Work around deficient /usr/bin/id program on Solaris.
45560         * tests/test-file-has-acl.sh (ID): New variable.
45561         * tests/test-set-mode-acl.sh (ID): Likewise.
45562         * tests/test-copy-acl.sh (ID): Likewise.
45563         * tests/test-copy-file.sh (ID): Likewise.
45564
45565 2009-08-30  Bruno Haible  <bruno@clisp.org>
45566
45567         New module 'xstriconveh'.
45568         * lib/xstriconveh.h: New file.
45569         * lib/xstriconveh.c: New file.
45570         * modules/xstriconveh: New file.
45571
45572 2009-08-30  Bruno Haible  <bruno@clisp.org>
45573
45574         Make it easier to use mem_cd_iconveh.
45575         * lib/striconveh.h (iconveh_t): New type.
45576         (iconveh_open, iconveh_close): New declarations.
45577         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45578         with a single 'const iconveh_t *' argument.
45579         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45580         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45581         with a single 'const iconveh_t *' argument.
45582         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45583         * tests/test-striconveh.c (main): Update.
45584         * NEWS: Mention the change.
45585
45586 2009-08-30  Bruno Haible  <bruno@clisp.org>
45587
45588         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45589         problem.
45590
45591 2009-08-30  Bruno Haible  <bruno@clisp.org>
45592
45593         Work around iconv_open problem on Solaris.
45594         * lib/iconv_open-solaris.gperf: New file.
45595         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45596         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45597         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45598         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45599         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45600         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45601
45602 2009-08-29  Jim Meyering  <meyering@redhat.com>
45603
45604         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45605         * top/maint.mk (cvs-check): Remove target; it was just an alias
45606         to the better-named vc-diff-check.
45607         (maintainer-distcheck): Remove rule.  It was used only from
45608         the (alpha/beta/major) target, and all of its commands but one
45609         were coreutils-specific.
45610         (vc-dist): Remove rule.
45611         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45612         Run vc-diff-check, not vc-dist.
45613         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45614
45615 2009-08-27  Bruno Haible  <bruno@clisp.org>
45616
45617         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45618         of 0.
45619
45620 2009-08-27  Bruno Haible  <bruno@clisp.org>
45621
45622         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45623         compilers.
45624         * doc/func.texi: Document the SunPRO C bug.
45625
45626 2009-08-27  Bruno Haible  <bruno@clisp.org>
45627
45628         Fix link error on Solaris.
45629         * tests/test-parse-duration.c (xstrdup): Remove function.
45630
45631 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45632
45633         ignore-value: handle pointer types, too
45634         * lib/ignore-value.h (__attribute__): Remove definition.
45635         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45636         of a more concise and more-often effective "(void) i" statement.
45637         (ignore_ptr): New function to suppress warnings from functions that
45638         return pointers, and to make it explicit that one function doesn't
45639         handle all cases.
45640
45641 2009-08-25  Bruno Haible  <bruno@clisp.org>
45642
45643         dup2: work around a Linux bug.
45644         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45645         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45646         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45647         Reported by Simon Josefsson.
45648
45649 2009-08-25  Jim Meyering  <meyering@redhat.com>
45650
45651         libguestfs uses gnulib
45652         * users.txt: Add libguestfs.
45653
45654 2009-08-24  Eric Blake  <ebb9@byu.net>
45655
45656         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45657         * lib/pipe2.c (includes): Add binary-io.h.
45658         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45659
45660 2009-08-24  Bruno Haible  <bruno@clisp.org>
45661
45662         Tolerate declared but missing accept4 syscall.
45663         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45664         available.
45665         * lib/sys_socket.in.h (accept4): If the function is already present,
45666         override it.
45667         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45668         * modules/accept4 (Makefile.am): Compile accept4.c always.
45669         Reported by Paolo Bonzini and Eric Blake.
45670
45671 2009-08-23  Bruno Haible  <bruno@clisp.org>
45672
45673         New module 'accept4'.
45674         * lib/sys_socket.in.h (accept4): New declaration.
45675         * lib/accept4.c: New file.
45676         * m4/accept4.m4: New file.
45677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45678         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45679         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45680         HAVE_ACCEPT4.
45681         * modules/accept4: New file.
45682         * doc/glibc-functions/accept4.texi: Mention the new module.
45683
45684 2009-08-24  Jim Meyering  <meyering@redhat.com>
45685
45686         progname: also set global program_invocation_name, when possible
45687         Before this change, a libtool-enabled program that calls glibc's
45688         error function would report the program name as
45689         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45690         * modules/progname (configure.ac): Check for a declaration of
45691         program_invocation_name.
45692         * lib/progname.c:  Include <errno.h>.
45693         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45694         Set program_invocation_name.
45695
45696 2009-08-23  Bruno Haible  <bruno@clisp.org>
45697
45698         * lib/dup3.c: Include <string.h>.
45699
45700 2009-08-23  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45703         * lib/pipe2.c (pipe2): Likewise.
45704         Suggested by Eric Blake.
45705
45706 2009-08-23  Bruno Haible  <bruno@clisp.org>
45707
45708         Tolerate declared but missing dup3 syscall.
45709         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45710         * lib/unistd.in.h (dup3): If the function is already present,
45711         override it.
45712         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45713         * modules/dup3 (Makefile.am): Compile dup3.c always.
45714         Reported by Paolo Bonzini.
45715
45716 2009-08-23  Bruno Haible  <bruno@clisp.org>
45717
45718         Tolerate declared but missing pipe2 syscall.
45719         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45720         available.
45721         * lib/unistd.in.h (pipe2): If the function is already present,
45722         override it.
45723         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45724         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45725         Reported by Paolo Bonzini.
45726
45727 2009-08-23  Bruno Haible  <bruno@clisp.org>
45728
45729         * lib/pipe2.c (pipe2): Move #ifs inside function.
45730
45731 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45732
45733         quotearg: document limitations of quote_these_too
45734         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45735         those limitations are created.
45736         * lib/quotearg.h (set_char_quoting): Document that digits and
45737         letters that are special after backslash are not permitted.
45738         (quotearg_char): Cross-reference set_char_quoting documentation.
45739
45740 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45741
45742         quotearg: implement custom_quoting_style
45743         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45744         right_quote fields.
45745         (set_custom_quoting): New public function.
45746         (quotearg_buffer_restyled): Add left_quote and right_quote
45747         arguments, handle them very much like locale quoting, and update
45748         all uses.
45749         (quotearg_n_custom): New public function.
45750         (quotearg_n_custom_mem): New public function.
45751         (quotearg_custom): New public function.
45752         (quotearg_custom_mem): New public function.
45753         * lib/quotearg.h: Prototype and document new public functions.
45754         (enum quoting_style): For escape_quoting_style and
45755         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45756         ignored even though they're otherwise like c_quoting_style.
45757         Add custom_quoting_style member and document with comparison to
45758         clocale_quoting_style.
45759         * tests/test-quotearg.c (custom_quotes): New array.
45760         (custom_results): New array.
45761         (main): Extend to test custom quoting.
45762
45763 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45764
45765         quotearg: fix right quote escaping when it's in quote_these_too
45766         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45767         quote, be sure to prepend only one backslash.
45768         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45769         (main): Test it.
45770
45771 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45772
45773         quotearg-tests: test escaping of embedded locale quotes
45774         * tests/test-quotearg.c (struct result_strings): Add member for
45775         new input.
45776         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45777         (inputs): Add new input.
45778         (results_g): Add expected results.
45779         (flag_results): Likewise.
45780         (locale_results): Likewise.
45781         (compare_strings): Check those.
45782
45783 2009-08-23  Bruno Haible  <bruno@clisp.org>
45784
45785         Tests for module 'dup3'.
45786         * modules/dup3-tests: New file.
45787         * tests/test-dup3.c: New file.
45788
45789         New module 'dup3'.
45790         * lib/unistd.in.h (dup3): New declaration.
45791         * lib/dup3.c: New file.
45792         * m4/dup3.m4: New file.
45793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45794         HAVE_DUP3.
45795         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45796         * modules/dup3: New file.
45797         * doc/glibc-functions/dup3.texi: Mention the new module.
45798
45799 2009-08-23  Bruno Haible  <bruno@clisp.org>
45800
45801         Tweak the dup2 test.
45802         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45803         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45804         the test file is still empty. Fix argument order of lseek.
45805
45806 2009-08-23  Bruno Haible  <bruno@clisp.org>
45807
45808         Avoid test link errors when the modules getopt-gnu, gettext are used.
45809         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45811
45812 2009-08-23  Bruno Haible  <bruno@clisp.org>
45813
45814         Fix getdtablesize() on mingw.
45815         * lib/getdtablesize.c (getdtablesize): Implement differently.
45816         * lib/unistd.in.h (getdtablesize): Improve comment.
45817
45818 2009-08-23  Bruno Haible  <bruno@clisp.org>
45819
45820         New module 'mkostemp'.
45821         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45822         * lib/stdlib.in.h (mksotemp): New declaration.
45823         * lib/mkostemp.c: New file, from glibc with modifications.
45824         * lib/tempname.h (GT_FILE): Remove outdated comment.
45825         (gen_tempname): Add flags argument.
45826         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45827         (__GT_FILE): Map to 1.
45828         (small_open, large_open): Remove macros.
45829         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45830         * lib/mkstemp.c (mkstemp): Update.
45831         * lib/mkdtemp.c (mkdtemp): Likewise.
45832         * m4/mkostemp.m4: New file.
45833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45834         HAVE_MKOSTEMP.
45835         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45836         HAVE_MKOSTEMP.
45837         * modules/mkostemp: New file, based on modules/mkstemp.
45838         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45839         * NEWS: Mention the change.
45840
45841 2009-08-23  Bruno Haible  <bruno@clisp.org>
45842
45843         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45844         Reported by Eric Blake.
45845
45846 2009-08-23  Bruno Haible  <bruno@clisp.org>
45847
45848         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45849         Reported by Eric Blake.
45850
45851 2009-08-23  Bruno Haible  <bruno@clisp.org>
45852
45853         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45854         * modules/pipe2 (Depends-on): Likewise.
45855
45856 2009-08-23  Eric Blake  <ebb9@byu.net>
45857
45858         fcntl-h: add O_TTY_INIT support
45859         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45860         * tests/test-fcntl-h.c (o): Test it.
45861         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45862
45863         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45864         * modules/fcntl: Move <fcntl.h> header replacement...
45865         * modules/fcntl-h: ...to new name, so as not to collide with
45866         like-named function.
45867         * tests/test-fcntl.c: Rename...
45868         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45869         * modules/fcntl-tests: Rename...
45870         * modules/fcntl-h-tests: ...to this.  Update test file name.
45871         * modules/chdir-long (Depends-on): Update clients.
45872         * modules/chdir-safer (Depends-on): Likewise.
45873         * modules/fcntl-safer (Depends-on): Likewise.
45874         * modules/fts (Depends-on): Likewise.
45875         * modules/mkancesdirs (Depends-on): Likewise.
45876         * modules/mkdir-p (Depends-on): Likewise.
45877         * modules/open (Depends-on): Likewise.
45878         * modules/savewd (Depends-on): Likewise.
45879         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45880         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45881
45882 2009-08-22  Bruno Haible  <bruno@clisp.org>
45883
45884         * modules/binary-io (License): Relicense under LGPL.
45885         * modules/pipe2 (License): Likewise.
45886
45887 2009-08-22  Bruno Haible  <bruno@clisp.org>
45888
45889         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45890         return value.
45891         * lib/pipe-filter-gi.c (filter_init): Likewise.
45892         Reported by Eric Blake.
45893
45894 2009-08-22  Bruno Haible  <bruno@clisp.org>
45895
45896         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45897         * modules/pipe (Depends-on): Add pipe2.
45898
45899 2009-08-22  Bruno Haible  <bruno@clisp.org>
45900
45901         Tests for module 'pipe2'.
45902         * modules/pipe2-tests: New file.
45903         * tests/test-pipe2.c: New file.
45904
45905         New module 'pipe2'.
45906         * lib/unistd.in.h (pipe2): New declaration.
45907         * lib/pipe2.c: New file.
45908         * m4/pipe2.m4: New file.
45909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45910         HAVE_PIPE2.
45911         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45912         * modules/pipe2: New file.
45913         * doc/glibc-functions/pipe2.texi: Mention the new module.
45914
45915 2009-08-22  Bruno Haible  <bruno@clisp.org>
45916
45917         Reference some new glibc functions.
45918         * doc/glibc-functions/accept4.texi: New file.
45919         * doc/glibc-functions/dup3.texi: New file.
45920         * doc/glibc-functions/mkostemp.texi: New file.
45921         * doc/glibc-functions/pipe2.texi: New file.
45922         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45923         (Glibc sys/socket.h): Refer to accept4.
45924         (Glibc unistd.h): Refer to dup3, pipe2.
45925         Reported by Eric Blake.
45926
45927 2009-08-22  Jim Meyering  <meyering@redhat.com>
45928             Bruno Haible  <bruno@clisp.org>
45929
45930         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45931         This makes it so packages using automake-1.11's silent-rules option
45932         can print e.g., a single "GEN    configmake.h" line, rather than
45933         the 30+ statements that perform the job.  If you want to see the
45934         actual commands, you can still run "make V=1".
45935         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45936         so that make output is abbreviated when those variables are defined
45937         appropriately.
45938         * modules/argz: Likewise.
45939         * modules/arpa_inet: Likewise.
45940         * modules/byteswap: Likewise.
45941         * modules/configmake: Likewise.
45942         * modules/dirent: Likewise.
45943         * modules/errno: Likewise.
45944         * modules/fcntl: Likewise.
45945         * modules/float: Likewise.
45946         * modules/fnmatch: Likewise.
45947         * modules/getopt-posix: Likewise.
45948         * modules/glob: Likewise.
45949         * modules/iconv_open: Likewise.
45950         * modules/inttypes: Likewise.
45951         * modules/localcharset: Likewise.
45952         * modules/locale: Likewise.
45953         * modules/math: Likewise.
45954         * modules/netdb: Likewise.
45955         * modules/netinet_in: Likewise.
45956         * modules/poll: Likewise.
45957         * modules/posix_spawnp-tests: Likewise.
45958         * modules/sched: Likewise.
45959         * modules/search: Likewise.
45960         * modules/selinux-h: Likewise.
45961         * modules/signal: Likewise.
45962         * modules/spawn: Likewise.
45963         * modules/stdarg: Likewise.
45964         * modules/stdbool: Likewise.
45965         * modules/stddef: Likewise.
45966         * modules/stdint: Likewise.
45967         * modules/stdio: Likewise.
45968         * modules/stdlib: Likewise.
45969         * modules/string: Likewise.
45970         * modules/strings: Likewise.
45971         * modules/sys_file: Likewise.
45972         * modules/sys_ioctl: Likewise.
45973         * modules/sys_select: Likewise.
45974         * modules/sys_socket: Likewise.
45975         * modules/sys_stat: Likewise.
45976         * modules/sys_time: Likewise.
45977         * modules/sys_times: Likewise.
45978         * modules/sys_utsname: Likewise.
45979         * modules/sys_wait: Likewise.
45980         * modules/sysexits: Likewise.
45981         * modules/time: Likewise.
45982         * modules/unistd: Likewise.
45983         * modules/wchar: Likewise.
45984         * modules/wctype: Likewise.
45985
45986 2009-08-22  Jim Meyering  <meyering@redhat.com>
45987
45988         announce-gen: detect write failure
45989         * build-aux/announce-gen: Add Coda at end.
45990         Remove equivalent-but-more-verbose block at top.
45991
45992 2009-08-19  Akim Demaille  <demaille@gostai.com>
45993
45994         bootstrap: --help to stdout.
45995         * bootstrap (usage): Don't send --help to stderr.
45996         Use a here doc instead of a long string.
45997
45998 2009-08-21  Eric Blake  <ebb9@byu.net>
45999
46000         test-popen-safer: split from test-popen
46001         * tests/test-popen.c (main): Move...
46002         * tests/test-popen.h: ...into new file.
46003         * tests/test-popen-safer2.c: New file.
46004         * modules/popen-tests (Files): Add test-popen.h.
46005         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46006         Suggested by Bruno Haible.
46007
46008         test-fcntl-safer: split from test-open
46009         * tests/test-open.c (main): Move...
46010         * tests/test-open.h: ...into new file.
46011         * tests/test-fcntl-safer.c: New file.
46012         * modules/open-tests (Files): Add test-open.h.
46013         * modules/fcntl-safer-tests: New file.
46014         Suggested by Bruno Haible.
46015
46016         test-fopen-safer: split from test-fopen
46017         * tests/test-fopen.c (main): Move...
46018         * tests/test-fopen.h: ...into new file.
46019         * tests/test-fopen-safer.c: New file.
46020         * modules/fopen-tests (Files): Add test-fopen.h.
46021         * modules/fopen-safer-tests: New file.
46022         Suggested by Bruno Haible.
46023
46024 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46025
46026         popen-safer: test O_CLOEXEC at run-time.
46027         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46028
46029 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46030
46031         fcntl: move more flags to the header
46032         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46033         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46034         * lib/fcntl.in.h: Do both things here.
46035
46036 2009-08-21  Jim Meyering  <meyering@redhat.com>
46037
46038         consistently remove $@-t before redirecting to it
46039         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46040         * modules/alloca-opt: Likewise.
46041         * modules/byteswap: Likewise.
46042         * modules/fnmatch: Likewise.
46043         * modules/getopt-posix: Likewise.
46044         * modules/glob: Likewise.
46045         * modules/poll: Likewise.
46046         * modules/posix_spawnp-tests: Likewise.
46047         * modules/sys_socket: Likewise.
46048         * modules/sysexits: Likewise.
46049
46050 2009-08-21  Eric Blake  <ebb9@byu.net>
46051
46052         popen: simplify access to original popen
46053         * lib/popen.c (rpl_popen): No need to worry about popen being a
46054         macro.
46055         Reported by Bruno Haible.
46056
46057 2009-08-20  Eric Blake  <ebb9@byu.net>
46058
46059         build: avoid some compiler warnings
46060         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46061         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46062         type.
46063         (new_exclude_segment, excluded_file_pattern_p)
46064         (excluded_file_name_p): Reduce scope.
46065         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46066         old-style declaration.
46067
46068 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46069
46070         * tests/test-exclude1.sh: Handle Windows EOL.
46071         * tests/test-exclude2.sh: Likewise.
46072         * tests/test-exclude3.sh: Likewise.
46073         * tests/test-exclude4.sh: Likewise.
46074         * tests/test-exclude5.sh: Likewise.
46075         * tests/test-exclude6.sh: Likewise.
46076         * tests/test-exclude7.sh: Likewise.
46077
46078 2009-08-19  Akim Demaille  <demaille@gostai.com>
46079
46080         bootstrap: find sha1sum when named gsha1sum.
46081         * bootstrap (find_tool): New.
46082         ($SHA1SUM): New.
46083         Use it.
46084
46085 2009-08-20  Jim Meyering  <meyering@redhat.com>
46086
46087         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46088         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46089         expression that converts "." in a file name to "\." in the resulting
46090         regexp.  Start with a dummy statement, so that prior shell variable
46091         definitions are expanded portably.  Reported by Simon Josefsson.
46092
46093 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46094
46095         Fix polling for writeability of a screen buffer.
46096         * lib/poll.c: Distinguish input and screen buffers for the
46097         Win32 implementation.
46098         * lib/select.c: Likewise.
46099
46100 2009-08-19  Eric Blake  <ebb9@byu.net>
46101
46102         popen-safer: prevent popen from clobbering std descriptors
46103         * modules/popen-safer: New file.
46104         * lib/popen-safer.c: Likewise.
46105         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46106         * lib/stdio--.h (popen): Provide override.
46107         * lib/stdio-safer.h (popen_safer): Provide declaration.
46108         * tests/test-popen.c (includes): Partially test this.
46109         * modules/popen-safer-tests: New file, for more tests.
46110         * tests/test-popen-safer.c: Likewise.
46111         * MODULES.html.sh (file stream based Input/Output): Mention it.
46112
46113         tests: test some of the *-safer modules
46114         * modules/fopen-safer (Depends-on): Add fopen.
46115         * modules/fcntl-safer (Depends-on): Add fcntl.
46116         * modules/stdlib-safer (Depends-on): Add stdlib.
46117         (configure.ac): Set indicator.
46118         * modules/unistd-safer (configure.ac): Likewise.
46119         * modules/tmpfile-safer (configure.ac): Likewise.
46120         (Depends-on): Add tmpfile.
46121         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46122         active.
46123         * tests/test-fopen.c (includes): Test safer versions when they are
46124         in use.
46125         * tests/test-open.c (includes): Likewise.
46126
46127         popen: fix cygwin 1.5 bug when stdin closed
46128         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46129         * modules/popen: New file.
46130         * modules/popen-tests: Likewise.
46131         * tests/test-popen.c: Likewise.
46132         * m4/popen.m4: Likewise.
46133         * lib/popen.c: Likewise.
46134         * lib/stdio.in.h (popen): New declaration.
46135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46136         * modules/stdio (Makefile.am): Likewise.
46137         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46138
46139 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46140
46141         maint.mk: give full control over update-copyright exclusions
46142         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46143         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46144         (update-copyright): Don't force inclusion of top-level
46145         ChangeLog.  Don't force exclusion of all COPYING files, but make
46146         them the default exclusion instead.
46147
46148 2009-08-16  Bruno Haible  <bruno@clisp.org>
46149
46150         Fix test failures on Solaris 10.
46151         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46152         tests when Solaris iconv() is used.
46153         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46154         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46155         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46156         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46157         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46158
46159 2009-08-16  Bruno Haible  <bruno@clisp.org>
46160
46161         Fix test failures on Solaris 10.
46162         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46163         'tr' program and pass it as first argument.
46164         * tests/test-pipe-filter-gi1.sh: Likewise.
46165         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46166         program as first argument.
46167         * tests/test-pipe-filter-gi1.c (main): Likewise.
46168
46169 2009-08-16  Eric Blake  <ebb9@byu.net>
46170
46171         fpurge: fix previous commits
46172         * modules/fpurge (Makefile.am): Make replacement conditional,
46173         partially reverting 2007-04-29 change; missed in previous
46174         attempt.
46175         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46176         is missing.
46177
46178 2009-08-16  Bruno Haible  <bruno@clisp.org>
46179
46180         Clarify fpurge's effect on the file position.
46181         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46182         * tests/test-fpurge.c (main): Make a second pass for checking the file
46183         position.
46184
46185 2009-08-16  Bruno Haible  <bruno@clisp.org>
46186
46187         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46188         declaration of fpurge is missing.
46189         * tests/test-fpurge.c (main): Check that the file has not more contents
46190         than expected. Close the file before removing it.
46191
46192 2009-08-15  Eric Blake  <ebb9@byu.net>
46193
46194         fpurge: don't wrap working cygwin implementation
46195         * lib/fpurge.c (fpurge): Fix comment typo.
46196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46197         1.7 to avoid replacement.
46198         * tests/test-fpurge.c (main): Enhance test.
46199
46200 2009-08-15  Eric Blake  <ebb9@byu.net>
46201         and Jim Meyering  <meyering@redhat.com>
46202
46203         test-update-copyright: skip if perl is insufficient
46204         * tests/test-update-copyright.sh: Failure to run maintainer tool
46205         should not cause testsuite failure on cygwin 1.5.
46206
46207 2009-08-14  Eric Blake  <ebb9@byu.net>
46208
46209         doc: mention more functions added in cygwin 1.7.0
46210         * doc/posix-headers/limits.texi (limits.h): Update for recent
46211         cygwin additions.
46212         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46213         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46214         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46215         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46216         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46217
46218 2009-08-14  Eric Blake  <ebb9@byu.net>
46219
46220         maint.mk: simplify update-copyright rule
46221         * top/maint.mk (update-copyright-local): Delete, and document how
46222         to do it in cfg.mk instead.
46223         (update-copyright-exclude-regexp): Delete, and document how to do
46224         it in .x-update-copyright instead.
46225         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46226         exclude ChangeLog.
46227
46228 2009-08-14  Bruno Haible  <bruno@clisp.org>
46229
46230         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46231
46232 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46233
46234         maint.mk: support update-copyright-env
46235         * top/maint.mk (update-copyright-env): Define place-holder.
46236         (update-copyright): Expand $(update-copyright-env) before
46237         invoking update-copyright.
46238
46239 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46240
46241         update-copyright: implement forced reformatting
46242         * build-aux/update-copyright: Implement and document
46243         UPDATE_COPYRIGHT_FORCE.
46244         * tests/test-update-copyright.sh: Test it.
46245
46246 2009-08-14  Eric Blake  <ebb9@byu.net>
46247         and Bruno Haible  <bruno@clisp.org>
46248
46249         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46250         * tests/test-locale.c: Revert previous patch related to NULL.
46251         * tests/test-stdio.c: Likewise.
46252         * tests/test-stdlib.c: Likewise.
46253         * tests/test-string.c: Likewise.
46254         * tests/test-unistd.c: Likewise.
46255         * modules/time-tests (Depends-on): Add verify.
46256         * modules/wchar-tests (Depends-on): Likewise.
46257         * tests/test-time.c: Test for NULL compliance.
46258         * tests/test-wchar.c: Likewise.
46259         * modules/locale (Depends-on): Add stddef.
46260         * modules/stdio (Depends-on): Likewise.
46261         * modules/stdlib (Depends-on): Likewise.
46262         * modules/string (Depends-on): Likewise.
46263         * modules/time (Depends-on): Likewise.
46264         * modules/unistd (Depends-on): Likewise.
46265         * modules/wchar (Depends-on): Likewise.
46266         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46267         * lib/stdlib.in.h (includes): Likewise.
46268         * lib/string.in.h (includes): Likewise.
46269         * lib/time.in.h (includes): Likewise.
46270         * lib/unistd.in.h (includes): Likewise.
46271         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46272         replaced.
46273         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46274         * m4/stddef_h.m4: New file.
46275         * modules/stddef: Likewise.
46276         * lib/stddef.in.h: Likewise.
46277         * modules/stddef-tests: Likewise.
46278         * tests/test-stddef.c: Likewise.
46279         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46280         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46281         * doc/posix-headers/locale.texi (locale.h): Likewise.
46282         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46283         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46284         * doc/posix-headers/string.texi (string.h): Likewise.
46285         * doc/posix-headers/time.texi (time.h): Likewise.
46286         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46287         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46288
46289 2009-08-14  Eric Blake  <ebb9@byu.net>
46290
46291         doc: improve git diff of texinfo files
46292         * .gitattributes: Add rule for *.texi files, with hint on how to
46293         use it.
46294         Copied from m4, and based on a report by Bruno Haible.
46295
46296 2009-08-14  Bruno Haible  <bruno@clisp.org>
46297
46298         Disable multithread support by default on Cygwin 1.5.x for real.
46299         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46300
46301 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46302
46303         update-copyright: much ado about intervals
46304         * build-aux/update-copyright: Implement and document
46305         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46306         of copyright year intervals.
46307         Also, document UPDATE_COPYRIGHT_YEAR.
46308         * tests/test-update-copyright.sh: Test it.
46309
46310         update-copyright: convert 2-digit to 4-digit years
46311         * build-aux/update-copyright: Implement and document.
46312         * tests/test-update-copyright.sh: Update.
46313
46314 2009-08-14  Jim Meyering  <meyering@redhat.com>
46315
46316         test-exclude: avoid coreutils "make check" failure
46317         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46318         just as in test-argmatch.c.
46319
46320 2009-08-13  Eric Blake  <ebb9@byu.net>
46321
46322         test-dup2: fix bad assumption
46323         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46324         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46325
46326         test-version-etc: fix CRLF portability issue
46327         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46328         recognize \r.
46329         * tests/test-argp-version-etc-1.sh: Likewise.
46330
46331         getopt: update client modules
46332         * modules/argp (Depends-on): Use getopt-gnu.
46333         * modules/git-merge-changelog (Depends-on): Likewise.
46334         * modules/long-options (Depends-on): Likewise.
46335         * modules/xstrtol (Depends-on): Likewise.
46336
46337 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46338
46339         * tests/test-version-etc.sh: Don't fail on different
46340         project/version.  Don't fail on CRLF differences.  Rewrite to use
46341         multiple -e instead of multiple sed forks, suggested by Eric Blake
46342         <ebb9@byu.net>.
46343         * tests/test-argp-version-etc-1.sh: Likewise.
46344
46345 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46346
46347         * tests/test-version-etc.sh: Don't fail on different
46348         project/version.
46349
46350 2009-08-12  Bruno Haible  <bruno@clisp.org>
46351
46352         Tests for modules 'getopt-posix', 'getopt-gnu'.
46353         * modules/getopt-posix-tests: New file.
46354         * tests/test-getopt.c: New file.
46355         * tests/test-getopt.h: New file.
46356         * tests/test-getopt_long.h: New file.
46357
46358         New modules 'getopt-posix', 'getopt-gnu'.
46359         * modules/getopt-gnu: New file, renamed from modules/getopt.
46360         * modules/getopt-posix: New file.
46361         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46362         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46363         (gl_GETOPT): Remove macro.
46364         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46365         Disable the test against BSD systems that declare optreset. Test
46366         against mingw bug. Test against lack of support of optional arguments
46367         on many platforms.
46368         * doc/glibc-headers/getopt.texi: Update module name and list of
46369         relevant platforms.
46370         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46371         'getopt-gnu' and more portability problems.
46372         * NEWS: Mention the changes.
46373
46374 2009-08-12  Bruno Haible  <bruno@clisp.org>
46375
46376         Ensure that optarg etc. get declared by <unistd.h>.
46377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46378         AC_USE_SYSTEM_EXTENSIONS.
46379         * modules/getopt (Depends-on): Add 'extensions'.
46380
46381 2009-08-12  Bruno Haible  <bruno@clisp.org>
46382
46383         Avoid test link errors.
46384         * modules/pipe-filter-ii-tests (Makefile.am): Define
46385         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46386         * modules/pipe-filter-gi-tests (Makefile.am): Define
46387         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46389
46390 2009-08-12  Bruno Haible  <bruno@clisp.org>
46391
46392         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46393         gl_GETOPT_SUBSTITUTE before.
46394         (gl_GETOPT): Use it.
46395         * m4/argp.m4 (gl_ARGP): Update.
46396         Reported by Sergey Poznyakoff.
46397
46398         * m4/getopt.m4: Reorder macros.
46399         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46400         (gl_GETOPT_SUBSTITUTE): Remove macro.
46401
46402 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46403
46404         Minor improvement in gitlog-to-changelog
46405
46406         * build-aux/gitlog-to-changelog: New option `--format' makes
46407         output format string configurable.
46408
46409 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46410
46411         Optimize exclude: use hash tables for non-wildcard patterns.
46412
46413         * lib/exclude.c: Include hash.h and mbuiter.h
46414         (struct exclude_pattern, exclude_segment): New data types.
46415         (struct exclude): Rewrite.
46416         (fnmatch_pattern_has_wildcards): New function.
46417         (new_exclude_segment, free_exclude_segment): New functions.
46418         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46419         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46420         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46421         * modules/exclude: Depend on hash and mbuiter.
46422
46423         * modules/exclude-tests: New file.
46424         * tests/test-exclude.c: New file.
46425         * tests/test-exclude1.sh: New file.
46426         * tests/test-exclude2.sh: New file.
46427         * tests/test-exclude3.sh: New file.
46428         * tests/test-exclude4.sh: New file.
46429         * tests/test-exclude5.sh: New file.
46430         * tests/test-exclude6.sh: New file.
46431         * tests/test-exclude7.sh: New file.
46432
46433 2009-08-12  Bruno Haible  <bruno@clisp.org>
46434
46435         Ensure that getopt() gets declared by <unistd.h>.
46436         * lib/unistd.in.h: Conditionally include getopt.h.
46437         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46438         Set GNULIB_UNISTD_H_GETOPT.
46439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46440         GNULIB_UNISTD_H_GETOPT.
46441         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46442
46443 2009-08-12  Bruno Haible  <bruno@clisp.org>
46444
46445         Clarify logic.
46446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46447         gl_replace_getopt instead of GETOPT_H.
46448
46449 2009-08-12  Bruno Haible  <bruno@clisp.org>
46450
46451         * m4/getopt.m4: Add comments.
46452
46453 2009-08-12  Bruno Haible  <bruno@clisp.org>
46454
46455         Disable multithread support by default on Cygwin 1.5.x.
46456         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46457         set gl_use_threads=no if not specified otherwise.
46458
46459 2009-08-11  Bruno Haible  <bruno@clisp.org>
46460
46461         Avoid compilation error on NetBSD 5.0.
46462         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46463         * tests/test-stdio.c: Likewise.
46464         * tests/test-stdlib.c: Likewise.
46465         * tests/test-string.c: Likewise.
46466         * tests/test-unistd.c: Likewise.
46467         Reported by Greg Troxel <gdt@ir.bbn.com>
46468         at <https://savannah.gnu.org/support/?106973>.
46469
46470 2009-08-11  Bruno Haible  <bruno@clisp.org>
46471
46472         * modules/dup2-tests (Depends-on): Remove close.
46473
46474         Undo 2009-07-19 commit.
46475         * modules/acl-tests (Depends-on): Remove close.
46476         * modules/binary-io-tests (Depends-on): Likewise.
46477         * modules/closein-tests (Depends-on): Likewise.
46478         * modules/flock-tests (Depends-on): Likewise.
46479         * modules/fsync-tests (Depends-on): Likewise.
46480         * modules/lseek-tests (Depends-on): Likewise.
46481         * modules/pipe-tests (Depends-on): Likewise.
46482         * modules/posix_spawn-tests (Depends-on): Likewise.
46483         * modules/posix_spawnp-tests (Depends-on): Likewise.
46484         * modules/stat-time-tests (Depends-on): Likewise.
46485         * modules/yesno-tests (Depends-on): Likewise.
46486
46487 2009-08-10  Bruno Haible  <bruno@clisp.org>
46488
46489         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46490
46491 2009-08-10  Bruno Haible  <bruno@clisp.org>
46492
46493         Fix a gcc warning.
46494         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46495
46496 2009-08-10  Bruno Haible  <bruno@clisp.org>
46497
46498         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46499         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46500         not only the first time.
46501         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46502         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46503         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46504         is 1, not only the the first time.
46505
46506 2009-08-10  Bruno Haible  <bruno@clisp.org>
46507
46508         Make it possible to use module 'gethostname' without module 'close'.
46509         * lib/unistd.in.h (close): Evoke a link error only if
46510         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46512         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46513         * modules/unistd (Makefile.am): Substitute
46514         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46515         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46516         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46517         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46518         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46519         * modules/sys_ioctl (Makefile.am): Substitute
46520         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46521         * modules/socket (configure.ac): On native Windows, set
46522         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46523         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46524         Reported by Sam Steingold <sds@gnu.org>.
46525
46526 2009-08-10  Bruno Haible  <bruno@clisp.org>
46527
46528         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46529         * modules/ioctl (configure.ac): Likewise.
46530
46531 2009-08-10  Bruno Haible  <bruno@clisp.org>
46532
46533         Avoid collision between gnulib wrapper and libintl wrapper.
46534         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46535         already defined in intl/printf.c.
46536         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46537         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46538
46539 2009-08-09  Bruno Haible  <bruno@clisp.org>
46540
46541         Make <sys/select.h> really self-contained, also on Solaris 10.
46542         * lib/sys_select.in.h: Include <string.h>.
46543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46544         Solaris 10 problem.
46545         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46546         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46547         Reported by Jim Meyering.
46548
46549 2009-08-09  Bruno Haible  <bruno@clisp.org>
46550
46551         Avoid warnings from 'aclocal' that are due to a use of macro name
46552         AM_XGETTEXT_OPTION that is not defined in automake.
46553         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46554         automake.
46555         * modules/error (configure.ac): Likewise.
46556         * modules/propername (configure.ac): Likewise.
46557         * modules/vasprintf (configure.ac): Likewise.
46558         * modules/verror (configure.ac): Likewise.
46559         * modules/xprintf (configure.ac): Likewise.
46560         * modules/xvasprintf (configure.ac): Likewise.
46561
46562 2009-08-08  Bruno Haible  <bruno@clisp.org>
46563
46564         Avoid compilation error in C++ mode.
46565         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46566         Reported by Sam Steingold <sds@gnu.org>.
46567
46568 2009-08-08  Bruno Haible  <bruno@clisp.org>
46569
46570         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46571         for the various Unix platforms.
46572         * doc/posix-headers/limits.texi: Update platforms list regarding
46573         HOST_NAME_MAX.
46574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46575
46576 2009-08-07  Jim Meyering  <meyering@redhat.com>
46577
46578         selinux-at: fix typo in a comment
46579         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46580         Spotted by Paolo Bonzini.
46581
46582         selinux-at: remove redundant m4 code, add documentation
46583         * modules/selinux-at (configure.ac): Remove redundant code.
46584         LIB_SELINUX is already set via the dependent module, selinux-h.
46585         (Include): Add quotes around selinux-at.h.
46586         * lib/selinux-at.h: Add documentation.
46587         Reported by Bruno Haible in
46588         http://marc.info/?l=gnulib-bug&m=124958988300749
46589
46590 2009-08-07  Bruno Haible  <bruno@clisp.org>
46591
46592         Avoid link error on MacOS X 10.3 and 10.4.
46593         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46594         on non-ELF systems.
46595         * lib/argp-pv.c (argp_program_version): Likewise.
46596         Reported by Simon Josefsson.
46597
46598 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46599
46600         * tests/test-version-etc.sh: Use $EXEEXT.
46601
46602 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46603
46604         update-copyright: update documentation to point to maint.mk
46605         * build-aux/update-copyright: Here.
46606
46607 2009-08-06  Jim Meyering  <meyering@redhat.com>
46608
46609         maint.mk: support update-copyright-local
46610         * top/maint.mk (update-copyright-local): Define place-holder.
46611         (update-copyright): Depend on $(update-copyright-local).
46612
46613 2009-08-06  Jim Meyering  <meyering@redhat.com>
46614
46615         selinux-at: new module
46616         Initially written for coreutils, this module will soon be
46617         used by findutils, too.
46618         * MODULES.html.sh [Misc]: Add selinux-at.
46619         * lib/selinux-at.h: New file, from coreutils.
46620         * lib/selinux-at.c: Likewise.
46621         * modules/selinux-at: Likewise.
46622         (License): Change from LGPL to GPL, since it depends
46623         on the GPL'd openat module.
46624
46625         doc: update README
46626         * README: Remove references to cogito.
46627         Remove cvs-repo-updating instructions from 2007.
46628         Don't imply that CVS is better if you have limited disk space.
46629
46630 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46631
46632         update-copyright: support C-style comments
46633         * build-aux/update-copyright: Implement and document.
46634         * tests/test-update-copyright.sh: Test.
46635
46636 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46637
46638         update-copyright: support omitted "(C)"
46639         * build-aux/update-copyright: Implement and document.  Also,
46640         allow variable whitespace before "(C)".
46641         * tests/test-update-copyright.sh: Test.
46642
46643 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46644
46645         update-copyright: don't trip on non-FSF copyright statements
46646         * build-aux/update-copyright: Fix so that the first correctly
46647         formatted FSF copyright statement is recognized no matter what
46648         appears before it.  Update documentation.
46649         * tests/test-update-copyright.sh: Test that.
46650
46651 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46652
46653         update-copyright: clean up code a little
46654         * build-aux/update-copyright: Append "_re" to the name of any
46655         variable holding a regular expression.
46656         Replace "old" and "new" with "stmt" in variable names.
46657         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46658         handled correctly.
46659         Format code more consistently.
46660
46661 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46662
46663         update-copyright-tests: improve portability
46664         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46665         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46666
46667 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46668
46669         update-copyright: support @copyright{} and &copy;
46670         * build-aux/update-copyright: Implement and document.
46671         * tests/test-update-copyright.sh: Test.
46672
46673 2009-08-04  Jim Meyering  <meyering@redhat.com>
46674
46675         update-copyright-tests: correctly test EOL=\r\n handling
46676         * tests/test-update-copyright.sh: Put \r at the end of some lines
46677         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46678
46679         maint.mk: make update-copyright exclusion list more configurable
46680         * top/maint.mk (update-copyright): Default to excluding COPYING,
46681         but allow an override, in case someone does want to update that file.
46682
46683         maint.mk: don't update copyright date in COPYING
46684         * top/maint.mk (update-copyright): Exclude COPYING.
46685
46686         maint.mk: add a copyright-updating rule
46687         * top/maint.mk (update-copyright): New rule.
46688         Derived from coreutils/Makefile.am.
46689
46690         update-copyright: rename some variables
46691         * build-aux/update-copyright: Rename a few variables for clarity.
46692         Tweak syntax.  List Joel E. Denny as coauthor.
46693
46694 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46695
46696         update-copyright: fix bug for 2-digit last year and add tests
46697         * build-aux/update-copyright: Fix bug.
46698         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46699         specified.
46700         * modules/update-copyright-tests: New
46701         * tests/test-update-copyright.sh: New.
46702
46703 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46704
46705         update-copyright: handle leading tabs in line prefix
46706         * build-aux/update-copyright: Count leading tabs as 8 spaces
46707         when computing margin.  This helps with the formatting of
46708         ChangeLogs, for example.
46709         Fix documentation a little.
46710
46711 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46712
46713         update-copyright: support EOL=\r\n
46714         * build-aux/update-copyright: Implement that.
46715
46716 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46717
46718         update-copyright: automatically format copyright statements
46719         * build-aux/update-copyright: Implement that.
46720         Also, be a little more predictable and safer by always failing
46721         when the full copyright format is not perfectly recognized as an
46722         unbroken whole.  Discussed at
46723         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46724         Rewrite documentation.
46725
46726 2009-08-03  Bruno Haible  <bruno@clisp.org>
46727
46728         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46729
46730 2009-08-02  Bruno Haible  <bruno@clisp.org>
46731
46732         Tests for module 'uname'.
46733         * modules/uname-tests: New file.
46734         * tests/test-uname.c: New file.
46735
46736         New module 'uname'.
46737         * lib/uname.c: New file.
46738         * m4/uname.m4: New file.
46739         * modules/uname: New file.
46740         * doc/posix-functions/uname.texi: Mention the new module.
46741
46742 2009-08-02  Bruno Haible  <bruno@clisp.org>
46743
46744         Tests for module 'sys_utsname'.
46745         * modules/sys_utsname-tests: New file.
46746         * tests/test-sys_utsname.c: New file.
46747
46748         New module 'sys_utsname'.
46749         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46750         * m4/sys_utsname_h.m4: New file.
46751         * modules/sys_utsname: New file.
46752         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46753
46754 2009-08-02  Bruno Haible  <bruno@clisp.org>
46755
46756         Implicitly initialize the sockets library.
46757         * lib/gethostname.c: Include sockets.h.
46758         (rpl_gethostname): Invoke gl_sockets_startup.
46759         * lib/socket.c: Include sockets.h.
46760         (rpl_socket): Invoke gl_sockets_startup.
46761         * modules/gethostname (Depends-on): Add sockets.
46762         * modules/socket (Depends-on): Likewise.
46763         * tests/test-poll.c: Don't include sockets.h.
46764         (main): Don't invoke gl_sockets_startup.
46765         * tests/test-select.c: Don't include sockets.h.
46766         (main): Don't invoke gl_sockets_startup.
46767
46768 2009-08-02  Bruno Haible  <bruno@clisp.org>
46769
46770         Allow multiple calls to gl_sockets_startup.
46771         * lib/sockets.c (initialized_sockets_version): New variable.
46772         (gl_sockets_startup): Do nothing if already called for this or a higher
46773         version.
46774         (gl_sockets_cleanup): Reset initialized_sockets_version.
46775
46776 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46777
46778         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46779         different project/version.
46780
46781 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46782             Bruno Haible  <bruno@clisp.org>
46783
46784         Tests for module 'pipe-filter-gi'.
46785         * modules/pipe-filter-gi-tests: New file.
46786         * tests/test-pipe-filter-gi1.sh: New file.
46787         * tests/test-pipe-filter-gi1.c: New file.
46788         * tests/test-pipe-filter-gi2.sh: New file.
46789         * tests/test-pipe-filter-gi2-main.c: New file.
46790         * tests/test-pipe-filter-gi2-child.c: New file.
46791
46792         New module 'pipe-filter-gi'.
46793         * lib/pipe-filter-gi.c: New file.
46794         * modules/pipe-filter-gi: New file.
46795
46796 2009-08-02  Bruno Haible  <bruno@clisp.org>
46797             Paolo Bonzini  <bonzini@gnu.org>
46798
46799         Tests for module 'pipe-filter-ii'.
46800         * modules/pipe-filter-ii-tests: New file.
46801         * tests/test-pipe-filter-ii1.sh: New file.
46802         * tests/test-pipe-filter-ii1.c: New file.
46803         * tests/test-pipe-filter-ii2.sh: New file.
46804         * tests/test-pipe-filter-ii2-main.c: New file.
46805         * tests/test-pipe-filter-ii2-child.c: New file.
46806
46807         New module 'pipe-filter-ii'.
46808         * lib/pipe-filter.h: New file.
46809         * lib/pipe-filter-ii.c: New file.
46810         * lib/pipe-filter-aux.h: New file.
46811         * modules/pipe-filter-ii: New file.
46812
46813 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46814
46815         * lib/gc-libgcrypt.c: Change copyright to FSF.
46816         * lib/gc-gnulib.c: Likewise.
46817
46818 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46819
46820         * lib/gethostname.c: Include limits.h.
46821
46822 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46823             Bruno Haible  <bruno@clisp.org>
46824
46825         Ensure HOST_NAME_MAX as part of the gethostname module.
46826         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46827         define also HOST_NAME_MAX.
46828         * tests/test-gethostname.c: Include <limits.h>.
46829         (main): Check also HOST_NAME_MAX.
46830         * doc/posix-headers/limits.texi: Document the mingw problem.
46831
46832 2009-08-02  Bruno Haible  <bruno@clisp.org>
46833
46834         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46835         Add comments.
46836
46837 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46838
46839         * lib/gethostname.c: Add Windows wrapper.
46840         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46841         * modules/gethostname: Depend on sys_socket & errno, for also
46842         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46843         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46844
46845 2009-07-31  Jim Meyering  <meyering@redhat.com>
46846
46847         getloadavg: fix symbol name in comment
46848         * lib/getloadavg.c: Correct a typo I introduced when adding
46849         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46850         Matt Kraai spotted the problem.
46851
46852 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46853
46854         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46855         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46856         code also if ! defined N_NAME_POINTER.
46857         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46858         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46859         but the n_name member is a 12-byte array.
46860
46861 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46862
46863         update-copyright: generalize comment handling
46864         * build-aux/update-copyright: Handle copyright statements
46865         within more comment styles.
46866         Document usage.
46867         Report any file with an external copyright holder or parse failure.
46868
46869 2009-07-29  Jim Meyering  <meyering@redhat.com>
46870
46871         mktime: correct setting of REPLACE_MKTIME
46872         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46873
46874         update-copyright: new module
46875         * modules/update-copyright: New file.
46876         * build-aux/update-copyright: New file.
46877         * MODULES.html.sh (maint+release support): Add update-copyright.
46878
46879 2009-07-27  Bruno Haible  <bruno@clisp.org>
46880
46881         Fix compilation error when <ctime> is used and mktime is replaced.
46882         * lib/time.in.h (mktime): New declaration.
46883         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46884         REPLACE_MKTIME instead of defining mktime in config.h.
46885         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46886         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46887         Reported by Ross McFarland <rwmcfa1@neces.com>.
46888
46889 2009-07-27  Bruno Haible  <bruno@clisp.org>
46890
46891         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46892         Reported by Matt Kraai <mkraai@beckman.com>.
46893
46894 2009-07-25  Jim Meyering  <meyering@redhat.com>
46895
46896         maint.mk: avoid warnings about missing files
46897         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46898         diagnostic when .prev-version does not exist.
46899         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46900         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46901         nonexistent cfg.mk.
46902         Suggestions from Simon Josefsson.
46903
46904 2009-07-25  Bruno Haible  <bruno@clisp.org>
46905
46906         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46907         defined as macros. Needed on QNX 6.4.1.
46908         Reported by Matt Kraai <mkraai@beckman.com>.
46909
46910 2009-07-23  Jim Meyering  <meyering@redhat.com>
46911
46912         maint.mk: invoke "make dist" with a working value of XZ_OPT
46913         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46914
46915 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46916
46917         Make fseeko.c compile on QNX.
46918         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46919
46920 2009-07-22  Peter Simons  <simons@cryp.to>
46921
46922         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46923         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46924         * lib/md4.h: Likewise.
46925         * lib/md5.h: Likewise.
46926         * lib/sha1.h: Likewise.
46927         * lib/sha256.h: Likewise.
46928         * lib/sha512.h: Likewise.
46929
46930         tests-sha1: don't assign literal string to 'char *' variable
46931         * tests/test-sha1.c (main): Declare locals with "const" to match
46932         attributes of the right hand side.
46933
46934 2009-07-21  Eric Blake  <ebb9@byu.net>
46935
46936         dup2: fix more mingw problems
46937         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46938         fd to itself.
46939         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46940         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46941         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46942         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46943         care of mingw bugs.
46944
46945 2009-07-21  Jim Meyering  <meyering@redhat.com>
46946
46947         vc-list-files: avoid failure when /bin/sh is dash
46948         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46949         On some Debian based systems, /bin/sh is a symlink to dash, and running
46950         this command would omit the "/" following each 'tests' prefix:
46951           dash -x build-aux/vc-list-files -C . tests
46952         That is because bash and dash work differently:
46953           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46954           bash ok
46955           dash odd
46956
46957 2009-07-21  Eric Blake  <ebb9@byu.net>
46958
46959         dup2-tests: test previous patch
46960         * modules/dup2-tests: New file.
46961         * tests/test-dup2.c: Likewise.
46962         * tests/test-open.c (main): Avoid unspecified behavior.
46963         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46964         test.
46965
46966         dup2: work around mingw and cygwin 1.5 bug
46967         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46969         * modules/unistd (Makefile.am): Substitute it.
46970         * lib/unistd.in.h (dup2): Declare the replacement.
46971         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46972         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46973         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46974         * modules/execute (Depends-on): Add dup2.
46975         * modules/fseterr (Depends-on): Likewise.
46976         * modules/pipe (Depends-on): Likewise.
46977         * modules/posix_spawn-internal (Depends-on): Likewise.
46978
46979 2009-07-21  Bruno Haible  <bruno@clisp.org>
46980
46981         * modules/.gitattributes: New file.
46982
46983 2009-07-20  Bruno Haible  <bruno@clisp.org>
46984
46985         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46986         (main): Use it.
46987
46988 2009-07-20  Eric Blake  <ebb9@byu.net>
46989
46990         test-pipe: make a bit more robust.
46991         * tests/test-pipe.c (myerr): Allow error messages regardless of
46992         what we do to stderr.
46993         (test_pipe): Rearrange to avoid deadlock.
46994         (child_main): Try a larger read, to ensure we avoided deadlock.
46995         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46996         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46997         if misused.
46998
46999 2009-07-19  Jim Meyering  <meyering@redhat.com>
47000
47001         fts: avoid false-positive cycle-detection
47002         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47003         for each new command line argument.
47004
47005 2009-07-19  Bruno Haible  <bruno@clisp.org>
47006
47007         Fix build error on mingw with the modules sys_select and unistd.
47008         * modules/acl-tests (Depends-on): Add close.
47009         * modules/binary-io-tests (Depends-on): Likewise.
47010         * modules/closein-tests (Depends-on): Likewise.
47011         * modules/flock-tests (Depends-on): Likewise.
47012         * modules/fsync-tests (Depends-on): Likewise.
47013         * modules/lseek-tests (Depends-on): Likewise.
47014         * modules/pipe-tests (Depends-on): Likewise.
47015         * modules/posix_spawn-tests (Depends-on): Likewise.
47016         * modules/posix_spawnp-tests (Depends-on): Likewise.
47017         * modules/stat-time-tests (Depends-on): Likewise.
47018         * modules/yesno-tests (Depends-on): Likewise.
47019
47020 2009-07-19  Bruno Haible  <bruno@clisp.org>
47021
47022         Unify conditionals.
47023         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47024         macros, not at the compiler macros.
47025         * lib/pipe.c: Likewise.
47026         * lib/execute.c: Likewise.
47027         * lib/spawni.c: Likewise.
47028
47029 2009-07-19  Bruno Haible  <bruno@clisp.org>
47030
47031         Fix handling of closed stdin/stdout/stderr on mingw.
47032         * lib/w32spawn.h: Include unistd.h.
47033         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47034         file descriptor with O_NOINHERIT flag.
47035         (fd_safer_noinherit): New function, based on fd-safer.c.
47036         (dup_safer_noinherit): New function, based on dup-safer.c.
47037         (undup_safer_noinherit): New function.
47038         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47039         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47040         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47041         instead of fd_safer.
47042         * tests/test-pipe.c: Include <windows.h>.
47043         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47044         result.
47045
47046         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47047         from main.
47048         (test_pipe): Pass an extra argument for disambiguation.
47049         (main): Invoke parent_main or child_main.
47050
47051         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47052         consistently.
47053
47054 2009-07-18  Eric Blake  <ebb9@byu.net>
47055
47056         test-pipe: fix mingw build
47057         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47058
47059 2009-07-18  Bruno Haible  <bruno@clisp.org>
47060
47061         * modules/pipe-tests (Makefile.am): Fix typo.
47062
47063 2009-07-18  Eric Blake  <ebb9@byu.net>
47064
47065         error: fix mingw build
47066         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47067         Reported by Bruno Haible.
47068
47069         error: avoid undefined use of stdout
47070         * lib/error.c (error, error_at_line): Check that fd 1 is open
47071         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47072         is handling faults and the close_stdout module wants to report the
47073         detection of closed stdout as an error.
47074
47075 2009-07-17  Eric Blake  <ebb9@byu.net>
47076
47077         pipe: be robust in face of closed fds
47078         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47079         should cause child to misbehave.
47080         * modules/pipe-tests: New module.
47081         * tests/test-pipe.c: New file.
47082         * tests/test-pipe.sh: New file.
47083         Reported by Akim Demaille.
47084
47085 2009-07-14  Bruno Haible  <bruno@clisp.org>
47086
47087         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47088         Reported by anonymous kc.
47089
47090 2009-07-07  Jim Meyering  <meyering@redhat.com>
47091
47092         maint.mk: don't look for translatable strings in *.m4 or *.mk
47093         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47094         when searching for translatable strings.
47095
47096 2009-07-05  Jim Meyering  <meyering@redhat.com>
47097
47098         remove superfluous parentheses in STREQ definition
47099         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47100         * lib/getugroups.c (STREQ): Likewise.
47101         * lib/fnmatch.c (STREQ): Likewise.
47102         Spotted by Bruno Haible.
47103
47104 2009-07-04  Jim Meyering  <meyering@redhat.com>
47105
47106         argv-iter: new module
47107         * MODULES.html.sh: Add argv-iter.
47108         * lib/argv-iter.c, lib/argv-iter.h: New files.
47109         * modules/argv-iter: New file.
47110         * modules/argv-iter-tests: New file.
47111         * tests/test-argv-iter.c: Test it.
47112
47113 2009-07-04  Bruno Haible  <bruno@clisp.org>
47114
47115         Fix assertion.
47116         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47117         contains more exact copies of a given entry than file2, leave the extra
47118         copies unpaired rather than aborting.
47119         Reported by Eric Blake.
47120
47121 2009-07-02  Bruno Haible  <bruno@clisp.org>
47122
47123         Speedup git-merge-changelog for git cherry-pick.
47124         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47125         (entries_mapping_get): New function, extracted from compute_mapping.
47126         (entries_mapping_reverse_get): New function.
47127         (compute_mapping): Add a 'full' argument. Return the result in a
47128         'struct entries_mapping'.
47129         (main): Update. Access the mappings through entries_mapping_get.
47130         Reported by Eric Blake.
47131
47132 2009-07-02  Bruno Haible  <bruno@clisp.org>
47133
47134         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47135         best_i.
47136
47137 2009-07-02  Bruno Haible  <bruno@clisp.org>
47138
47139         Speed up approximate search for matching ChangeLog entries.
47140         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47141         argument. Call fstrcmp_bounded instead of fstrcmp.
47142         (compute_mapping, try_split_merged_entry, main): Update callers.
47143
47144 2009-07-02  Bruno Haible  <bruno@clisp.org>
47145
47146         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47147
47148 2009-06-30  Bruno Haible  <bruno@clisp.org>
47149
47150         Reduce the number of uc_is_cased calls.
47151         * lib/unicase.h (casing_suffix_context_t): Add
47152         'first_char_except_ignorable' field.
47153         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47154         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47155         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47156         Update initializer.
47157         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47158         case-ignorable characters.
47159         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47160         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47161         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47162         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47163         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47164
47165 2009-06-30  Bruno Haible  <bruno@clisp.org>
47166
47167         Tests for module 'unicase/ignorable'.
47168         * modules/unicase/ignorable-tests: New file.
47169         * tests/unicase/test-ignorable.c: New file, generated by
47170         gen-uni-tables.
47171
47172         Tests for module 'unicase/cased'.
47173         * modules/unicase/cased-tests: New file.
47174         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47175         * tests/unicase/test-predicate-part1.h: New file, derived from
47176         tests/unictype/test-predicate-part1.h.
47177         * tests/unicase/test-predicate-part2.h: New file, same as
47178         tests/unictype/test-predicate-part2.h.
47179
47180         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47181         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47182         (output_casing_properties): New function.
47183         (main): Call it.
47184         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47185         * lib/unicase/cased.c: Include unictype/bitmap.h.
47186         (uc_is_cased): Define through a bitmap lookup.
47187         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47188         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47189         (uc_is_case_ignorable): Define through a bitmap lookup.
47190         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47191         lib/unictype/bitmap.h.
47192         (Depends-on): Add inline. Clean up.
47193         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47194         lib/unictype/bitmap.h.
47195         (Depends-on): Add inline. Clean up.
47196         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47197         recognition.
47198         * tests/unicase/test-u16-tolower.c (main): Likewise.
47199         * tests/unicase/test-u32-tolower.c (main): Likewise.
47200
47201 2009-06-30  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47204         * lib/unicase/u16-casemap.c: Likewise.
47205         * lib/unicase/u32-casemap.c: Likewise.
47206
47207 2009-06-29  Bruno Haible  <bruno@clisp.org>
47208
47209         Define u32_casefold as a wrapper around u32_ct_casefold.
47210         * lib/unicase/u32-casefold.c: Update.
47211         * modules/unicase/u32-casefold (Depends-on): Add
47212         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47213         unicase/empty-suffix-context. Clean up.
47214
47215         Define u16_casefold as a wrapper around u16_ct_casefold.
47216         * lib/unicase/u16-casefold.c: Update.
47217         * modules/unicase/u16-casefold (Depends-on): Add
47218         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47219         unicase/empty-suffix-context. Clean up.
47220
47221         Define u8_casefold as a wrapper around u8_ct_casefold.
47222         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47223         * lib/unicase/u8-casefold.c: Update.
47224         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47225         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47226
47227         Define u32_totitle as a wrapper around u32_ct_totitle.
47228         * lib/unicase/u32-totitle.c: Update.
47229         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47230         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47231
47232         Define u16_totitle as a wrapper around u16_ct_totitle.
47233         * lib/unicase/u16-totitle.c: Update.
47234         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47235         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47236
47237         Define u8_totitle as a wrapper around u8_ct_totitle.
47238         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47239         functions.
47240         (FUNC): Delegate to U_CT_TOTITLE.
47241         * lib/unicase/u8-totitle.c: Update.
47242         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47243         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47244
47245         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47246         invocation.
47247         * modules/unicase/u32-tolower (Depends-on): Add
47248         unicase/empty-prefix-context, unicase/empty-suffix-context.
47249
47250         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47251         invocation.
47252         * modules/unicase/u16-tolower (Depends-on): Add
47253         unicase/empty-prefix-context, unicase/empty-suffix-context.
47254
47255         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47256         * modules/unicase/u8-tolower (Depends-on): Add
47257         unicase/empty-prefix-context, unicase/empty-suffix-context.
47258
47259         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47260         invocation.
47261         * modules/unicase/u32-toupper (Depends-on): Add
47262         unicase/empty-prefix-context, unicase/empty-suffix-context.
47263
47264         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47265         invocation.
47266         * modules/unicase/u16-toupper (Depends-on): Add
47267         unicase/empty-prefix-context, unicase/empty-suffix-context.
47268
47269         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47270         * modules/unicase/u8-toupper (Depends-on): Add
47271         unicase/empty-prefix-context, unicase/empty-suffix-context.
47272
47273         New module 'unicase/u32-ct-casefold'.
47274         * lib/unicase/u32-ct-casefold.c: New file.
47275         * modules/unicase/u32-ct-casefold: New file.
47276
47277         New module 'unicase/u16-ct-casefold'.
47278         * lib/unicase/u16-ct-casefold.c: New file.
47279         * modules/unicase/u16-ct-casefold: New file.
47280
47281         New module 'unicase/u8-ct-casefold'.
47282         * lib/unicase/u8-ct-casefold.c: New file.
47283         * lib/unicase/u-ct-casefold.h: New file, derived from
47284         lib/unicase/u-casefold.h.
47285         * modules/unicase/u8-ct-casefold: New file.
47286
47287         New module 'unicase/u32-ct-totitle'.
47288         * lib/unicase/u32-ct-totitle.c: New file.
47289         * modules/unicase/u32-ct-totitle: New file.
47290
47291         New module 'unicase/u16-ct-totitle'.
47292         * lib/unicase/u16-ct-totitle.c: New file.
47293         * modules/unicase/u16-ct-totitle: New file.
47294
47295         New module 'unicase/u8-ct-totitle'.
47296         * lib/unicase/u8-ct-totitle.c: New file.
47297         * lib/unicase/u-ct-totitle.h: New file, derived from
47298         lib/unicase/u-totitle.h.
47299         * modules/unicase/u8-ct-totitle: New file.
47300
47301         New module 'unicase/u32-ct-tolower'.
47302         * lib/unicase/u32-ct-tolower.c: New file.
47303         * modules/unicase/u32-ct-tolower: New file.
47304
47305         New module 'unicase/u16-ct-tolower'.
47306         * lib/unicase/u16-ct-tolower.c: New file.
47307         * modules/unicase/u16-ct-tolower: New file.
47308
47309         New module 'unicase/u8-ct-tolower'.
47310         * lib/unicase/u8-ct-tolower.c: New file.
47311         * modules/unicase/u8-ct-tolower: New file.
47312
47313         New module 'unicase/u32-ct-toupper'.
47314         * lib/unicase/u32-ct-toupper.c: New file.
47315         * modules/unicase/u32-ct-toupper: New file.
47316
47317         New module 'unicase/u16-ct-toupper'.
47318         * lib/unicase/u16-ct-toupper.c: New file.
47319         * modules/unicase/u16-ct-toupper: New file.
47320
47321         New module 'unicase/u8-ct-toupper'.
47322         * lib/unicase/u8-ct-toupper.c: New file.
47323         * modules/unicase/u8-ct-toupper: New file.
47324
47325         Add context arguments to u*_casemap functions.
47326         * lib/unicase/unicasemap.h: Include unicase.h.
47327         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47328         suffix_context arguments.
47329         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47330         functions.
47331         (FUNC): Add prefix_context and suffix_context arguments. Use
47332         uc_is_cased and uc_is_case_ignorable.
47333         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47334         * lib/unicase/u16-casemap.c: Likewise.
47335         * lib/unicase/u32-casemap.c: Likewise.
47336         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47337         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47338         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47339         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47340         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47341         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47342
47343         New module 'unicase/u32-suffix-context'.
47344         * lib/unicase/u32-suffix-context.c: New file.
47345         * modules/unicase/u32-suffix-context: New file.
47346
47347         New module 'unicase/u16-suffix-context'.
47348         * lib/unicase/u16-suffix-context.c: New file.
47349         * modules/unicase/u16-suffix-context: New file.
47350
47351         New module 'unicase/u8-suffix-context'.
47352         * lib/unicase/u8-suffix-context.c: New file.
47353         * lib/unicase/u-suffix-context.h: New file.
47354         * modules/unicase/u8-suffix-context: New file.
47355
47356         New module 'unicase/empty-suffix-context'.
47357         * lib/unicase/empty-suffix-context.c: New file.
47358         * modules/unicase/empty-suffix-context: New file.
47359
47360         New module 'unicase/u32-prefix-context'.
47361         * lib/unicase/u32-prefix-context.c: New file.
47362         * modules/unicase/u32-prefix-context: New file.
47363
47364         New module 'unicase/u16-prefix-context'.
47365         * lib/unicase/u16-prefix-context.c: New file.
47366         * modules/unicase/u16-prefix-context: New file.
47367
47368         New module 'unicase/u8-prefix-context'.
47369         * lib/unicase/u8-prefix-context.c: New file.
47370         * lib/unicase/u-prefix-context.h: New file.
47371         * lib/unicase/context.h: New file.
47372         * modules/unicase/u8-prefix-context: New file.
47373
47374         New module 'unicase/empty-prefix-context'.
47375         * lib/unicase/empty-prefix-context.c: New file.
47376         * modules/unicase/empty-prefix-context: New file.
47377
47378         New module 'unicase/ignorable'.
47379         * lib/unicase/ignorable.c: New file.
47380         * modules/unicase/ignorable: New file.
47381
47382         New module 'unicase/cased'.
47383         * lib/unicase/caseprop.h: New file.
47384         * lib/unicase/cased.c: New file.
47385         * modules/unicase/cased: New file.
47386
47387         New functions for case mapping of substrings.
47388         * lib/unicase.h (casing_prefix_context_t): New type.
47389         (unicase_empty_prefix_context): New variable.
47390         (u8_casing_prefix_context, u16_casing_prefix_context,
47391         u32_casing_prefix_context, u8_casing_prefixes_context,
47392         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47393         declarations.
47394         (casing_suffix_context_t): New type.
47395         (unicase_empty_suffix_context): New variable.
47396         (u8_casing_suffix_context, u16_casing_suffix_context,
47397         u32_casing_suffix_context, u8_casing_suffixes_context,
47398         u16_casing_suffixes_context, u32_casing_suffixes_context,
47399         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47400         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47401         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47402         declarations.
47403
47404 2009-06-28  Jim Meyering  <meyering@redhat.com>
47405
47406         boostrap: indent only with spaces
47407         * build-aux/bootstrap: Indent only with spaces, never TABs.
47408
47409         bootstrap: split long lines
47410         * build-aux/bootstrap: Keep line length < 80.
47411
47412         bootstrap: sync from coreutils
47413         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47414         just as autoreconf does.  Verify a list of prerequisite
47415         package-name,version-number pairs if defined in bootstrap.conf.
47416         Refer to README-prereq, if prerequisites are not satisfied.
47417
47418 2009-06-27  Eric Blake  <ebb9@byu.net>
47419
47420         tests: add test for bogus NULL definition
47421         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47422         * tests/test-stdlib.c: Likewise.
47423         * tests/test-string.c: Likewise.
47424         * tests/test-locale.c: Likewise.
47425         * tests/test-unistd.c: Likewise.
47426         * modules/stdio-tests (Depends-on): Add verify.
47427         * modules/stdlib-tests (Depends-on): Likewise.
47428         * modules/string-tests (Depends-on): Likewise.
47429         * modules/locale-tests (Depends-on): Likewise.
47430         * modules/unistd-tests (Depends-on): Likewise.
47431
47432 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47433
47434         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47435         self-explaining comment.
47436         * m4/selinux-selinux-h: Update serial.
47437         (gl_LIBSELINUX): New macro, adding a warning for missing development
47438         packages to code extracted from...
47439         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47440         Add warning for missing development packages here, too.
47441
47442 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47443
47444         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47445
47446 2009-06-25  Eric Blake  <ebb9@byu.net>
47447
47448         version-etc: fix regression
47449         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47450         gcc.
47451         (version_etc): Use it, to catch bugs with trailing NULL.
47452         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47453         (version_etc_va): Fix logic bug.
47454         * modules/version-etc-tests: Add test.
47455         * tests/test-version-etc.c: New file.
47456         * tests/test-version-etc.sh: Likewise.
47457
47458 2009-06-25  Sam Steingold  <sds@gnu.org>
47459
47460         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47461         mbtowc declaration.
47462
47463 2009-06-25  Eric Blake  <ebb9@byu.net>
47464
47465         fpurge: migrate into <stdio.h>
47466         * lib/fpurge.h: Delete...
47467         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47468         * lib/fpurge.c (fpurge): Change declaring header.
47469         * modules/fpurge (Files): Drop deleted file.
47470         (Depends-on): Add stdio.
47471         (configure.ac): Set witness.
47472         * modules/stdio (Makefile.am): Support fpurge macros.
47473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47474         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47475         * lib/fflush.c: Update client.
47476         * tests/test-fpurge.c: Likewise.
47477         * NEWS: Mention the change.
47478
47479 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47480
47481         * lib/argp-version-etc.c (program_authors): Add const
47482         qualifier.
47483         * lib/version-etc.c: Fix typos in the comments.
47484         * modules/argp-version-etc: Depends on version-etc.
47485
47486 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47487
47488         argp-version-etc: new module.
47489
47490         * lib/argp-version-etc.c: New file.
47491         * lib/argp-version-etc.h: New file.
47492         * modules/argp-version-etc: New file.
47493         * modules/argp-version-etc-tests: New file.
47494         * tests/test-argp-version-etc.c: New test.
47495         * tests/test-argp-version-etc-1.sh: New test.
47496
47497 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47498
47499         Provide additional interfaces and documentation for version-etc
47500         module.
47501
47502         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47503         interfaces.
47504         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47505         prototypes.
47506
47507 2009-06-24  Bruno Haible  <bruno@clisp.org>
47508
47509         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47510         HAVE_LIB${NAME} macro.
47511         Reported by Sam Steingold <sds@gnu.org>.
47512
47513 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47514
47515         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47516         needed.
47517
47518 2009-06-21  Bruno Haible  <bruno@clisp.org>
47519
47520         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47521         work.
47522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47523         together with LIB${NAME}, LTLIB${NAME}.
47524         Reported by Sam Steingold <sds@gnu.org>.
47525
47526 2009-06-20  Jim Meyering  <meyering@redhat.com>
47527
47528         tests: make sc_require_test_exit_idiom more generic
47529         * top/maint.mk (Exit_witness_file): New overridable variable.
47530         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47531         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47532
47533 2009-06-19  Jim Meyering  <meyering@redhat.com>
47534
47535         hash: reverse order of src/dst parameters in an internal interface
47536         * lib/hash.c (transfer_entries): Reverse order of parameters to
47537         put DST before SRC.  Adjust callers.
47538
47539         tests: test-hash: avoid wholesale duplication
47540         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47541         Instead, use a loop and add a single conditional.
47542
47543         tests: test-hash: allow seed selection via a command line argument
47544         * tests/test-hash.c (get_seed): New function.
47545         (main): Use it.
47546
47547 2009-06-19  Eric Blake  <ebb9@byu.net>
47548
47549         hash: avoid memory leak on allocation failure
47550         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47551         failure.  Factor repeated algorithm...
47552         (transfer_entries): ...into new helper routine.
47553         (hash_delete): React to hash_rehash return value.
47554
47555         hash: reduce memory pressure in hash_rehash no-op case
47556         * lib/hash.c (next_prime): Avoid overflow.
47557         (hash_initialize): Factor bucket size computation...
47558         (compute_bucket_size): ...into new helper function.
47559         (hash_rehash): Use new function and open coding to reduce memory
47560         pressure, and avoid a memory leak in USE_OBSTACK code.
47561         Reported by Jim Meyering.
47562
47563 2009-06-18  Eric Blake  <ebb9@byu.net>
47564
47565         hash: make rotation more obvious
47566         * modules/hash (Depends-on): Add bitrotate and stdint.
47567         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47568         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47569         (SIZE_MAX): Rely on headers for definition.
47570         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47571         (raw_hasher): Use rotr_sz.
47572         Suggested by Jim Meyering.
47573
47574         hash: fix memory leak in last patch
47575         * lib/hash.c (hash_rehash): Avoid memory leak.
47576
47577         hash: avoid no-op rehashing
47578         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47579
47580         hash: provide default callback functions
47581         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47582         (hash_initialize): Use them as defaults.
47583         * tests/test-hash.c (main): Test this.
47584
47585         hash: minor optimization
47586         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47587         when possible.
47588         (hash_initialize): Document this promise.
47589         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47590         * tests/test-hash.c (hash_compare_strings): Test this.
47591
47592 2009-06-18  Bruno Haible  <bruno@clisp.org>
47593
47594         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47595         going to be replaced anyway.
47596
47597 2009-06-18  Bruno Haible  <bruno@clisp.org>
47598
47599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47600         in one place.
47601         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47602         be replaced anyway.
47603
47604 2009-06-18  Eric Blake  <ebb9@byu.net>
47605
47606         hash: check for resize before insertion
47607         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47608         threshold before insertion, so that a pathological hash_rehash
47609         that fills every bucket can still trigger another rehash.
47610
47611 2009-06-18  Jim Meyering  <meyering@redhat.com>
47612
47613         hash-tests: add a loop around the small tests
47614         * tests/test-hash.c (main): Repeat small tests with selected
47615         small initial table sizes.
47616
47617 2009-06-17  Eric Blake  <ebb9@byu.net>
47618
47619         hash: minor cleanups
47620         * lib/hash.h (hash_entry): Make opaque, by moving...
47621         * lib/hash.c (hash_entry): ...here.
47622         (hash_insert): Clarify restrictions on what can be inserted.
47623         (hash_get_next): Clarify when it is safe to remove an element
47624         during traversal.
47625         (check_tuning): Skip verification when tuning is known safe.
47626         (hash_initialize): Clarify restrictions on tuning.
47627
47628 2009-06-17  Jim Meyering  <jim@meyering.net>
47629         and Eric Blake  <ebb9@byu.net>
47630
47631         hash-tests: new module
47632         * modules/hash-tests: New file.
47633         * tests/test-hash.c: New file.
47634
47635 2009-06-17  Eric Blake  <ebb9@byu.net>
47636
47637         strstr-simple: document new module
47638         * MODULES.html.sh: Document new module.
47639
47640         strstr, strcasestr: replace on platforms with broken memchr
47641         * modules/strstr: Split into...
47642         * modules/strstr-simple: ...new module that does not care about
47643         performance, but does care about glibc bug.
47644         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47645         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47646         if platform memchr is broken, per Debian bug 521737.
47647         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47648         memchr.
47649         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47650         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47651         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47652         * modules/mountlist (Depends-on): Add strstr-simple.
47653         * modules/gen-uni-tables (Depends-on): Likewise.
47654         * modules/argz (Depends-on): Add strstr.
47655
47656 2009-06-17  Bruno Haible  <bruno@clisp.org>
47657
47658         * modules/posix_spawn-internal (Depends-on): Add errno.
47659
47660 2009-06-17  Bruno Haible  <bruno@clisp.org>
47661
47662         Define missing ESTALE on Interix 3.5.
47663         * lib/errno.in.h (ESTALE): Assign a value if missing.
47664         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47665         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47666         missing.
47667         * doc/posix-headers/errno.texi: Mention the Interix bug.
47668         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47669
47670 2009-06-15  Eric Blake  <ebb9@byu.net>
47671
47672         memchr, memchr2: add valgrind exception
47673         * lib/memchr.valgrind: New file.
47674         * lib/memchr2.valgrind: New file.
47675         * modules/memchr (Files): Distribute valgrind file.
47676         * modules/memchr2 (Files): Likewise.
47677
47678         docs: memchr is no longer obsolete
47679         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47680         * lib/string.in.h (memchr): Simplify logic.
47681
47682 2009-06-14  Jim Meyering  <meyering@redhat.com>
47683
47684         link-follow: fix the "checking..." message to not mention trailing slash
47685         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47686         never considered trailing slashes.
47687
47688 2009-06-14  Bruno Haible  <bruno@clisp.org>
47689
47690         * m4/memchr.m4: Mention also the bug on IA-64.
47691         * doc/posix-functions/memchr.texi: Likewise.
47692
47693 2009-06-12  Eric Blake  <ebb9@byu.net>
47694
47695         memchr: detect broken x86_64 and alpha implementations
47696         * modules/memchr-tests (Depends-on): Move mmap detection...
47697         * modules/memchr (Depends-on): ...here.
47698         (configure.ac): Set indicator.
47699         * lib/string.in.h (memchr): Declare replacement.
47700         * modules/string (Makefile.am): Trigger replacement.
47701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47702         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47703         bugs.
47704         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47705         * modules/getpagesize (License): Relax license.
47706
47707 2009-06-11  Bruno Haible  <bruno@clisp.org>
47708
47709         * lib/idpriv.h: Add more references.
47710
47711 2009-06-08  Bruno Haible  <bruno@clisp.org>
47712
47713         Tests for module 'idpriv-droptemp'.
47714         * modules/idpriv-droptemp-tests: New file.
47715         * tests/test-idpriv-droptemp.sh: New file.
47716         * tests/test-idpriv-droptemp.su.sh: New file.
47717         * tests/test-idpriv-droptemp.c: New file.
47718
47719         New module 'idpriv-droptemp'.
47720         * lib/idpriv-droptemp.c: New file.
47721         * modules/idpriv-droptemp: New file.
47722
47723 2009-06-08  Bruno Haible  <bruno@clisp.org>
47724
47725         Tests for module 'idpriv-drop'.
47726         * modules/idpriv-drop-tests: New file.
47727         * tests/test-idpriv-drop.sh: New file.
47728         * tests/test-idpriv-drop.su.sh: New file.
47729         * tests/test-idpriv-drop.c: New file.
47730
47731         New module 'idpriv-drop'.
47732         * lib/idpriv.h: New file.
47733         * lib-idpriv-drop.c: New file.
47734         * m4/idpriv.m4: New file.
47735         * modules/idpriv-drop: New file.
47736
47737 2009-06-08  Bruno Haible  <bruno@clisp.org>
47738
47739         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47740         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47741         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47742         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47743         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47744         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47745         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47746
47747 2009-06-08  Eric Blake  <ebb9@byu.net>
47748
47749         test-strstr: use memory fence, when possible
47750         * tests/test-strstr.c (main): Use memory fence, in order to be
47751         more likely to trigger Debian bug 521737.
47752         * modules/strstr-tests (Files): Pull in additional files.
47753
47754         memchr: no longer obsolete, for wider field testing
47755         * modules/memchr (Status, Notice): Delete, this module is no
47756         longer obsolete.
47757         * modules/vasnprintf (Depends-on): Add memchr.
47758
47759 2009-06-07  Jim Meyering  <meyering@redhat.com>
47760
47761         hash: declare some functions with the warn_unused_result attribute
47762         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47763
47764 2009-06-07  Bruno Haible  <bruno@clisp.org>
47765
47766         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47767         Reported by Eric Blake.
47768
47769 2009-06-06  Eric Blake  <ebb9@byu.net>
47770
47771         test-alignof: fix typo with long double
47772         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47773         compiler error.
47774
47775 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47776
47777         Escape non-texinfo { and }s.
47778         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47779         markup error.
47780
47781 2009-06-04  Jim Meyering  <meyering@redhat.com>
47782
47783         gitlog-to-changelog: don't infloop on an empty commit log
47784         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47785         Reported by Boris Petersen <transacid@centerim.org>.
47786
47787 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47788
47789         version-etc: extend for packagers
47790         Add three new configure options, intended for packagers:
47791           --with-packager="packager name"
47792           --with-packager-version="packager-specific version"
47793           --with-packager-bug-reports="packager bug reporting"
47794         An example with coreutils:
47795           $ ./configure \
47796             --with-packager=Gentoo \
47797             --with-packager-bug-report=http://bugs.gentoo.org/ \
47798             --with-packager-version="patchset 1.6"
47799           $ ./src/ls --version | head -n2
47800           ls (GNU coreutils) 7.1-dirty
47801           Packaged by Gentoo (patchset 1.6)
47802         Note that the bug reporting info via --help doesn't show up because
47803         coreutils uses its own custom emit_bug_reporting_address() implementation
47804         in src/system.h.  If it didn't, it'd look like:
47805           $ ./src/ls --help | tail -n4
47806           Report bugs to <bug-coreutils@gnu.org>.
47807           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47808           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47809           General help using GNU software: <http://www.gnu.org/gethelp/>.
47810         * lib/version-etc.c: Print new information, if provided.
47811         * m4/version-etc.m4: New file.
47812         * modules/version-etc (Files): Add m4/version-etc.m4.
47813         (configure.ac): Add gl_VERSION_ETC.
47814
47815 2009-05-31  Bruno Haible  <bruno@clisp.org>
47816
47817         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47818         and 'int64_t'.
47819         * modules/alignof-tests (Dependencies): Add stdint.
47820         Reported by Eric Blake.
47821
47822 2009-05-31  Bruno Haible  <bruno@clisp.org>
47823
47824         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47825         restriction due to compiler bugs.
47826         Reported by Eric Blake.
47827
47828 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47829             Bruno Haible  <bruno@clisp.org>
47830
47831         Fix test-alignof failure.
47832         * lib/alignof.h (alignof_slot): New macro.
47833         (alignof_type): New macro, with the same semantics as the previous
47834         'alignof'.
47835         (alignof): Alias to alignof_slot.
47836         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47837         check that the results are usable as constant expressions.
47838
47839 2009-05-31  Bruno Haible  <bruno@clisp.org>
47840
47841         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47842         * tests/test-memchr.c (main): Check that memchr does not read past the
47843         first occurrence of the byte.
47844         * tests/test-strstr.c (main): Update comment.
47845         Suggested by Eric Blake.
47846
47847 2009-05-30  Bruno Haible  <bruno@clisp.org>
47848
47849         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47850         detail how to use dumpbin.
47851         Reported by David Byron <dbyron@dbyron.com>.
47852
47853 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47854
47855         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47856
47857 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47858
47859         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47860
47861 2009-05-28  Bruno Haible  <bruno@clisp.org>
47862
47863         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47864         build-aux/ files.
47865
47866 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47867
47868         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47869
47870 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47871
47872         * gnulib-tool (sed_transform_main_lib_file)
47873         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47874         regexps.
47875
47876 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47877
47878         * tests/test-strstr.c: Add another self-test.
47879         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47880         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47881
47882 2009-05-23  Bruno Haible  <bruno@clisp.org>
47883
47884         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47885         change.
47886
47887 2009-05-21  Bruno Haible  <bruno@clisp.org>
47888
47889         Simplify use of mode_t varargs.
47890         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47891         uses 'mode_t' or 'int'.
47892         * lib/openat.c (openat): Likewise.
47893         * lib/open-safer.c (open_safer): Likewise.
47894         * m4/mode_t.m4: New file.
47895         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47896         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47897         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47898         * modules/open (Files): Add m4/mode_t.m4.
47899         * modules/openat (Files): Likewise.
47900         * modules/fcntl-safer (Files): Likewise.
47901         Suggested by Eric Blake.
47902
47903 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47904
47905         * doc/glibc-functions/fallocate.texi: New file.
47906         * doc/gnulib.texi: Include it.
47907
47908 2009-05-21  Eric Blake  <ebb9@byu.net>
47909             Bruno Haible  <bruno@clisp.org>
47910
47911         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47912         invocations.
47913         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47914
47915 2009-05-21  Eric Blake  <ebb9@byu.net>
47916             Bruno Haible  <bruno@clisp.org>
47917
47918         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47919         include_next. Fix of 2008-11-20 commit.
47920         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47921         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47922         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47923         NEXT_MATH_H.
47924         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47925         instead of NEXT_MATH_H.
47926
47927 2009-05-21  Bruno Haible  <bruno@clisp.org>
47928
47929         Avoid redefinition warnings for SIZE_MAX.
47930         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47931         Reported by Simon Josefsson.
47932
47933 2009-05-21  Bruno Haible  <bruno@clisp.org>
47934
47935         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47936         AC_CACHE_VAL.
47937
47938 2009-05-20  Bruno Haible  <bruno@clisp.org>
47939
47940         Make zeroptr.h work on mingw.
47941         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47942         mprotect.
47943         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47944         * modules/memchr2-tests (configure.ac): Likewise.
47945         * modules/memcmp-tests (configure.ac): Likewise.
47946         * modules/memmem-tests (configure.ac): Likewise.
47947         * modules/memrchr-tests (configure.ac): Likewise.
47948         Reported by Simon Josefsson.
47949
47950 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47951
47952         * tests/test-glob.c: Include string.h for strcmp prototype.
47953
47954 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47955
47956         * modules/getdelim (Depends-on): Add explicit stdint, although it
47957         was implicitly already pulled in via realloc-posix.
47958         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47959
47960 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47961
47962         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47963         G. Christensen" <tgc@jupiterrise.com>.
47964         * m4/sys_socket_h.m4: Check for sa_family_t.
47965         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47966         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47967         * tests/test-sys_socket.c: Check that sa_family_t works.
47968
47969 2009-05-18  Eric Blake  <ebb9@byu.net>
47970
47971         maint.mk: allow gnulib_dir in VPATH build
47972         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47973
47974 2009-05-15  Jim Meyering  <meyering@redhat.com>
47975
47976         maint.mk: Give gnulib_dir a default definition.
47977         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47978         Thus, most packages no longer need to specify this variable in cfg.mk
47979
47980 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47981
47982         rename.m4: fix typos that would make non-mingw cross-configure fail
47983         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47984
47985 2009-05-13  Eric Blake  <ebb9@byu.net>
47986
47987         mmap-anon: avoid out-of-order autoconf expansion
47988         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47989         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47990         * modules/memchr-tests (Depends-on): Add extensions.
47991         * modules/memchr2-tests (Depends-on): Add extensions.
47992         * modules/memcmp-tests (Depends-on): Add extensions.
47993         * modules/memmem-tests (Depends-on): Add extensions.
47994         * modules/memrchr-tests (Depends-on): Add extensions.
47995
47996 2009-05-13  Bruno Haible  <bruno@clisp.org>
47997
47998         Make some tests ISO C 99 compliant.
47999         * tests/zerosize-ptr.h: New file.
48000         * tests/test-memchr.c: Include zerosize-ptr.h.
48001         (main): Use a zero-size object pointer instead of NULL.
48002         * tests/test-memchr2.c: Include zerosize-ptr.h.
48003         (main): Use a zero-size object pointer instead of NULL.
48004         * tests/test-memcmp.c: Include zerosize-ptr.h.
48005         (main): Use a zero-size object pointer instead of NULL.
48006         * tests/test-memmem.c: Include zerosize-ptr.h.
48007         (main): Use a zero-size object pointer instead of NULL.
48008         * tests/test-memrchr.c: Include zerosize-ptr.h.
48009         (main): Use a zero-size object pointer instead of NULL.
48010         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48011         m4/mmap-anon.m4.
48012         (Depends-on): Add getpagesize.
48013         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48014         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48015         m4/mmap-anon.m4.
48016         (Depends-on): Add getpagesize.
48017         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48018         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48019         m4/mmap-anon.m4.
48020         (Depends-on): Add getpagesize.
48021         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48022         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48023         m4/mmap-anon.m4.
48024         (Depends-on): Add getpagesize.
48025         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48026         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48027         m4/mmap-anon.m4.
48028         (Depends-on): Add getpagesize.
48029         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48030
48031 2009-05-12  Bruno Haible  <bruno@clisp.org>
48032
48033         Tests for module 'alignof'.
48034         * modules/alignof-tests: New file.
48035         * tests/test-alignof.c: New file.
48036
48037 2009-05-12  Bruno Haible  <bruno@clisp.org>
48038
48039         Fix alignof macro.
48040         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48041         vendor compilers that are always correct.
48042
48043 2009-05-12  Bruno Haible  <bruno@clisp.org>
48044
48045         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48046         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48047         not whether its fully works.
48048
48049 2009-05-12  Bruno Haible  <bruno@clisp.org>
48050
48051         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48052
48053 2009-05-12  Jim Meyering  <meyering@redhat.com>
48054
48055         * top/maint.mk: Adjust backslash alignment.
48056
48057 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48058
48059         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48060
48061 2009-05-11  Eric Blake  <ebb9@byu.net>
48062
48063         argp: avoid undefined behavior
48064         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48065         macros.
48066
48067 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48068
48069         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48070         user.name to prevent git commit from complaining.
48071
48072 2009-05-10  Bruno Haible  <bruno@clisp.org>
48073
48074         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48075         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48076         it rewrites every file name only once.
48077         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48078
48079 2009-05-08  Bruno Haible  <bruno@clisp.org>
48080
48081         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48082         instead of 'max'.
48083
48084 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48085
48086         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48087         sockaddr_storage test.
48088
48089 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48090
48091         * modules/sys_socket (Makefile.am): Substitute
48092         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48093         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48094         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48095         * tests/test-sys_socket.c: Check sockaddr_storage.
48096
48097 2009-05-08  Bruno Haible  <bruno@clisp.org>
48098
48099         New module 'alignof'.
48100         * lib/alignof.h: New file.
48101         * modules/alignof: New file.
48102
48103 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48104             Bruno Haible  <bruno@clisp.org>
48105
48106         Fix test-file-has-acl on FreeBSD.
48107         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48108         mask is implicitly added.
48109         * tests/test-file-has-acl.c: Include <signal.h>.
48110         (main): Terminate the test after 5 seconds.
48111         * modules/acl-tests (configure.ac): Check for alarm function.
48112
48113 2009-05-04  Bruno Haible  <bruno@clisp.org>
48114
48115         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48116         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48117         * modules/errno (configure.ac): Drop AC_REQUIRE.
48118         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48119         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48120
48121 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48122
48123         * modules/glob-tests: New module.
48124         * tests/test-glob.c: Add.
48125
48126 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48127
48128         * modules/fnmatch-tests: New module.
48129         * tests/test-fnmatch.c: Add.
48130
48131 2009-05-04  Eric Blake  <ebb9@byu.net>
48132
48133         maint: make the new no-submodule-changes rule VPATH-safe
48134         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48135
48136 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48137             Bruno Haible  <bruno@clisp.org>
48138
48139         acl: Fix infinite loop on FreeBSD.
48140         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48141         of return value from acl_get_entry.
48142         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48143         Likewise.
48144
48145 2009-05-03  Bruno Haible  <bruno@clisp.org>
48146
48147         * lib/acl-internal.h (acl_entries): Clarify return value.
48148         * lib/acl_entries.c (acl_entries): Likewise.
48149
48150 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48151
48152         Bug fix in acl module.
48153         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48154
48155 2009-05-03  Bruno Haible  <bruno@clisp.org>
48156
48157         Create gperf-generated file in the source dir, not in the build dir.
48158         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48159         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48160         * modules/unicase/locale-language (unicase/locale-languages.h):
48161         Likewise.
48162         * modules/unicase/special-casing (unicase/special-casing-table.h):
48163         Likewise.
48164         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48165         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48166         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48167         Reported by Ralf Wildenhues.
48168
48169 2009-05-03  Bruno Haible  <bruno@clisp.org>
48170
48171         * modules/fnmatch (Description, configure.ac): Taken from
48172         fnmatch-posix.
48173         * modules/fnmatch-posix: Turn into a symbolic reference to the
48174         'fnmatch' module, and deprecate.
48175         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48176
48177 2009-05-03  Bruno Haible  <bruno@clisp.org>
48178
48179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48180         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48181         Reported by Ralf Wildenhues.
48182
48183 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48184
48185         * m4/fnmatch.m4: Fix fnmatch re-define.
48186
48187 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48188
48189         priv-set: new module and tests; adapt write-any-file
48190         * lib/priv-set.c: New file.
48191         * lib/priv-set.h: New file.
48192         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48193         * lib/write-any-file.c: Simplify by using priv-set module.
48194         * m4/priv-set.m4: New file.
48195         * modules/priv-set: New file.
48196         * modules/unlinkdir: Add dependency on priv-set module.
48197         * modules/write-any-file: Likewise.
48198
48199         Tests for module 'priv-set'.
48200         * modules/priv-set-tests: New file.
48201         * tests/test-priv-set.c: New file.
48202
48203 2009-05-03  Jim Meyering  <meyering@redhat.com>
48204             Bruno Haible  <bruno@clisp.org>
48205
48206         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48207         use the converted UTF-8 variant of the name instead.
48208
48209 2009-05-03  Jim Meyering  <meyering@redhat.com>
48210
48211         tests: tighten some getdate tests
48212         * tests/test-getdate.c (main): Tighten tests: require equality,
48213         not just greater than.  Set TZ envvar to UTC0.
48214
48215 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48216
48217         getdate: correctly interpret "next monday" when run on a Monday
48218         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48219         that e.g., "next tues" (when run on a tuesday) results in a date
48220         that is one week in the future, and not today's date.
48221         I.e., add a week when the wday is the same as the current one.
48222         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48223         and earlier by Martin Bernreuther and Jan Minář.
48224         * tests/test-getdate.c (main): Check that "next DAY" is always in
48225         the future and that "last DAY" is always in the past.
48226
48227 2009-05-02  Jim Meyering  <meyering@redhat.com>
48228
48229         build: ensure that a release build fails when a submodule is unclean
48230         * top/maint.mk (no-submodule-changes): New rule.
48231         (alpha beta major): Depend on it.
48232
48233 2009-05-02  Bruno Haible  <bruno@clisp.org>
48234
48235         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48236         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48237         shell variable gl_fnmatch_required to detect which variant is
48238         requested.
48239         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48240         gl_FUNC_FNMATCH_POSIX.
48241         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48242         exclude fnmatch-posix.
48243
48244 2009-05-02  Bruno Haible  <bruno@clisp.org>
48245
48246         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48247         * modules/mbsrtowcs (License): Change to LGPLv2+.
48248         * modules/strnlen1 (License): Likewise.
48249         Reported by Simon Josefsson.
48250
48251 2009-05-02  Bruno Haible  <bruno@clisp.org>
48252
48253         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48254         "cross".
48255         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48256         gnulib-tool was called with option --source-base=lib.
48257
48258 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48259
48260         Use automake *-local hooks without commands, for extensibility.
48261         * modules/localcharset (Makefile.am): Rename install-exec-local
48262         rule to install-exec-localcharset, and make it a prerequisite of
48263         install-exec-local.  Likewise, rename the uninstall-local rule to
48264         uninstall-localcharset, and make it a prerequisite of the former.
48265
48266 2009-05-01  Bruno Haible  <bruno@clisp.org>
48267
48268         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48269         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48270         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48272         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48273         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48274         m4/locale-zh.m4, m4/codeset.m4.
48275
48276         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48277         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48278         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48279         m4/locale-zh.m4.
48280
48281         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48282         REPLACE_WCRTOMB if mbstate_t must be replaced.
48283         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48284         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48285
48286 2009-05-01  Bruno Haible  <bruno@clisp.org>
48287
48288         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48289         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48290         dngettext, dcngettext, textdomain, bindtextdomain,
48291         bind_textdomain_codeset): Undefine before redefining.
48292
48293 2009-04-30  Bruno Haible  <bruno@clisp.org>
48294
48295         Fix bug introduced on 2009-04-25.
48296         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48297         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48298         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48299         is defined.
48300         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48301         is defined.
48302         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48303         is defined.
48304         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48305
48306 2009-04-28  Bruno Haible  <bruno@clisp.org>
48307
48308         Comment tweaks.
48309         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48310         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48311         * lib/unicase.h (u*_casexfrm): Likewise.
48312         Reported by Paolo Bonzini.
48313
48314 2009-04-28  Bruno Haible  <bruno@clisp.org>
48315
48316         Fix a compilation error.
48317         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48318         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48319         Reported by Jim Meyering.
48320
48321 2009-04-27  Bruno Haible  <bruno@clisp.org>
48322
48323         New module 'libunistring'.
48324         * modules/libunistring: New file.
48325         * m4/libunistring.m4: New file.
48326         * MODULES.html.sh (Unicode string functions): Add it.
48327
48328 2009-04-27  Eric Blake  <ebb9@byu.net>
48329
48330         maint.mk: allow package-specific header to provide <config.h>
48331         * top/maint.mk (sc_require_config_h): New variable.
48332         (sc_require_config_h, sc_require_config_h_first): Use it.
48333
48334 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48335
48336         * top/maint.mk (sc_avoid_if_before_free): Except
48337         useless-if-before-free script.
48338
48339 2009-04-27  Eric Blake  <ebb9@byu.net>
48340
48341         maintainer-makefile: depend on all required helper scripts
48342         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48343         useless-if-before-free.
48344         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48345         version, rather than assuming gnulib checkout is available.
48346         Reported by Simen Josefsson.
48347
48348 2009-04-26  Bruno Haible  <bruno@clisp.org>
48349
48350         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48351         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48352         "../" or "..".
48353
48354 2009-04-26  Bruno Haible  <bruno@clisp.org>
48355
48356         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48357         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48358         AC_LIB_HAVE_LINKFLAGS.
48359
48360 2009-04-26  Bruno Haible  <bruno@clisp.org>
48361
48362         Simplify calling convention of u*_conv_from_encoding.
48363         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48364         u32_conv_from_encoding): Expect a resultbuf argument and return the
48365         result directly as a pointer.
48366         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48367         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48368         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48369         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48370         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48371         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48372         Update.
48373         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48374         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48375         * lib/vasnprintf.c (VASNPRINTF): Update.
48376         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48377         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48378         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48379         * NEWS: Mention the change.
48380
48381 2009-04-26  Bruno Haible  <bruno@clisp.org>
48382
48383         Simplify calling convention of u*_conv_to_encoding.
48384         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48385         u32_conv_to_encoding): Expect a resultbuf argument and return the
48386         result directly as a pointer.
48387         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48388         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48389         freeing scaled_offsets if mem_iconveha failed.
48390         * lib/unicase/u-casexfrm.h (FUNC): Update.
48391         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48392         * lib/vasnprintf.c (VASNPRINTF): Update.
48393         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48394         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48395         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48396         * NEWS: Mention the change.
48397
48398 2009-04-26  Bruno Haible  <bruno@clisp.org>
48399
48400         Avoid test failures on AIX and OSF/1.
48401         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48402         malloc(0).
48403         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48404         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48405         Likewise.
48406         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48407         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48408         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48409         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48410         * doc/posix-functions/malloc.texi: Document the portability problem
48411         related to malloc(0).
48412
48413 2009-04-26  Bruno Haible  <bruno@clisp.org>
48414
48415         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48416         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48417         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48418
48419 2009-04-25  Bruno Haible  <bruno@clisp.org>
48420
48421         Avoid link error when creating a namespace clean library.
48422         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48423         as macro with arguments if already defined as an alias.
48424         * lib/signbitf.c (gl_signbitf): Don't undefine.
48425         * lib/signbitd.c (gl_signbitd): Don't undefine.
48426         * lib/signbitl.c (gl_signbitl): Don't undefine.
48427
48428 2009-04-25  Jim Meyering  <meyering@redhat.com>
48429
48430         vc-list-files: fix another quoting bug
48431         * build-aux/vc-list-files: Avoid sed backslash expansion
48432         of pathological directory names.
48433
48434 2009-04-25  Eric Blake  <ebb9@byu.net>
48435
48436         vc-list-files: fix shell quoting error
48437         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48438         timestamp.
48439
48440 2009-04-25  Jim Meyering  <meyering@redhat.com>
48441
48442         vc-list-files: restore lost functionality with subdir argument
48443         * build-aux/vc-list-files: When given a non-"." sub-directory
48444         argument, substitute the $dir/ prefix back onto each resulting name.
48445         Otherwise, coreutils' root_tests check would fail.
48446
48447 2009-04-24  Eric Blake  <ebb9@byu.net>
48448
48449         vc-list-files: ignore git symlinks
48450         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48451         than ls-files, to ignore git symlinks.
48452
48453         maint.mk: import improvements from m4
48454         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48455         (move_if_change): Delete unused macro.
48456         (news-date-check, vc-diff-check): Support VPATH builds.
48457         (announcement): Likewise.  Split --bootstrap-tools list...
48458         (boostrap-tools): ...into separate list, which can be overridden
48459         in cfg.mk.
48460         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48461         requiring dependency on useless-if-before-free module.
48462         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48463         Support VPATH builds.
48464
48465 2009-04-24  Jim Meyering  <meyering@redhat.com>
48466
48467         maint.mk: remove coreutils-specific rules and variables
48468         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48469         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48470         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48471
48472         maint.mk: remove obsolete rule
48473         * top/maint.mk (rel-check): Remove rule.
48474         (WGET, WGETFLAGS): Remove now-unused variables.
48475
48476 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48477
48478         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48479         consistency.
48480
48481         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48482         '$(PATH_SEPARATOR)' instead of ':'.
48483
48484 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48485
48486         * lib/getopt1.c (main): Use 'const' for static array.
48487
48488 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48489
48490         * top/maint.mk: Sync with coreutils.
48491         * NEWS: Explain incompatibilities.
48492
48493 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48494             Bruno Haible  <bruno@clisp.org>
48495
48496         Fix cross-compilation results.
48497         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48498         statement, as third argument of AC_TRY_RUN.
48499         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48500         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48501         Likewise.
48502         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48503         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48504         Likewise.
48505         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48506         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48507         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48508
48509 2009-04-20  Bruno Haible  <bruno@clisp.org>
48510
48511         Avoid test failure on mingw.
48512         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48513
48514 2009-04-20  Bruno Haible  <bruno@clisp.org>
48515
48516         Avoid compilation error on mingw.
48517         * modules/localename-tests (Depends-on): Add locale.
48518
48519 2009-04-19  Bruno Haible  <bruno@clisp.org>
48520
48521         Support for building a shared library on Windows platforms.
48522         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48523         (main): Test the presence of UNINORM_NFC here.
48524         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48525         (main): Test the presence of UNINORM_NFD here.
48526         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48527         (main): Test the presence of UNINORM_NFKC here.
48528         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48529         (main): Test the presence of UNINORM_NFKD here.
48530
48531 2009-04-19  Bruno Haible  <bruno@clisp.org>
48532
48533         Avoid a compiler warning.
48534         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48535         Change type of variable 'sequence'.
48536
48537 2009-04-19  Bruno Haible  <bruno@clisp.org>
48538
48539         * modules/configmake (Makefile.am): When the contents of configmake.h
48540         does not change, arrange to preserve its modification time.
48541
48542 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48543
48544         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48545         gettext domain.
48546
48547 2009-04-16  Jim Meyering  <meyering@redhat.com>
48548
48549         useless-if-before-free: improve conversion code
48550         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48551         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48552
48553 2009-04-14  Bruno Haible  <bruno@clisp.org>
48554
48555         * modules/fcntl (Depends-on): Add extensions.
48556         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48557
48558 2009-04-12  Ben Pfaff  <blp@gnu.org>
48559
48560         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48561         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48562
48563 2009-03-20  Ben Pfaff  <blp@gnu.org>
48564
48565         Make rename replace existing destinations on Windows.
48566         * m4/rename.m4: Add test for Mingw.
48567         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48568         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48569         * doc/posix-functions/rename.texi: Document.
48570
48571 2009-04-10  Bruno Haible  <bruno@clisp.org>
48572
48573         New include file "iconveh.h".
48574         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48575         * lib/striconveh.h: Include it.
48576         (enum iconv_ilseq_handler): Remove definition.
48577         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48578         striconveh.h.
48579         * lib/striconveha.c: Include striconveh.h.
48580         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48581         * modules/striconveh (Files): Add lib/iconveh.h.
48582         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48583         lib/striconveh.h.
48584
48585 2009-04-10  Bruno Haible  <bruno@clisp.org>
48586
48587         * lib/uniconv.h: Update comment.
48588
48589 2009-04-10  Bruno Haible  <bruno@clisp.org>
48590
48591         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48592         always.
48593         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48594         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48595         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48596         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48597         "unistring-notinline.h", so that the function gets defined always.
48598         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48599         * lib/unistr/u8-uctomb.c: Likewise.
48600         * lib/unistr/u16-mbtouc.c: Likewise.
48601         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48602         * lib/unistr/u16-uctomb.c: Likewise.
48603         * lib/unistr/u32-mbtouc.c: Likewise.
48604         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48605         * lib/unistr/u32-uctomb.c: Likewise.
48606
48607 2009-04-10  Bruno Haible  <bruno@clisp.org>
48608
48609         Mark 'utime' obsolete.
48610         * modules/utime (Status, Notice): New sections.
48611         Suggested by Jim Meyering.
48612
48613         Fix cross-compile guess for utime test.
48614         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48615         autoconf.
48616         * doc/posix-functions/utime.texi: Give more precisions.
48617         Reported by Jan <ipif@ymail.com>.
48618
48619 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48620
48621         filevercmp: correct today's change
48622         * lib/filevercmp.c: Also handle coreutils' test inputs.
48623         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48624
48625         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48626         for reporting it.
48627         * lib/filevercmp.c: Special handle for "", "." and "..".
48628         * tests/test-filevercmp.c: Enlarge the set suite.
48629
48630 2009-04-07  Jim Meyering  <meyering@redhat.com>
48631
48632         useless-if-before-free: show how to remove braced useless free, too
48633         * build-aux/useless-if-before-free: still only in a comment, though.
48634
48635 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48636
48637         maint.mk: import changes to syntax-check macros from coreutils
48638         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48639         Use them in the relevant macros.
48640
48641 2009-04-06  Bruno Haible  <bruno@clisp.org>
48642
48643         Fix unportable use of bit-fields.
48644         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48645         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48646         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48647
48648 2009-04-06  Bruno Haible  <bruno@clisp.org>
48649
48650         Avoid test failures on AIX and OSF/1.
48651         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48652         that malloc(0) = NULL.
48653         * tests/unicase/test-u8-tolower.c (check): Likewise.
48654         * tests/unicase/test-u8-totitle.c (check): Likewise.
48655         * tests/unicase/test-u8-toupper.c (check): Likewise.
48656         * tests/unicase/test-u16-casefold.c (check): Likewise.
48657         * tests/unicase/test-u16-tolower.c (check): Likewise.
48658         * tests/unicase/test-u16-totitle.c (check): Likewise.
48659         * tests/unicase/test-u16-toupper.c (check): Likewise.
48660         * tests/unicase/test-u32-casefold.c (check): Likewise.
48661         * tests/unicase/test-u32-tolower.c (check): Likewise.
48662         * tests/unicase/test-u32-totitle.c (check): Likewise.
48663         * tests/unicase/test-u32-toupper.c (check): Likewise.
48664         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48665         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48666         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48667         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48668         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48669         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48670         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48671         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48672         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48673         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48674         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48675         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48676
48677 2009-04-05  Bruno Haible  <bruno@clisp.org>
48678
48679         Work around an autoconf limitation.
48680         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48681         comment line if it would be longer than 3 KB.
48682
48683 2009-04-05  Bruno Haible  <bruno@clisp.org>
48684
48685         Avoid test failure with libiconv-1.13.
48686         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48687         of the expected test results.
48688
48689 2009-04-05  Bruno Haible  <bruno@clisp.org>
48690
48691         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48692         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48693         that it should be installed.
48694
48695 2009-04-05  Bruno Haible  <bruno@clisp.org>
48696
48697         * gnulib-tool: New option --copy-file.
48698         (func_usage): Document it.
48699         (func_dest_tmpfilename): Moved out of func_import.
48700         (func_add_file, func_update_file): New functions, extracted from
48701         func_import.
48702         (func_import): Update.
48703
48704 2009-04-05  Karl Berry  <karl@gnu.org>
48705
48706         * README: prominently mention gnulib-tool.
48707         Rearrange sections so getting the code is near the top.
48708
48709 2009-04-05  Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/unicase.h: Mention u*_cmp2.
48712         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48713         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48714         * lib/unicase/ulc-casecmp.c: Likewise.
48715         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48716         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48717         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48718         unistr/u8-cmp.
48719         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48720         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48721         unistr/u16-cmp.
48722         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48723         unistr/u32-cmp.
48724
48725         * lib/uninorm.h: Mention u*_cmp2.
48726         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48727         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48728         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48729         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48730         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48731         unistr/u8-cmp.
48732         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48733         unistr/u16-cmp.
48734         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48735         unistr/u32-cmp.
48736
48737         New module 'unistr/u32-cmp2'.
48738         * lib/unistr/u32-cmp2.c: New file.
48739         * modules/unistr/u32-cmp2: New file.
48740
48741         New module 'unistr/u16-cmp2'.
48742         * lib/unistr/u16-cmp2.c: New file.
48743         * modules/unistr/u16-cmp2: New file.
48744
48745         New module 'unistr/u8-cmp2'.
48746         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48747         * lib/unistr/u8-cmp2.c: New file.
48748         * lib/unistr/u-cmp2.h: New file.
48749         * modules/unistr/u8-cmp2: New file.
48750
48751 2009-04-05  Bruno Haible  <bruno@clisp.org>
48752
48753         * lib/unictype.h (uc_property_is_valid): New macro.
48754         * tests/unictype/test-pr_byname.c (main): Use it.
48755
48756         * lib/unistr.h: Doc fixes.
48757         * lib/uniconv.h: Doc fixes.
48758         * lib/unictype.h: Doc fixes.
48759
48760 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48761
48762         Port coreutils 7.2 to Solaris 8.
48763
48764         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48765         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48766         for Solaris 8.  This is a bit of a hack, as it means it's the
48767         caller's responsibility to add -lnsl if needed, but most likely it
48768         won't be needed since only getaddrinfo uses this and getaddrinfo
48769         isn't needed on Solaris 8.
48770
48771         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48772         problem to Solaris 8 encountered with coreutils 7.2, which
48773         resulted in a message "fnmatch.c:292: warning: passing argument 4
48774         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48775         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48776
48777 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48778
48779         * m4/ld-version-script.m4: Add FIXME comment.
48780
48781 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48782
48783         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48784         SOVERSION variable.
48785
48786 2009-04-02  Bruno Haible  <bruno@clisp.org>
48787
48788         * Makefile (info, html, dvi, pdf): Combine the rules.
48789         Suggested by Jim Meyering.
48790
48791 2009-04-01  Bruno Haible  <bruno@clisp.org>
48792
48793         * Makefile (info, html, dvi, pdf): New targets.
48794         Reported by Reuben Thomas <rrt@sc3d.org>.
48795
48796 2009-04-01  Bruno Haible  <bruno@clisp.org>
48797
48798         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48799         can be put into PATH.
48800         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48801
48802 2009-04-01  Bruno Haible  <bruno@clisp.org>
48803
48804         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48805
48806 2009-04-01  Bruno Haible  <bruno@clisp.org>
48807
48808         Rename module 'visibility'.
48809         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48810         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48811         * doc/gnulib.texi: Update.
48812         * MODULES.html.sh (Misc): Update.
48813         * NEWS: Mention the change.
48814
48815 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48816
48817         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48818         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48819         Eric Blake <ebb9@byu.net> for review.
48820         * MODULES.html.sh: Add lib-msvc-compat.
48821         * doc/gnulib.texi: Link to new section.
48822         * m4/ld-output-def.m4: New file.
48823         * doc/ld-output-def.texi: New file.
48824
48825 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48826
48827         Rename ld-version-script to lib-symbol-versions.  Suggested by
48828         Bruno Haible <bruno@clisp.org>.
48829         * modules/ld-version-script: Renamed to lib-symbol-versions.
48830         * doc/ld-version-script.texi: Fix module name.
48831         * MODULES.html.sh: Add lib-symbol-versions.
48832
48833 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48834
48835         * modules/u64-tests: New file.
48836         * tests/test-u64.c: New file.
48837
48838 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48839
48840         * MODULES.html.sh: Mention u64.
48841         * modules/u64: New module.
48842         * modules/crypto/sha512: Depend on u64 module instead of providing
48843         u64.h.
48844
48845 2009-03-27  Eric Blake  <ebb9@byu.net>
48846
48847         test-strerror: make debugging EAI_SYSTEM easier
48848         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48849         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48850         failure was EAI_SYSTEM.
48851
48852 2009-03-25  Bruno Haible  <bruno@clisp.org>
48853
48854         Fix a problem with --enable-relocatable on Solaris 7.
48855         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48856         since 2008-02-24.
48857
48858 2009-03-25  Eric Blake  <ebb9@byu.net>
48859
48860         test-sockets: avoid gcc warning
48861         * tests/test-sockets.c (main): Silence compiler warning.
48862
48863 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48864
48865         New modules nproc, pthread, contributed by Glen Lenker.
48866
48867         * MODULES.html.sh: Add pthread, nproc.
48868         * lib/nproc.c: New file.
48869         * lib/nproc.h: New file.
48870         * lib/pthread.in.h: New file.
48871         * m4/pthread.m4: New file.
48872         * modules/nproc: New file.
48873         * modules/pthread: New file.
48874
48875 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48876
48877         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48878         New variable.
48879
48880 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48881
48882         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48883         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48884         * tests/test-filevercmp.c: Add tests for backup suffixes.
48885
48886 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48887
48888         * modules/stdlib (Depends-on): Add stdint, needed when defining
48889         struct random_data on, for example, HP-UX 10.20.  Reported by
48890         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48891
48892 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48893
48894         * lib/readline.c (readline): Call fflush on stdout after printing
48895         prompt.
48896
48897 2009-03-20  Bruno Haible  <bruno@clisp.org>
48898
48899         Remove dependency from 'close' module to -lws2_32 on native Windows.
48900         * lib/close-hook.h: New file.
48901         * lib/close-hook.c: New file.
48902         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48903         w32sock.h.
48904         (_gl_close_fd_maybe_socket): Remove function.
48905         (rpl_close): Invoke execute_all_close_hooks instead of
48906         _gl_close_fd_maybe_socket.
48907         * lib/sockets.c: Include close-hook.h, w32sock.h.
48908         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48909         (close_sockets_hook): New variable.
48910         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48911         (gl_sockets_cleanup): Unregister it.
48912         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48913         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48914         * modules/close-hook: New file.
48915         * modules/close (Files): Remove lib/w32sock.h.
48916         (Depends-on): Add close-hook.
48917         (Link): Remove section.
48918         * modules/sockets (Files): Add lib/w32sock.h.
48919         (Depends-on): Add close-hook.
48920         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48921         invocation.
48922         * NEWS: Mention that LIB_CLOSE is gone.
48923
48924 2009-03-23  Eric Blake  <ebb9@byu.net>
48925
48926         signal-tests: test previous patch
48927         * tests/test-signal.c: New file.
48928         * modules/signal-tests: Likewise.
48929
48930         signal.h: always support 'volatile sig_atomic_t'
48931         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48932         (gl_SIGNAL_H_DEFAULTS): Add a default.
48933         * modules/signal (Makefile.am): Substitute if needed.
48934         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48935         users can blindly add volatile.
48936         * doc/posix-headers/signal.texi (signal.h): Document it.
48937         Reported by Matthew Woehlke.
48938
48939 2009-03-23  Jim Meyering  <meyering@redhat.com>
48940
48941         pathmax: PATH_MAX: use pathconf only when available
48942         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48943         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48944         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48945         This avoids a link failure in a PSP cross-compilation environment
48946         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48947
48948         * lib/vasnprintf.c (divide): Fix typo in comment.
48949
48950 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48951
48952         * gnulib-tool (func_filter_filelist): Fix comment.
48953
48954 2009-03-20  Bruno Haible  <bruno@clisp.org>
48955
48956         Make sockets.h self-contained.
48957         * lib/sockets.c: Include sockets.h first.
48958         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48959
48960 2009-03-19  Eric Blake  <ebb9@byu.net>
48961
48962         doc: mention more functions added in cygwin 1.7.0
48963         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48964         addition.
48965         * doc/posix-functions/log2f.texi: Likewise.
48966
48967 2009-03-19  Jim Meyering  <meyering@redhat.com>
48968
48969         fsusage: avoid syntax error due to statement-before-declaration
48970         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48971         after all declarations.  Reported by Matthew Woehlke in
48972         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48973
48974 2009-03-18  Eric Blake  <ebb9@byu.net>
48975
48976         build-aux/compile: sync from automake
48977         * build-aux/compile: New file, from automake.
48978         * config/srclist.txt: Mention build-aux/compile.
48979
48980 2009-03-17  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/git-merge-changelog.c: Fix typo in comment.
48983         Reported by Reuben Thomas <rrt@sc3d.org>.
48984
48985 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48986
48987         * m4/regex.m4: update and improve help for
48988         --without-included-regex.
48989
48990 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48991
48992         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48993         failure on missing include files.
48994
48995 2009-03-17  Eric Blake  <ebb9@byu.net>
48996
48997         doc: mention more functions added in cygwin 1.7.0
48998         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48999         addition.
49000         * doc/posix-functions/fwscanf.texi: Likewise.
49001         * doc/posix-functions/swprintf.texi: Likewise.
49002         * doc/posix-functions/swscanf.texi: Likewise.
49003         * doc/posix-functions/vfwprintf.texi: Likewise.
49004         * doc/posix-functions/vfwscanf.texi: Likewise.
49005         * doc/posix-functions/vswprintf.texi: Likewise.
49006         * doc/posix-functions/vswscanf.texi: Likewise.
49007         * doc/posix-functions/vwprintf.texi: Likewise.
49008         * doc/posix-functions/vwscanf.texi: Likewise.
49009         * doc/posix-functions/wcscasecmp.texi: Likewise.
49010         * doc/posix-functions/wcsdup.texi: Likewise.
49011         * doc/posix-functions/wcsftime.texi: Likewise.
49012         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49013         * doc/posix-functions/wprintf.texi: Likewise.
49014         * doc/posix-functions/wscanf.texi: Likewise.
49015         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49016
49017 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49018
49019         maint.mk: really add $(AM_MAKEFLAGS)
49020         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49021         was inadvertently omitted in the last commit.
49022         Spotted by Bruno Haible.
49023
49024         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49025         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49026         $(AM_MAKEFLAGS)' rather than plain `make'.
49027
49028         gnulib-tool: execute $MAKE not make
49029         * gnulib-tool: Default $MAKE to 'make'.
49030         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49031         than make.  Initialize $MAKE in the do-autobuild script.
49032
49033         gnulib-tool: use $MAKE not make in generated files
49034         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49035         make, in generated files.  Initialize $MAKE in the do-autobuild
49036         script.
49037
49038         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49039
49040         GNUmakefile: disable parallelism only for multiple, recursive targets
49041         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49042         additions in the Makefile.
49043         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49044         by Automake.
49045         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49046         are listed on the command line and at least one of them is
49047         listed in $(ALL_RECURSIVE_TARGETS).
49048
49049 2009-03-14  Bruno Haible  <bruno@clisp.org>
49050
49051         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49052         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49053         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49054         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49055         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49056         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49057         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49058         unistr/u8-uctomb.
49059         * modules/unistr/u8-strchr (Depends-on): Likewise.
49060         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49061         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49062         unistr/u16-uctomb.
49063         * modules/unistr/u16-strchr (Depends-on): Likewise.
49064         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49065
49066 2009-03-12  Bruno Haible  <bruno@clisp.org>
49067
49068         Work around select() bug on Interix 3.5.
49069         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49070         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49071         * m4/select.m4: New file.
49072         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49073         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49074         * modules/select (Files): Add m4/select.m4.
49075         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49076         * modules/nanosleep (Depends-on): Add select.
49077         * modules/poll (Depends-on): Likewise.
49078         * doc/posix-functions/select.texi: Mention the Interix bug.
49079         Reported by Markus Duft <mduft@gentoo.org>.
49080
49081         * lib/select.c: Renamed from lib/winsock-select.c.
49082         * modules/select (Files): Add lib/select.c, remove
49083         lib/winsock-select.c.
49084         (configure.ac): Update.
49085
49086 2009-03-12  Jim Meyering  <meyering@redhat.com>
49087
49088         avoid gcc warnings about unused macro definitions
49089         * lib/readtokens.c (STREQ): Remove unused definition.
49090         * lib/xmalloc.c (SIZE_MAX): Likewise.
49091         * lib/openat-die.c (N_): Likewise.
49092         * lib/mountlist.c (SIZE_MAX): Remove definition.
49093         Instead, include <stdint.h>.
49094         * lib/readutmp.c: Likewise.
49095         * modules/readutmp (Depends-on): Add stdint.
49096         * modules/mountlist (Depends-on): Add stdint.
49097         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49098
49099 2009-03-10  Bruno Haible  <bruno@clisp.org>
49100
49101         Tests for module 'mbmemcasecoll'.
49102         * modules/mbmemcasecoll-tests: New file.
49103         * tests/test-mbmemcasecoll1.sh: New file.
49104         * tests/test-mbmemcasecoll2.sh: New file.
49105         * tests/test-mbmemcasecoll3.sh: New file.
49106         * tests/test-mbmemcasecoll.c: New file.
49107
49108         New module 'mbmemcasecoll'.
49109         * lib/mbmemcasecoll.h: New file.
49110         * lib/mbmemcasecoll.c: New file.
49111         * modules/mbmemcasecoll: New file.
49112
49113         * tests/test-mbmemcasecmp.h: New file, extracted from
49114         tests/test-mbmemcasecmp.c.
49115         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49116         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49117         (main): Update.
49118         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49119
49120 2009-03-09  Bruno Haible  <bruno@clisp.org>
49121
49122         Tests for module 'mbmemcasecmp'.
49123         * modules/mbmemcasecmp-tests: New file.
49124         * tests/test-mbmemcasecmp1.sh: New file.
49125         * tests/test-mbmemcasecmp2.sh: New file.
49126         * tests/test-mbmemcasecmp3.sh: New file.
49127         * tests/test-mbmemcasecmp.c: New file.
49128
49129         New module 'mbmemcasecmp'.
49130         * lib/mbmemcasecmp.h: New file.
49131         * lib/mbmemcasecmp.c: New file.
49132         * modules/mbmemcasecmp: New file.
49133
49134 2009-03-09  Bruno Haible  <bruno@clisp.org>
49135
49136         Tests for module 'unicase/ulc-casecoll'.
49137         * modules/unicase/ulc-casecoll-tests: New file.
49138         * tests/unicase/test-ulc-casecoll1.sh: New file.
49139         * tests/unicase/test-ulc-casecoll2.sh: New file.
49140         * tests/unicase/test-ulc-casecoll.c: New file.
49141
49142         New module 'unicase/ulc-casecoll'.
49143         * lib/unicase.h (ulc_casecoll): New declaration.
49144         * lib/unicase/ulc-casecoll.c: New file.
49145         * modules/unicase/ulc-casecoll: New file.
49146
49147         New module 'unicase/ulc-casexfrm'.
49148         * lib/unicase.h (ulc_casexfrm): New declaration.
49149         * lib/unicase/ulc-casexfrm.c: New file.
49150         * modules/unicase/ulc-casexfrm: New file.
49151
49152 2009-03-09  Bruno Haible  <bruno@clisp.org>
49153
49154         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49155         invocations.
49156
49157         * m4/mbscasecmp.m4: Remove file.
49158         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49159         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49160
49161         * m4/mbscasestr.m4: Remove file.
49162         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49163         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49164
49165         * m4/mbschr.m4: Remove file.
49166         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49167         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49168
49169         * m4/mbscspn.m4: Remove file.
49170         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49171         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49172
49173         * m4/mbslen.m4: Remove file.
49174         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49175         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49176
49177         * m4/mbsncasecmp.m4: Remove file.
49178         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49179         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49180
49181         * m4/mbsnlen.m4: Remove file.
49182         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49183         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49184
49185         * m4/mbspbrk.m4: Remove file.
49186         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49187         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49188
49189         * m4/mbspcasecmp.m4: Remove file.
49190         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49191         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49192
49193         * m4/mbsrchr.m4: Remove file.
49194         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49195         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49196
49197         * m4/mbssep.m4: Remove file.
49198         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49199         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49200
49201         * m4/mbsspn.m4: Remove file.
49202         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49203         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49204
49205         * m4/mbsstr.m4: Remove file.
49206         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49207         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49208
49209         * m4/mbstok_r.m4: Remove file.
49210         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49211         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49212
49213         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49214
49215         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49216         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49217
49218         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49219
49220 2009-03-08  Bruno Haible  <bruno@clisp.org>
49221
49222         Tests for module 'unicase/ulc-casecmp'.
49223         * modules/unicase/ulc-casecmp-tests: New file.
49224         * tests/unicase/test-ulc-casecmp1.sh: New file.
49225         * tests/unicase/test-ulc-casecmp2.sh: New file.
49226         * tests/unicase/test-ulc-casecmp.c: New file.
49227
49228         New module 'unicase/ulc-casecmp'.
49229         * lib/unicase.h (ulc_casecmp): New declaration.
49230         * lib/unicase/ulc-casecmp.c: New file.
49231         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49232         'const SRC_UNIT *'.
49233         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49234         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49235         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49236         * modules/unicase/ulc-casecmp: New file.
49237
49238         Tests for module 'unicase/u32-is-cased'.
49239         * modules/unicase/u32-is-cased-tests: New file.
49240         * tests/unicase/test-u32-is-cased.c: New file.
49241
49242         Tests for module 'unicase/u16-is-cased'.
49243         * modules/unicase/u16-is-cased-tests: New file.
49244         * tests/unicase/test-u16-is-cased.c: New file.
49245
49246         Tests for module 'unicase/u8-is-cased'.
49247         * modules/unicase/u8-is-cased-tests: New file.
49248         * tests/unicase/test-u8-is-cased.c: New file.
49249         * tests/unicase/test-is-cased.h: New file.
49250
49251         New module 'unicase/u32-is-cased'.
49252         * lib/unicase/u32-is-cased.c: New file.
49253         * modules/unicase/u32-is-cased: New file.
49254
49255         New module 'unicase/u16-is-cased'.
49256         * lib/unicase/u16-is-cased.c: New file.
49257         * modules/unicase/u16-is-cased: New file.
49258
49259         New module 'unicase/u8-is-cased'.
49260         * lib/unicase/u8-is-cased.c: New file.
49261         * lib/unicase/u-is-cased.h: New file.
49262         * modules/unicase/u8-is-cased: New file.
49263
49264         Tests for module 'unicase/u32-is-casefolded'.
49265         * modules/unicase/u32-is-casefolded-tests: New file.
49266         * tests/unicase/test-u32-is-casefolded.c: New file.
49267
49268         Tests for module 'unicase/u16-is-casefolded'.
49269         * modules/unicase/u16-is-casefolded-tests: New file.
49270         * tests/unicase/test-u16-is-casefolded.c: New file.
49271
49272         Tests for module 'unicase/u8-is-casefolded'.
49273         * modules/unicase/u8-is-casefolded-tests: New file.
49274         * tests/unicase/test-u8-is-casefolded.c: New file.
49275         * tests/unicase/test-is-casefolded.h: New file.
49276
49277         New module 'unicase/u32-is-casefolded'.
49278         * lib/unicase/u32-is-casefolded.c: New file.
49279         * modules/unicase/u32-is-casefolded: New file.
49280
49281         New module 'unicase/u16-is-casefolded'.
49282         * lib/unicase/u16-is-casefolded.c: New file.
49283         * modules/unicase/u16-is-casefolded: New file.
49284
49285         New module 'unicase/u8-is-casefolded'.
49286         * lib/unicase/u8-is-casefolded.c: New file.
49287         * modules/unicase/u8-is-casefolded: New file.
49288
49289         Tests for module 'unicase/u32-is-titlecase'.
49290         * modules/unicase/u32-is-titlecase-tests: New file.
49291         * tests/unicase/test-u32-is-titlecase.c: New file.
49292
49293         Tests for module 'unicase/u16-is-titlecase'.
49294         * modules/unicase/u16-is-titlecase-tests: New file.
49295         * tests/unicase/test-u16-is-titlecase.c: New file.
49296
49297         Tests for module 'unicase/u8-is-titlecase'.
49298         * modules/unicase/u8-is-titlecase-tests: New file.
49299         * tests/unicase/test-u8-is-titlecase.c: New file.
49300         * tests/unicase/test-is-titlecase.h: New file.
49301
49302         New module 'unicase/u32-is-titlecase'.
49303         * lib/unicase/u32-is-titlecase.c: New file.
49304         * modules/unicase/u32-is-titlecase: New file.
49305
49306         New module 'unicase/u16-is-titlecase'.
49307         * lib/unicase/u16-is-titlecase.c: New file.
49308         * modules/unicase/u16-is-titlecase: New file.
49309
49310         New module 'unicase/u8-is-titlecase'.
49311         * lib/unicase/u8-is-titlecase.c: New file.
49312         * modules/unicase/u8-is-titlecase: New file.
49313
49314         Tests for module 'unicase/u32-is-lowercase'.
49315         * modules/unicase/u32-is-lowercase-tests: New file.
49316         * tests/unicase/test-u32-is-lowercase.c: New file.
49317
49318         Tests for module 'unicase/u16-is-lowercase'.
49319         * modules/unicase/u16-is-lowercase-tests: New file.
49320         * tests/unicase/test-u16-is-lowercase.c: New file.
49321
49322         Tests for module 'unicase/u8-is-lowercase'.
49323         * modules/unicase/u8-is-lowercase-tests: New file.
49324         * tests/unicase/test-u8-is-lowercase.c: New file.
49325         * tests/unicase/test-is-lowercase.h: New file.
49326
49327         New module 'unicase/u32-is-lowercase'.
49328         * lib/unicase/u32-is-lowercase.c: New file.
49329         * modules/unicase/u32-is-lowercase: New file.
49330
49331         New module 'unicase/u16-is-lowercase'.
49332         * lib/unicase/u16-is-lowercase.c: New file.
49333         * modules/unicase/u16-is-lowercase: New file.
49334
49335         New module 'unicase/u8-is-lowercase'.
49336         * lib/unicase/u8-is-lowercase.c: New file.
49337         * modules/unicase/u8-is-lowercase: New file.
49338
49339         Tests for module 'unicase/u32-is-uppercase'.
49340         * modules/unicase/u32-is-uppercase-tests: New file.
49341         * tests/unicase/test-u32-is-uppercase.c: New file.
49342
49343         Tests for module 'unicase/u16-is-uppercase'.
49344         * modules/unicase/u16-is-uppercase-tests: New file.
49345         * tests/unicase/test-u16-is-uppercase.c: New file.
49346
49347         Tests for module 'unicase/u8-is-uppercase'.
49348         * modules/unicase/u8-is-uppercase-tests: New file.
49349         * tests/unicase/test-u8-is-uppercase.c: New file.
49350         * tests/unicase/test-is-uppercase.h: New file.
49351
49352         New module 'unicase/u32-is-uppercase'.
49353         * lib/unicase/u32-is-uppercase.c: New file.
49354         * modules/unicase/u32-is-uppercase: New file.
49355
49356         New module 'unicase/u16-is-uppercase'.
49357         * lib/unicase/u16-is-uppercase.c: New file.
49358         * modules/unicase/u16-is-uppercase: New file.
49359
49360         New module 'unicase/u8-is-uppercase'.
49361         * lib/unicase/u8-is-uppercase.c: New file.
49362         * modules/unicase/u8-is-uppercase: New file.
49363
49364         New module 'unicase/u32-is-invariant'.
49365         * lib/unicase/u32-is-invariant.c: New file.
49366         * modules/unicase/u32-is-invariant: New file.
49367
49368         New module 'unicase/u16-is-invariant'.
49369         * lib/unicase/u16-is-invariant.c: New file.
49370         * modules/unicase/u16-is-invariant: New file.
49371
49372         New module 'unicase/u8-is-invariant'.
49373         * lib/unicase/u8-is-invariant.c: New file.
49374         * lib/unicase/invariant.h: New file.
49375         * lib/unicase/u-is-invariant.h: New file.
49376         * modules/unicase/u8-is-invariant: New file.
49377
49378         Tests for module 'unicase/u32-casecoll'.
49379         * modules/unicase/u32-casecoll-tests: New file.
49380         * tests/unicase/test-u32-casecoll.c: New file.
49381
49382         Tests for module 'unicase/u16-casecoll'.
49383         * modules/unicase/u16-casecoll-tests: New file.
49384         * tests/unicase/test-u16-casecoll.c: New file.
49385
49386         Tests for module 'unicase/u8-casecoll'.
49387         * modules/unicase/u8-casecoll-tests: New file.
49388         * tests/unicase/test-u8-casecoll.c: New file.
49389
49390         New module 'unicase/u32-casecoll'.
49391         * lib/unicase/u32-casecoll.c: New file.
49392         * modules/unicase/u32-casecoll: New file.
49393
49394         New module 'unicase/u16-casecoll'.
49395         * lib/unicase/u16-casecoll.c: New file.
49396         * modules/unicase/u16-casecoll: New file.
49397
49398         New module 'unicase/u8-casecoll'.
49399         * lib/unicase/u8-casecoll.c: New file.
49400         * lib/unicase/u-casecoll.h: New file.
49401         * modules/unicase/u8-casecoll: New file.
49402
49403         New module 'unicase/u32-casexfrm'.
49404         * lib/unicase/u32-casexfrm.c: New file.
49405         * modules/unicase/u32-casexfrm: New file.
49406
49407         New module 'unicase/u16-casexfrm'.
49408         * lib/unicase/u16-casexfrm.c: New file.
49409         * modules/unicase/u16-casexfrm: New file.
49410
49411         New module 'unicase/u8-casexfrm'.
49412         * lib/unicase/u8-casexfrm.c: New file.
49413         * lib/unicase/u-casexfrm.h: New file.
49414         * modules/unicase/u8-casexfrm: New file.
49415
49416         Tests for module 'unicase/u32-casecmp'.
49417         * modules/unicase/u32-casecmp-tests: New file.
49418         * tests/unicase/test-u32-casecmp.c: New file.
49419
49420         Tests for module 'unicase/u16-casecmp'.
49421         * modules/unicase/u16-casecmp-tests: New file.
49422         * tests/unicase/test-u16-casecmp.c: New file.
49423
49424         Tests for module 'unicase/u8-casecmp'.
49425         * modules/unicase/u8-casecmp-tests: New file.
49426         * tests/unicase/test-u8-casecmp.c: New file.
49427         * tests/unicase/test-casecmp.h: New file.
49428
49429         New module 'unicase/u32-casecmp'.
49430         * lib/unicase/u32-casecmp.c: New file.
49431         * modules/unicase/u32-casecmp: New file.
49432
49433         New module 'unicase/u16-casecmp'.
49434         * lib/unicase/u16-casecmp.c: New file.
49435         * modules/unicase/u16-casecmp: New file.
49436
49437         New module 'unicase/u8-casecmp'.
49438         * lib/unicase/u8-casecmp.c: New file.
49439         * lib/unicase/u-casecmp.h: New file.
49440         * modules/unicase/u8-casecmp: New file.
49441
49442         Tests for module 'unicase/u32-casefold'.
49443         * modules/unicase/u32-casefold-tests: New file.
49444         * tests/unicase/test-u32-casefold.c: New file.
49445
49446         Tests for module 'unicase/u16-casefold'.
49447         * modules/unicase/u16-casefold-tests: New file.
49448         * tests/unicase/test-u16-casefold.c: New file.
49449
49450         Tests for module 'unicase/u8-casefold'.
49451         * modules/unicase/u8-casefold-tests: New file.
49452         * tests/unicase/test-u8-casefold.c: New file.
49453
49454         New module 'unicase/u32-casefold'.
49455         * lib/unicase/u32-casefold.c: New file.
49456         * modules/unicase/u32-casefold: New file.
49457
49458         New module 'unicase/u16-casefold'.
49459         * lib/unicase/u16-casefold.c: New file.
49460         * modules/unicase/u16-casefold: New file.
49461
49462         New module 'unicase/u8-casefold'.
49463         * lib/unicase/u8-casefold.c: New file.
49464         * lib/unicase/u-casefold.h: New file.
49465         * modules/unicase/u8-casefold: New file.
49466
49467         New module 'unicase/tocasefold'.
49468         * lib/unicase/casefold.h: New file.
49469         * lib/unicase/tocasefold.c: New file.
49470         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49471         * modules/unicase/tocasefold: New file.
49472
49473         Tests for module 'unicase/u32-totitle'.
49474         * modules/unicase/u32-totitle-tests: New file.
49475         * tests/unicase/test-u32-totitle.c: New file.
49476
49477         Tests for module 'unicase/u16-totitle'.
49478         * modules/unicase/u16-totitle-tests: New file.
49479         * tests/unicase/test-u16-totitle.c: New file.
49480
49481         Tests for module 'unicase/u8-totitle'.
49482         * modules/unicase/u8-totitle-tests: New file.
49483         * tests/unicase/test-u8-totitle.c: New file.
49484
49485         New module 'unicase/u32-totitle'.
49486         * lib/unicase/u32-totitle.c: New file.
49487         * modules/unicase/u32-totitle: New file.
49488
49489         New module 'unicase/u16-totitle'.
49490         * lib/unicase/u16-totitle.c: New file.
49491         * modules/unicase/u16-totitle: New file.
49492
49493         New module 'unicase/u8-totitle'.
49494         * lib/unicase/u8-totitle.c: New file.
49495         * lib/unicase/u-totitle.h: New file.
49496         * modules/unicase/u8-totitle: New file.
49497
49498         Tests for module 'unicase/u32-tolower'.
49499         * modules/unicase/u32-tolower-tests: New file.
49500         * tests/unicase/test-u32-tolower.c: New file.
49501
49502         Tests for module 'unicase/u16-tolower'.
49503         * modules/unicase/u16-tolower-tests: New file.
49504         * tests/unicase/test-u16-tolower.c: New file.
49505
49506         Tests for module 'unicase/u8-tolower'.
49507         * modules/unicase/u8-tolower-tests: New file.
49508         * tests/unicase/test-u8-tolower.c: New file.
49509
49510         New module 'unicase/u32-tolower'.
49511         * lib/unicase/u32-tolower.c: New file.
49512         * modules/unicase/u32-tolower: New file.
49513
49514         New module 'unicase/u16-tolower'.
49515         * lib/unicase/u16-tolower.c: New file.
49516         * modules/unicase/u16-tolower: New file.
49517
49518         New module 'unicase/u8-tolower'.
49519         * lib/unicase/u8-tolower.c: New file.
49520         * modules/unicase/u8-tolower: New file.
49521
49522         Tests for module 'unicase/u32-toupper'.
49523         * modules/unicase/u32-toupper-tests: New file.
49524         * tests/unicase/test-u32-toupper.c: New file.
49525
49526         Tests for module 'unicase/u16-toupper'.
49527         * modules/unicase/u16-toupper-tests: New file.
49528         * tests/unicase/test-u16-toupper.c: New file.
49529
49530         Tests for module 'unicase/u8-toupper'.
49531         * modules/unicase/u8-toupper-tests: New file.
49532         * tests/unicase/test-u8-toupper.c: New file.
49533
49534         New module 'unicase/u32-toupper'.
49535         * lib/unicase/u32-toupper.c: New file.
49536         * modules/unicase/u32-toupper: New file.
49537
49538         New module 'unicase/u16-toupper'.
49539         * lib/unicase/u16-toupper.c: New file.
49540         * modules/unicase/u16-toupper: New file.
49541
49542         New module 'unicase/u8-toupper'.
49543         * lib/unicase/u8-toupper.c: New file.
49544         * modules/unicase/u8-toupper: New file.
49545
49546         New module 'unicase/u32-casemap'.
49547         * lib/unicase/u32-casemap.c: New file.
49548         * modules/unicase/u32-casemap: New file.
49549
49550         New module 'unicase/u16-casemap'.
49551         * lib/unicase/u16-casemap.c: New file.
49552         * modules/unicase/u16-casemap: New file.
49553
49554         New module 'unicase/u8-casemap'.
49555         * lib/unicase/unicasemap.h: New file.
49556         * lib/unicase/u8-casemap.c: New file.
49557         * lib/unicase/u-casemap.h: New file.
49558         * modules/unicase/u8-casemap: New file.
49559
49560         New module 'unicase/special-casing'.
49561         * lib/unicase/special-casing.h: New file.
49562         * lib/unicase/special-casing.c: New file.
49563         * lib/unicase/special-casing-table.gperf: New file, generated by
49564         gen-uni-tables.c.
49565         * modules/unicase/special-casing: New file.
49566
49567         Tests for module 'unicase/locale-language'.
49568         * modules/unicase/locale-language-tests: New file.
49569         * tests/unicase/test-locale-language.sh: New file.
49570         * tests/unicase/test-locale-language.c: New file.
49571
49572         New module 'unicase/locale-language'.
49573         * lib/unicase/locale-language.c: New file.
49574         * lib/unicase/locale-languages.gperf: New file.
49575         * modules/unicase/locale-language: New file.
49576
49577         Generate more tables for case conversion and case folding.
49578         * lib/gen-uni-tables.c (SCC_*): New enum items.
49579         (struct special_casing_rule): New type.
49580         (casing_rules, num_casing_rules, allocated_casing_rules): New
49581         variables.
49582         (add_casing_rule, fill_casing_rules): New functions.
49583         (struct casefold_rule): New type.
49584         (casefolding_rules, num_casefolding_rules,
49585         allocated_casefolding_rules): New variables.
49586         (fill_casefolding_rules): New function.
49587         (unicode_casefold): New variable.
49588         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49589         sort_casing_rules, output_casing_rules): New functions.
49590         (main): Accept to more arguments: SpecialCasing.txt and
49591         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49592         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49593         Output mapping for casefolding.
49594
49595         * lib/unicase.h: Include stdbool.h, uninorm.h.
49596         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49597         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49598         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49599         arguments.
49600         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49601         resultp arguments.
49602         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49603         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49604         resultp arguments.
49605         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49606         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49607         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49608         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49609         declarations.
49610         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49611
49612 2009-03-08  Bruno Haible  <bruno@clisp.org>
49613
49614         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49615         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49616         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49617         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49618
49619 2009-03-07  Bruno Haible  <bruno@clisp.org>
49620
49621         Adjust u*_normcmp, u*_normcoll API.
49622         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49623         u16_normcoll, u32_normcoll): Change failure conventions.
49624         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49625         errno and return -1.
49626         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49627
49628 2009-03-07  Bruno Haible  <bruno@clisp.org>
49629
49630         Tests for module 'uninorm/u32-normcoll'.
49631         * modules/uninorm/u32-normcoll-tests: New file.
49632         * tests/uninorm/test-u32-normcoll.c: New file.
49633
49634         Tests for module 'uninorm/u16-normcoll'.
49635         * modules/uninorm/u16-normcoll-tests: New file.
49636         * tests/uninorm/test-u16-normcoll.c: New file.
49637
49638         Tests for module 'uninorm/u8-normcoll'.
49639         * modules/uninorm/u8-normcoll-tests: New file.
49640         * tests/uninorm/test-u8-normcoll.c: New file.
49641
49642 2009-03-07  Bruno Haible  <bruno@clisp.org>
49643
49644         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49645         tests/uninorm/test-u32-normcmp.c.
49646         * tests/uninorm/test-u32-normcmp.c: Include it.
49647         (test_nonascii): New function, extracted from main. Add some more
49648         tests.
49649         (main): Invoke test_ascii and test_nonascii.
49650         * modules/uninorm/u32-normcmp-tests (Files): Add
49651         tests/uninorm/test-u32-normcmp.h.
49652         (Depends-on): Remove uninorm/u32-normcmp.
49653
49654         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49655         tests/uninorm/test-u16-normcmp.c.
49656         * tests/uninorm/test-u16-normcmp.c: Include it.
49657         (test_nonascii): New function, extracted from main. Add some more
49658         tests.
49659         (main): Invoke test_ascii and test_nonascii.
49660         * modules/uninorm/u16-normcmp-tests (Files): Add
49661         tests/uninorm/test-u16-normcmp.h.
49662         (Depends-on): Remove uninorm/u16-normcmp.
49663
49664         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49665         tests/uninorm/test-u8-normcmp.c.
49666         * tests/uninorm/test-u8-normcmp.c: Include it.
49667         (test_nonascii): New function, extracted from main. Add some more
49668         tests.
49669         (main): Invoke test_ascii and test_nonascii.
49670         * modules/uninorm/u8-normcmp-tests (Files): Add
49671         tests/uninorm/test-u8-normcmp.h.
49672         (Depends-on): Remove uninorm/u8-normcmp.
49673
49674 2009-03-07  Bruno Haible  <bruno@clisp.org>
49675
49676         New module 'uninorm/u32-normcoll'.
49677         * lib/uninorm/u32-normcoll.c: New file.
49678         * modules/uninorm/u32-normcoll: New file.
49679
49680         New module 'uninorm/u16-normcoll'.
49681         * lib/uninorm/u16-normcoll.c: New file.
49682         * modules/uninorm/u16-normcoll: New file.
49683
49684         New module 'uninorm/u8-normcoll'.
49685         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49686         declarations.
49687         * lib/uninorm/u8-normcoll.c: New file.
49688         * lib/uninorm/u-normcoll.h: New file.
49689         * modules/uninorm/u8-normcoll: New file.
49690
49691         New module 'uninorm/u32-normxfrm'.
49692         * lib/uninorm/u32-normxfrm.c: New file.
49693         * modules/uninorm/u32-normxfrm: New file.
49694
49695         New module 'uninorm/u16-normxfrm'.
49696         * lib/uninorm/u16-normxfrm.c: New file.
49697         * modules/uninorm/u16-normxfrm: New file.
49698
49699         New module 'uninorm/u8-normxfrm'.
49700         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49701         declarations.
49702         * lib/uninorm/u8-normxfrm.c: New file.
49703         * lib/uninorm/u-normxfrm.h: New file.
49704         * modules/uninorm/u8-normxfrm: New file.
49705
49706 2009-03-07  Bruno Haible  <bruno@clisp.org>
49707
49708         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49709         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49710         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49711
49712 2009-03-07  Bruno Haible  <bruno@clisp.org>
49713
49714         New module 'memxfrm'.
49715         * lib/memxfrm.h: New file.
49716         * lib/memxfrm.c: New file.
49717         * modules/memxfrm: New file.
49718
49719 2009-03-07  Bruno Haible  <bruno@clisp.org>
49720
49721         New module 'memcmp2'.
49722         * lib/memcmp2.h: New file.
49723         * lib/memcmp2.c: New file.
49724         * modules/memcmp2: New file.
49725
49726 2009-03-07  Bruno Haible  <bruno@clisp.org>
49727
49728         Tests for module 'uninorm/decomposing-form'.
49729         * modules/uninorm/decomposing-form-tests: New file.
49730         * tests/uninorm/test-decomposing-form.c: New file.
49731
49732         New module 'uninorm/decomposing-form'.
49733         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49734         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49735         Add 'decomposing_variant' field.
49736         * lib/uninorm/decomposing-form.c: New file.
49737         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49738         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49739         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49740         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49741         * modules/uninorm/decomposing-form: New file.
49742         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49743         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49744
49745 2009-03-07  Bruno Haible  <bruno@clisp.org>
49746
49747         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49748         strings.
49749
49750 2009-03-06  Bruno Haible  <bruno@clisp.org>
49751
49752         Tests for module 'uninorm/u32-normcmp'.
49753         * tests/uninorm/test-u32-normcmp.c: New file.
49754         * modules/uninorm/u32-normcmp-tests: New file.
49755
49756         Tests for module 'uninorm/u16-normcmp'.
49757         * tests/uninorm/test-u16-normcmp.c: New file.
49758         * modules/uninorm/u16-normcmp-tests: New file.
49759
49760         Tests for module 'uninorm/u8-normcmp'.
49761         * tests/uninorm/test-u8-normcmp.c: New file.
49762         * modules/uninorm/u8-normcmp-tests: New file.
49763
49764         New module 'uninorm/u32-normcmp'.
49765         * lib/uninorm/u32-normcmp.c: New file.
49766         * modules/uninorm/u32-normcmp: New file.
49767
49768         New module 'uninorm/u16-normcmp'.
49769         * lib/uninorm/u16-normcmp.c: New file.
49770         * modules/uninorm/u16-normcmp: New file.
49771
49772         New module 'uninorm/u8-normcmp'.
49773         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49774         declarations.
49775         * lib/uninorm/u8-normcmp.c: New file.
49776         * lib/uninorm/u-normcmp.h: New file.
49777         * modules/uninorm/u8-normcmp: New file.
49778
49779 2009-03-06  Bruno Haible  <bruno@clisp.org>
49780
49781         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49782         Reported by Eric Blake.
49783
49784 2009-03-06  Eric Blake  <ebb9@byu.net>
49785             Bruno Haible  <bruno@clisp.org>
49786
49787         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49788         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49789         condition.
49790         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49791         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49792         condition.
49793         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49794
49795 2009-03-06  Eric Blake  <ebb9@byu.net>
49796
49797         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49798         to avoid compiler warnings.
49799         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49800
49801 2009-03-05  Bruno Haible  <bruno@clisp.org>
49802
49803         * tests/test-ftell.c (main): Disable test beyond end of file on
49804         FreeMiNT.
49805         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49806
49807 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49808
49809         * lib/filevercmp.c: Move hidden files up in ordering.
49810         * tests/test-filevercmp.c: Add tests for hidden files.
49811
49812 2009-03-04  Bruno Haible  <bruno@clisp.org>
49813
49814         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49815         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49816         AM_CFLAGS.
49817         Reported by Simon Josefsson.
49818
49819 2009-03-03  Bruno Haible  <bruno@clisp.org>
49820
49821         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49822         Reported by Simon Josefsson.
49823
49824         * doc/ld-version-script.texi: Update node reference.
49825
49826 2009-03-03  Bruno Haible  <bruno@clisp.org>
49827
49828         * modules/visibility (License): Change to 'unlimited'.
49829         Suggested by Simon Josefsson.
49830
49831 2009-03-03  Jim Meyering  <meyering@redhat.com>
49832
49833         unlinkdir: cannot_unlink_dir may modify process state
49834         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49835         it's neither thread-safe nor appropriate for use in a library.
49836
49837 2009-03-03  Eric Blake  <ebb9@byu.net>
49838
49839         test-closein: silence test under Darwin
49840         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49841         care if it dies from EPIPE or EBADF.
49842
49843 2009-03-03  Bruno Haible  <bruno@clisp.org>
49844
49845         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49846         earlier.
49847         * doc/visibility.texi: Fix @node and @section.
49848
49849 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49850
49851         * doc/gnulib.texi: Link to sections for ld version script and
49852         visibility.
49853         * doc/visibility.texi: Add @node and @section.
49854         * modules/ld-version-script: New module.
49855         * m4/ld-version-script.m4: New file.
49856         * doc/ld-version-script.texi: New file.
49857
49858 2009-03-02  David Lutterkort  <lutter@redhat.com>
49859
49860         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49861         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49862
49863 2009-03-02  Bruno Haible  <bruno@clisp.org>
49864
49865         * doc/visibility.texi: Mention libtool's -export-symbols option.
49866
49867 2009-03-02  Jim Meyering  <meyering@redhat.com>
49868
49869         announce-gen: new option: --no-print-checksums
49870         * build-aux/announce-gen (usage): Describe it.
49871         (print_checksums): Print a newline here, not in the [*] footnote.
49872         (main): Honor it.
49873
49874 2009-03-01  Bruno Haible  <bruno@clisp.org>
49875
49876         Use socklen_t in the native Windows replacements prototypes.
49877         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49878         instead of 'int'.
49879         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49880         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49881         * modules/getsockopt (Depends-on): Add socklen.
49882         * modules/setsockopt (Depends-on): Add socklen.
49883
49884 2009-03-01  Bruno Haible  <bruno@clisp.org>
49885
49886         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49887         least 4.2.
49888
49889 2009-03-01  Eric Blake  <ebb9@byu.net>
49890             Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49893         error messages.
49894         * lib/wait-process.c (wait_subprocess): Omit error message about
49895         deadly signal sent to the child of termsigp != NULL.
49896
49897 2009-03-01  Eric Blake  <ebb9@byu.net>
49898
49899         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49900
49901 2009-03-01  Bruno Haible  <bruno@clisp.org>
49902
49903         Avoid a gcc warning.
49904         * tests/test-sched.c (b): Make global.
49905         Reported by Eric Blake.
49906
49907 2009-01-19  Martin Lambers  <marlam@marlam.de>
49908
49909         Provide POSIX semantics for socket timeout options on W32.
49910         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49911         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49912         * modules/setsockopt: Depend on sys_time module for struct timeval.
49913         * modules/getsockopt: Depend on sys_time module for struct timeval.
49914
49915 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49916
49917         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49918         __USE_GNU, for consistency with netdb.in.h.
49919         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49920
49921 2009-03-01  Bruno Haible  <bruno@clisp.org>
49922
49923         More support for FreeMiNT.
49924         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49925         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49926
49927 2009-03-01  Bruno Haible  <bruno@clisp.org>
49928
49929         More support for FreeMiNT.
49930         * lib/fpurge.c (fpurge): Correct last commit.
49931         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49932
49933 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49934
49935         Fix unportable awk script in vc-list-files.
49936         * build-aux/vc-list-files: In the replacement awk script, use
49937         substr with a second argument of 1, not zero.
49938         Report by Simon Josefsson.
49939
49940 2009-02-28  Bruno Haible  <bruno@clisp.org>
49941
49942         More support for FreeMiNT.
49943         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49944         to FreeMiNT today.
49945         * lib/fwriting.c (fwriting): Likewise.
49946         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49947
49948 2009-02-28  Bruno Haible  <bruno@clisp.org>
49949
49950         * tests/test-freadseek.c (main): Disable test beyond end of file on
49951         FreeMiNT.
49952         * tests/test-ftello.c (main): Likewise.
49953         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49954
49955 2009-02-28  Bruno Haible  <bruno@clisp.org>
49956
49957         Add tentative support for FreeMiNT.
49958         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49959         * lib/fpurge.c (fpurge): Likewise.
49960         * lib/freadable.c (freadable): Likewise.
49961         * lib/freading.c (freading): Likewise.
49962         * lib/freadptr.c (freadptr): Likewise.
49963         * lib/freadseek.c (freadptrinc): Likewise.
49964         * lib/fseeko.c (rpl_fseeko): Likewise.
49965         * lib/fseterr.c (fseterr): Likewise.
49966         * lib/fwritable.c (fwritable): Likewise.
49967         * lib/fwriting.c (fwriting): Likewise.
49968         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49969         Hourihane.
49970         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49971
49972 2009-02-28  Bruno Haible  <bruno@clisp.org>
49973
49974         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49975         SIGCHLD.
49976         Reported by Jim Meyering.
49977
49978 2009-02-28  Bruno Haible  <bruno@clisp.org>
49979
49980         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49981         Mention the results of these tests on various platforms.
49982         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49983         order.
49984         * doc/posix-functions/printf.texi: Likewise.
49985         * doc/posix-functions/snprintf.texi: Likewise.
49986         * doc/posix-functions/sprintf.texi: Likewise.
49987         * doc/posix-functions/vfprintf.texi: Likewise.
49988         * doc/posix-functions/vprintf.texi: Likewise.
49989         * doc/posix-functions/vsnprintf.texi: Likewise.
49990         * doc/posix-functions/vsprintf.texi: Likewise.
49991         * doc/glibc-functions/obstack_printf.texi: Likewise.
49992         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49993
49994 2009-02-28  Bruno Haible  <bruno@clisp.org>
49995
49996         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49997         Reported by Loïc Minier <lool@dooz.org>.
49998
49999 2009-02-27  Bruno Haible  <bruno@clisp.org>
50000
50001         * gnulib-tool (func_import): Make the sed expression used to create the
50002         sed script for updating the .gitignore file POSIX compliant.
50003         Reported by Eric Blake.
50004
50005 2009-02-27  Bruno Haible  <bruno@clisp.org>
50006
50007         * gnulib-tool (sed): Don't alias as "sed --posix".
50008         Reported by Eric Blake.
50009
50010 2009-02-27  Bruno Haible  <bruno@clisp.org>
50011
50012         Avoid test link errors.
50013         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50014         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50015         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50016         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50018
50019 2009-02-27  Bruno Haible  <bruno@clisp.org>
50020
50021         Avoid spurious "(cached)" in configure output.
50022         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50023         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50024         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50025         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50026         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50027         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50028         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50029         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50030         Reported by Eric Blake.
50031
50032 2009-02-27  Eric Blake  <ebb9@byu.net>
50033
50034         printf: fix regression in previous patch
50035         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50036
50037 2009-02-27  Bruno Haible  <bruno@clisp.org>
50038
50039         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50040         value.
50041         * lib/stdint.in.h: Likewise.
50042         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50043
50044 2009-02-27  Eric Blake  <ebb9@byu.net>
50045
50046         doc: mention more functions added in cygwin 1.7.0
50047         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50048         addition.
50049         * doc/posix-functions/open_wmemstream.texi: Likewise.
50050         * doc/posix-functions/wcsnlen.texi: Likewise.
50051         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50052         * doc/posix-functions/wcstod.texi: Likewise.
50053         * doc/posix-functions/wcstof.texi: Likewise.
50054         * doc/posix-functions/wcstoimax.texi: Likewise.
50055         * doc/posix-functions/wcstok.texi: Likewise.
50056         * doc/posix-functions/wcstoumax.texi: Likewise.
50057
50058         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50060         * doc/posix-functions/fprintf.texi: Update.
50061         * doc/posix-functions/printf.texi: Update.
50062         * doc/posix-functions/snprintf.texi: Update.
50063         * doc/posix-functions/sprintf.texi: Update.
50064         * doc/posix-functions/vfprintf.texi: Update.
50065         * doc/posix-functions/vprintf.texi: Update.
50066         * doc/posix-functions/vsnprintf.texi: Update.
50067         * doc/posix-functions/vsprintf.texi: Update.
50068         * doc/glibc-functions/obstack_printf.texi: Update.
50069         * doc/glibc-functions/obstack_vprintf.texi: Update.
50070
50071 2009-02-26  Eric Blake  <ebb9@byu.net>
50072
50073         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50074         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50075         compilation bug by using runtime conversion.
50076         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50077         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50078         * modules/ceill-tests (Files): Use nan.h.
50079         * modules/floorl-tests (Files): Likewise.
50080         * modules/frexpl-tests (Files): Likewise.
50081         * modules/isnanl-tests (Files): Likewise.
50082         * modules/ldexpl-tests (Files): Likewise.
50083         * modules/roundl-tests (Files): Likewise.
50084         * modules/truncl-tests (Files): Likewise.
50085         * tests/test-ceill.c (main): Use a working NaN.
50086         * tests/test-floorl.c (main): Likewise.
50087         * tests/test-frexpl.c (main): Likewise.
50088         * tests/test-isnan.c (test_long_double): Likewise.
50089         * tests/test-isnanl.h (main): Likewise.
50090         * tests/test-ldexpl.h (main): Likewise.
50091         * tests/test-roundl.h (main): Likewise.
50092         * tests/test-truncl.h (main): Likewise.
50093         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50094
50095 2009-02-26  Eric Blake  <ebb9@byu.net>
50096             Bruno Haible  <bruno@clisp.org>
50097
50098         Work around a *printf bug with %ls on Solaris.
50099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50100         precision is specified, sprintf stops converting the wide string
50101         argument when the number of bytes that have been produced by this
50102         conversion equals or exceeds the precision.
50103         * doc/posix-functions/fprintf.texi: Update.
50104         * doc/posix-functions/printf.texi: Update.
50105         * doc/posix-functions/snprintf.texi: Update.
50106         * doc/posix-functions/sprintf.texi: Update.
50107         * doc/posix-functions/vfprintf.texi: Update.
50108         * doc/posix-functions/vprintf.texi: Update.
50109         * doc/posix-functions/vsnprintf.texi: Update.
50110         * doc/posix-functions/vsprintf.texi: Update.
50111         * doc/glibc-functions/obstack_printf.texi: Update.
50112         * doc/glibc-functions/obstack_vprintf.texi: Update.
50113
50114 2009-02-26  Eric Blake  <ebb9@byu.net>
50115
50116         stdlib: favor compiler check of random.h
50117         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50118         to avoid an ObjC random.h installed by Swarm.
50119
50120 2009-02-26  Bruno Haible  <bruno@clisp.org>
50121
50122         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50123         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50124         Reported by Gary V. Vaughan <gary@gnu.org>.
50125
50126 2009-02-26  Bruno Haible  <bruno@clisp.org>
50127
50128         Fix *printf behaviour regarding the %ls directive.
50129         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50130         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50131         NEED_PRINTF_DIRECTIVE_LS.
50132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50133         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50135         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50136         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50137         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50138         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50143         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50145         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50146         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50147         * doc/posix-functions/fprintf.texi: Update.
50148         * doc/posix-functions/printf.texi: Update.
50149         * doc/posix-functions/snprintf.texi: Update.
50150         * doc/posix-functions/sprintf.texi: Update.
50151         * doc/posix-functions/vfprintf.texi: Update.
50152         * doc/posix-functions/vprintf.texi: Update.
50153         * doc/posix-functions/vsnprintf.texi: Update.
50154         * doc/posix-functions/vsprintf.texi: Update.
50155         * doc/glibc-functions/obstack_printf.texi: Update.
50156         * doc/glibc-functions/obstack_vprintf.texi: Update.
50157         Reported by Eric Blake.
50158
50159 2009-02-25  Bruno Haible  <bruno@clisp.org>
50160
50161         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50162         with known value.
50163         Reported by Gary V. Vaughan <gary@gnu.org>.
50164
50165 2009-02-25  Bruno Haible  <bruno@clisp.org>
50166
50167         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50168         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50169         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50170         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50171         Reported by Gary V. Vaughan <gary@gnu.org>.
50172
50173 2009-02-25  Bruno Haible  <bruno@clisp.org>
50174
50175         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50176         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50177         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50178         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50179         Reported by Gary V. Vaughan <gary@gnu.org>.
50180
50181 2009-02-25  Eric Blake  <ebb9@byu.net>
50182
50183         tests: skip fseek/ftell tests if ungetc is broken
50184         * m4/ungetc.m4: New file.
50185         * modules/fseek-tests: Split test, so ungetc dependency is
50186         separate from rest of test.
50187         * modules/fseeko-tests: Likewise.
50188         * modules/ftell-tests: Likewise.
50189         * modules/ftello-tests: Likewise.
50190         * tests/test-fseek.c (main): Isolate ungetc dependency.
50191         * tests/test-fseeko.c (main): Likewise.
50192         * tests/test-ftell.c (main): Likewise.
50193         * tests/test-ftello.c (main): Likewise.
50194         * tests/test-fseek2.sh: New file.
50195         * tests/test-fseeko2.sh: Likewise.
50196         * tests/test-ftell2.sh: Likewise.
50197         * tests/test-ftello2.sh: Likewise.
50198
50199 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50200
50201         test-getaddrinfo: fix usage of skip return code 77
50202         * tests/test-gettaddrinfo.c: Return skip code 77 only
50203         for first occurrence of skip (4x77 is not 77)
50204
50205 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50206
50207         strtod: avoid C99 decl-after-statement
50208         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50209
50210 2009-02-24  Eric Blake  <ebb9@byu.net>
50211
50212         strtod: detect HP-UX 11.31 bug
50213         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50214         Reported by Gary V. Vaughan.
50215
50216 2009-02-23  Bruno Haible  <bruno@clisp.org>
50217
50218         Fix invalid read past end of memory block.
50219         * lib/vasnprintf.c (DCHAR_SET): Define.
50220         (local_wcslen): Define only when needed.
50221         (local_strnlen, local_wcsnlen): New functions.
50222         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50223         directives that involve a conversion ourselves.
50224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50225         wcsnlen, mbrtowc, wcrtomb.
50226         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50227         * tests/test-vasprintf-posix.c (test_function): Likewise.
50228         * tests/test-snprintf-posix.h (test_function): Likewise.
50229         * tests/test-sprintf-posix.h (test_function): Likewise.
50230         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50231
50232 2009-02-22  Bruno Haible  <bruno@clisp.org>
50233
50234         Implement new clarified decomposition of Hangul syllables.
50235         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50236         of type LTV, return only a pairwise decomposition.
50237         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50238         Likewise.
50239         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50240         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50241         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50242
50243 2009-02-22  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50246         zero-length results and shrink excess allocated memory.
50247         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50248         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50249         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50250         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50251         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50252         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50253         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50254         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50255         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50256         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50257         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50258         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50259
50260 2009-02-21  Bruno Haible  <bruno@clisp.org>
50261
50262         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50263         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50264         spaces after a period. Put a space between a macro name and its
50265         argument list. Trivial rewordings.
50266         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50267         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50268         (main): Return 0 explicitly.
50269
50270 2009-02-21  Bruno Haible  <bruno@clisp.org>
50271
50272         Tests for module 'uninorm/filter'.
50273         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50274         * modules/uninorm/filter-tests: New file.
50275
50276         New module 'uninorm/filter'.
50277         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50278         uninorm_filter_flush, uninorm_filter_free): New declarations.
50279         * lib/uninorm/uninorm-filter.c: New file.
50280         * modules/uninorm/filter: New file.
50281
50282 2009-02-21  Bruno Haible  <bruno@clisp.org>
50283
50284         Tests for module 'uninorm/nfkc'.
50285         * tests/uninorm/test-nfkc.c: New file.
50286         * tests/uninorm/test-u8-nfkc.c: New file.
50287         * tests/uninorm/test-u16-nfkc.c: New file.
50288         * tests/uninorm/test-u32-nfkc.c: New file.
50289         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50290         * tests/uninorm/test-u32-nfkc-big.c: New file.
50291         * modules/uninorm/nfkc-tests: New file.
50292
50293         New module 'uninorm/nfkc'.
50294         * lib/uninorm/nfkc.c: New file.
50295         * modules/uninorm/nfkc: New file.
50296
50297         Tests for module 'uninorm/nfkd'.
50298         * tests/uninorm/test-nfkd.c: New file.
50299         * tests/uninorm/test-u8-nfkd.c: New file.
50300         * tests/uninorm/test-u16-nfkd.c: New file.
50301         * tests/uninorm/test-u32-nfkd.c: New file.
50302         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50303         * tests/uninorm/test-u32-nfkd-big.c: New file.
50304         * modules/uninorm/nfkd-tests: New file.
50305
50306         New module 'uninorm/nfkd'.
50307         * lib/uninorm/nfkd.c: New file.
50308         * modules/uninorm/nfkd: New file.
50309
50310         Tests for module 'uninorm/nfc'.
50311         * tests/uninorm/test-nfc.c: New file.
50312         * tests/uninorm/test-u8-nfc.c: New file.
50313         * tests/uninorm/test-u16-nfc.c: New file.
50314         * tests/uninorm/test-u32-nfc.c: New file.
50315         * tests/uninorm/test-u32-nfc-big.sh: New file.
50316         * tests/uninorm/test-u32-nfc-big.c: New file.
50317         * modules/uninorm/nfc-tests: New file.
50318
50319         New module 'uninorm/nfc'.
50320         * lib/uninorm/nfc.c: New file.
50321         * modules/uninorm/nfc: New file.
50322
50323         Tests for module 'uninorm/nfd'.
50324         * tests/uninorm/test-nfd.c: New file.
50325         * tests/uninorm/test-u8-nfd.c: New file.
50326         * tests/uninorm/test-u16-nfd.c: New file.
50327         * tests/uninorm/test-u32-nfd.c: New file.
50328         * tests/uninorm/test-u32-nfd-big.sh: New file.
50329         * tests/uninorm/test-u32-nfd-big.c: New file.
50330         * tests/uninorm/test-u32-normalize-big.h: New file.
50331         * tests/uninorm/test-u32-normalize-big.c: New file.
50332         * tests/uninorm/NormalizationTest.txt: New file, created from
50333         Unicode 5.1.0 NormalizationTest.txt.
50334         * modules/uninorm/nfd-tests: New file.
50335
50336         New module 'uninorm/nfd'.
50337         * lib/uninorm/nfd.c: New file.
50338         * modules/uninorm/nfd: New file.
50339
50340         New module 'uninorm/u32-normalize'.
50341         * lib/uninorm/u32-normalize.c: New file.
50342         * modules/uninorm/u32-normalize: New file.
50343
50344         New module 'uninorm/u16-normalize'.
50345         * lib/uninorm/u16-normalize.c: New file.
50346         * modules/uninorm/u16-normalize: New file.
50347
50348         New module 'uninorm/u8-normalize'.
50349         * lib/uninorm/u8-normalize.c: New file.
50350         * lib/uninorm/normalize-internal.h: New file.
50351         * lib/uninorm/u-normalize-internal.h: New file.
50352         * modules/uninorm/u8-normalize: New file.
50353
50354         New module 'uninorm/decompose-internal'.
50355         * lib/uninorm/decompose-internal.c: New file.
50356         * modules/uninorm/decompose-internal: New file.
50357
50358         Tests for module 'uninorm/composition'.
50359         * tests/uninorm/test-composition.c: New file.
50360         * modules/uninorm/composition-tests: New file.
50361
50362         New module 'uninorm/composition'.
50363         * lib/uninorm/composition.c: New file.
50364         * lib/uninorm/composition-table.gperf: New file, generated by
50365         gen-uni-tables.
50366         * modules/uninorm/composition: New file.
50367
50368         Tests for module 'uninorm/compat-decomposition'.
50369         * tests/uninorm/test-compat-decomposition.c: New file.
50370         * modules/uninorm/compat-decomposition-tests: New file.
50371
50372         New module 'uninorm/compat-decomposition'.
50373         * lib/uninorm/decompose-internal.h: New file.
50374         * lib/uninorm/compat-decomposition.c: New file.
50375         * modules/uninorm/compat-decomposition: New file.
50376
50377         Tests for module 'uninorm/canonical-decomposition'.
50378         * tests/uninorm/test-canonical-decomposition.c: New file.
50379         * modules/uninorm/canonical-decomposition-tests: New file.
50380
50381         New module 'uninorm/canonical-decomposition'.
50382         * lib/uninorm/canonical-decomposition.c: New file.
50383         * modules/uninorm/canonical-decomposition: New file.
50384
50385         Tests for module 'uninorm/decomposition'.
50386         * tests/uninorm/test-decomposition.c: New file.
50387         * modules/uninorm/decomposition-tests: New file.
50388
50389         New module 'uninorm/decomposition'.
50390         * lib/uninorm/decomposition.c: New file.
50391         * modules/uninorm/decomposition: New file.
50392
50393         New module 'uninorm/decomposition-table'.
50394         * lib/uninorm/decomposition-table.h: New file.
50395         * lib/uninorm/decomposition-table.c: New file.
50396         * lib/uninorm/decomposition-table1.h: New file, generated by
50397         gen-uni-tables.
50398         * lib/uninorm/decomposition-table2.h: New file, generated by
50399         gen-uni-tables.
50400         * modules/uninorm/decomposition-table: New file.
50401
50402         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50403         (UC_DECOMP_*): New enumeration items.
50404         (get_decomposition): New function.
50405         (struct decomp_table): New type.
50406         (output_decomposition, output_decomposition_tables): New functions.
50407         (unicode_composition_exclusions): New variable.
50408         (fill_composition_exclusions, debug_output_composition_tables): New
50409         functions.
50410         (main): Accept one more argument. Invoke fill_composition_exclusions.
50411         Output decomposition and composition tables.
50412
50413         New module 'uninorm/base'.
50414         * lib/uninorm.h: New file.
50415         * lib/unictype.h: Update comment.
50416         * modules/uninorm/base: New file.
50417
50418 2009-02-21  David Lutterkort  <lutter@redhat.com>
50419
50420         Tests for module 'safe-alloc'.
50421         * tests/test-safe-alloc.c: New file.
50422         * modules/safe-alloc-tests: New file.
50423
50424         New module 'safe-alloc'.
50425         * lib/safe-alloc.h: New file.
50426         * lib/safe-alloc.c: New file.
50427         * m4/safe-alloc.m4: New file.
50428         * modules/safe-alloc: New file.
50429         * doc/safe-alloc.texi: New file.
50430         * doc/gnulib.texi: Include it.
50431         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50432         safe-alloc.
50433
50434 2009-02-18  Bruno Haible  <bruno@clisp.org>
50435
50436         Fix link error on non-glibc systems.
50437         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50438         variable.
50439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50440
50441 2009-02-18  Jim Meyering  <meyering@redhat.com>
50442
50443         fts: avoid used-uninitialized error due to recent change
50444         * lib/fts.c (fts_read): Guard uses of the new member,
50445         parent->fts_n_dirs_remaining, since it's not relevant for
50446         the parent of a directory specified on the command-line.
50447
50448 2009-02-17  James Youngman  <jay@gnu.org>
50449             Bruno Haible  <bruno@clisp.org>
50450
50451         * m4/include_next.m4: Reformulate comment.
50452
50453 2009-02-16  Jim Meyering  <meyering@redhat.com>
50454
50455         fts: add #if guards so that the fts_lgpl module still builds
50456         * lib/fts.c: Guard just-added hash-table-using parts with
50457         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50458         Reported by Simon Josefsson.
50459
50460 2009-02-15  Bruno Haible  <bruno@clisp.org>
50461
50462         * modules/array-mergesort-tests: New file.
50463         * tests/test-array-mergesort.c: New file.
50464
50465         New module 'array-mergesort'.
50466         * modules/array-mergesort: New file.
50467         * lib/array-mergesort.h: New file.
50468
50469 2009-02-15  Bruno Haible  <bruno@clisp.org>
50470
50471         Fix 2009-02-07 commit.
50472         * lib/gen-uni-tables.c (output_predicate, output_category,
50473         output_combclass, output_bidi_category, output_decimal_digit,
50474         output_digit, output_numeric, output_mirror, output_scripts,
50475         output_ident_category, output_simple_mapping): Fix format directives.
50476         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50477
50478 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50479
50480         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50481         fixes are available from IBM.
50482
50483 2009-02-13  Jim Meyering  <meyering@redhat.com>
50484
50485         fts: arrange not to stat non-directories in more cases
50486         This makes GNU find (when it doesn't need to stat each file)
50487         *much* more efficient at traversing reiserfs file systems.
50488         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50489         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50490         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50491         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50492         (leaf_optimization_applies): New function.
50493         (LCO_hash, LCO_compare): New helper functions.
50494         (link_count_optimize_ok): New function.
50495         (fts_stat): Initialize new member (if dir).
50496         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50497         we've just stat'ed a directory.  Skip the stat call when possible.
50498         ---
50499         Note this AFS-related exchange:
50500         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50501         and note find's pioctl call in find/fstype.c.
50502         But that is necessary only if you want to enable the
50503         optimization for AFS, and for now, I don't.
50504
50505         fts: move a function definition "up" (no semantic change)
50506         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50507         "up" to precede upcoming use of a related function.
50508
50509 2009-02-11  Jim Meyering  <meyering@redhat.com>
50510
50511         fts: correct internal computation of nlinks (optimization-related)
50512         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50513         whether the current entry is a directory, so don't test it.
50514
50515 2009-02-10  Bruno Haible  <bruno@clisp.org>
50516
50517         Tests for module 'uniwbrk/ulc-wordbreaks'.
50518         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50519         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50520         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50521
50522         Tests for module 'uniwbrk/u32-wordbreaks'.
50523         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50524         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50525
50526         Tests for module 'uniwbrk/u16-wordbreaks'.
50527         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50528         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50529
50530         Tests for module 'uniwbrk/u8-wordbreaks'.
50531         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50532         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50533
50534 2009-02-10  Bruno Haible  <bruno@clisp.org>
50535
50536         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50537         property.
50538         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50539         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50540         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50541
50542 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50543
50544         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50545         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50546
50547 2009-02-10  Bruno Haible  <bruno@clisp.org>
50548
50549         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50550         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50551         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50552         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50553         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50554         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50555
50556 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50557
50558         * lib/sockets.h (gl_fd_to_handle): New function.
50559
50560         * tests/test-sockets.c: Call gl_fd_to_handle.
50561
50562 2009-02-09  Bruno Haible  <bruno@clisp.org>
50563
50564         * doc/havelib.texi: Document the conventions on bi-arch systems.
50565
50566 2009-02-08  Bruno Haible  <bruno@clisp.org>
50567
50568         Document the AC_LIB_LINKFLAGS macro.
50569         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50570         * doc/gnulib.texi: Include it.
50571
50572 2009-02-08  Bruno Haible  <bruno@clisp.org>
50573
50574         Fix wrong order of sections, compared to TOC.
50575         * doc/gnulib.texi: Include relocatable-maint.texi after the
50576         "Regular expressions" node, not before.
50577
50578 2009-02-08  Bruno Haible  <bruno@clisp.org>
50579
50580         Tests for module 'unicase/totitle'.
50581         * modules/unicase/totitle-tests: New file.
50582
50583         Tests for module 'unicase/tolower'.
50584         * modules/unicase/tolower-tests: New file.
50585
50586         Tests for module 'unicase/toupper'.
50587         * modules/unicase/toupper-tests: New file.
50588         * tests/unicase/test-mapping-part1.h: New file.
50589         * tests/unicase/test-mapping-part2.h: New file.
50590
50591         New module 'unicase/totitle'.
50592         * modules/unicase/totitle: New file.
50593         * lib/unicase/totitle.c: New file.
50594
50595         New module 'unicase/tolower'.
50596         * modules/unicase/tolower: New file.
50597         * lib/unicase/tolower.c: New file.
50598
50599         New module 'unicase/toupper'.
50600         * modules/unicase/toupper: New file.
50601         * lib/unicase/toupper.c: New file.
50602         * lib/unicase/simple-mapping.h: New file.
50603
50604         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50605         (mapping_table): New structure.
50606         (output_simple_mapping): New function.
50607         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50608         * modules/gen-uni-tables (Description): Update.
50609         * lib/unicase/toupper.h: New file, automatically generated by
50610         gen-uni-tables.
50611         * lib/unicase/tolower.h: New file, automatically generated by
50612         gen-uni-tables.
50613         * lib/unicase/totitle.h: New file, automatically generated by
50614         gen-uni-tables.
50615         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50616         gen-uni-tables.
50617         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50618         gen-uni-tables.
50619         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50620         gen-uni-tables.
50621
50622         New module 'unicase/base'.
50623         * modules/unicase/base: New file.
50624         * lib/unicase.h: New file.
50625
50626 2009-02-08  Bruno Haible  <bruno@clisp.org>
50627
50628         New module 'uniwbrk/ulc-wordbreaks'.
50629         * modules/uniwbrk/ulc-wordbreaks: New file.
50630         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50631
50632         New module 'uniwbrk/u32-wordbreaks'.
50633         * modules/uniwbrk/u32-wordbreaks: New file.
50634         * lib/uniwbrk/u32-wordbreaks.c: New file.
50635
50636         New module 'uniwbrk/u16-wordbreaks'.
50637         * modules/uniwbrk/u16-wordbreaks: New file.
50638         * lib/uniwbrk/u16-wordbreaks.c: New file.
50639
50640         New module 'uniwbrk/u8-wordbreaks'.
50641         * modules/uniwbrk/u8-wordbreaks: New file.
50642         * lib/uniwbrk/u8-wordbreaks.c: New file.
50643         * lib/uniwbrk/u-wordbreaks.h: New file.
50644
50645         New module 'uniwbrk/table'.
50646         * modules/uniwbrk/table: New file.
50647         * lib/uniwbrk/wbrktable.h: New file.
50648         * lib/uniwbrk/wbrktable.c: New file.
50649
50650         New module 'uniwbrk/wordbreak-property'.
50651         * modules/uniwbrk/wordbreak-property: New file.
50652         * lib/uniwbrk/wordbreak-property.c: New file.
50653
50654         * lib/gen-uni-tables.c (WBP_*): New enum items.
50655         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50656         (unicode_org_wbp): New variable.
50657         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50658         New functions.
50659         (wbp_table): New structure.
50660         (output_wbp, output_wbrk_tables): New functions.
50661         (main): Accept additional argument. Invoke fill_org_wbp,
50662         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50663         output_wbrk_tables.
50664         * modules/gen-uni-tables (Description): Update.
50665         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50666         gen-uni-tables.
50667
50668         New module 'uniwbrk/base'.
50669         * modules/uniwbrk/base: New file.
50670         * lib/uniwbrk.h: New file.
50671
50672 2009-02-08  Bruno Haible  <bruno@clisp.org>
50673
50674         Update to Unicode 5.1.0.
50675         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50676         U+2185..U+2188.
50677         (is_property_default_ignorable_code_point): Don't include characters
50678         of category Cc or Cs and not-a-characters.
50679         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50680         U+0D79, U+109E, U+109F, U+A60C.
50681         * lib/unictype/bidi_of.h: Regenerated.
50682         * lib/unictype/blocks.h: Regenerated.
50683         * lib/unictype/categ_C.h: Regenerated.
50684         * lib/unictype/categ_Cf.h: Regenerated.
50685         * lib/unictype/categ_Cn.h: Regenerated.
50686         * lib/unictype/categ_L.h: Regenerated.
50687         * lib/unictype/categ_Ll.h: Regenerated.
50688         * lib/unictype/categ_Lm.h: Regenerated.
50689         * lib/unictype/categ_Lo.h: Regenerated.
50690         * lib/unictype/categ_Lu.h: Regenerated.
50691         * lib/unictype/categ_M.h: Regenerated.
50692         * lib/unictype/categ_Mc.h: Regenerated.
50693         * lib/unictype/categ_Me.h: Regenerated.
50694         * lib/unictype/categ_Mn.h: Regenerated.
50695         * lib/unictype/categ_N.h: Regenerated.
50696         * lib/unictype/categ_Nd.h: Regenerated.
50697         * lib/unictype/categ_Nl.h: Regenerated.
50698         * lib/unictype/categ_No.h: Regenerated.
50699         * lib/unictype/categ_P.h: Regenerated.
50700         * lib/unictype/categ_Pd.h: Regenerated.
50701         * lib/unictype/categ_Pe.h: Regenerated.
50702         * lib/unictype/categ_Pf.h: Regenerated.
50703         * lib/unictype/categ_Pi.h: Regenerated.
50704         * lib/unictype/categ_Po.h: Regenerated.
50705         * lib/unictype/categ_Ps.h: Regenerated.
50706         * lib/unictype/categ_S.h: Regenerated.
50707         * lib/unictype/categ_Sk.h: Regenerated.
50708         * lib/unictype/categ_Sm.h: Regenerated.
50709         * lib/unictype/categ_So.h: Regenerated.
50710         * lib/unictype/categ_of.h: Regenerated.
50711         * lib/unictype/combining.h: Regenerated.
50712         * lib/unictype/ctype_alnum.h: Regenerated.
50713         * lib/unictype/ctype_alpha.h: Regenerated.
50714         * lib/unictype/ctype_graph.h: Regenerated.
50715         * lib/unictype/ctype_lower.h: Regenerated.
50716         * lib/unictype/ctype_print.h: Regenerated.
50717         * lib/unictype/ctype_punct.h: Regenerated.
50718         * lib/unictype/ctype_upper.h: Regenerated.
50719         * lib/unictype/decdigit.h: Regenerated.
50720         * lib/unictype/digit.h: Regenerated.
50721         * lib/unictype/mirror.h: Regenerated.
50722         * lib/unictype/numeric.h: Regenerated.
50723         * lib/unictype/pr_alphabetic.h: Regenerated.
50724         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50725         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50726         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50727         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50728         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50729         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50730         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50731         * lib/unictype/pr_combining.h: Regenerated.
50732         * lib/unictype/pr_dash.h: Regenerated.
50733         * lib/unictype/pr_decimal_digit.h: Regenerated.
50734         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50735         * lib/unictype/pr_deprecated.h: Regenerated.
50736         * lib/unictype/pr_diacritic.h: Regenerated.
50737         * lib/unictype/pr_extender.h: Regenerated.
50738         * lib/unictype/pr_format_control.h: Regenerated.
50739         * lib/unictype/pr_grapheme_base.h: Regenerated.
50740         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50741         * lib/unictype/pr_grapheme_link.h: Regenerated.
50742         * lib/unictype/pr_id_continue.h: Regenerated.
50743         * lib/unictype/pr_id_start.h: Regenerated.
50744         * lib/unictype/pr_ideographic.h: Regenerated.
50745         * lib/unictype/pr_ignorable_control.h: Regenerated.
50746         * lib/unictype/pr_lowercase.h: Regenerated.
50747         * lib/unictype/pr_math.h: Regenerated.
50748         * lib/unictype/pr_numeric.h: Regenerated.
50749         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50750         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50751         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50752         * lib/unictype/pr_other_id_continue.h: Regenerated.
50753         * lib/unictype/pr_other_lowercase.h: Regenerated.
50754         * lib/unictype/pr_other_math.h: Regenerated.
50755         * lib/unictype/pr_punctuation.h: Regenerated.
50756         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50757         * lib/unictype/pr_soft_dotted.h: Regenerated.
50758         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50759         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50760         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50761         * lib/unictype/pr_uppercase.h: Regenerated.
50762         * lib/unictype/pr_xid_continue.h: Regenerated.
50763         * lib/unictype/pr_xid_start.h: Regenerated.
50764         * lib/unictype/pr_zero_width.h: Regenerated.
50765         * lib/unictype/scripts.h: Regenerated.
50766         * lib/unictype/scripts_byname.gperf: Regenerated.
50767         * lib/unictype/sy_java_ident.h: Regenerated.
50768         * lib/unilbrk/lbrkprop1.h: Regenerated.
50769         * lib/unilbrk/lbrkprop2.h: Regenerated.
50770         * tests/unictype/test-categ_C.c: Regenerated.
50771         * tests/unictype/test-categ_Cf.c: Regenerated.
50772         * tests/unictype/test-categ_Cn.c: Regenerated.
50773         * tests/unictype/test-categ_L.c: Regenerated.
50774         * tests/unictype/test-categ_Ll.c: Regenerated.
50775         * tests/unictype/test-categ_Lm.c: Regenerated.
50776         * tests/unictype/test-categ_Lo.c: Regenerated.
50777         * tests/unictype/test-categ_Lu.c: Regenerated.
50778         * tests/unictype/test-categ_M.c: Regenerated.
50779         * tests/unictype/test-categ_Mc.c: Regenerated.
50780         * tests/unictype/test-categ_Me.c: Regenerated.
50781         * tests/unictype/test-categ_Mn.c: Regenerated.
50782         * tests/unictype/test-categ_N.c: Regenerated.
50783         * tests/unictype/test-categ_Nd.c: Regenerated.
50784         * tests/unictype/test-categ_Nl.c: Regenerated.
50785         * tests/unictype/test-categ_No.c: Regenerated.
50786         * tests/unictype/test-categ_P.c: Regenerated.
50787         * tests/unictype/test-categ_Pd.c: Regenerated.
50788         * tests/unictype/test-categ_Pe.c: Regenerated.
50789         * tests/unictype/test-categ_Pf.c: Regenerated.
50790         * tests/unictype/test-categ_Pi.c: Regenerated.
50791         * tests/unictype/test-categ_Po.c: Regenerated.
50792         * tests/unictype/test-categ_Ps.c: Regenerated.
50793         * tests/unictype/test-categ_S.c: Regenerated.
50794         * tests/unictype/test-categ_Sk.c: Regenerated.
50795         * tests/unictype/test-categ_Sm.c: Regenerated.
50796         * tests/unictype/test-categ_So.c: Regenerated.
50797         * tests/unictype/test-ctype_alnum.c: Regenerated.
50798         * tests/unictype/test-ctype_alpha.c: Regenerated.
50799         * tests/unictype/test-ctype_graph.c: Regenerated.
50800         * tests/unictype/test-ctype_lower.c: Regenerated.
50801         * tests/unictype/test-ctype_print.c: Regenerated.
50802         * tests/unictype/test-ctype_punct.c: Regenerated.
50803         * tests/unictype/test-ctype_upper.c: Regenerated.
50804         * tests/unictype/test-decdigit.h: Regenerated.
50805         * tests/unictype/test-digit.h: Regenerated.
50806         * tests/unictype/test-numeric.h: Regenerated.
50807         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50808         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50809         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50810         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50811         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50812         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50813         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50814         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50815         * tests/unictype/test-pr_combining.c: Regenerated.
50816         * tests/unictype/test-pr_dash.c: Regenerated.
50817         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50818         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50819         * tests/unictype/test-pr_deprecated.c: Regenerated.
50820         * tests/unictype/test-pr_diacritic.c: Regenerated.
50821         * tests/unictype/test-pr_extender.c: Regenerated.
50822         * tests/unictype/test-pr_format_control.c: Regenerated.
50823         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50824         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50825         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50826         * tests/unictype/test-pr_id_continue.c: Regenerated.
50827         * tests/unictype/test-pr_id_start.c: Regenerated.
50828         * tests/unictype/test-pr_ideographic.c: Regenerated.
50829         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50830         * tests/unictype/test-pr_lowercase.c: Regenerated.
50831         * tests/unictype/test-pr_math.c: Regenerated.
50832         * tests/unictype/test-pr_numeric.c: Regenerated.
50833         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50834         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50835         Regenerated.
50836         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50837         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50838         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50839         * tests/unictype/test-pr_other_math.c: Regenerated.
50840         * tests/unictype/test-pr_punctuation.c: Regenerated.
50841         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50842         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50843         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50844         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50845         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50846         * tests/unictype/test-pr_uppercase.c: Regenerated.
50847         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50848         * tests/unictype/test-pr_xid_start.c: Regenerated.
50849         * tests/unictype/test-pr_zero_width.c: Regenerated.
50850
50851         Update to Unicode 5.1.0.
50852         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50853         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50854         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50855         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50856         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50857         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50858         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50859         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50860         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50861         (nonspacing_table_ind): Update.
50862         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50863
50864         Update to Unicode 5.1.0.
50865         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50866         code transform.
50867         * lib/uniname/uniname.c (unicode_character_name,
50868         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50869         * lib/uniname/uninames.h: Regenerated.
50870         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50871
50872 2009-02-07  Bruno Haible  <bruno@clisp.org>
50873
50874         Merge gen-ctype and gen-lbrk into a single program.
50875         * lib/gen-uni-tables.c: New file, incorporating
50876         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50877         Add directory prefixes to the names of the generated files.
50878         * lib/unictype/gen-ctype.c: Remove file.
50879         * lib/unilbrk/gen-lbrk.c: Remove file.
50880         * modules/gen-uni-tables: New file.
50881         * modules/unictype/gen-ctype: Remove file.
50882         * modules/unilbrk/gen-lbrk: Remove file.
50883
50884 2009-02-07  Bruno Haible  <bruno@clisp.org>
50885
50886         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50887
50888         New module 'unistr/u32-strcoll'.
50889         * modules/unistr/u32-strcoll: New file.
50890         * lib/unistr/u32-strcoll.c: New file.
50891
50892         New module 'unistr/u16-strcoll'.
50893         * modules/unistr/u16-strcoll: New file.
50894         * lib/unistr/u16-strcoll.c: New file.
50895
50896         New module 'unistr/u8-strcoll'.
50897         * modules/unistr/u8-strcoll: New file.
50898         * lib/unistr/u8-strcoll.c: New file.
50899         * lib/unistr/u-strcoll.h: New file.
50900
50901 2009-02-07  Bruno Haible  <bruno@clisp.org>
50902
50903         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50904         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50905         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50906         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50907         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50908         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50909
50910 2009-02-07  Bruno Haible  <bruno@clisp.org>
50911
50912         Make 64-bit clean.
50913         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50914         output_combclass, output_bidi_category, output_decimal_digit,
50915         output_digit, output_numeric, output_mirror, output_scripts,
50916         output_ident_category): Use proper width specifier in format strings.
50917
50918 2009-02-07  Bruno Haible  <bruno@clisp.org>
50919
50920         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50921         failure behaviour.
50922
50923 2009-02-07  Jim Meyering  <meyering@redhat.com>
50924
50925         regex: avoid compilation failure with upcoming gcc-4.4
50926         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50927         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50928         "... error: integer overflow in preprocessor expression".
50929
50930 2009-02-05  Ben Pfaff  <blp@gnu.org>
50931
50932         Fix link errors on Windows when close module is used.
50933         * modules/close: Add $(LIB_CLOSE) to Link section.
50934         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50935         $(LIB_CLOSE) on Windows.
50936
50937 2009-02-05  Jim Meyering  <meyering@redhat.com>
50938
50939         still avoid unused-parameter warnings, but do it cleanly
50940         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50941         (get_fs_usage): Cast to void instead.
50942         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50943         (dev_from_mount_options, read_file_system_list): Cast to void.
50944         Prompted by Bruno Haible.
50945
50946 2009-02-04  Jim Meyering  <meyering@redhat.com>
50947
50948         fsusage.c: correct copyright year
50949         * lib/fsusage.c: Reflect year in which the change is pushed into
50950
50951         avoid misc. warnings
50952         * lib/fsusage.c (UNUSED_PARAM): Define.
50953         (get_fs_usage): Mark parameter "disk" as unused.
50954         * lib/getugroups.c (getgrent): Use "void" in prototype.
50955         * lib/mountlist.c: Mark unused parameters.
50956         (read_file_system_list): Declare a local with "const".
50957         * lib/nanosleep.c (getnow): Declare static.
50958         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50959
50960         dirfd: set errno upon failure
50961         * lib/dirfd.c: Include <errno.h>.
50962         Set errno to ENOTSUP when returning -1.
50963         * modules/dirfd (Depends-on): Add errno.
50964         Suggested by John Kodis <kodis@comcast.net>.
50965
50966 2009-02-01  Bruno Haible  <bruno@clisp.org>
50967
50968         Don't assume sizeof (long) >= sizeof (void *).
50969         * lib/memcmp.c: Include stdint.h.
50970         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50971         srcp2 to 'const byte *'.
50972         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50973         types to uintptr_t.
50974         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50975         * modules/memcmp (Depends-on): Add stdint.
50976         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50977
50978 2009-01-30  Eric Blake  <ebb9@byu.net>
50979
50980         fix more require-before-expand issues
50981         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50982         expand, AC_PROG_AWK.
50983         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50984
50985 2009-01-28  Eric Blake  <ebb9@byu.net>
50986
50987         version-etc: use consistent URL formatting
50988         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50989         Improve formatting.  Use fputs for string without %.
50990
50991 2009-01-28  Jim Meyering  <meyering@redhat.com>
50992
50993         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50994         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50995         "underquoted definition of NAME" from autoconf-2.59.
50996
50997 2009-01-28  Bruno Haible  <bruno@clisp.org>
50998
50999         * doc/gnulib.texi: Add "Obsolete modules" to index.
51000
51001 2009-01-28  Jim Meyering  <meyering@redhat.com>
51002
51003         useless-if-before-free: recognize more variants
51004         * build-aux/useless-if-before-free: Also recognize e.g.,
51005         if (NULL != p) free (p);
51006
51007 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51008
51009         test-getaddrinfo: skip (don't fail) this test when there's no network
51010         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51011         on the presumption that it means you lack network access.
51012
51013 2009-01-26  Jim Meyering  <meyering@redhat.com>
51014
51015         fflush: avoid warnings on modern systems
51016         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51017         pos and result, into scopes where they're used.
51018
51019 2009-01-26  Eric Blake  <ebb9@byu.net>
51020
51021         Silence warning reintroduced by recent extensions patch.
51022         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51023         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51024         autoconf.
51025
51026         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51027         * m4/00gnulib.m4: New file.
51028         * gnulib-tool (func_get_filelist): Always use it.
51029         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51030         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51031
51032 2009-01-25  Bruno Haible  <bruno@clisp.org>
51033
51034         Make test-quotearg work on MacOS X and AIX.
51035         * tests/test-quotearg.sh: New file.
51036         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51037         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51038         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51039         include <libintl.h>.
51040         (fake_locale): Remove variable.
51041         (gettext, dgettext, dcgettext): Remove functions.
51042         (main): Instead of setting a fake locale, set a real locale. Call
51043         textdomain and bindtextdomain.
51044         * modules/quotearg-tests (Files): Add the new files.
51045         (Depends-on): Add gettext, setenv, unsetenv.
51046         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51047         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51048         Augment TESTS_ENVIRONMENT.
51049
51050 2009-01-25  Bruno Haible  <bruno@clisp.org>
51051
51052         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51053         fr_FR.ISO8859-1 locale on MacOS X.
51054         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51055         ja_JP.eucJP locale on MacOS X.
51056         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51057         zh_CN.GB18030 locale on MacOS X.
51058
51059 2009-01-25  Bruno Haible  <bruno@clisp.org>
51060
51061         Avoid link errors on MacOS X 10.3.
51062         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51063         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51064
51065 2009-01-25  Bruno Haible  <bruno@clisp.org>
51066
51067         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51068         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51069         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51070         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51071         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51072         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51073         posix_spawnattr_init, posix_spawnattr_setsigmask,
51074         posix_spawnattr_setflags, posix_spawnattr_destroy.
51075
51076         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51077         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51078         * modules/execute (Files): Remove m4/posix_spawn.m4.
51079         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51080         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51081         posix_spawnattr_init, posix_spawnattr_setsigmask,
51082         posix_spawnattr_setflags, posix_spawnattr_destroy.
51083
51084 2009-01-25  Bruno Haible  <bruno@clisp.org>
51085
51086         * lib/glthread/threadlib.c: Include <stdlib.h>.
51087
51088 2009-01-25  Bruno Haible  <bruno@clisp.org>
51089
51090         * lib/glthread/threadlib.c (dummy): New declaration.
51091
51092 2009-01-25  Bruno Haible  <bruno@clisp.org>
51093
51094         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51095         multibyte characters also for the GB18030 encoding. Don't crash when
51096         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51097
51098 2009-01-25  Bruno Haible  <bruno@clisp.org>
51099
51100         Avoid redefining 'struct random_data' on OSF/1 5.1.
51101         * lib/stdlib.in.h: Include <random.h> if it exists.
51102         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51103         HAVE_RANDOM_H. Include <random.h> when testing whether
51104         'struct random_data' exists.
51105         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51106
51107 2009-01-25  Bruno Haible  <bruno@clisp.org>
51108
51109         Don't install charset.alias on MacOS X >= 10.3.
51110         * lib/localcharset.c (DARWIN7): New macro.
51111         (get_charset_aliases): Hardcode the result for Darwin7.
51112         * modules/localcharset (install-exec-local): Don't install
51113         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51114
51115 2009-01-25  Bruno Haible  <bruno@clisp.org>
51116
51117         Don't install charset.alias on mingw and Cygwin.
51118         * modules/localcharset (install-exec-local): Don't install
51119         charset.alias on mingw and Cygwin, if the file does not yet exist.
51120         The result for these platforms is hardcoded in localcharset.c.
51121
51122 2009-01-25  Bruno Haible  <bruno@clisp.org>
51123
51124         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51126         before requiring AC_USE_SYSTEM_EXTENSIONS.
51127
51128 2009-01-25  Jim Meyering  <meyering@redhat.com>
51129
51130         c-strtod: avoid warnings
51131         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51132         "assignment discards qualifiers from pointer target type" warnings.
51133
51134 2009-01-24  Bruno Haible  <bruno@clisp.org>
51135
51136         Add support for non-UTF-8 locales on MacOS X.
51137         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51138         canonical encodings. For Darwin 7 and newer, don't map traditional
51139         encodings to UTF-8.
51140         Reported by Vincent Lefevre <vincent@vinc17.org>
51141         at <http://savannah.gnu.org/bugs/?25235>.
51142
51143 2009-01-24  Bruno Haible  <bruno@clisp.org>
51144
51145         * doc/gnulib.texi (Obsolete modules): New section.
51146         Reported by Mike Frysinger <vapier@gentoo.org>.
51147
51148 2009-01-24  Bruno Haible  <bruno@clisp.org>
51149
51150         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51151         (%.dvi): New rule.
51152
51153 2009-01-24  Bruno Haible  <bruno@clisp.org>
51154
51155         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51156         Reported by Eric Blake.
51157
51158 2009-01-24  Bruno Haible  <bruno@clisp.org>
51159
51160         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51161         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51162         Reported by Gary V. Vaughan <gary@gnu.org>.
51163
51164 2009-01-24  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51167
51168 2009-01-23  Bruno Haible  <bruno@clisp.org>
51169
51170         Make c-strtod, c-strtold usable in libraries.
51171         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51172         (C_STRTOD): Call strdup instead of xstrdup.
51173         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51174         * modules/c-strtold (Depends-on): Likewise.
51175         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51176         * NEWS: Mention the change.
51177         Reported by Michael Gold <mgold@ncf.ca>.
51178
51179 2009-01-23  Jim Meyering  <meyering@redhat.com>
51180
51181         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51182         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51183         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51184
51185 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51186
51187         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51188         GNU CoreUtils.
51189         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51190         * modules/version-etc (Description): Update.
51191
51192 2009-01-22  Bruno Haible  <bruno@clisp.org>
51193
51194         Cache the C locale object.
51195         * lib/c-strtod.c (c_locale_cache): New variable.
51196         (c_locale): New function.
51197         (C_STRTOD): Use it, and don't call freelocale.
51198         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51199         Suggested by Paolo Bonzini.
51200
51201 2009-01-21  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51204         conditions other than overflow.
51205
51206 2009-01-21  Bruno Haible  <bruno@clisp.org>
51207
51208         * lib/c-strtod.c: Include errno.h.
51209         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51210         value from STRTOD_L and STRTOD.
51211
51212 2009-01-21  Bruno Haible  <bruno@clisp.org>
51213         and Jim Meyering  <meyering@redhat.com>
51214
51215         nanosleep: skip configure test (fail it) for apple universal builds
51216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51217         universal builds, assume that nanosleep does not work.
51218         * modules/nanosleep (Depends-on): Add multiarch.
51219
51220         mktime: skip configure test (fail it) for apple universal builds
51221         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51222         universal builds, assume that mktime does not work.
51223         * modules/mktime (Depends-on): Add multiarch.
51224
51225 2009-01-21  Eric Blake  <ebb9@byu.net>
51226
51227         multiarch: avoid expand-before-require warning
51228         * modules/multiarch (configure.ac): Require, rather than expand,
51229         gl_MULTIARCH.
51230         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51231         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51232         enforce that all clients require it.  Partial reversion of
51233         2008-12-29 patch.
51234
51235         error: avoid expand-before-require warning
51236         * modules/errno (configure.ac): Require, rather than expand,
51237         gl_HEADER_ERRNO_H.
51238         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51239         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51240         enforce that all clients require it.
51241
51242         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51243         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51244         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51245         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51246
51247 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51248
51249         Revert:
51250         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51251
51252         regex: do not depend on obsolete modules.
51253         * modules/regex: Remove memcmp and memmove.
51254
51255 2009-01-20  Bruno Haible  <bruno@clisp.org>
51256
51257         Make the 'link' module link on Windows NT 4.
51258         * lib/link.c (_WIN32_WINNT): Don't define.
51259         (CreateHardLinkFuncType): New type.
51260         (CreateHardLinkFunc, initialized): New variables.
51261         (initialize): New function.
51262         (link): Invoke CreateHardLink indirectly through the function pointer.
51263
51264 2009-01-20  Bruno Haible  <bruno@clisp.org>
51265
51266         Fix compilation failure on mingw.
51267         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51268
51269 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51270
51271         * doc/c-strtod.texi: Mention a couple of restrictions.
51272
51273 2009-01-20  Jim Meyering  <meyering@redhat.com>
51274
51275         gettimeofday: move more declarations out of functions
51276         * lib/gettimeofday.c: Move extern declarations of tzset and
51277         gmtime out of containing functions.  Prompted by Bruno Haible.
51278
51279 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51280
51281         regex: do not depend on obsolete modules.
51282         * modules/regex: Remove memcmp and memmove.
51283
51284 2009-01-19  Bruno Haible  <bruno@clisp.org>
51285
51286         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51287         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51288         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51289         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51290         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51291
51292 2009-01-19  Bruno Haible  <bruno@clisp.org>
51293
51294         * tests/test-link.c: Include <errno.h>.
51295         (main): Exit with code 77 when a hard link cannot be created due to
51296         the file system.
51297         * tests/test-link.sh: Skip test when a hard link cannot be created due
51298         to the file system.
51299         Suggested by Eric Blake.
51300
51301 2009-01-19  Martin Lambers  <marlam@marlam.de>
51302
51303         * modules/link-tests: New file.
51304         * tests/test-link.sh: New file.
51305         * tests/test-link.c: New file.
51306
51307 2009-01-19  Eric Blake  <ebb9@byu.net>
51308
51309         doc: mention another function added in cygwin 1.7.0
51310         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51311         Another new function in cygwin 1.7.
51312
51313 2009-01-19  Bruno Haible  <bruno@clisp.org>
51314
51315         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51316         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51317         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51318         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51319         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51320         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51321         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51322         * m4/md4.m4 (gl_MD4): Likewise.
51323         * m4/md5.m4 (gl_MD5): Likewise.
51324         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51325         * m4/sha1.m4 (gl_SHA1): Likewise.
51326         * m4/sha256.m4 (gl_SHA256): Likewise.
51327         * m4/sha512.m4 (gl_SHA512): Likewise.
51328
51329 2009-01-19  Bruno Haible  <bruno@clisp.org>
51330
51331         * modules/uniname/uniname-tests (Depends-on): Add progname.
51332         * tests/uniname/test-uninames.c: Include progname.h.
51333         (main): Call set_program_name.
51334
51335         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51336         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51337         (main): Call set_program_name.
51338
51339         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51340         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51341         (main): Call set_program_name.
51342
51343         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51344         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51345         (main): Call set_program_name.
51346
51347         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51348         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51349         (main): Call set_program_name.
51350
51351         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51352         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51353         (main): Call set_program_name.
51354
51355         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51356         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51357         (main): Call set_program_name.
51358
51359         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51360         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51361         (main): Call set_program_name.
51362
51363         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51364         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51365         (main): Call set_program_name.
51366
51367 2009-01-19  Eric Blake  <ebb9@byu.net>
51368
51369         test-unistd: test previous patch
51370         * tests/test-unistd.c: Test *_FILENO macros.
51371
51372         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51373         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51374         Guarantee a definition.
51375         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51376         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51377         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51378         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51379         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51380         Likewise.
51381         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51382         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51383         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51384         Likewise.
51385         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51386         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51387         (STDERR_FILENO): Likewise.
51388         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51389         (STDERR_FILENO): Likewise.
51390         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51391         (STDERR_FILENO): Likewise.
51392         Reported by Elbert Pol.
51393
51394 2009-01-19  Eric Blake  <ebb9@byu.net>
51395
51396         doc: mention more functions added in cygwin 1.7.0
51397         * doc/posix-functions/abort.texi (abort): Update wording related
51398         to cygwin.
51399         * doc/posix-functions/daylight.texi (daylight): Likewise.
51400         * doc/posix-functions/optarg.texi (optarg): Likewise.
51401         * doc/posix-functions/optarg.texi (opterr): Likewise.
51402         * doc/posix-functions/optarg.texi (optind): Likewise.
51403         * doc/posix-functions/optarg.texi (optopt): Likewise.
51404         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51405         worked in 1.5.x, and was withdrawn in 1.7.
51406         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51407         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51408         cygwin versions.
51409         * doc/posix-functions/perror.texi (perror): Likewise.
51410         * doc/posix-functions/printf.texi (printf): Likewise.
51411         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51412         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51413         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51414         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51415         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51416         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51417         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51418         Likewise.
51419         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51420         Likewise.
51421         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51422         this function.
51423         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51424         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51425         Likewise.
51426         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51427         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51428         * doc/posix-functions/confstr.texi (confstr): Likewise.
51429         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51430         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51431         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51432         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51433         * doc/posix-functions/fputws.texi (fputws): Likewise.
51434         * doc/posix-functions/fwide.texi (fwide): Likewise.
51435         * doc/posix-functions/getwc.texi (getwc): Likewise.
51436         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51437         * doc/posix-functions/putwc.texi (putwc): Likewise.
51438         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51439         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51440         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51441         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51442         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51443         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51444         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51445         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51446         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51447         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51448         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51449
51450 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51451
51452         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51453         * lib/ioctl.c: Include <sys/ioctl.h>.
51454
51455 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51456
51457         * modules/getdate-tests (Depends-on): Add progname.
51458         * tests/test-getdate.c: Use progname module, to avoid link errors
51459         on non-glibc systems.
51460
51461 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51462
51463         * modules/filenamecat-tests (Depends-on): Add progname.
51464         * modules/fstrcmp-tests (Depends-on): Likewise.
51465
51466         * tests/test-filenamecat.c: Use progname module, to avoid link
51467         errors on non-glibc systems.
51468         * tests/test-fstrcmp.c: Likewise.
51469
51470 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51471
51472         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51473         * lib/gettimeofday.c: Move extern declaration out of function.
51474
51475 2009-01-18  Bruno Haible  <bruno@clisp.org>
51476
51477         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51478         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51479         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51480
51481 2009-01-18  Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/strftime.c (MEMPCPY): Remove unused macro.
51484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51485
51486 2009-01-18  Martin Lambers  <marlam@marlam.de>
51487
51488         New module 'link'.
51489         * lib/unistd.in.h (link): New declaration.
51490         * lib/link.c: New file.
51491         * m4/link.m4: New file.
51492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51493         HAVE_LINK.
51494         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51495         * modules/link: New file.
51496         * doc/posix-functions/link.texi: Mention the new module.
51497
51498 2009-01-18  Bruno Haible  <bruno@clisp.org>
51499
51500         * tests/test-avltree_list.c (main): Call set_program_name.
51501         * tests/test-avltree_oset.c (main): Likewise.
51502         * tests/test-obstack-printf.c: Include progname.h.
51503         (main): Call set_program_name.
51504         * tests/test-quotearg.c: Include progname.h.
51505         (main): Call set_program_name.
51506         * tests/test-xmemdup0.c: Include progname.h.
51507         (main): Call set_program_name.
51508
51509 2009-01-18  Bruno Haible  <bruno@clisp.org>
51510
51511         New module 'alphasort'.
51512         * lib/dirent.in.h (alphasort): New declaration.
51513         * lib/alphasort.c: New file, from glibc with modifications.
51514         * m4/alphasort.m4: New file.
51515         * modules/alphasort: New file.
51516         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51517         HAVE_ALPHASORT.
51518         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51519         HAVE_ALPHASORT.
51520         * doc/posix-functions/alphasort.texi: Mention the new module and the
51521         portability problems.
51522
51523 2009-01-18  Bruno Haible  <bruno@clisp.org>
51524
51525         New module 'scandir'.
51526         * lib/dirent.in.h (scandir): New declaration.
51527         * lib/scandir.c: New file, from glibc with modifications.
51528         * m4/scandir.m4: New file.
51529         * modules/scandir: New file.
51530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51531         HAVE_SCANDIR.
51532         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51533         HAVE_SCANDIR.
51534         * doc/posix-functions/scandir.texi: Mention the new module and the
51535         portability problems.
51536
51537 2009-01-17  Bruno Haible  <bruno@clisp.org>
51538
51539         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51540         Update documentation.
51541         (func_remove_suffix): Escape all dots in the suffix. Update
51542         documentation.
51543         (func_filter_filelist): Update documentation.
51544         Reported by Ralf Wildenhues.
51545
51546 2009-01-17  Bruno Haible  <bruno@clisp.org>
51547
51548         * modules/dprintf-posix-tests: New file.
51549         * tests/test-dprintf-posix.sh: New file.
51550         * tests/test-dprintf-posix.c: New file.
51551
51552         New modules 'dprintf', 'dprintf-posix'.
51553         * lib/stdio.in.h (dprintf): New declaration.
51554         * lib/dprintf.c: New file.
51555         * m4/dprintf.m4: New file.
51556         * m4/dprintf-posix.m4: New file.
51557         * modules/dprintf: New file.
51558         * modules/dprintf-posix: New file.
51559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51560         HAVE_DPRINTF, REPLACE_DPRINTF.
51561         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51562         HAVE_DPRINTF, REPLACE_DPRINTF.
51563         * doc/posix-functions/dprintf.texi: Mention the new modules.
51564
51565 2009-01-17  Bruno Haible  <bruno@clisp.org>
51566
51567         * modules/vdprintf-posix-tests: New file.
51568         * tests/test-vdprintf-posix.sh: New file.
51569         * tests/test-vdprintf-posix.c: New file.
51570
51571         New modules 'vdprintf', 'vdprintf-posix'.
51572         * lib/stdio.in.h (vdprintf): New declaration.
51573         * lib/vdprintf.c: New file.
51574         * m4/vdprintf.m4: New file.
51575         * m4/vdprintf-posix.m4: New file.
51576         * modules/vdprintf: New file.
51577         * modules/vdprintf-posix: New file.
51578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51579         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51580         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51581         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51582         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51583
51584 2009-01-17  Bruno Haible  <bruno@clisp.org>
51585
51586         Fix replacement of fopen on mingw.
51587         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51588         mingw.
51589
51590 2009-01-17  Bruno Haible  <bruno@clisp.org>
51591
51592         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51593         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51594
51595 2009-01-17  Bruno Haible  <bruno@clisp.org>
51596
51597         Avoid test-fflush2.sh failure on mingw.
51598         * tests/test-fflush2.c: Include binary-io.h.
51599         (main): Put standard input into binary mode.
51600         * modules/fflush-tests (Depends-on): Add binary-io.
51601
51602 2009-01-17  Bruno Haible  <bruno@clisp.org>
51603
51604         * lib/wchar.in.h: In another particular situation, include only the
51605         system's <wchar.h> file.
51606         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51607         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51608         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51609
51610 2009-01-17  Bruno Haible  <bruno@clisp.org>
51611
51612         Support for stripping executables in --enable-relocatable.
51613         * build-aux/install-reloc: Expect one more argument, or an environment
51614         variable RELOC_STRIP_PROG. If set, strip the destination program and
51615         its wrapper.
51616         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51617         RELOC_STRIP_PROG.
51618         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51619         to set RELOCATABLE_STRIP.
51620         * NEWS: Mention the new Makefile requirement.
51621
51622 2009-01-17  Bruno Haible  <bruno@clisp.org>
51623
51624         * build-aux/install-reloc: Remove debugging information left over by
51625         C compiler on MacOS X.
51626
51627 2009-01-17  Bruno Haible  <bruno@clisp.org>
51628
51629         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51630         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51631         _NSGetExecutablePath.
51632
51633 2009-01-16  Jim Meyering  <meyering@redhat.com>
51634
51635         strerror: avoid warnings about discarding "const"
51636         * lib/strerror.c (rpl_strerror): Instead of returning a const
51637         string from each and every "case", use a variable, and add a single
51638         cast after the switch.
51639
51640 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51641
51642         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51643
51644 2009-01-16  Bruno Haible  <bruno@clisp.org>
51645
51646         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51647         array initializer syntax that also works in C++ mode.
51648         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51649
51650 2009-01-16  Jim Meyering  <meyering@redhat.com>
51651
51652         poll: suppress a warning
51653         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51654         to ignore "...unsigned expression < 0 is always false" warnings.
51655
51656 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51657
51658         poll: remove declarations of unused variables
51659         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51660         sockbuf and optlen.
51661
51662 2009-01-15  Bruno Haible  <bruno@clisp.org>
51663
51664         Make fflush-after-ungetc POSIX compliant on BSD systems.
51665         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51666         (clear_ungetc_buffer): Implement also for other systems.
51667         (rpl_fflush): On glibc systems, invoke
51668         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51669         clear_ungetc_buffer after fetching the stream's position, not before.
51670
51671 2009-01-15  Bruno Haible  <bruno@clisp.org>
51672
51673         Make fflush-after-ungetc POSIX compliant on glibc systems.
51674         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51675         after ungetc.
51676         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51677         (rpl_fflush): On glibc systems, simply call the system's fflush
51678         function after clearing the ungetc buffer.
51679         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51680         Instead, lseek only to the end of file, then use the system's fseeko
51681         for the rest. On glibc systems, reset the EOF indicator bit.
51682
51683 2009-01-15  Jim Meyering  <meyering@redhat.com>
51684
51685         openmp.m4: revert quote-adding change, for portability to older autoconf
51686         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51687         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51688         Simon Josefsson noticed the problem when using autoconf-2.61.
51689
51690 2009-01-15  Bruno Haible  <bruno@clisp.org>
51691
51692         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51693         * tests/test-fflush2.c (ASSERT): Always fail.
51694         (main): Add two tests for fflush() after ungetc(), taking into account
51695         the Austin Group's clarification.
51696         Suggested by Eric Blake.
51697
51698 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51699
51700         mktime.m4: remove K&R-style function prototypes
51701         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51702         for the Sun C++ compiler.
51703
51704 2009-01-14  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51707         while including <wchar.h>.
51708         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51709         the system's <wchar.h> file.
51710         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51711
51712 2009-01-14  Bruno Haible  <bruno@clisp.org>
51713
51714         * m4/csharp.m4: Don't mention gettext on the serial number line.
51715         * m4/csharpexec.m4: Likewise.
51716         * m4/eaccess.m4: Likewise.
51717         * m4/javaexec.m4: Likewise.
51718         * m4/sig_atomic_t.m4: Likewise.
51719         * m4/tmpdir.m4: Likewise.
51720         * m4/intldir.m4: Bump gettext version.
51721         * m4/lib-ld.m4: Likewise.
51722
51723 2009-01-14  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/progname.c (set_program_name): Add more comments.
51726         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51727
51728 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51729
51730         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51731         were sys/stat.h does not define it.
51732
51733 2009-01-14  Jim Meyering  <meyering@redhat.com>
51734
51735         many *.m4 files: improve m4 quoting
51736         99% of this change was performed by running the following commands:
51737         git ls-files | grep '\.m4$' | xargs perl -pi \
51738           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51739           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51740           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51741           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51742         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51743         The remainder were to add Copyright dates, increment serial numbers,
51744         undo some changes in comments, exclude m4/intl.m4, and add quotes
51745         around the "1" in ",1" where the unusual spacing prohibited the
51746         above regexps from doing the job.  For more details, see
51747         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51748         * m4/acl.m4: Modified.
51749         * m4/afs.m4: Likewise.
51750         * m4/alloca.m4: Likewise.
51751         * m4/argp.m4: Likewise.
51752         * m4/argz.m4: Likewise.
51753         * m4/atexit.m4: Likewise.
51754         * m4/bison-i18n.m4: Likewise.
51755         * m4/bison.m4: Likewise.
51756         * m4/byteswap.m4: Likewise.
51757         * m4/c-stack.m4: Likewise.
51758         * m4/c-strtod.m4: Likewise.
51759         * m4/calloc.m4: Likewise.
51760         * m4/canonicalize-lgpl.m4: Likewise.
51761         * m4/chown.m4: Likewise.
51762         * m4/clock_time.m4: Likewise.
51763         * m4/codeset.m4: Likewise.
51764         * m4/copy-file.m4: Likewise.
51765         * m4/csharp.m4: Likewise.
51766         * m4/csharpcomp.m4: Likewise.
51767         * m4/csharpexec.m4: Likewise.
51768         * m4/d-ino.m4: Likewise.
51769         * m4/d-type.m4: Likewise.
51770         * m4/dirfd.m4: Likewise.
51771         * m4/double-slash-root.m4: Likewise.
51772         * m4/eaccess.m4: Likewise.
51773         * m4/eealloc.m4: Likewise.
51774         * m4/environ.m4: Likewise.
51775         * m4/errno_h.m4: Likewise.
51776         * m4/euidaccess.m4: Likewise.
51777         * m4/execute.m4: Likewise.
51778         * m4/fatal-signal.m4: Likewise.
51779         * m4/fchdir.m4: Likewise.
51780         * m4/fcntl_h.m4: Likewise.
51781         * m4/fileblocks.m4: Likewise.
51782         * m4/filenamecat.m4: Likewise.
51783         * m4/findprog.m4: Likewise.
51784         * m4/flexmember.m4: Likewise.
51785         * m4/fnmatch.m4: Likewise.
51786         * m4/fopen.m4: Likewise.
51787         * m4/fpending.m4: Likewise.
51788         * m4/fprintf-posix.m4: Likewise.
51789         * m4/free.m4: Likewise.
51790         * m4/frexp.m4: Likewise.
51791         * m4/frexpl.m4: Likewise.
51792         * m4/fsusage.m4: Likewise.
51793         * m4/ftruncate.m4: Likewise.
51794         * m4/gc-camellia.m4: Likewise.
51795         * m4/gc-random.m4: Likewise.
51796         * m4/gc.m4: Likewise.
51797         * m4/getaddrinfo.m4: Likewise.
51798         * m4/getcwd-abort-bug.m4: Likewise.
51799         * m4/getcwd-path-max.m4: Likewise.
51800         * m4/getdate.m4: Likewise.
51801         * m4/getdomainname.m4: Likewise.
51802         * m4/getgroups.m4: Likewise.
51803         * m4/gethostname.m4: Likewise.
51804         * m4/gethrxtime.m4: Likewise.
51805         * m4/getline.m4: Likewise.
51806         * m4/getloadavg.m4: Likewise.
51807         * m4/getndelim2.m4: Likewise.
51808         * m4/getpass.m4: Likewise.
51809         * m4/gettext.m4: Likewise.
51810         * m4/gettime.m4: Likewise.
51811         * m4/gettimeofday.m4: Likewise.
51812         * m4/gnulib-common.m4: Likewise.
51813         * m4/group-member.m4: Likewise.
51814         * m4/host-os.m4: Likewise.
51815         * m4/iconv.m4: Likewise.
51816         * m4/iconv_open.m4: Likewise.
51817         * m4/inet_ntop.m4: Likewise.
51818         * m4/inet_pton.m4: Likewise.
51819         * m4/inline.m4: Likewise.
51820         * m4/intldir.m4: Likewise.
51821         * m4/intlmacosx.m4: Likewise.
51822         * m4/intmax.m4: Likewise.
51823         * m4/intmax_t.m4: Likewise.
51824         * m4/inttypes.m4: Likewise.
51825         * m4/inttypes_h.m4: Likewise.
51826         * m4/inttypes-pri.m4: Likewise.
51827         * m4/isapipe.m4: Likewise.
51828         * m4/isnand.m4: Likewise.
51829         * m4/isnanf.m4: Likewise.
51830         * m4/isnanl.m4: Likewise.
51831         * m4/javacomp.m4: Likewise.
51832         * m4/javaexec.m4: Likewise.
51833         * m4/jm-winsz1.m4: Likewise.
51834         * m4/jm-winsz2.m4: Likewise.
51835         * m4/lchown.m4: Likewise.
51836         * m4/lcmessage.m4: Likewise.
51837         * m4/ldexpl.m4: Likewise.
51838         * m4/lib-ld.m4: Likewise.
51839         * m4/lib-link.m4: Likewise.
51840         * m4/libsigsegv.m4: Likewise.
51841         * m4/link-follow.m4: Likewise.
51842         * m4/localcharset.m4: Likewise.
51843         * m4/locale-fr.m4: Likewise.
51844         * m4/locale-ja.m4: Likewise.
51845         * m4/locale-tr.m4: Likewise.
51846         * m4/locale-zh.m4: Likewise.
51847         * m4/lock.m4: Likewise.
51848         * m4/longlong.m4: Likewise.
51849         * m4/ls-mntd-fs.m4: Likewise.
51850         * m4/lstat.m4: Likewise.
51851         * m4/malloc.m4: Likewise.
51852         * m4/mathl.m4: Likewise.
51853         * m4/mbrtowc.m4: Likewise.
51854         * m4/mbstate_t.m4: Likewise.
51855         * m4/mbswidth.m4: Likewise.
51856         * m4/memchr.m4: Likewise.
51857         * m4/memcmp.m4: Likewise.
51858         * m4/memcpy.m4: Likewise.
51859         * m4/memmem.m4: Likewise.
51860         * m4/memmove.m4: Likewise.
51861         * m4/mempcpy.m4: Likewise.
51862         * m4/memrchr.m4: Likewise.
51863         * m4/memset.m4: Likewise.
51864         * m4/minmax.m4: Likewise.
51865         * m4/mkdir-slash.m4: Likewise.
51866         * m4/mkdtemp.m4: Likewise.
51867         * m4/mktime.m4: Likewise.
51868         * m4/mmap-anon.m4: Likewise.
51869         * m4/mountlist.m4: Likewise.
51870         * m4/nanosleep.m4: Likewise.
51871         * m4/nls.m4: Likewise.
51872         * m4/nocrash.m4: Likewise.
51873         * m4/open.m4: Likewise.
51874         * m4/openat.m4: Likewise.
51875         * m4/openmp.m4: Likewise.
51876         * m4/pathmax.m4: Likewise.
51877         * m4/perl.m4: Likewise.
51878         * m4/physmem.m4: Likewise.
51879         * m4/pipe.m4: Likewise.
51880         * m4/po.m4: Likewise.
51881         * m4/poll.m4: Likewise.
51882         * m4/posixtm.m4: Likewise.
51883         * m4/posixver.m4: Likewise.
51884         * m4/printf-frexp.m4: Likewise.
51885         * m4/printf-frexpl.m4: Likewise.
51886         * m4/printf-posix.m4: Likewise.
51887         * m4/printf-posix-rpl.m4: Likewise.
51888         * m4/printf.m4: Likewise.
51889         * m4/progtest.m4: Likewise.
51890         * m4/putenv.m4: Likewise.
51891         * m4/readline.m4: Likewise.
51892         * m4/readlink.m4: Likewise.
51893         * m4/readutmp.m4: Likewise.
51894         * m4/realloc.m4: Likewise.
51895         * m4/regex.m4: Likewise.
51896         * m4/relocatable.m4: Likewise.
51897         * m4/relocatable-lib.m4: Likewise.
51898         * m4/rename-dest-slash.m4: Likewise.
51899         * m4/rename.m4: Likewise.
51900         * m4/rmdir-errno.m4: Likewise.
51901         * m4/rmdir.m4: Likewise.
51902         * m4/roundf.m4: Likewise.
51903         * m4/roundl.m4: Likewise.
51904         * m4/rpmatch.m4: Likewise.
51905         * m4/save-cwd.m4: Likewise.
51906         * m4/selinux-selinux-h.m4: Likewise.
51907         * m4/setenv.m4: Likewise.
51908         * m4/settime.m4: Likewise.
51909         * m4/sig2str.m4: Likewise.
51910         * m4/sig_atomic_t.m4: Likewise.
51911         * m4/signalblocking.m4: Likewise.
51912         * m4/signbit.m4: Likewise.
51913         * m4/sigpipe.m4: Likewise.
51914         * m4/sockets.m4: Likewise.
51915         * m4/sockpfaf.m4: Likewise.
51916         * m4/st_dm_mode.m4: Likewise.
51917         * m4/stat-time.m4: Likewise.
51918         * m4/stdbool.m4: Likewise.
51919         * m4/stdint.m4: Likewise.
51920         * m4/stdint_h.m4: Likewise.
51921         * m4/stpcpy.m4: Likewise.
51922         * m4/stpncpy.m4: Likewise.
51923         * m4/strcase.m4: Likewise.
51924         * m4/strchrnul.m4: Likewise.
51925         * m4/strcspn.m4: Likewise.
51926         * m4/strdup.m4: Likewise.
51927         * m4/strftime.m4: Likewise.
51928         * m4/strndup.m4: Likewise.
51929         * m4/strnlen.m4: Likewise.
51930         * m4/strpbrk.m4: Likewise.
51931         * m4/strptime.m4: Likewise.
51932         * m4/strsep.m4: Likewise.
51933         * m4/strtod.m4: Likewise.
51934         * m4/strtoimax.m4: Likewise.
51935         * m4/strtok_r.m4: Likewise.
51936         * m4/strtol.m4: Likewise.
51937         * m4/strtoll.m4: Likewise.
51938         * m4/strtoul.m4: Likewise.
51939         * m4/strtoull.m4: Likewise.
51940         * m4/strtoumax.m4: Likewise.
51941         * m4/strverscmp.m4: Likewise.
51942         * m4/threadlib.m4: Likewise.
51943         * m4/timegm.m4: Likewise.
51944         * m4/tm_gmtoff.m4: Likewise.
51945         * m4/tmpdir.m4: Likewise.
51946         * m4/tmpfile.m4: Likewise.
51947         * m4/tzset.m4: Likewise.
51948         * m4/uintmax_t.m4: Likewise.
51949         * m4/unlinkdir.m4: Likewise.
51950         * m4/unlocked-io.m4: Likewise.
51951         * m4/uptime.m4: Likewise.
51952         * m4/userspec.m4: Likewise.
51953         * m4/utimbuf.m4: Likewise.
51954         * m4/utime.m4: Likewise.
51955         * m4/utimes-null.m4: Likewise.
51956         * m4/utimes.m4: Likewise.
51957         * m4/vararrays.m4: Likewise.
51958         * m4/vasnprintf.m4: Likewise.
51959         * m4/vfprintf-posix.m4: Likewise.
51960         * m4/vprintf-posix.m4: Likewise.
51961         * m4/wait-process.m4: Likewise.
51962         * m4/wchar_t.m4: Likewise.
51963         * m4/wint_t.m4: Likewise.
51964         * m4/write-any-file.m4: Likewise.
51965         * m4/yield.m4: Likewise.
51966
51967 2009-01-13  Bruno Haible  <bruno@clisp.org>
51968
51969         Avoid test-copy-file.sh failures when ACL support insufficient.
51970         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51971         TESTS_ENVIRONMENT.
51972         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51973         Reported by Jim Meyering.
51974
51975 2009-01-13  Bruno Haible  <bruno@clisp.org>
51976
51977         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51978         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51979         * modules/unistdio/u8-printf-parse (Files): Likewise.
51980         * modules/unistdio/u32-printf-parse (Files): Likewise.
51981         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51982
51983 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51984
51985         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51986         and m4/inttypes_h.m4 too.
51987
51988 2009-01-12  Eric Blake  <ebb9@byu.net>
51989
51990         tests: IRIX 6.2 cc can't compile -0.0 into .data
51991         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51992         rather than at compile-time.
51993         * tests/test-floorl.c (minus_zero): Likewise.
51994         * tests/test-frexpl.c (minus_zero): Likewise.
51995         * tests/test-isnan.c (minus_zerol): Likewise.
51996         * tests/test-isnanl.h (minus_zero): Likewise.
51997         * tests/test-ldexpl.c (minus_zero): Likewise.
51998         * tests/test-roundl.c (minus_zero): Likewise.
51999         * tests/test-signbit.c (minus_zerol): Likewise.
52000         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52001         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52002         * tests/test-truncl.c (minus_zero): Likewise.
52003         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52004         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52005         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52006
52007 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52008
52009         regex: fix glibc bug 9697
52010         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52011         handling.
52012
52013 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52014
52015         regex: fix glibc bug 697
52016         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52017         being NULL also if there are no backreferences.
52018
52019 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52020
52021         regex: merge glibc changes
52022         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52023         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52024         re_string_skip_chars, re_string_reconstruct): Likewise.
52025         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52026
52027 2009-01-07  Jim Meyering  <meyering@redhat.com>
52028
52029         poll: filter through cppi
52030         * lib/poll.c: Indent cpp directives to reflect nesting.
52031
52032 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52033
52034         poll: don't return uninitialized
52035         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52036
52037 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52038
52039         avoid compile failure on AIX 6.1
52040         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52041         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52042
52043 2009-01-04  Jim Meyering  <meyering@redhat.com>
52044
52045         remove duplicate inclusion of <stdio.h>
52046         * tests/test-fprintf-posix.c: Likewise.
52047         * tests/test-printf-posix.c: Likewise.
52048         * tests/test-snprintf-posix.c: Likewise.
52049         * tests/test-sprintf-posix.c: Likewise.
52050         * tests/test-vasprintf-posix.c: Likewise.
52051         * tests/test-vfprintf-posix.c: Likewise.
52052         * tests/test-vprintf-posix.c: Likewise.
52053         * tests/test-vsnprintf-posix.c: Likewise.
52054         * tests/test-vsprintf-posix.c: Likewise.
52055
52056 2009-01-03  Jim Meyering  <meyering@redhat.com>
52057
52058         gnulib-tool: fix sed-based filtering
52059         * gnulib-tool (func_filter_filelist): Remove extra backslash
52060         in sed_fff_filter definition.
52061
52062 2009-01-02  Jim Meyering  <meyering@redhat.com>
52063
52064         strftime: avoid compilation failure on Solaris 2.6
52065         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52066         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52067         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52068         be available.  Reported by Tom G. Christensen.  Details in
52069         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52070
52071 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52072             Bruno Haible  <bruno@clisp.org>
52073
52074         Speed up gnulib-tool by doing more string processing through shell
52075         built-ins.
52076         * gnulib-tool (fast_func_append): New variable.
52077         (func_remove_prefix, func_remove_suffix): New functions.
52078         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52079         (func_filter_filelist): New function.
52080         (func_get_dependencies): Use func_remove_suffix instead of sed.
52081         (func_get_automake_snippet): Use func_filter_filelist instead of a
52082         subshell and sed invocation.
52083
52084 2009-01-01  Bruno Haible  <bruno@clisp.org>
52085
52086         Fix a security bug.
52087         * gnulib-tool (func_import, import, update): Don't allow the characters
52088         '"', '$', '`', '\' in macro arguments that become part of commands that
52089         are evaluated.
52090
52091 2009-01-01  Bruno Haible  <bruno@clisp.org>
52092
52093         * gnulib-tool (func_reset_sigpipe): Add more comments.
52094
52095 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52096
52097         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52098         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52099         already know the answer.
52100
52101 2009-01-01  Jim Meyering  <meyering@redhat.com>
52102
52103         * lib/version-etc.c (version_etc_va): Update copyright year.
52104
52105 2008-12-30  Bruno Haible  <bruno@clisp.org>
52106
52107         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52108         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52109         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52110
52111 2008-12-29  Eric Blake  <ebb9@byu.net>
52112
52113         multiarch: avoid autoconf AC_REQUIRE bug
52114         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52115         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52116         2.63 and older.
52117         Reported by Bruno Haible, and analyzed in
52118         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52119
52120 2008-12-29  Bruno Haible  <bruno@clisp.org>
52121
52122         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52123         files in subdirectories correctly.
52124         Reported by Ralf Wildenhues.
52125
52126 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52127
52128         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52129         rather than 'join FILE -', for Solaris join.
52130
52131 2008-12-29  Bruno Haible  <bruno@clisp.org>
52132
52133         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52134         quoting.
52135         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52136         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52137         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52138         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52139         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52140         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52141         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52142         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52143         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52144         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52145         * m4/nls.m4 (AM_NLS): Likewise.
52146         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52147         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52148         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52149         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52150         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52151         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52152         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52153         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52154         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52155         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52156         * m4/xsize.m4 (gl_XSIZE): Likewise.
52157         Suggested by Jim Meyering.
52158
52159 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52160
52161         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52162         * lib/parse-duration.c: use a switch instead of cascading if's.
52163
52164 2008-12-29  Eric Blake  <ebb9@byu.net>
52165
52166         wchar.h: supply WEOF on Irix 5.3
52167         * lib/wchar.in.h (wint_t): Also supply WEOF.
52168         * lib/wctype.in.h (wint_t): Likewise.
52169         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52170         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52171         Reported by Tom G. Christensen.
52172
52173 2008-12-26  Bruno Haible  <bruno@clisp.org>
52174
52175         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52176         i486, i586, i686.
52177
52178 2008-12-26  Bruno Haible  <bruno@clisp.org>
52179
52180         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52181
52182 2008-12-26  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52185         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52186         not __STDC_CONSTANT_MACROS.
52187         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52188
52189 2008-12-25  Bruno Haible  <bruno@clisp.org>
52190
52191         Add support for universal builds to vasnprintf.
52192         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52193         universal builds, guess no.
52194         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52195         * modules/vasprintf-posix (Depends-on): Likewise.
52196         * modules/fprintf-posix (Depends-on): Likewise.
52197         * modules/vfprintf-posix (Depends-on): Likewise.
52198         * modules/snprintf-posix (Depends-on): Likewise.
52199         * modules/vsnprintf-posix (Depends-on): Likewise.
52200         * modules/sprintf-posix (Depends-on): Likewise.
52201         * modules/vsprintf-posix (Depends-on): Likewise.
52202         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52203         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52204         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52205         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52206         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52207         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52208         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52209
52210         Add support for universal builds to <inttypes.h>.
52211         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52212         _SCNu64_PREFIX): In Apple
52213         universal builds, define directly, using _LP64.
52214         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52215         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52216         * modules/inttypes (Depends-on): Add multiarch.
52217         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52218
52219         Add support for universal builds to <stdint.h>.
52220         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52221         universal builds, define directly, using _LP64.
52222         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52223         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52224         and size_t.
52225         * modules/stdint (Depends-on): Add multiarch.
52226         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52227
52228         New module 'multiarch'.
52229         * modules/multiarch: New file.
52230         * m4/multiarch.m4: New file.
52231
52232 2008-12-25  Bruno Haible  <bruno@clisp.org>
52233
52234         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52235
52236 2008-12-25  Bruno Haible  <bruno@clisp.org>
52237
52238         * modules/btowc (License): Relicense under LGPLv2+.
52239         * modules/mbsinit (License): Likewise.
52240         * modules/mbrtowc (License): Likewise.
52241         * modules/wcrtomb (License): Likewise.
52242         * modules/streq (License): Likewise.
52243         Reported by David Lutterkort <lutter@redhat.com>.
52244
52245 2008-12-23  Bruno Haible  <bruno@clisp.org>
52246
52247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52248
52249 2008-12-23  Bruno Haible  <bruno@clisp.org>
52250
52251         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52253         GETADDRINFO_LIB, not in LIBS.
52254         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52255         * modules/canon-host (Link): Likewise.
52256         * NEWS: Mention the change.
52257         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52258         GETADDRINFO_LIB.
52259
52260 2008-12-22  Bruno Haible  <bruno@clisp.org>
52261
52262         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52263         * doc/posix-functions/iswalpha_l.texi: Likewise.
52264         * doc/posix-functions/iswblank_l.texi: Likewise.
52265         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52266         * doc/posix-functions/iswctype_l.texi: Likewise.
52267         * doc/posix-functions/iswdigit_l.texi: Likewise.
52268         * doc/posix-functions/iswgraph_l.texi: Likewise.
52269         * doc/posix-functions/iswlower_l.texi: Likewise.
52270         * doc/posix-functions/iswprint_l.texi: Likewise.
52271         * doc/posix-functions/iswpunct_l.texi: Likewise.
52272         * doc/posix-functions/iswspace_l.texi: Likewise.
52273         * doc/posix-functions/iswupper_l.texi: Likewise.
52274         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52275         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52276         * doc/posix-functions/open_wmemstream.texi: Likewise.
52277         * doc/posix-functions/swscanf.texi: Likewise.
52278         * doc/posix-functions/towctrans_l.texi: Likewise.
52279         * doc/posix-functions/towlower.texi: Likewise.
52280         * doc/posix-functions/towlower_l.texi: Likewise.
52281         * doc/posix-functions/towupper.texi: Likewise.
52282         * doc/posix-functions/towupper_l.texi: Likewise.
52283         * doc/posix-functions/vfwprintf.texi: Likewise.
52284         * doc/posix-functions/vfwscanf.texi: Likewise.
52285         * doc/posix-functions/vswscanf.texi: Likewise.
52286         * doc/posix-functions/vwprintf.texi: Likewise.
52287         * doc/posix-functions/vwscanf.texi: Likewise.
52288         * doc/posix-functions/wcpcpy.texi: Likewise.
52289         * doc/posix-functions/wcpncpy.texi: Likewise.
52290         * doc/posix-functions/wcscasecmp.texi: Likewise.
52291         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52292         * doc/posix-functions/wcscoll_l.texi: Likewise.
52293         * doc/posix-functions/wcsdup.texi: Likewise.
52294         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52295         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52296         * doc/posix-functions/wcsnlen.texi: Likewise.
52297         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52298         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52299         * doc/posix-functions/wctrans_l.texi: Likewise.
52300         * doc/posix-functions/wctype_l.texi: Likewise.
52301         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52302         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52303         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52304         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52305         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52306         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52307         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52308         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52309         * doc/glibc-functions/wcschrnul.texi: Likewise.
52310         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52311         * doc/glibc-functions/wcstod_l.texi: Likewise.
52312         * doc/glibc-functions/wcstof_l.texi: Likewise.
52313         * doc/glibc-functions/wcstol_l.texi: Likewise.
52314         * doc/glibc-functions/wcstold_l.texi: Likewise.
52315         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52316         * doc/glibc-functions/wcstoq.texi: Likewise.
52317         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52318         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52319         * doc/glibc-functions/wcstouq.texi: Likewise.
52320         * doc/glibc-functions/wmempcpy.texi: Likewise.
52321
52322 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52323             Eric Blake  <ebb9@byu.net>
52324             Paolo Bonzini  <bonzini@gnu.org>
52325             Bruno Haible  <bruno@clisp.org>
52326
52327         Make c-stack work on Haiku.
52328         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52329         (c_stack_action): Use SA_ONSTACK flag.
52330
52331 2008-12-22  Bruno Haible  <bruno@clisp.org>
52332
52333         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52334
52335 2008-12-22  Bruno Haible  <bruno@clisp.org>
52336
52337         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52338         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52339         being overridden.
52340         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52341         New macros.
52342         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52344         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52345         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52346
52347 2008-12-22  Bruno Haible  <bruno@clisp.org>
52348
52349         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52350         from test code.
52351
52352 2008-12-22  Eric Blake  <ebb9@byu.net>
52353
52354         Avoid gcc warnings on cygwin.
52355         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52356         Avoid unused variable.
52357         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52358         Likewise.
52359
52360 2008-12-22  Bruno Haible  <bruno@clisp.org>
52361
52362         Remove HAVE_MBRTOWC conditionals.
52363         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52364         (mbscasecmp): Assume mbrtowc function.
52365         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52366         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52367         * lib/mbschr.c: Include mbuiter.h unconditionally.
52368         (mbschr): Assume mbrtowc function.
52369         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52370         (mbscspn): Assume mbrtowc function.
52371         * lib/mbslen.c: Include mbuiter.h unconditionally.
52372         (mbslen): Assume mbrtowc function.
52373         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52374         (mbsncasecmp): Assume mbrtowc function.
52375         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52376         (mbsnlen): Assume mbrtowc function.
52377         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52378         (mbspbrk): Assume mbrtowc function.
52379         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52380         (mbspcasecmp): Assume mbrtowc function.
52381         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52382         (mbsrchr): Assume mbrtowc function.
52383         * lib/mbssep.c: Include mbuiter.h unconditionally.
52384         (mbssep): Assume mbrtowc function.
52385         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52386         (mbsspn): Assume mbrtowc function.
52387         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52388         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52389         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52390         (mbstok_r): Assume mbrtowc function.
52391         * lib/propername.c: Include mbuiter.h unconditionally.
52392         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52393         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52394         (trim2): Assume mbrtowc function.
52395         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52396         (mbsnwidth): Assume mbrtowc function.
52397         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52398         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52399         fallback definitions.
52400         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52401
52402 2008-12-22  Bruno Haible  <bruno@clisp.org>
52403
52404         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52405
52406 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52407
52408         * modules/regex: Request emulations for the mb*/wc* functions we need.
52409         * m4/regex.m4: Don't look for those functions here.
52410         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52411
52412 2008-12-22  Bruno Haible  <bruno@clisp.org>
52413
52414         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52415
52416 2008-12-21  Bruno Haible  <bruno@clisp.org>
52417
52418         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52419         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52420         (Include): Remove conditionalization.
52421         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52422         (Include): Remove conditionalization.
52423         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52424         (Include): Remove conditionalization.
52425         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52426         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52427         * NEWS: Mention the change.
52428         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52429         via Sergey Poznyakoff <gray@gnu.org.ua>.
52430
52431 2008-12-21  Bruno Haible  <bruno@clisp.org>
52432
52433         * MODULES.html.sh (Extended multibyte and wide character utilities
52434         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52435         wcrtomb, wcsrtombs.
52436         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52437         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52438         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52439         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52440
52441 2008-12-21  Bruno Haible  <bruno@clisp.org>
52442
52443         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52444
52445 2008-12-21  Bruno Haible  <bruno@clisp.org>
52446
52447         * modules/wcsnrtombs-tests: New file.
52448         * tests/test-wcsnrtombs1.sh: New file.
52449         * tests/test-wcsnrtombs2.sh: New file.
52450         * tests/test-wcsnrtombs3.sh: New file.
52451         * tests/test-wcsnrtombs4.sh: New file.
52452         * tests/test-wcsnrtombs.c: New file.
52453
52454         New module 'wcsnrtombs'.
52455         * lib/wchar.in.h (wcsnrtombs): New declaration.
52456         * lib/wcsnrtombs.c: New file.
52457         * lib/wcsrtombs-state.c: New file.
52458         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52459         (internal_state): Remove variable.
52460         * m4/wcsnrtombs.m4: New file.
52461         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52462         compilation units.
52463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52464         HAVE_WCSNRTOMBS.
52465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52466         HAVE_WCSNRTOMBS.
52467         * modules/wcsnrtombs: New file.
52468         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52469         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52470
52471 2008-12-21  Bruno Haible  <bruno@clisp.org>
52472
52473         * modules/wcsrtombs-tests: New file.
52474         * tests/test-wcsrtombs1.sh: New file.
52475         * tests/test-wcsrtombs2.sh: New file.
52476         * tests/test-wcsrtombs3.sh: New file.
52477         * tests/test-wcsrtombs4.sh: New file.
52478         * tests/test-wcsrtombs.c: New file.
52479
52480         New module 'wcsrtombs'.
52481         * lib/wchar.in.h (wcsrtombs): New declaration.
52482         * lib/wcsrtombs.c: New file.
52483         * m4/wcsrtombs.m4: New file.
52484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52485         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52487         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52488         * modules/wcsrtombs: New file.
52489         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52490         bugs.
52491
52492 2008-12-21  Bruno Haible  <bruno@clisp.org>
52493
52494         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52495         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52496         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52497         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52498         if not correct.
52499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52500         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52501         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52502         m4/locale-zh.m4, m4/codeset.m4.
52503         * doc/posix-functions/wcrtomb.texi: Document the bug.
52504
52505 2008-12-21  Bruno Haible  <bruno@clisp.org>
52506
52507         Work around a btowc() bug on IRIX 6.5.
52508         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52509         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52510         REPLACE_WTOBC if not.
52511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52512         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52513         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52514
52515 2008-12-21  Bruno Haible  <bruno@clisp.org>
52516
52517         * modules/wcrtomb-tests: New file.
52518         * tests/test-wcrtomb.sh: New file.
52519         * tests/test-wcrtomb.c: New file.
52520
52521         New module 'wcrtomb'.
52522         * lib/wchar.in.h (wcrtomb): New declaration.
52523         * lib/wcrtomb.c: New file.
52524         * m4/wcrtomb.m4: New file.
52525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52526         HAVE_WCRTOMB.
52527         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52528         HAVE_WCRTOMB.
52529         * modules/wcrtomb: New file.
52530         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52531
52532 2008-12-21  Bruno Haible  <bruno@clisp.org>
52533
52534         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52535         * modules/mbsrtowcs (Files): Likewise.
52536         * modules/wctob (Files): Likewise.
52537         * modules/c-strcase-tests (Files): Likewise.
52538         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52539         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52540         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52541         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52542         * modules/vasnprintf-posix-tests (Files): Likewise.
52543
52544 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52545
52546         gitlog-to-changelog: pass all command-line arguments to git-log
52547         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52548         it is sometimes convenient to filter the commits in various ways.
52549         gitlog-to-changelog only allows --since to specify a start date,
52550         but git-log itself supports many other filtering mechanisms.
52551         At the moment, I want to filter by branch name.  Rather than
52552         adding a --branch option to gitlog-to-changelog, it seems more
52553         flexible to simply pass all options directly to git-log and let
52554         git do the work.  Notice that this effectively makes --since a
52555         redundant option for gitlog-to-changelog, but removing it would
52556         require current usage to change since calls would then require
52557         an additional '--'.
52558
52559 2008-12-21  Bruno Haible  <bruno@clisp.org>
52560
52561         * modules/mbsnrtowcs-tests: New file.
52562         * tests/test-mbsnrtowcs1.sh: New file.
52563         * tests/test-mbsnrtowcs2.sh: New file.
52564         * tests/test-mbsnrtowcs3.sh: New file.
52565         * tests/test-mbsnrtowcs4.sh: New file.
52566         * tests/test-mbsnrtowcs.c: New file.
52567
52568         New module 'mbsnrtowcs'.
52569         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52570         * lib/mbsnrtowcs.c: New file.
52571         * lib/mbsrtowcs-state.c: New file.
52572         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52573         (internal_state): Remove variable.
52574         * m4/mbsnrtowcs.m4: New file.
52575         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52576         compilation units.
52577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52578         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52579         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52580         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52581         * modules/mbsnrtowcs: New file.
52582         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52583         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52584         portability problem.
52585
52586 2008-12-21  Bruno Haible  <bruno@clisp.org>
52587
52588         Work around mbsrtowcs bug.
52589         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52590         (gl_FUNC_MBSRTOWCS): Invoke it.
52591         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52592         m4/locale-zh.m4.
52593         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52594
52595 2008-12-21  Bruno Haible  <bruno@clisp.org>
52596
52597         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52598
52599 2008-12-21  Bruno Haible  <bruno@clisp.org>
52600
52601         Update doc for AIX.
52602         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52603         16-bit wchar_t type.
52604         * doc/posix-functions/btowc.texi: Likewise.
52605         * doc/posix-functions/fgetwc.texi: Likewise.
52606         * doc/posix-functions/fgetws.texi: Likewise.
52607         * doc/posix-functions/fputwc.texi: Likewise.
52608         * doc/posix-functions/fputws.texi: Likewise.
52609         * doc/posix-functions/fwide.texi: Likewise.
52610         * doc/posix-functions/fwprintf.texi: Likewise.
52611         * doc/posix-functions/fwscanf.texi: Likewise.
52612         * doc/posix-functions/getwchar.texi: Likewise.
52613         * doc/posix-functions/getwc.texi: Likewise.
52614         * doc/posix-functions/iswalnum.texi: Likewise.
52615         * doc/posix-functions/iswalpha.texi: Likewise.
52616         * doc/posix-functions/iswblank.texi: Likewise.
52617         * doc/posix-functions/iswcntrl.texi: Likewise.
52618         * doc/posix-functions/iswctype.texi: Likewise.
52619         * doc/posix-functions/iswdigit.texi: Likewise.
52620         * doc/posix-functions/iswgraph.texi: Likewise.
52621         * doc/posix-functions/iswlower.texi: Likewise.
52622         * doc/posix-functions/iswprint.texi: Likewise.
52623         * doc/posix-functions/iswpunct.texi: Likewise.
52624         * doc/posix-functions/iswspace.texi: Likewise.
52625         * doc/posix-functions/iswupper.texi: Likewise.
52626         * doc/posix-functions/iswxdigit.texi: Likewise.
52627         * doc/posix-functions/mbrtowc.texi: Likewise.
52628         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52629         * doc/posix-functions/mbstowcs.texi: Likewise.
52630         * doc/posix-functions/mbtowc.texi: Likewise.
52631         * doc/posix-functions/putwchar.texi: Likewise.
52632         * doc/posix-functions/putwc.texi: Likewise.
52633         * doc/posix-functions/swprintf.texi: Likewise.
52634         * doc/posix-functions/tolower.texi: Likewise.
52635         * doc/posix-functions/toupper.texi: Likewise.
52636         * doc/posix-functions/towctrans.texi: Likewise.
52637         * doc/posix-functions/ungetwc.texi: Likewise.
52638         * doc/posix-functions/vswprintf.texi: Likewise.
52639         * doc/posix-functions/wcrtomb.texi: Likewise.
52640         * doc/posix-functions/wcscat.texi: Likewise.
52641         * doc/posix-functions/wcschr.texi: Likewise.
52642         * doc/posix-functions/wcscmp.texi: Likewise.
52643         * doc/posix-functions/wcscoll.texi: Likewise.
52644         * doc/posix-functions/wcscpy.texi: Likewise.
52645         * doc/posix-functions/wcscspn.texi: Likewise.
52646         * doc/posix-functions/wcsftime.texi: Likewise.
52647         * doc/posix-functions/wcslen.texi: Likewise.
52648         * doc/posix-functions/wcsncat.texi: Likewise.
52649         * doc/posix-functions/wcsncmp.texi: Likewise.
52650         * doc/posix-functions/wcsncpy.texi: Likewise.
52651         * doc/posix-functions/wcspbrk.texi: Likewise.
52652         * doc/posix-functions/wcsrchr.texi: Likewise.
52653         * doc/posix-functions/wcsrtombs.texi: Likewise.
52654         * doc/posix-functions/wcsspn.texi: Likewise.
52655         * doc/posix-functions/wcsstr.texi: Likewise.
52656         * doc/posix-functions/wcstod.texi: Likewise.
52657         * doc/posix-functions/wcstof.texi: Likewise.
52658         * doc/posix-functions/wcstoimax.texi: Likewise.
52659         * doc/posix-functions/wcstok.texi: Likewise.
52660         * doc/posix-functions/wcstold.texi: Likewise.
52661         * doc/posix-functions/wcstoll.texi: Likewise.
52662         * doc/posix-functions/wcstol.texi: Likewise.
52663         * doc/posix-functions/wcstombs.texi: Likewise.
52664         * doc/posix-functions/wcstoull.texi: Likewise.
52665         * doc/posix-functions/wcstoul.texi: Likewise.
52666         * doc/posix-functions/wcstoumax.texi: Likewise.
52667         * doc/posix-functions/wcswidth.texi: Likewise.
52668         * doc/posix-functions/wcsxfrm.texi: Likewise.
52669         * doc/posix-functions/wctob.texi: Likewise.
52670         * doc/posix-functions/wctomb.texi: Likewise.
52671         * doc/posix-functions/wctrans.texi: Likewise.
52672         * doc/posix-functions/wctype.texi: Likewise.
52673         * doc/posix-functions/wcwidth.texi: Likewise.
52674         * doc/posix-functions/wmemchr.texi: Likewise.
52675         * doc/posix-functions/wmemcmp.texi: Likewise.
52676         * doc/posix-functions/wmemcpy.texi: Likewise.
52677         * doc/posix-functions/wmemmove.texi: Likewise.
52678         * doc/posix-functions/wmemset.texi: Likewise.
52679         * doc/posix-functions/wprintf.texi: Likewise.
52680         * doc/posix-functions/wscanf.texi: Likewise.
52681
52682 2008-12-21  Bruno Haible  <bruno@clisp.org>
52683
52684         Update doc for HP-UX 11.11.
52685         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52686         in HP-UX version 11.00, not in all versions of HP-UX 11.
52687         * doc/posix-functions/fwide.texi: Likewise.
52688         * doc/posix-functions/fwprintf.texi: Likewise.
52689         * doc/posix-functions/fwscanf.texi: Likewise.
52690         * doc/posix-functions/inet_ntop.texi: Likewise.
52691         * doc/posix-functions/inet_pton.texi: Likewise.
52692         * doc/posix-functions/mbrlen.texi: Likewise.
52693         * doc/posix-functions/mbrtowc.texi: Likewise.
52694         * doc/posix-functions/mbsinit.texi: Likewise.
52695         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52696         * doc/posix-functions/swprintf.texi: Likewise.
52697         * doc/posix-functions/swscanf.texi: Likewise.
52698         * doc/posix-functions/towctrans.texi: Likewise.
52699         * doc/posix-functions/vfwprintf.texi: Likewise.
52700         * doc/posix-functions/vswprintf.texi: Likewise.
52701         * doc/posix-functions/vwprintf.texi: Likewise.
52702         * doc/posix-functions/wcrtomb.texi: Likewise.
52703         * doc/posix-functions/wcsrtombs.texi: Likewise.
52704         * doc/posix-functions/wcsstr.texi: Likewise.
52705         * doc/posix-functions/wctob.texi: Likewise.
52706         * doc/posix-functions/wctrans.texi: Likewise.
52707         * doc/posix-functions/wmemchr.texi: Likewise.
52708         * doc/posix-functions/wmemcmp.texi: Likewise.
52709         * doc/posix-functions/wmemcpy.texi: Likewise.
52710         * doc/posix-functions/wmemmove.texi: Likewise.
52711         * doc/posix-functions/wmemset.texi: Likewise.
52712         * doc/posix-functions/wprintf.texi: Likewise.
52713         * doc/posix-functions/wscanf.texi: Likewise.
52714
52715 2008-12-21  Bruno Haible  <bruno@clisp.org>
52716
52717         Work around a portability problem.
52718         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52719         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52720
52721 2008-12-20  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52724         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52725         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52727         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52728
52729         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52730         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52731         set.
52732         (GNULIB_defined_mbstate_t): New macro.
52733         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52734         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52735         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52736         reuses the system's mbrtowc function but works around the bugs.
52737         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52738         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52739         macros.
52740         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52741         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52742         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52743         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52744         REPLACE_MBSINIT if mbsinit needs to be overridden.
52745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52746         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52747         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52748         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52749         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52750         m4/locale-zh.m4.
52751         (Depends): Add mbsinit.
52752         * modules/mbsinit (Depends): Add mbrtowc.
52753         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52754
52755 2008-12-20  Bruno Haible  <bruno@clisp.org>
52756
52757         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52758         so that there are no conversion errors on AIX.
52759         * tests/test-mbsrtowcs.c (main): LIkewise.
52760
52761 2008-12-20  Bruno Haible  <bruno@clisp.org>
52762
52763         Work around wctob bug on Solaris <= 9.
52764         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52765         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52767         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52768         * modules/wctob (Files): Add m4/locale-fr.m4.
52769         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52770
52771 2008-12-20  Bruno Haible  <bruno@clisp.org>
52772
52773         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52774         /dev/null.
52775         * tests/test-select-in.sh: Likewise.
52776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52777
52778 2008-12-20  Bruno Haible  <bruno@clisp.org>
52779
52780         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52781         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52782         Cygwin 1.5.x.
52783
52784 2008-12-20  Bruno Haible  <bruno@clisp.org>
52785
52786         Ensure mbstate_t is defined on HP-UX 11.11.
52787         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52788         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52789         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52790         AC_USE_SYSTEM_EXTENSIONS.
52791         * modules/fnmatch (Depends-on): Add extensions.
52792         * modules/mbrlen (Depends-on): Likewise.
52793         * modules/mbrtowc (Depends-on): Likewise.
52794         * modules/mbsinit (Depends-on): Likewise.
52795         * modules/mbsrtowcs (Depends-on): Likewise.
52796         * modules/mbswidth (Depends-on): Likewise.
52797         * modules/quotearg (Depends-on): Likewise.
52798         * modules/strftime (Depends-on): Likewise.
52799
52800 2008-12-20  Bruno Haible  <bruno@clisp.org>
52801
52802         Ensure wctob is declared on IRIX 6.5.
52803         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52804         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52805         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52807         of HAVE_WCTOB.
52808         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52809         HAVE_WCTOB.
52810         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52811
52812 2008-12-19  Bruno Haible  <bruno@clisp.org>
52813
52814         * modules/mbsrtowcs-tests: New file.
52815         * tests/test-mbsrtowcs1.sh: New file.
52816         * tests/test-mbsrtowcs2.sh: New file.
52817         * tests/test-mbsrtowcs3.sh: New file.
52818         * tests/test-mbsrtowcs4.sh: New file.
52819         * tests/test-mbsrtowcs.c: New file.
52820
52821         New module 'mbsrtowcs'.
52822         * lib/wchar.in.h (mbsrtowcs): New declaration.
52823         * lib/mbsrtowcs.c: New file.
52824         * m4/mbsrtowcs.m4: New file.
52825         * modules/mbsrtowcs: New file.
52826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52827         HAVE_MBSRTOWCS.
52828         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52829         HAVE_MBSRTOWCS.
52830         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52831
52832 2008-12-19  Bruno Haible  <bruno@clisp.org>
52833
52834         New module 'mbrlen'.
52835         * lib/wchar.in.h (mbrlen): New declaration.
52836         * lib/mbrlen.c: New file.
52837         * m4/mbrlen.m4: New file.
52838         * modules/mbrlen: New file.
52839         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52840         HAVE_MBRLEN.
52841         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52842         HAVE_MBRLEN.
52843         * doc/posix-functions/mbrlen.texi: Document the new module.
52844
52845 2008-12-19  Bruno Haible  <bruno@clisp.org>
52846
52847         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52848         * modules/mbrtowc (Depends-on): Add verify.
52849         Suggested by Paul Eggert.
52850
52851 2008-12-18  Bruno Haible  <bruno@clisp.org>
52852
52853         * modules/mbsinit-tests: New file.
52854         * tests/test-mbsinit.sh: New file.
52855         * tests/test-mbsinit.c: New file.
52856
52857 2008-12-18  Bruno Haible  <bruno@clisp.org>
52858
52859         * modules/mbrtowc-tests: New file.
52860         * tests/test-mbrtowc1.sh: New file.
52861         * tests/test-mbrtowc2.sh: New file.
52862         * tests/test-mbrtowc3.sh: New file.
52863         * tests/test-mbrtowc4.sh: New file.
52864         * tests/test-mbrtowc.c: New file.
52865
52866         New module 'mbrtowc'.
52867         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52868         mbsinit and mbrtowc.
52869         (mbrtowc): New declaration.
52870         * lib/mbrtowc.c: New file.
52871         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52872         * modules/mbrtowc: New file.
52873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52874         HAVE_MBRTOWC.
52875         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52876         HAVE_MBRTOWC.
52877         * doc/posix-functions/mbrtowc.texi: Document the new module.
52878
52879 2008-12-18  Bruno Haible  <bruno@clisp.org>
52880
52881         New module 'wctob'.
52882         * lib/wchar.in.h (wctob): New declaration.
52883         * lib/wctob.c: New file.
52884         * m4/wctob.m4: New file.
52885         * modules/wctob: New file.
52886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52887         HAVE_WCTOB.
52888         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52889         * doc/posix-functions/wctob.texi: Document the new module.
52890
52891 2008-12-18  Bruno Haible  <bruno@clisp.org>
52892
52893         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52894         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52895
52896 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52897
52898         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52899         G. Christensen" <tgc@jupiterrise.com>.
52900
52901         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52902         G. Christensen" <tgc@jupiterrise.com>.
52903
52904         * lib/flock.c: Need to include string.h.  Reported by "Tom
52905         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52906         <ebb9@byu.net>.
52907
52908 2008-12-18  Bruno Haible  <bruno@clisp.org>
52909
52910         * m4/locale-ja.m4: New file, from GNU gettext.
52911
52912 2008-12-17  Bruno Haible  <bruno@clisp.org>
52913
52914         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52915         Suggested by Eric Blake.
52916
52917 2008-12-17  Bruno Haible  <bruno@clisp.org>
52918
52919         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52920
52921 2008-12-17  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52924         * modules/mbsinit (Depends-on): Add verify.
52925         Suggested by Paul Eggert.
52926
52927 2008-12-17  Bruno Haible  <bruno@clisp.org>
52928
52929         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52930         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52931         gl_FUNC_MBRTOWC.
52932         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52933         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52934         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52935         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52936         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52937         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52938         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52939         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52940         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52941         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52942         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52943         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52944         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52945         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52946         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52947         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52948         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52949         * modules/trim (configure.ac): Likewise.
52950
52951 2008-12-17  Bruno Haible  <bruno@clisp.org>
52952
52953         * modules/btowc-tests: New file.
52954         * tests/test-btowc1.sh: New file.
52955         * tests/test-btowc2.sh: New file.
52956         * tests/test-btowc.c: New file.
52957
52958         New module 'btowc'.
52959         * lib/wchar.in.h (btowc): New declaration.
52960         * lib/btowc.c: New file.
52961         * m4/btowc.m4: New file.
52962         * modules/btowc: New file.
52963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52964         HAVE_BTOWC.
52965         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52966         * doc/posix-functions/btowc.texi: Document the new module.
52967
52968 2008-12-17  Bruno Haible  <bruno@clisp.org>
52969
52970         New module 'mbsinit'.
52971         * lib/wchar.in.h (mbsinit): New declaration.
52972         * lib/mbsinit.c: New file.
52973         * m4/mbsinit.m4: New file.
52974         * modules/mbsinit: New file.
52975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52976         HAVE_MBSINIT.
52977         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52978         HAVE_MBSINIT.
52979         * doc/posix-functions/mbsinit.texi: Document the new module.
52980
52981 2008-12-16  Bruno Haible  <bruno@clisp.org>
52982
52983         * lib/unistd.in.h: Add comment.
52984         * tests/test-environ.c: Don't include <stdlib.h>.
52985
52986 2008-12-16  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/parse-duration.h (parse_duration): Document return value
52989         convention.
52990         * lib/parse-duration.c: Include specification header first. Add
52991         comments.
52992         (_): Remove macro.
52993         (parse_year_month_day, parse_hour_minute_second): Move side effects
52994         outside of strchr call.
52995         (parse_non_iso8601): Move side effects outside of isspace call.
52996         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52997         call.
52998
52999 2008-12-16  Bruno Haible  <bruno@clisp.org>
53000
53001         * tests/test-parse-duration.sh: Produce no output when the test
53002         succeeds.
53003
53004 2008-12-16  Bruno Haible  <bruno@clisp.org>
53005
53006         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53007         expressions.
53008
53009 2008-12-15  Bruno Haible  <bruno@clisp.org>
53010
53011         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53012         * doc/glibc-functions/flistxattr.texi: Likewise.
53013         * doc/glibc-functions/fopencookie.texi: Likewise.
53014         * doc/glibc-functions/fremovexattr.texi: Likewise.
53015         * doc/glibc-functions/fsetxattr.texi: Likewise.
53016         * doc/glibc-functions/getxattr.texi: Likewise.
53017         * doc/glibc-functions/lgetxattr.texi: Likewise.
53018         * doc/glibc-functions/listxattr.texi: Likewise.
53019         * doc/glibc-functions/llistxattr.texi: Likewise.
53020         * doc/glibc-functions/lremovexattr.texi: Likewise.
53021         * doc/glibc-functions/lsetxattr.texi: Likewise.
53022         * doc/glibc-functions/removexattr.texi: Likewise.
53023         * doc/glibc-functions/setxattr.texi: Likewise.
53024         * doc/posix-functions/open_memstream.texi: Likewise.
53025
53026 2008-12-15  Eric Blake  <ebb9@byu.net>
53027
53028         Update doc for cygwin 1.7.
53029         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53030         functions.
53031         * doc/posix-functions/fchmodat.texi: Likewise.
53032         * doc/posix-functions/fchownat.texi: Likewise.
53033         * doc/posix-functions/fdopendir.texi: Likewise.
53034         * doc/posix-functions/fmemopen.texi: Likewise.
53035         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53036         * doc/posix-functions/fstatat.texi: Likewise.
53037         * doc/posix-functions/futimens.texi: Likewise.
53038         * doc/posix-functions/gai_strerror.texi: Likewise.
53039         * doc/posix-functions/getaddrinfo.texi: Likewise.
53040         * doc/posix-functions/getnameinfo.texi: Likewise.
53041         * doc/posix-functions/if_freenameindex.texi: Likewise.
53042         * doc/posix-functions/if_indextoname.texi: Likewise.
53043         * doc/posix-functions/if_nameindex.texi: Likewise.
53044         * doc/posix-functions/if_nametoindex.texi: Likewise.
53045         * doc/posix-functions/insque.texi: Likewise.
53046         * doc/posix-functions/linkat.texi: Likewise.
53047         * doc/posix-functions/llrint.texi: Likewise.
53048         * doc/posix-functions/llrintf.texi: Likewise.
53049         * doc/posix-functions/llrintl.texi: Likewise.
53050         * doc/posix-functions/lockf.texi: Likewise.
53051         * doc/posix-functions/lrintl.texi: Likewise.
53052         * doc/posix-functions/mkdirat.texi: Likewise.
53053         * doc/posix-functions/mkfifoat.texi: Likewise.
53054         * doc/posix-functions/mknodat.texi: Likewise.
53055         * doc/posix-functions/mq_close.texi: Likewise.
53056         * doc/posix-functions/mq_getattr.texi: Likewise.
53057         * doc/posix-functions/mq_notify.texi: Likewise.
53058         * doc/posix-functions/mq_open.texi: Likewise.
53059         * doc/posix-functions/mq_receive.texi: Likewise.
53060         * doc/posix-functions/mq_send.texi: Likewise.
53061         * doc/posix-functions/mq_setattr.texi: Likewise.
53062         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53063         * doc/posix-functions/mq_timedsend.texi: Likewise.
53064         * doc/posix-functions/mq_unlink.texi: Likewise.
53065         * doc/posix-functions/open_memstream.texi: Likewise.
53066         * doc/posix-functions/openat.texi: Likewise.
53067         * doc/posix-functions/posix_fadvise.texi: Likewise.
53068         * doc/posix-functions/posix_fallocate.texi: Likewise.
53069         * doc/posix-functions/posix_madvise.texi: Likewise.
53070         * doc/posix-functions/posix_memalign.texi: Likewise.
53071         * doc/posix-functions/posix_openpt.texi: Likewise.
53072         * doc/posix-functions/readlinkat.texi: Likewise.
53073         * doc/posix-functions/remque.texi: Likewise.
53074         * doc/posix-functions/renameat.texi: Likewise.
53075         * doc/posix-functions/rintl.texi: Likewise.
53076         * doc/posix-functions/sem_unlink.texi: Likewise.
53077         * doc/posix-functions/shm_open.texi: Likewise.
53078         * doc/posix-functions/shm_unlink.texi: Likewise.
53079         * doc/posix-functions/signgam.texi: Likewise.
53080         * doc/posix-functions/sigset.texi: Likewise.
53081         * doc/posix-functions/stpcpy.texi: Likewise.
53082         * doc/posix-functions/stpncpy.texi: Likewise.
53083         * doc/posix-functions/strerror.texi: Likewise.
53084         * doc/posix-functions/strtod.texi: Likewise.
53085         * doc/posix-functions/symlinkat.texi: Likewise.
53086         * doc/posix-functions/unlinkat.texi: Likewise.
53087         * doc/posix-functions/utimensat.texi: Likewise.
53088         * doc/glibc-functions/bindresvport.texi: Likewise.
53089         * doc/glibc-functions/dn_expand.texi: Likewise.
53090         * doc/glibc-functions/exp10.texi: Likewise.
53091         * doc/glibc-functions/exp10f.texi: Likewise.
53092         * doc/glibc-functions/fgetxattr.texi: Likewise.
53093         * doc/glibc-functions/flistxattr.texi: Likewise.
53094         * doc/glibc-functions/fopencookie.texi: Likewise.
53095         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53096         * doc/glibc-functions/fremovexattr.texi: Likewise.
53097         * doc/glibc-functions/fsetxattr.texi: Likewise.
53098         * doc/glibc-functions/getifaddrs.texi: Likewise.
53099         * doc/glibc-functions/getxattr.texi: Likewise.
53100         * doc/glibc-functions/lgetxattr.texi: Likewise.
53101         * doc/glibc-functions/listxattr.texi: Likewise.
53102         * doc/glibc-functions/llistxattr.texi: Likewise.
53103         * doc/glibc-functions/lremovexattr.texi: Likewise.
53104         * doc/glibc-functions/lsetxattr.texi: Likewise.
53105         * doc/glibc-functions/pow10.texi: Likewise.
53106         * doc/glibc-functions/pow10f.texi: Likewise.
53107         * doc/glibc-functions/rcmd_af.texi: Likewise.
53108         * doc/glibc-functions/removexattr.texi: Likewise.
53109         * doc/glibc-functions/res_init.texi: Likewise.
53110         * doc/glibc-functions/res_mkquery.texi: Likewise.
53111         * doc/glibc-functions/res_query.texi: Likewise.
53112         * doc/glibc-functions/res_querydomain.texi: Likewise.
53113         * doc/glibc-functions/res_send.texi: Likewise.
53114         * doc/glibc-functions/rresvport_af.texi: Likewise.
53115         * doc/glibc-functions/setxattr.texi: Likewise.
53116         * doc/glibc-functions/strcasestr.texi: Likewise.
53117
53118 2008-12-15  Bruno Haible  <bruno@clisp.org>
53119
53120         Fix compilation error on OSF/1 4.0.
53121         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53122         <sys/time.h>, simply delegate to the system header.
53123         Reported by Daniel Richard G. <oss@teragram.com>.
53124
53125 2008-12-15  Bruno Haible  <bruno@clisp.org>
53126
53127         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53128         * doc/posix-functions/fchmodat.texi: Likewise.
53129         * doc/posix-functions/fchownat.texi: Likewise.
53130         * doc/posix-functions/fdopendir.texi: Likewise.
53131         * doc/posix-functions/fstatat.texi: Likewise.
53132         * doc/posix-functions/mkdirat.texi: Likewise.
53133         * doc/posix-functions/unlinkat.texi: Likewise.
53134
53135 2008-12-14  Bruno Haible  <bruno@clisp.org>
53136
53137         Update doc for POSIX:2008.
53138         * doc/posix-functions/faccessat.texi: New file.
53139         * doc/posix-functions/fchmodat.texi: New file.
53140         * doc/posix-functions/fchownat.texi: New file.
53141         * doc/posix-functions/fdopendir.texi: New file.
53142         * doc/posix-functions/fstatat.texi: New file.
53143         * doc/posix-functions/futimens.texi: New file.
53144         * doc/posix-functions/linkat.texi: New file.
53145         * doc/posix-functions/mkdirat.texi: New file.
53146         * doc/posix-functions/mkfifoat.texi: New file.
53147         * doc/posix-functions/mknodat.texi: New file.
53148         * doc/posix-functions/open_wmemstream.texi: New file.
53149         * doc/posix-functions/openat.texi: New file.
53150         * doc/posix-functions/psiginfo.texi: New file.
53151         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53152         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53153         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53154         * doc/posix-functions/readlinkat.texi: New file.
53155         * doc/posix-functions/renameat.texi: New file.
53156         * doc/posix-functions/strerror_l.texi: New file.
53157         * doc/posix-functions/symlinkat.texi: New file.
53158         * doc/posix-functions/unlinkat.texi: New file.
53159         * doc/posix-functions/utimensat.texi: New file.
53160         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53161
53162 2008-12-14  Bruno Haible  <bruno@clisp.org>
53163
53164         Update doc for POSIX:2008.
53165         * doc/posix-functions/alphasort.texi: Renamed from
53166         doc/glibc-functions/alphasort.texi.
53167         * doc/posix-functions/dirfd.texi: Renamed from
53168         doc/glibc-functions/dirfd.texi.
53169         * doc/posix-functions/dprintf.texi: Renamed from
53170         doc/glibc-functions/dprintf.texi.
53171         * doc/posix-functions/duplocale.texi: Renamed from
53172         doc/glibc-functions/duplocale.texi.
53173         * doc/posix-functions/fexecve.texi: Renamed from
53174         doc/glibc-functions/fexecve.texi.
53175         * doc/posix-functions/fmemopen.texi: Renamed from
53176         doc/glibc-functions/fmemopen.texi.
53177         * doc/posix-functions/freelocale.texi: Renamed from
53178         doc/glibc-functions/freelocale.texi.
53179         * doc/posix-functions/getdate_err.texi: Renamed from
53180         doc/glibc-functions/getdate_err.texi.
53181         * doc/posix-functions/isalnum_l.texi: Renamed from
53182         doc/glibc-functions/isalnum_l.texi.
53183         * doc/posix-functions/isalpha_l.texi: Renamed from
53184         doc/glibc-functions/isalpha_l.texi.
53185         * doc/posix-functions/isblank_l.texi: Renamed from
53186         doc/glibc-functions/isblank_l.texi.
53187         * doc/posix-functions/iscntrl_l.texi: Renamed from
53188         doc/glibc-functions/iscntrl_l.texi.
53189         * doc/posix-functions/isdigit_l.texi: Renamed from
53190         doc/glibc-functions/isdigit_l.texi.
53191         * doc/posix-functions/isgraph_l.texi: Renamed from
53192         doc/glibc-functions/isgraph_l.texi.
53193         * doc/posix-functions/islower_l.texi: Renamed from
53194         doc/glibc-functions/islower_l.texi.
53195         * doc/posix-functions/isprint_l.texi: Renamed from
53196         doc/glibc-functions/isprint_l.texi.
53197         * doc/posix-functions/ispunct_l.texi: Renamed from
53198         doc/glibc-functions/ispunct_l.texi.
53199         * doc/posix-functions/isspace_l.texi: Renamed from
53200         doc/glibc-functions/isspace_l.texi.
53201         * doc/posix-functions/isupper_l.texi: Renamed from
53202         doc/glibc-functions/isupper_l.texi.
53203         * doc/posix-functions/iswalnum_l.texi: Renamed from
53204         doc/glibc-functions/iswalnum_l.texi.
53205         * doc/posix-functions/iswalpha_l.texi: Renamed from
53206         doc/glibc-functions/iswalpha_l.texi.
53207         * doc/posix-functions/iswblank_l.texi: Renamed from
53208         doc/glibc-functions/iswblank_l.texi.
53209         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53210         doc/glibc-functions/iswcntrl_l.texi.
53211         * doc/posix-functions/iswctype_l.texi: Renamed from
53212         doc/glibc-functions/iswctype_l.texi.
53213         * doc/posix-functions/iswdigit_l.texi: Renamed from
53214         doc/glibc-functions/iswdigit_l.texi.
53215         * doc/posix-functions/iswgraph_l.texi: Renamed from
53216         doc/glibc-functions/iswgraph_l.texi.
53217         * doc/posix-functions/iswlower_l.texi: Renamed from
53218         doc/glibc-functions/iswlower_l.texi.
53219         * doc/posix-functions/iswprint_l.texi: Renamed from
53220         doc/glibc-functions/iswprint_l.texi.
53221         * doc/posix-functions/iswpunct_l.texi: Renamed from
53222         doc/glibc-functions/iswpunct_l.texi.
53223         * doc/posix-functions/iswspace_l.texi: Renamed from
53224         doc/glibc-functions/iswspace_l.texi.
53225         * doc/posix-functions/iswupper_l.texi: Renamed from
53226         doc/glibc-functions/iswupper_l.texi.
53227         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53228         doc/glibc-functions/iswxdigit_l.texi.
53229         * doc/posix-functions/isxdigit_l.texi: Renamed from
53230         doc/glibc-functions/isxdigit_l.texi.
53231         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53232         doc/glibc-functions/mbsnrtowcs.texi.
53233         * doc/posix-functions/mkdtemp.texi: Renamed from
53234         doc/glibc-functions/mkdtemp.texi.
53235         * doc/posix-functions/newlocale.texi: Renamed from
53236         doc/glibc-functions/newlocale.texi.
53237         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53238         doc/glibc-functions/nl_langinfo_l.texi.
53239         * doc/posix-functions/open_memstream.texi: Renamed from
53240         doc/glibc-functions/open_memstream.texi.
53241         * doc/posix-functions/opterr.texi: Renamed from
53242         doc/glibc-functions/opterr.texi.
53243         * doc/posix-functions/optind.texi: Renamed from
53244         doc/glibc-functions/optind.texi.
53245         * doc/posix-functions/optopt.texi: Renamed from
53246         doc/glibc-functions/optopt.texi.
53247         * doc/posix-functions/psignal.texi: Renamed from
53248         doc/glibc-functions/psignal.texi.
53249         * doc/posix-functions/scandir.texi: Renamed from
53250         doc/glibc-functions/scandir.texi.
53251         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53252         doc/glibc-functions/sched_get_priority_min.texi.
53253         * doc/posix-functions/signgam.texi: Renamed from
53254         doc/glibc-functions/signgam.texi.
53255         * doc/posix-functions/stpcpy.texi: Renamed from
53256         doc/glibc-functions/stpcpy.texi.
53257         * doc/posix-functions/stpncpy.texi: Renamed from
53258         doc/glibc-functions/stpncpy.texi.
53259         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53260         doc/glibc-functions/strcasecmp_l.texi.
53261         * doc/posix-functions/strcoll_l.texi: Renamed from
53262         doc/glibc-functions/strcoll_l.texi.
53263         * doc/posix-functions/strfmon_l.texi: Renamed from
53264         doc/glibc-functions/strfmon_l.texi.
53265         * doc/posix-functions/strftime_l.texi: Renamed from
53266         doc/glibc-functions/strftime_l.texi.
53267         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53268         doc/glibc-functions/strncasecmp_l.texi.
53269         * doc/posix-functions/strndup.texi: Renamed from
53270         doc/glibc-functions/strndup.texi.
53271         * doc/posix-functions/strnlen.texi: Renamed from
53272         doc/glibc-functions/strnlen.texi.
53273         * doc/posix-functions/strsignal.texi: Renamed from
53274         doc/glibc-functions/strsignal.texi.
53275         * doc/posix-functions/strxfrm_l.texi: Renamed from
53276         doc/glibc-functions/strxfrm_l.texi.
53277         * doc/posix-functions/timer_gettime.texi: Renamed from
53278         doc/glibc-functions/timer_gettime.texi.
53279         * doc/posix-functions/tolower_l.texi: Renamed from
53280         doc/glibc-functions/tolower_l.texi.
53281         * doc/posix-functions/toupper_l.texi: Renamed from
53282         doc/glibc-functions/toupper_l.texi.
53283         * doc/posix-functions/towctrans_l.texi: Renamed from
53284         doc/glibc-functions/towctrans_l.texi.
53285         * doc/posix-functions/towlower_l.texi: Renamed from
53286         doc/glibc-functions/towlower_l.texi.
53287         * doc/posix-functions/towupper_l.texi: Renamed from
53288         doc/glibc-functions/towupper_l.texi.
53289         * doc/posix-functions/uselocale.texi: Renamed from
53290         doc/glibc-functions/uselocale.texi.
53291         * doc/posix-functions/vdprintf.texi: Renamed from
53292         doc/glibc-functions/vdprintf.texi.
53293         * doc/posix-functions/wcpcpy.texi:
53294         Renamed from doc/glibc-functions/wcpcpy.texi.
53295         * doc/posix-functions/wcpncpy.texi: Renamed from
53296         doc/glibc-functions/wcpncpy.texi.
53297         * doc/posix-functions/wcscasecmp.texi: Renamed from
53298         doc/glibc-functions/wcscasecmp.texi.
53299         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53300         doc/glibc-functions/wcscasecmp_l.texi.
53301         * doc/posix-functions/wcscoll_l.texi: Renamed from
53302         doc/glibc-functions/wcscoll_l.texi.
53303         * doc/posix-functions/wcsdup.texi: Renamed from
53304         doc/glibc-functions/wcsdup.texi.
53305         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53306         doc/glibc-functions/wcsncasecmp.texi.
53307         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53308         doc/glibc-functions/wcsncasecmp_l.texi.
53309         * doc/posix-functions/wcsnlen.texi: Renamed from
53310         doc/glibc-functions/wcsnlen.texi.
53311         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53312         doc/glibc-functions/wcsnrtombs.texi.
53313         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53314         doc/glibc-functions/wcsxfrm_l.texi.
53315         * doc/posix-functions/wctrans_l.texi: Renamed from
53316         doc/glibc-functions/wctrans_l.texi.
53317         * doc/posix-functions/wctype_l.texi: Renamed from
53318         doc/glibc-functions/wctype_l.texi.
53319         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53320         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53321         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53322         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53323         these subsections.
53324         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53325         Remove sections.
53326
53327 2008-12-14  Bruno Haible  <bruno@clisp.org>
53328
53329         Update doc for POSIX:2008.
53330         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53331
53332 2008-12-14  Bruno Haible  <bruno@clisp.org>
53333
53334         Update doc for POSIX:2008.
53335         * doc/pastposix-functions/bcmp.texi: Renamed from
53336         doc/posix-functions/bcmp.texi.
53337         * doc/pastposix-functions/bcopy.texi: Renamed from
53338         doc/posix-functions/bcopy.texi.
53339         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53340         doc/posix-functions/bsd_signal.texi.
53341         * doc/pastposix-functions/bzero.texi: Renamed from
53342         doc/posix-functions/bzero.texi.
53343         * doc/pastposix-functions/ecvt.texi: Renamed from
53344         doc/posix-functions/ecvt.texi.
53345         * doc/pastposix-functions/fcvt.texi: Renamed from
53346         doc/posix-functions/fcvt.texi.
53347         * doc/pastposix-functions/ftime.texi: Renamed from
53348         doc/posix-functions/ftime.texi.
53349         * doc/pastposix-functions/gcvt.texi: Renamed from
53350         doc/posix-functions/gcvt.texi.
53351         * doc/pastposix-functions/getcontext.texi: Renamed from
53352         doc/posix-functions/getcontext.texi.
53353         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53354         doc/posix-functions/gethostbyaddr.texi.
53355         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53356         doc/posix-functions/gethostbyname.texi.
53357         * doc/pastposix-functions/getwd.texi: Renamed from
53358         doc/posix-functions/getwd.texi.
53359         * doc/pastposix-functions/h_errno.texi: Renamed from
53360         doc/posix-functions/h_errno.texi.
53361         * doc/pastposix-functions/index.texi: Renamed from
53362         doc/posix-functions/index.texi.
53363         * doc/pastposix-functions/makecontext.texi: Renamed from
53364         doc/posix-functions/makecontext.texi.
53365         * doc/pastposix-functions/mktemp.texi: Renamed from
53366         doc/posix-functions/mktemp.texi.
53367         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53368         doc/posix-functions/pthread_attr_getstackaddr.texi.
53369         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53370         doc/posix-functions/pthread_attr_setstackaddr.texi.
53371         * doc/pastposix-functions/rindex.texi: Renamed from
53372         doc/posix-functions/rindex.texi.
53373         * doc/pastposix-functions/scalb.texi: Renamed from
53374         doc/posix-functions/scalb.texi.
53375         * doc/pastposix-functions/setcontext.texi: Renamed from
53376         doc/posix-functions/setcontext.texi.
53377         * doc/pastposix-functions/swapcontext.texi: Renamed from
53378         doc/posix-functions/swapcontext.texi.
53379         * doc/pastposix-functions/ualarm.texi: Renamed from
53380         doc/posix-functions/ualarm.texi.
53381         * doc/pastposix-functions/usleep.texi: Renamed from
53382         doc/posix-functions/usleep.texi.
53383         * doc/pastposix-functions/vfork.texi: Renamed from
53384         doc/posix-functions/vfork.texi.
53385         * doc/pastposix-functions/wcswcs.texi: Renamed from
53386         doc/posix-functions/wcswcs.texi.
53387         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53388         (Function Substitutes): Update.
53389
53390 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53391
53392         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53393         m4/strerror.m4.
53394
53395 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53396             Bruno Haible  <bruno@clisp.org>
53397
53398         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53399
53400 2008-12-13  Bruno Haible  <bruno@clisp.org>
53401
53402         * modules/strtoull (Depends-on): Remove unistd.
53403
53404 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53405
53406         * modules/strtoull (Depends-on): Add stdlib.
53407
53408 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53409
53410         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53411
53412 2008-12-10  Jim Meyering  <meyering@redhat.com>
53413
53414         gl_ASSERT: don't say assertions are disabled when they're not
53415         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53416         "checking whether to enable assertions... no", when they are in
53417         fact enabled.  This is solely a bug in the output of configure.
53418         In spite of saying "no", NDEBUG was not defined in that case.
53419         Also, as noted by Eric Blake, leave assertions enabled upon
53420         --enable-assert=INVALID.
53421
53422 2008-12-10  Bruno Haible  <bruno@clisp.org>
53423
53424         Change MODULES.html to refer to POSIX:2008 where possible.
53425         * MODULES.html.sh (POSIX2008_URL): New variable.
53426         (posix_headers): Remove sys/timeb, ucontext.
53427         (posix2001_headers): New variable.
53428         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53429         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53430         index, makecontext, mktemp, pthread_attr_getstackaddr,
53431         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53432         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53433         (posix2001_functions): New variable.
53434         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53435         otherwise.
53436
53437 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53438
53439         add missing include to parse-duration.c
53440         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53441         * modules/parse-duration (Depends-on): Add xalloc.
53442
53443         fix sed script reading maint.mk
53444         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53445         (syntax-check-rules): Use it.
53446
53447 2008-12-09  Bruno Haible  <bruno@clisp.org>
53448
53449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53450         MacOS X 10.4/PowerPC.
53451         Reported by Simon Josefsson.
53452
53453 2008-12-08  Jim Meyering  <meyering@redhat.com>
53454
53455         work around mingw's lack of some S_IF definitions
53456         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53457         Reported by Simon Josefsson.
53458
53459 2008-12-08  Bruno Haible  <bruno@clisp.org>
53460
53461         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53462         applied to variables. Needed on MacOS X 10.4/PowerPC.
53463         Reported by Simon Josefsson.
53464
53465 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53466         and Eric Blake  <ebb9@byu.net>
53467
53468         assert: honor --enable-assert
53469         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53470         order to honor --enable-assert, rather than treating it as a
53471         synonym for --disable-assert.
53472
53473 2008-12-08  Jim Meyering  <meyering@redhat.com>
53474
53475         * lib/posixtm.c: Remove now-useless declaration of mktime.
53476
53477         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53478
53479 2008-12-07  Bruno Haible  <bruno@clisp.org>
53480
53481         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53482         test_once): Mark functions as static.
53483         * tests/test-tls.c (test_tls): Likewise.
53484
53485 2008-12-07  Bruno Haible  <bruno@clisp.org>
53486
53487         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53488         iconv_register_autodetect.
53489
53490 2008-12-07  Jim Meyering  <meyering@redhat.com>
53491
53492         posixtm.c: avoid a warning
53493         * lib/posixtm.c (posixtime): Don't initialize tm0.
53494         It's no longer needed to placate gcc4's -Wuninitialized,
53495         and the attempt to placate would elicit a new warning.
53496
53497         unicodeio.c: mark unused parameters
53498         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53499         (fallback_failure_callback): Likewise.
53500
53501 2008-12-07  Bruno Haible  <bruno@clisp.org>
53502
53503         * gnulib-tool (func_create_testdir): When building the tests
53504         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53505         Reported by Simon Josefsson.
53506
53507 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53508
53509         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53510
53511 2008-12-06  Bruno Haible  <bruno@clisp.org>
53512
53513         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53514         Suggested by Eric Blake.
53515
53516 2008-12-06  Bruno Haible  <bruno@clisp.org>
53517
53518         Fix a c-stack test failure on MacOS X.
53519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53520         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53521         handler for SIGBUS as well.
53522         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53523         install a signal handler for SIGBUS as well.
53524         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53525
53526 2008-12-06  Bruno Haible  <bruno@clisp.org>
53527
53528         Advocacy documentation.
53529         * doc/gnulib-intro.texi (Benefits): New section.
53530         * doc/gnulib.texi: Update.
53531
53532 2008-12-06  Bruno Haible  <bruno@clisp.org>
53533
53534         Document the 'manywarnings' module.
53535         * doc/manywarnings.texi: New file.
53536         * doc/gnulib.texi: Include it.
53537
53538 2008-12-05  Eric Blake  <ebb9@byu.net>
53539
53540         tests: silence some gcc warnings
53541         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53542         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53543         type mismatches.
53544
53545 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53546             Bruno Haible  <bruno@clisp.org>
53547
53548         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53549
53550 2008-11-29  Jim Meyering  <meyering@redhat.com>
53551
53552         unicodeio.c: mark unused parameters
53553         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53554         (fallback_failure_callback): Likewise.
53555
53556         fts: fix a thinko
53557         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53558         (set_stat_type): Return S_IF*-valued "type" directly.
53559         Prompted by James Youngman's spotting a related bug.
53560         Confirmed by further testing through find.
53561
53562         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53563         * lib/fts.c (D_TYPE): Define.
53564         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53565         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53566         (s_ifmt_shift_bits): New function.
53567         (set_stat_type): New function.
53568         (fts_build): When not calling fts_stat, call set_stat_type
53569         to propagate dirent.d_type info to fts_read caller.
53570         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53571         fts_statp->st_mode type information may be valid.
53572
53573 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53574
53575         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53576         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53577         <sds@gnu.org>.
53578
53579 2008-11-20  Bruno Haible  <bruno@clisp.org>
53580
53581         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53582         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53583         INCLUDE_NEXT.
53584         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53585         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53586         * modules/math (Makefile.am): Substitute
53587         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53588         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53589
53590 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53591             Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/stdint.in.h: Define all type macros so that their expansion is
53594         a single typedef'ed token. Fixes a compilation failure in Boost which
53595         does "using ::int8_t;".
53596
53597 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53598
53599         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53600         gl_MANYWARN_ALL_GCC.
53601         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53602         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53603         * modules/manywarnings: New file.
53604         * MODULES.html.sh: Mention manywarnings module.
53605
53606 2008-11-18  Bruno Haible  <bruno@clisp.org>
53607
53608         * doc/gnulib-tool.texi (Unit tests): New section.
53609
53610 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53611
53612         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53613         paths like 'lib/po/foo.po'.
53614
53615 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53616
53617         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53618         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53619
53620 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53621
53622         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53623         parameter works.
53624
53625 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53626
53627         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53628
53629 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53630
53631         * modules/parse-duration-tests: New file.
53632         * tests/test-parse-duration.sh: New file.
53633         * tests/test-parse-duration.c: New file.
53634
53635         New module 'parse-duration'.
53636         * lib/parse-duration.h: New file.
53637         * lib/parse-duration.c: New file.
53638         * modules/parse-duration: New file.
53639
53640 2008-11-17  Bruno Haible  <bruno@clisp.org>
53641
53642         * tests/test-select-out.sh: Comment out the first pipe test.
53643         Reported by Simon Josefsson.
53644
53645 2008-11-17  Bruno Haible  <bruno@clisp.org>
53646
53647         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53648         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53649         gl_HOSTENT.
53650
53651 2008-11-17  Bruno Haible  <bruno@clisp.org>
53652
53653         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53654         -lnetwork and -lnet. Needed for Haiku and BeOS.
53655
53656 2008-11-16  Bruno Haible  <bruno@clisp.org>
53657
53658         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53659
53660 2008-11-16  Bruno Haible  <bruno@clisp.org>
53661
53662         Avoid test failure on Haiku.
53663         * tests/test-fsync.c: Include <errno.h>.
53664         (main): Don't require that fsync (0) fails.
53665
53666 2008-11-15  Bruno Haible  <bruno@clisp.org>
53667
53668         New module 'hostent'.
53669         * modules/hostent: New file.
53670         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53671
53672 2008-11-15  Bruno Haible  <bruno@clisp.org>
53673
53674         New module 'servent'.
53675         * modules/servent: New file.
53676         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53677
53678 2008-11-15  Bruno Haible  <bruno@clisp.org>
53679
53680         Avoid generating same test program with two different rules.
53681         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53682         test-frexp to test-frexp-nolibm.
53683         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53684         test-frexpl to test-frexpl-nolibm.
53685
53686 2008-11-15  Bruno Haible  <bruno@clisp.org>
53687
53688         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53689         $(FREXPL_LIBM).
53690
53691 2008-11-15  Bruno Haible  <bruno@clisp.org>
53692
53693         * lib/netdb.in.h: Activate the definitions also when the system's
53694         <netdb.h> has 'struct addrinfo'.
53695         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53696         EAI_OVERFLOW or AI_NUMERICSERV.
53697         * doc/posix-headers/netdb.texi: Document the problem.
53698
53699 2008-11-15  Bruno Haible  <bruno@clisp.org>
53700
53701         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53702
53703         Make the 'sched' module work on platforms where <sched.h> exists but
53704         is incomplete (such as Haiku).
53705         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53706         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53707         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53708         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53709         HAVE_STRUCT_SCHED_PARAM.
53710         * modules/sched (Depends-on): Add include_next.
53711         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53712         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53713         * doc/posix-headers/sched.texi: Document the issue.
53714
53715 2008-11-13  Jim Meyering  <meyering@redhat.com>
53716
53717         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53718         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53719         test would fail due to the difference in the Report bugs to ...
53720         line.  The expected address is empty, "<>", while the actual
53721         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53722
53723 2008-11-12  Bruno Haible  <bruno@clisp.org>
53724
53725         lstat: don't compile lstat.c on systems lacking lstat
53726         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53727         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53728         Reported by Daniel P. Berrange via Jim Meyering.
53729
53730 2008-11-12  Jim Meyering  <meyering@redhat.com>
53731
53732         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53733
53734 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53735
53736         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53737         instead.
53738
53739 2008-11-12  Bruno Haible  <bruno@clisp.org>
53740
53741         * lib/unicodeio.c: Include unistr.h.
53742         (utf8_wctomb): Remove function.
53743         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53744
53745 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53746
53747         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53748         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53749         <bruno@clisp.org>.
53750         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53751
53752 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53753
53754         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53755         * doc/gnulib.texi: Add section for warnings.
53756
53757 2008-11-11  Bruno Haible  <bruno@clisp.org>
53758
53759         * lib/sockets.h: Add a comment.
53760
53761 2008-11-11  Karl Berry  <karl@gnu.org>
53762
53763         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53764
53765 2008-11-11  Eric Blake  <ebb9@byu.net>
53766
53767         fdl.texi: avoid git symlinks
53768         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53769
53770 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53771
53772         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53773
53774 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53775
53776         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53777         (gl_WARN_ADD): Substitute $2 if literal.
53778
53779 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53780
53781         * m4/warning.m4: Remove.
53782
53783 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53784
53785         * m4/warnings.m4: Almost complete rewrite. :-)
53786
53787 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53788
53789         * modules/warnings: New module.
53790         * m4/warnings.m4: New file.
53791         * MODULES.html.sh: Mention warnings module.
53792         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53793         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53794
53795 2008-11-10  Eric Blake  <ebb9@byu.net>
53796
53797         fdl.texi: make a symlink to the latest version
53798         * doc/standards.texi: Revert today's earlier change.
53799         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53800         * doc/fdl.texi: ...and replace this with a symlink to the newer
53801         fdl-1.3.texi.
53802
53803 2008-11-10  Bruno Haible  <bruno@clisp.org>
53804
53805         * tests/test-select-fd.c (main): Accept the result file name as fourth
53806         argument.
53807         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53808         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53809
53810 2008-11-10  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53813         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53814         as autoconf-substituted macros.
53815         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53817         gl_NETDB_H_DEFAULTS. Set these variables.
53818         * modules/netdb (Makefile.am): Substitute these variables.
53819
53820 2008-11-10  Eric Blake  <ebb9@byu.net>
53821
53822         standards.texi: include correct file for FDL 1.3
53823         * doc/standards.texi (GNU Free Documentation License): Change
53824         include file to pull in FDL 1.3, not 1.2.
53825
53826         fdl.texi: revert accidental change to license
53827         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53828
53829 2008-11-10  Bruno Haible  <bruno@clisp.org>
53830
53831         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53832         cross-compiling guesses also when the native compile gives no result.
53833
53834 2008-11-10  Bruno Haible  <bruno@clisp.org>
53835
53836         * lib/spawni.c (__spawni): Force variable into the stack.
53837
53838 2008-11-10  Bruno Haible  <bruno@clisp.org>
53839
53840         Add support for Haiku.
53841         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53842         glibc and BeOS, but also on Haiku.
53843         * lib/fpurge.c (fpurge): Likewise.
53844         * lib/freadable.c (freadable): Likewise.
53845         * lib/freadahead.c (freadahead): Likewise.
53846         * lib/freading.c (freading): Likewise.
53847         * lib/freadptr.c (freadptr): Likewise.
53848         * lib/freadseek.c (freadptrinc): Likewise.
53849         * lib/fseeko.c (rpl_fseeko): Likewise.
53850         * lib/fseterr.c (fseterr): Likewise.
53851         * lib/fwritable.c (fwritable): Likewise.
53852         * lib/fwriting.c (fwriting): Likewise.
53853         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53854
53855 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53856
53857         * lib/config.charset: Treat Haiku like BeOS.
53858
53859 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53860
53861         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53862         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53863
53864 2008-11-08  Bruno Haible  <bruno@clisp.org>
53865
53866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53867         AC_CACHE_CHECK.
53868
53869 2008-11-08  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53872
53873 2008-11-08  Bruno Haible  <bruno@clisp.org>
53874
53875         * tests/test-select-fd.c: New file.
53876         * tests/test-select-in.sh: New file.
53877         * tests/test-select-out.sh: New file.
53878         * tests/test-select-stdin.c: New file.
53879         * modules/select-tests (Files): Add the new files.
53880         (Depends-on): Add gettimeofday.
53881         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53882         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53883         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53884
53885 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53886             Bruno Haible  <bruno@clisp.org>
53887
53888         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53889
53890 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53891
53892         * build-aux/pmccabe2html: Added support for C++ source files.
53893
53894 2008-11-05  Ben Pfaff  <blp@gnu.org>
53895
53896         Fix lib/close.c build on Windows.
53897         * modules/close (Files): Add lib/w32sock.h.
53898
53899 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53900
53901         Accept Bison's NEWS format.
53902         * build-aux/announce-gen (print_news_deltas): Tweak
53903         $re_prefix.
53904
53905 2008-11-04  Bruno Haible  <bruno@clisp.org>
53906
53907         * modules/random_r (Maintainer): Add glibc.
53908
53909 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53910
53911         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53912         by karl@freefriends.org (Karl Berry).
53913         * doc/alloca.texi: Likewise.
53914         * doc/c-ctype.texi: Likewise.
53915         * doc/c-strcase.texi: Likewise.
53916         * doc/c-strcaseeq.texi: Likewise.
53917         * doc/c-strcasestr.texi: Likewise.
53918         * doc/c-strstr.texi: Likewise.
53919         * doc/c-strtod.texi: Likewise.
53920         * doc/c-strtold.texi: Likewise.
53921         * doc/ctime.texi: Likewise.
53922         * doc/error.texi: Likewise.
53923         * doc/fdl.texi: Likewise.
53924         * doc/gcd.texi: Likewise.
53925         * doc/getdate.texi: Likewise.
53926         * doc/gnulib-intro.texi: Likewise.
53927         * doc/gnulib-tool.texi: Likewise.
53928         * doc/gnulib.texi: Likewise.
53929         * doc/inet_ntoa.texi: Likewise.
53930         * doc/maintain.texi: Likewise.
53931         * doc/make-stds.texi: Likewise.
53932         * doc/quote.texi: Likewise.
53933         * doc/regexprops-generic.texi: Likewise.
53934         * doc/standards.texi: Likewise.
53935         * doc/verify.texi: Likewise.
53936         * doc/visibility.texi: Likewise.
53937         * doc/gnulib.texi (GNU Free Documentation License): Include
53938         fdl-1.3.texi instead of fdl.texi.
53939
53940 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53941
53942         * doc/fdl-1.3.texi: New file, from
53943         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53944         * modules/fdl-1.3: Add.
53945         * MODULES.html.sh: Add fdl-1.3.
53946
53947 2008-11-03  Bruno Haible  <bruno@clisp.org>
53948
53949         Make determination of absolute name of header file work with AIX xlc.
53950         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53951         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53952         preprocessing.
53953         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53954         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53955
53956 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53957
53958         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53959         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53960         <ludo@gnu.org>.
53961
53962 2008-11-02  Bruno Haible  <bruno@clisp.org>
53963
53964         Mark 'strpbrk' obsolete.
53965         * modules/strpbrk (Status, Notice): New sections.
53966         * modules/strtok_r (Depends-on): Add strpbrk.
53967
53968 2008-11-02  Bruno Haible  <bruno@clisp.org>
53969
53970         Mark 'strdup' obsolete.
53971         * modules/strdup (Status, Notice): New sections.
53972         * modules/findprog (Depends-on): Add strdup.
53973         * modules/getaddrinfo (Depends-on): Likewise.
53974         * modules/localename (Depends-on): Likewise.
53975         * modules/relocatable-lib (Depends-on): Likewise.
53976         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53977         * modules/relocatable-prog (Depends-on): Likewise.
53978         * modules/trim (Depends-on): Likewise.
53979         * modules/unictype/gen-ctype (Depends-on): Likewise.
53980         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53981
53982 2008-11-02  Bruno Haible  <bruno@clisp.org>
53983
53984         Mark 'strcspn' obsolete.
53985         * modules/strcspn (Status, Notice): New sections.
53986
53987 2008-11-02  Bruno Haible  <bruno@clisp.org>
53988
53989         Mark 'rmdir' obsolete.
53990         * modules/rmdir (Status, Notice): New sections.
53991         * modules/clean-temp (Depends-on): Add rmdir.
53992         * modules/openat (Depends-on): Likewise.
53993
53994 2008-11-02  Bruno Haible  <bruno@clisp.org>
53995
53996         Mark 'raise' obsolete.
53997         * modules/raise (Status, Notice): New sections.
53998         (Include): Specify <signal.h>.
53999         * modules/stdio (Depends-on): Add raise.
54000         * modules/write (Depends-on): Likewise.
54001
54002 2008-11-02  Bruno Haible  <bruno@clisp.org>
54003
54004         Mark 'memset' obsolete.
54005         * modules/memset (Status, Notice): New sections.
54006
54007 2008-11-02  Bruno Haible  <bruno@clisp.org>
54008
54009         Mark 'memmove' obsolete.
54010         * modules/memmove (Status, Notice): New sections.
54011         * modules/argp (Depends-on): Add memmove.
54012         * modules/argz (Depends-on): Likewise.
54013         * modules/canonicalize (Depends-on): Likewise.
54014         * modules/canonicalize-lgpl (Depends-on): Likewise.
54015         * modules/fts (Depends-on): Likewise.
54016         * modules/getcwd (Depends-on): Likewise.
54017         * modules/human (Depends-on): Likewise.
54018         * modules/regex (Depends-on): Likewise.
54019         * modules/striconveh (Depends-on): Likewise.
54020         * modules/trim (Depends-on): Likewise.
54021         * modules/unistr/u8-move (Depends-on): Likewise.
54022         * modules/unistr/u16-move (Depends-on): Likewise.
54023         * modules/unistr/u32-move (Depends-on): Likewise.
54024
54025 2008-11-02  Bruno Haible  <bruno@clisp.org>
54026
54027         Mark 'memcpy' obsolete.
54028         * modules/memcpy (Status, Notice): New sections.
54029
54030 2008-11-02  Bruno Haible  <bruno@clisp.org>
54031
54032         Mark 'memcmp' obsolete.
54033         * modules/memcmp (Status, Notice): New sections.
54034         * modules/argmatch (Depends-on): Add memchr.
54035         * modules/backupfile (Depends-on): Likewise.
54036         * modules/c-strcasestr (Depends-on): Likewise.
54037         * modules/crypto/des (Depends-on): Likewise.
54038         * modules/csharpcomp (Depends-on): Likewise.
54039         * modules/fnmatch (Depends-on): Likewise.
54040         * modules/git-merge-changelog (Depends-on): Likewise.
54041         * modules/isnand (Depends-on): Likewise.
54042         * modules/isnand-nolibm (Depends-on): Likewise.
54043         * modules/isnanf (Depends-on): Likewise.
54044         * modules/isnanf-nolibm (Depends-on): Likewise.
54045         * modules/isnanl (Depends-on): Likewise.
54046         * modules/isnanl-nolibm (Depends-on): Likewise.
54047         * modules/mbchar (Depends-on): Likewise.
54048         * modules/memcoll (Depends-on): Likewise.
54049         * modules/quotearg (Depends-on): Likewise.
54050         * modules/regex (Depends-on): Likewise.
54051         * modules/relocatable-prog (Depends-on): Likewise.
54052         * modules/same (Depends-on): Likewise.
54053         * modules/signbit (Depends-on): Likewise.
54054         * modules/strcasestr-simple (Depends-on): Likewise.
54055         * modules/unictype/gen-ctype (Depends-on): Likewise.
54056         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54057         * modules/uniname/uniname (Depends-on): Likewise.
54058         * modules/unistr/u8-cmp (Depends-on): Likewise.
54059
54060 2008-11-02  Bruno Haible  <bruno@clisp.org>
54061
54062         Mark 'memchr' obsolete.
54063         * modules/memchr (Status, Notice): New sections.
54064         * modules/argp (Depends-on): Add memchr.
54065         * modules/base64 (Depends-on): Likewise.
54066         * modules/c-strcasestr (Depends-on): Likewise.
54067         * modules/chdir-long (Depends-on): Likewise.
54068         * modules/fnmatch (Depends-on): Likewise.
54069         * modules/getsubopt (Depends-on): Likewise.
54070         * modules/git-merge-changelog (Depends-on): Likewise.
54071         * modules/glob (Depends-on): Likewise.
54072         * modules/strcasestr-simple (Depends-on): Likewise.
54073         * modules/strnlen (Depends-on): Likewise.
54074
54075 2008-11-02  Bruno Haible  <bruno@clisp.org>
54076
54077         Mark 'atexit' obsolete.
54078         * modules/atexit (Status, Notice): New sections.
54079         * modules/chdir-long (Depends-on): Add atexit.
54080         * modules/wait-process (Depends-on): Likewise.
54081
54082 2008-11-02  Bruno Haible  <bruno@clisp.org>
54083
54084         * gnulib-tool: New option --with-obsolete.
54085         (func_usage): Document it.
54086         (func_modules_transitive_closure): Drop obsolete dependencies if
54087         incobsolete is not true.
54088         (func_import): Read and save the incobsolete variable to the cache.
54089
54090 2008-11-02  Bruno Haible  <bruno@clisp.org>
54091
54092         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54093         * gnulib-tool: New option --extract-status.
54094         (func_usage): Document it.
54095         (sed_extract_prog): Recognize it.
54096         (func_get_status): New function.
54097
54098 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54099
54100         * modules/sockets (License): Change from LGPL to LGPLv2+.
54101
54102 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54103
54104         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54105
54106 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54107
54108         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54109         Mention times and sys_times.
54110         * modules/sys_times, modules/sys_times-tests: New modules.
54111         * modules/times, modules/times-tests: Likewise
54112         * m4/sys_times_h.m4: New file.
54113         * lib/sys_times.in.h: Likewise
54114         * lib/times.c: Likewise.
54115         * tests/test-sys_times.c: Likewise.
54116         * tests/test-times.c: Likewise.
54117         * doc/posix-headers/sys_times.texi: Update.
54118         * doc/posix-functions/times.texi: Update.
54119
54120 2008-10-28  Jim Meyering  <meyering@redhat.com>
54121
54122         * modules/tempname (Depends-on): Add lstat.
54123
54124         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54125
54126 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54127
54128         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54129         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54130         using idiom used elsewhere in gnulib.
54131
54132 2008-10-27  Jim Meyering  <meyering@redhat.com>
54133
54134         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54135
54136 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54137
54138         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54139         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54140         programs.
54141         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54142
54143 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54144
54145         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54146
54147 2008-10-27  Bruno Haible  <bruno@clisp.org>
54148
54149         * tests/test-lstat.c: Include <stdio.h>.
54150
54151 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54152
54153         * modules/lstat-tests: New module.
54154         * tests/test-lstat.c: New file.
54155
54156 2008-10-26  Jim Meyering  <meyering@redhat.com>
54157
54158         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54159
54160 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54161             Bruno Haible  <bruno@clisp.org>
54162
54163         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54164         * modules/configmake (Include): Add a note that the include must come
54165         after all system headers.
54166         * lib/javaversion.c: Include configmake.h after all other includes.
54167
54168 2008-10-26  Bruno Haible  <bruno@clisp.org>
54169
54170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54171         HAVE_STRUCT_RANDOM_DATA to 1.
54172         (gl_STDLIB_H): Simplify.
54173
54174 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54175
54176         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54177         substitute HAVE_STRUCT_RANDOM_DATA.
54178         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54179         random_data.
54180         * modules/stdlib (Makefile.am): Substitute
54181         HAVE_STRUCT_RANDOM_DATA.
54182
54183 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54184
54185         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54186         * doc/gnulib-intro.texi (Copyright): Likewise.
54187
54188 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54189
54190         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54191         findings.
54192
54193 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54194             Bruno Haible  <bruno@clisp.org>
54195
54196         * lib/unistd.in.h: Include <winsock2.h>.
54197         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54198         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54199         Provide dummy declarations.
54200         (gethostname): Override.
54201         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54202         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54203         gl_PREREQ_SYS_H_WINSOCK2.
54204         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54205         * doc/posix-functions/gethostname.texi: More details.
54206
54207 2008-10-25  Bruno Haible  <bruno@clisp.org>
54208
54209         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54210         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54211         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54212
54213         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54214         here ...
54215         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54216         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54217         gl_UNISTD_H_DEFAULTS.
54218
54219 2008-10-25  Eric Blake  <ebb9@byu.net>
54220
54221         signbit: avoid spurious compiler failure
54222         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54223         declarations inside function.
54224
54225 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54226             Bruno Haible  <bruno@clisp.org>
54227
54228         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54229         * modules/random_r (Depends-on): Add stdint.
54230
54231 2008-10-24  Bruno Haible  <bruno@clisp.org>
54232
54233         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54234         Eggert.
54235         * modules/strerror (License): Likewise.
54236
54237 2008-10-24  Jim Meyering  <meyering@redhat.com>
54238
54239         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54240         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54241
54242 2008-10-24  Eric Blake  <ebb9@byu.net>
54243
54244         getgroups: fix compilation when getgroups is available
54245         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54246         but with <config.h> override of getgroups disabled.
54247
54248 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54249
54250         * doc/gnulib.texi (Header files): Add note about C++ problems.
54251         Explained by Bruno Haible <bruno@clisp.org>.
54252
54253 2008-10-23  Bruno Haible  <bruno@clisp.org>
54254
54255         Define a dummy SA_NODEFER macro on Interix.
54256         * lib/signal.in.h (SA_NODEFER): Define fallback.
54257         Reported by Aleksey Cheusov <cheusov@tut.by> via
54258         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54259
54260 2008-10-23  Bruno Haible  <bruno@clisp.org>
54261
54262         * modules/freadahead (License): Change to LGPLv2+.
54263         Suggested by Simon Josefsson.
54264
54265 2008-10-23  Jim Meyering  <meyering@redhat.com>
54266
54267         random_r: new module
54268         * modules/random_r: New file.
54269         * m4/random_r.m4: New file.
54270         * lib/random_r.c: New file, from glibc.
54271         * modules/random_r-tests: New file.
54272         * tests/test-random_r.c: New file.
54273         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54274          Declare.
54275         (RAND_MAX): Define.
54276         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54277         * modules/stdlib: Substitute them, too.
54278         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54279         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54280         * doc/glibc-functions/random_r.texi: Likewise.
54281         * doc/glibc-functions/setstate_r.texi: Likewise.
54282         * doc/glibc-functions/srandom_r.texi: Likewise.
54283         * config/srclist.txt: Mention it.
54284
54285 2008-10-23  David Lutterkort  <lutter@redhat.com>
54286
54287         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54288         link requirement
54289
54290 2008-10-23  Jim Meyering  <meyering@redhat.com>
54291
54292         selinux-h: mark parameters of stub functions as intentionally unused
54293         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54294         * lib/se-context.in.h: Likewise.
54295
54296 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54297
54298         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54299
54300 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54301
54302         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54303
54304 2008-10-22  Eric Blake  <ebb9@byu.net>
54305
54306         glthread/thread: avoid compiler warning
54307         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54308         Add unreachable abort to silence compiler.
54309
54310 2008-10-22  Eric Blake  <ebb9@byu.net>
54311
54312         netdb: also supply struct addrinfo for cygwin 1.5.x
54313         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54314         older cygwin.
54315         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54316         cygwin.
54317         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54318
54319 2008-10-22  Bruno Haible  <bruno@clisp.org>
54320
54321         * users.txt: Update entry about pspp.
54322
54323 2008-10-21  Bruno Haible  <bruno@clisp.org>
54324
54325         Simplification.
54326         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54327         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54328
54329         Simplification.
54330         * lib/ioctl.c (ioctl): Don't undefine.
54331         * lib/socket.c (socket): Don't undefine.
54332
54333         Remove unused module indicator macros.
54334         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54335         GNULIB_$1 as a C macro.
54336
54337         * doc/posix-functions/close.texi: Undo last change.
54338         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54339         Windows platforms.
54340
54341 2008-10-21  Bruno Haible  <bruno@clisp.org>
54342
54343         Add gethostname() declaration to <unistd.h>.
54344         * lib/unistd.in.h (gethostname): New declaration.
54345         * lib/gethostname.c: Include <unistd.h>.
54346         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54347         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54349         and HAVE_GETHOSTNAME.
54350         * modules/gethostname (Depends-on): Add unistd.
54351         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54352         (Include): Specify <unistd.h>.
54353         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54354         HAVE_GETHOSTNAME.
54355         * tests/test-gethostname.c: Include <unistd.h> first.
54356
54357 2008-10-21  Bruno Haible  <bruno@clisp.org>
54358
54359         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54360         * modules/select-tests (Depends-on): Likewise.
54361         Reported by Simon Josefsson.
54362
54363 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54364
54365         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54366         * lib/accept.c: New file, based on winsock.c.
54367         * lib/bind.c: New file, based on winsock.c.
54368         * lib/connect.c: New file, based on winsock.c.
54369         * lib/getpeername.c: New file, based on winsock.c.
54370         * lib/getsockname.c: New file, based on winsock.c.
54371         * lib/getsockopt.c: New file, based on winsock.c.
54372         * lib/ioctl.c: New file, based on winsock.c.
54373         * lib/listen.c: New file, based on winsock.c.
54374         * lib/recv.c: New file, based on winsock.c.
54375         * lib/recvfrom.c: New file, based on winsock.c.
54376         * lib/send.c: New file, based on winsock.c.
54377         * lib/sendto.c: New file, based on winsock.c.
54378         * lib/setsockopt.c: New file, based on winsock.c.
54379         * lib/shutdown.c: New file, based on winsock.c.
54380         * lib/socket.c: New file, based on winsock.c.
54381         * lib/w32sock.h: New file, based on winsock.c.
54382         * lib/winsock.c: Remove file.
54383         * modules/accept: Likewise.
54384         * modules/bind: Likewise.
54385         * modules/connect: Likewise.
54386         * modules/getpeername: Likewise.
54387         * modules/getsockname: Likewise.
54388         * modules/getsockopt: Likewise.
54389         * modules/ioctl: Likewise.
54390         * modules/listen: Likewise.
54391         * modules/recv: Likewise.
54392         * modules/recvfrom: Likewise.
54393         * modules/send: Likewise.
54394         * modules/sendto: Likewise.
54395         * modules/setsockopt: Likewise.
54396         * modules/shutdown: Likewise.
54397         * modules/socket: Use socket.c instead of winsock.c.
54398         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54399         * doc/posix-functions/accept.texi: Doc fix.
54400         * doc/posix-functions/bind.texi: Doc fix.
54401         * doc/posix-functions/close.texi: Doc fix.
54402         * doc/posix-functions/connect.texi: Doc fix.
54403         * doc/posix-functions/getpeername.texi: Doc fix.
54404         * doc/posix-functions/getsockname.texi: Doc fix.
54405         * doc/posix-functions/getsockopt.texi: Doc fix.
54406         * doc/posix-functions/ioctl.texi: Doc fix.
54407         * doc/posix-functions/listen.texi: Doc fix.
54408         * doc/posix-functions/recv.texi: Doc fix.
54409         * doc/posix-functions/recvfrom.texi: Doc fix.
54410         * doc/posix-functions/send.texi: Doc fix.
54411         * doc/posix-functions/sendto.texi: Doc fix.
54412         * doc/posix-functions/setsockopt.texi: Doc fix.
54413         * doc/posix-functions/shutdown.texi: Doc fix.
54414         * doc/posix-functions/socket.texi: Doc fix.
54415
54416 2008-10-20  Bruno Haible  <bruno@clisp.org>
54417
54418         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54419         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54420         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54421         as an alias for SIGABRT.
54422         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54423         (sigaction): Map it to SIGABRT.
54424         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54425
54426 2008-10-20  Bruno Haible  <bruno@clisp.org>
54427
54428         * lib/fts.c: Don't include lstat.h.
54429         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54430
54431         Move the lstat() declaration to <sys/stat.h>.
54432         * lib/lstat.h: Remove file.
54433         * lib/sys_stat.in.h: Add special invocation convention.
54434         (lstat): New declaration.
54435         * lib/lstat.c (orig_lstat): New function.
54436         (rpl_lstat): Use orig_lstat instead of lstat.
54437         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54438         AC_C_INLINE. Set REPLACE_LSTAT.
54439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54440         and REPLACE_LSTAT.
54441         * modules/lstat (Files): Remove lib/lstat.h.
54442         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54443         (Include): Specify <sys/stat.h> instead of lstat.h.
54444         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54445         REPLACE_LSTAT.
54446         * NEWS: Mention the change.
54447
54448 2008-10-20  Bruno Haible  <bruno@clisp.org>
54449
54450         * modules/posix_spawn-tests: New file.
54451         * tests/test-posix_spawn3.c: New file.
54452
54453 2008-10-20  Bruno Haible  <bruno@clisp.org>
54454
54455         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54456         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54457         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54458         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54459         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54460
54461 2008-10-20  Bruno Haible  <bruno@clisp.org>
54462
54463         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54464         of posix_spawn on AIX 5.3.
54465
54466 2008-10-20  Bruno Haible  <bruno@clisp.org>
54467
54468         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54469
54470 2008-10-20  Bruno Haible  <bruno@clisp.org>
54471
54472         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54473         of AC_LANG_PROGRAM.
54474
54475 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54476
54477         * lib/netdb.in.h: Don't define GNU specific constants until they
54478         are supported or needed.  Reported by Bruno Haible
54479         <bruno@clisp.org>.
54480
54481 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54482
54483         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54484
54485 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54486
54487         * lib/getaddrinfo.h: Remove file.
54488         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54489         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54490         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54491         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54492         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54493         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54494         * tests/test-getaddrinfo.c: Likewise.
54495         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54496         * NEWS: Mention change.
54497
54498 2008-10-19  Bruno Haible  <bruno@clisp.org>
54499
54500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54501
54502 2008-10-19  Bruno Haible  <bruno@clisp.org>
54503
54504         * lib/wait-process.c: Include simply <sys/wait.h>.
54505         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54506         WIFSTOPPED): Remove fallback definitions.
54507         * modules/wait-process (Depends-on): Add sys_wait.
54508
54509         New module 'sys_wait'.
54510         * modules/sys_wait: New file.
54511         * lib/sys_wait.in.h: New file, partially copied from
54512         lib/wait-process.c.
54513         * m4/sys_wait_h.m4: New file.
54514         * doc/posix-headers/sys_wait.texi: Mention the new module.
54515
54516 2008-10-19  Bruno Haible  <bruno@clisp.org>
54517
54518         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54519
54520 2008-10-19  Bruno Haible  <bruno@clisp.org>
54521
54522         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54523         * lib/wait-process.c (WAIT_T): Remove type.
54524         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54525         (wait_subprocess): Update.
54526
54527 2008-10-19  Bruno Haible  <bruno@clisp.org>
54528
54529         New module 'atoll'.
54530         * modules/atoll: New file.
54531         * lib/stdlib.in.h (atoll): New declaration.
54532         * lib/atoll.c: New file, from glibc with modifications.
54533         * m4/atoll.m4: New file.
54534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54535         HAVE_ATOLL.
54536         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54537         * doc/posix-functions/atoll.texi: Mention the new module.
54538
54539 2008-10-19  Bruno Haible  <bruno@clisp.org>
54540
54541         Add strtoull() declaration to <stdlib.h>.
54542         * lib/stdlib.in.h (strtoull): New declaration.
54543         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54544         Set HAVE_STRTOULL.
54545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54546         HAVE_STRTOULL.
54547         * modules/strtoull (Depends-on): Add stdlib.
54548         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54549         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54550         HAVE_STRTOULL.
54551
54552 2008-10-19  Bruno Haible  <bruno@clisp.org>
54553
54554         Add strtoll() declaration to <stdlib.h>.
54555         * lib/stdlib.in.h (strtoll): New declaration.
54556         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54557         Set HAVE_STRTOLL.
54558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54559         HAVE_STRTOLL.
54560         * modules/strtoll (Depends-on): Add stdlib.
54561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54562         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54563
54564 2008-10-19  Bruno Haible  <bruno@clisp.org>
54565
54566         * modules/bcopy (Depends-on): Add strings.
54567         (Include): Specify <strings.h>.
54568
54569 2008-10-19  Bruno Haible  <bruno@clisp.org>
54570
54571         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54572
54573 2008-10-19  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54576         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54577         mingw.
54578
54579 2008-10-19  Bruno Haible  <bruno@clisp.org>
54580
54581         * lib/atanl.c: Don't include isnanl.h.
54582         * lib/cosl.c: Likewise.
54583         * lib/ldexpl.c: Likewise.
54584         * lib/logl.c: Likewise.
54585         * lib/sinl.c: Likewise.
54586         * lib/sqrtl.c: Likewise.
54587         * lib/tanl.c: Likewise.
54588
54589         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54590         * lib/isnanf.h: Remove file.
54591         * lib/isnand.h: Remove file.
54592         * lib/isnanl.h: Remove file.
54593         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54594         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54595         macros.
54596         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54597         HAVE_ISNANF, don't define it as a C macro.
54598         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54599         HAVE_ISNAND, don't define it as a C macro.
54600         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54601         HAVE_ISNANL, don't define it as a C macro.
54602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54603         HAVE_ISNAN[FDL].
54604         * modules/isnanf (Files): Remove lib/isnanf.h.
54605         (Depends-on): Add math.
54606         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54607         (Include): Specify <math.h> instead of isnanf.h.
54608         * modules/isnand (Files): Remove lib/isnand.h.
54609         (Depends-on): Add math.
54610         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54611         (Include): Specify <math.h> instead of isnand.h.
54612         * modules/isnanl (Files): Remove lib/isnanl.h.
54613         (Depends-on): Add math.
54614         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54615         (Include): Specify <math.h> instead of isnanl.h.
54616         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54617         HAVE_ISNAN[FDL].
54618         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54619         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54620         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54621         * NEWS: Mention the change.
54622
54623 2008-10-18  Bruno Haible  <bruno@clisp.org>
54624
54625         Add getusershell(), setusershell(), endusershell() declarations to
54626         <unistd.h>.
54627         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54628         declarations.
54629         * lib/getusershell.c: Include unistd.h.
54630         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54631         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54632         HAVE_GETUSERSHELL.
54633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54634         and HAVE_GETUSERSHELL.
54635         * modules/getusershell (Depends-on): Add unistd, extensions.
54636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54637         (Include): Specify <unistd.h>.
54638         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54639         HAVE_GETUSERSHELL.
54640
54641 2008-10-18  Bruno Haible  <bruno@clisp.org>
54642
54643         Add a getloadavg() declaration to <stdlib.h>.
54644         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54645         getloadavg declaration.
54646         (getloadavg): New declaration.
54647         * lib/getloadavg.c: Include <stdlib.h> first.
54648         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54649         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54650         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54652         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54653         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54655         (Include): Specify <stdlib.h>.
54656         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54657         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54658
54659 2008-10-18  Bruno Haible  <bruno@clisp.org>
54660
54661         * lib/dirchownmod.c: Don't include lchmod.h.
54662
54663         Move the lchmod() declaration to <sys/stat.h>.
54664         * lib/lchmod.h: Remove file.
54665         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54666         (lchmod): New declaration, moved here from lib/lchown.h.
54667         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54668         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54670         and HAVE_LCHMOD.
54671         * modules/lchmod (Files): Remove lib/lchmod.h.
54672         (Depends-on): Add sys_stat, extensions.
54673         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54674         (Include): Specify <sys/stat.h> instead of lchmod.h.
54675         * modules/sys_stat (Depends-on): Add link-warning.
54676         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54677         definition of GL_LINK_WARNING.
54678         * NEWS: Mention the change.
54679
54680 2008-10-18  Bruno Haible  <bruno@clisp.org>
54681
54682         * lib/fchdir.c: Don't include dirfd.h.
54683         * lib/fts.c: Likewise.
54684         * lib/getcwd.c: Likewise.
54685         * lib/glob.c: Likewise.
54686
54687         Move the dirfd() declaration to <dirent.h>.
54688         * lib/dirfd.h: Remove file.
54689         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54690         (dirfd): New declaration.
54691         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54692         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54693         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54694         HAVE_DECL_DIRFD.
54695         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54696         HAVE_DECL_DIRFD.
54697         * modules/dirfd (Files): Remove lib/dirfd.h.
54698         (Depends-on): Add dirent, extensions.
54699         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54700         (Include): Specify <dirent.h> instead of dirfd.h.
54701         * modules/dirent (Depends-on): Add link-warning.
54702         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54703         definition of GL_LINK_WARNING.
54704         * NEWS: Mention the change.
54705
54706 2008-10-18  Bruno Haible  <bruno@clisp.org>
54707
54708         Move the euidaccess() declaration to <unistd.h>.
54709         * lib/euidaccess.h: Remove file.
54710         * lib/unistd.in.h (euidaccess): New declaration.
54711         * lib/euidaccess.c: Don't include euidaccess.h.
54712         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54713         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54715         and HAVE_EUIDACCESS.
54716         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54717         (Depends-on): Add unistd.
54718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54719         (Include): Specify <unistd.h> instead of euidaccess.h.
54720         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54721         HAVE_EUIDACCESS.
54722         * NEWS: Mention the change.
54723
54724 2008-10-18  Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54727
54728         Move the getdomainname() declaration to <unistd.h>.
54729         * lib/getdomainname.h: Remove file.
54730         * lib/unistd.in.h (getdomainname): New declaration.
54731         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54732         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54733         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54734         HAVE_GETDOMAINNAME.
54735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54736         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54737         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54738         (Depends-on): Add unistd, extensions.
54739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54740         (Includes): Specify <unistd.h> instead of getdomainname.h.
54741         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54742         HAVE_GETDOMAINNAME.
54743         * NEWS: Mention the change.
54744
54745 2008-10-18  Bruno Haible  <bruno@clisp.org>
54746
54747         * modules/dirent: New file.
54748         * m4/dirent_h.m4: New file.
54749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54750         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54751         * modules/fchdir (Files): Remove lib/dirent.in.h.
54752         (Depends-on): Add dirent.
54753         (Makefile.am): Move rules to modules/dirent.
54754         * doc/posix-headers/dirent.texi: Mention the new module.
54755
54756 2008-10-18  Bruno Haible  <bruno@clisp.org>
54757
54758         Avoid -Wunused-parameter warnings in public gnulib header files.
54759         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54760         macro.
54761         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54762
54763 2008-10-18  Bruno Haible  <bruno@clisp.org>
54764
54765         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54766         * doc/glibc-functions/error.texi: Mention the module 'error'.
54767         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54768         * doc/glibc-functions/getdomainname.texi: Mention the module
54769         'getdomainname'.
54770         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54771         * doc/glibc-functions/getpagesize.texi: Mention the module
54772         'getpagesize'.
54773         * doc/glibc-functions/getusershell.texi: Mention the module
54774         'getusershell'.
54775         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54776         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54777         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54778         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54779         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54780         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54781         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54782         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54783         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54784         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54785         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54786         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54787         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54788         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54789
54790 2008-10-17  Bruno Haible  <bruno@clisp.org>
54791
54792         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54793         HP-UX and IRIX, use -0.0L.
54794         * tests/test-ceill.c (minus_zero): Likewise.
54795         * tests/test-floorl.c (minus_zero): Likewise.
54796         * tests/test-frexpl.c (minus_zero): Likewise.
54797         * tests/test-isnan.c (minus_zerol): Likewise.
54798         * tests/test-isnanl.h (minus_zero): Likewise.
54799         * tests/test-ldexpl.c (minus_zero): Likewise.
54800         * tests/test-roundl.c (minus_zero): Likewise.
54801         * tests/test-signbit.c (minus_zerol): Likewise.
54802         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54803         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54804         * tests/test-truncl.c (minus_zero): Likewise.
54805         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54806         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54807         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54808         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54809
54810 2008-10-17  Bruno Haible  <bruno@clisp.org>
54811
54812         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54813         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54814         that it gets activated only for gcc >= 3.0.
54815         * lib/dirent.in.h: Likewise.
54816         * lib/errno.in.h: Likewise.
54817         * lib/fcntl.in.h: Likewise.
54818         * lib/float.in.h: Likewise.
54819         * lib/iconv.in.h: Likewise.
54820         * lib/inttypes.in.h: Likewise.
54821         * lib/locale.in.h: Likewise.
54822         * lib/math.in.h: Likewise.
54823         * lib/netdb.in.h: Likewise.
54824         * lib/netinet_in.in.h: Likewise.
54825         * lib/search.in.h: Likewise.
54826         * lib/signal.in.h: Likewise.
54827         * lib/spawn.in.h: Likewise.
54828         * lib/stdarg.in.h: Likewise.
54829         * lib/stdint.in.h: Likewise.
54830         * lib/stdio.in.h: Likewise.
54831         * lib/stdlib.in.h: Likewise.
54832         * lib/string.in.h: Likewise.
54833         * lib/strings.in.h: Likewise.
54834         * lib/sys_file.in.h: Likewise.
54835         * lib/sys_ioctl.in.h: Likewise.
54836         * lib/sys_select.in.h: Likewise.
54837         * lib/sys_socket.in.h: Likewise.
54838         * lib/sys_stat.in.h: Likewise.
54839         * lib/sys_time.in.h: Likewise.
54840         * lib/sysexits.in.h: Likewise.
54841         * lib/time.in.h: Likewise.
54842         * lib/unistd.in.h: Likewise.
54843         * lib/wchar.in.h: Likewise.
54844         * lib/wctype.in.h: Likewise.
54845         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54846
54847 2008-10-17  Jim Meyering  <meyering@redhat.com>
54848
54849         ignore-value: don't depend on inline module
54850         * modules/ignore-value (Depends-on): Remove 'inline'.
54851         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54852         Suggestion from Bruno Haible.
54853
54854 2008-10-17  Bruno Haible  <bruno@clisp.org>
54855
54856         New implementation of condition variables for Win32.
54857         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54858         (gl_linked_waitqueue_t): New type.
54859         (gl_cond_t): Use it.
54860         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54861         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54862         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54863         (glthread_cond_init_func, glthread_cond_wait_func,
54864         glthread_cond_timedwait_func, glthread_cond_signal_func,
54865         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54866         Reimplemented on the basis of gl_linked_waitqueue_t.
54867         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54868         gl_waitqueue_t.
54869         (gl_rwlock_t): Update.
54870         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54871
54872 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54873
54874         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54875         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54876
54877 2008-10-17  Jim Meyering  <meyering@redhat.com>
54878
54879         ignore-value: new module
54880         * modules/ignore-value: New file.
54881         * lib/ignore-value.h: New file.
54882         * MODULES.html.sh (Compiler warning management): New section,
54883         just for this module.  More to come.
54884
54885 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54886
54887         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54888         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54889         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54890
54891 2008-10-16  Jim Meyering  <meyering@redhat.com>
54892
54893         openat-die.c: avoid 'no previous prototype' warning
54894         * lib/openat-die.c: Include "openat.h".
54895         Reported by Reuben Thomas <rrt@sc3d.org>.
54896
54897 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54898
54899         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54900         * lib/netdb.in.h: Fix typo.
54901         Reported by Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/netdb.in.h: Include sys/socket.h for platforms without
54904         netdb.h, to get structures like hostent on MinGW.
54905         * modules/netdb (Depends-on): Add sys_socket.
54906
54907 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54908
54909         * modules/netdb, modules/netdb-tests: New file.
54910         * m4/netdb_h.m4: New file.
54911         * lib/netdb.in.h: Add, currently just an empty file pending
54912         definitions.
54913         * tests/test-netdb.c: New file.
54914         * doc/posix-headers/netdb.texi: Mention that we replace it if
54915         needed.
54916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54917         netdb.
54918
54919 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54920
54921         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54922         with code.
54923
54924 2008-10-13  Bruno Haible  <bruno@clisp.org>
54925
54926         * lib/glthread/cond.c (glthread_cond_wait_func,
54927         glthread_cond_timedwait_func): Add a comment.
54928
54929 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54930
54931         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54932         * tests/test-select.c: Likewise,
54933
54934 2008-10-13  Bruno Haible  <bruno@clisp.org>
54935
54936         * lib/glthread/cond.c (glthread_cond_wait_func,
54937         glthread_cond_timedwait_func): Fix variable name.
54938         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54939
54940 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54941
54942         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54944         struct sockaddr.sa_len.
54945         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54946
54947 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54948
54949         * build-aux/pmccabe2html: Add css and css_url parameters.
54950
54951 2008-10-12  Bruno Haible  <bruno@clisp.org>
54952
54953         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54954         calling aclx_get.
54955         Reported by Rainer Tammer <tammer@tammer.net>.
54956
54957 2008-10-12  Bruno Haible  <bruno@clisp.org>
54958
54959         Use msvcrt aware primitives for creation/termination of Win32 threads.
54960         * lib/glthread/thread.c: Include <process.h>.
54961         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54962         (wrapper_func): Update signature.
54963         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54964
54965 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54966             Bruno Haible  <bruno@clisp.org>
54967
54968         Provide a Win32 implementation of the 'cond' module.
54969         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54970         * lib/glthread/cond.c (glthread_cond_init_func,
54971         glthread_cond_wait_func, glthread_cond_timedwait_func,
54972         glthread_cond_signal_func, glthread_cond_broadcast_func,
54973         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54974         * modules/cond (Dependencies): Add gettimeofday.
54975
54976 2008-10-11  Bruno Haible  <bruno@clisp.org>
54977
54978         Make sleep work on older versions of mingw.
54979         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54980         only whether it exists.
54981         * doc/posix-functions/sleep.texi: Mention the problem with older
54982         versions of mingw.
54983
54984 2008-10-11  Bruno Haible  <bruno@clisp.org>
54985
54986         New module 'shutdown'.
54987         * modules/shutdown: New file.
54988         * lib/sys_socket.in.h (shutdown): New declaration.
54989         * lib/winsock.c (shutdown): New function.
54990         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54991         GNULIB_SHUTDOWN.
54992         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54993         * doc/posix-functions/shutdown.texi: Document the new module.
54994
54995 2008-10-11  Jim Meyering  <meyering@redhat.com>
54996
54997         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54998
54999 2008-10-11  Bruno Haible  <bruno@clisp.org>
55000
55001         New module 'fclose'.
55002         * modules/fclose: New file.
55003         * lib/stdio.in.h (fclose): New declaration.
55004         * lib/fclose.c: New file.
55005         * m4/fclose.m4: New file.
55006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55007         REPLACE_FCLOSE.
55008         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55009         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55010         REPLACE_FCLOSE.
55011         * modules/close (Depends-on): fclose.
55012         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55013
55014 2008-10-11  Bruno Haible  <bruno@clisp.org>
55015
55016         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55017         set errno and don't call _close.
55018
55019 2008-10-10  Bruno Haible  <bruno@clisp.org>
55020
55021         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55022         ACL, not afterwards. Fixes test failure on Cygwin.
55023
55024 2008-10-09  Ben Pfaff  <blp@gnu.org>
55025
55026         * build-aux/announce-gen: Fix gnulib version related part of usage
55027         message.  Die with a useful error message if no tarballs are
55028         found.
55029
55030 2008-10-10  Jim Meyering  <meyering@redhat.com>
55031
55032         bootstrap: use git's --depth=N option only if it's supported
55033         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55034         recognize the --depth option.  Reported by Pádraig Brady.
55035
55036 2008-10-09  Bruno Haible  <bruno@clisp.org>
55037
55038         New module 'ioctl'.
55039         * modules/ioctl: New file.
55040         * lib/sys_socket.in.h (ioctl): Remove declaration.
55041         * lib/winsock.c: Include <sys/ioctl.h>.
55042         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55043         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55044         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55045         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55046         * doc/posix-functions/ioctl.texi: Mention the new module.
55047
55048 2008-10-09  Bruno Haible  <bruno@clisp.org>
55049
55050         New module 'sys_ioctl'.
55051         * lib/sys_ioctl.in.h: New file.
55052         * m4/sys_ioctl_h.m4: New file.
55053         * modules/sys_ioctl: New file.
55054         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55055
55056 2008-10-09  Bruno Haible  <bruno@clisp.org>
55057
55058         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55059         * lib/winsock.c: Include <stdarg.h>.
55060         (rpl_ioctl): Change to second argument 'int' and then varargs.
55061
55062 2008-10-09  Bruno Haible  <bruno@clisp.org>
55063
55064         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55065         when the sys_socket module is present and the system has <winsock2.h>.
55066
55067 2008-10-09  Bruno Haible  <bruno@clisp.org>
55068
55069         * doc/posix-functions/close.texi: Mention module 'close' instead of
55070         module 'sys_socket'.
55071
55072 2008-10-09  Bruno Haible  <bruno@clisp.org>
55073
55074         * doc/glibc-headers/sys_ioctl.texi: New file.
55075         * doc/gnulib.texi: Include it.
55076
55077 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55078             Bruno Haible  <bruno@clisp.org>
55079
55080         Combine the two replacements of 'close'.
55081         * lib/sys_socket.in.h (close): Define to a reminder to include
55082         <unistd.h>.
55083         (_gl_close_fd_maybe_socket): New declaration.
55084         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55085         * lib/winsock.c (close): Remove undefinition.
55086         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55087         needed for the gnulib module 'close'.
55088         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55089         define to an error symbol or to a warning, if suitable.
55090         * lib/close.c: Include <sys/socket.h>.
55091         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55092         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55093         UNISTD_H_HAVE_WINSOCK2_H.
55094         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55096         UNISTD_H_HAVE_WINSOCK2_H.
55097         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55098         (configure.ac): Set a module indicator.
55099         (Makefile.am): Substitute GNULIB_CLOSE.
55100         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55101         * modules/poll-tests (Depends-on): Add close.
55102         * modules/select-tests (Depends-on): Likewise.
55103
55104 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55105             Bruno Haible  <bruno@clisp.org>
55106
55107         New module 'close'.
55108         * modules/close: New file.
55109         * lib/unistd.in.h (close): Move declaration out of the
55110         FCHDIR_REPLACEMENT scope.
55111         (_gl_unregister_fd): New declaration.
55112         * lib/close.c: New file.
55113         * lib/fchdir.c (rpl_close): Remove function.
55114         * m4/close.m4: New file.
55115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55116         close.
55117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55118         REPLACE_CLOSE.
55119         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55120         REPLACE_CLOSE.
55121         * modules/fchdir (Depends-on): Add close.
55122
55123 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55124             Bruno Haible  <bruno@clisp.org>
55125
55126         * lib/fcntl.in.h (open): Simplify conditionals.
55127         (_gl_register_fd): New declaration.
55128         * lib/fchdir.c (rpl_open): Remove function.
55129         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55130         also.
55131         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55133         open.
55134
55135 2008-10-09  Jim Meyering  <meyering@redhat.com>
55136
55137         GNUmakefile: use the more name-space-friendly "_version"
55138         * top/GNUmakefile (_dummy): Update.
55139         (_version): Rename from "version".
55140
55141 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55142             Bruno Haible  <bruno@clisp.org>
55143
55144         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55145         rpl_close.
55146         (_gl_register_fd): New function, extracted from rpl_open.
55147         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55148         (rpl_open, rpl_opendir): Use _gl_register_fd.
55149
55150 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55151
55152         Fix organization of 'open' replacement.
55153         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55154         (gl_FUNC_OPEN): Use it.
55155         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55156
55157 2008-10-08  Bruno Haible  <bruno@clisp.org>
55158
55159         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55160
55161 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55162
55163         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55164         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55165         listen).
55166
55167 2008-10-08  Eric Blake  <ebb9@byu.net>
55168
55169         GNUmakefile: add 'make version' target
55170         * top/GNUmakefile (_curr-ver): Split version update rules...
55171         (version): ...into a target.
55172
55173 2008-10-07  Bruno Haible  <bruno@clisp.org>
55174
55175         Use a more portable replacement expression for -0.0L.
55176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55177         instead of -0.0L. Fix m4 quotation.
55178
55179         * tests/test-signbit.c: Include <float.h>.
55180         (minus_zero): New variable.
55181         (test_signbitl): Use minus_zero instead of -zero.
55182         * modules/signbit-tests (Depends-on): Add float.
55183
55184         * tests/test-ceill.c: Include <float.h>.
55185         (zero): Remove variable.
55186         (minus_zero): New variable.
55187         (main): Use minus_zero instead of -zero.
55188         * modules/ceill-tests (Depends-on): Add float.
55189
55190         * tests/test-floorl.c: Include <float.h>.
55191         (zero): Remove variable.
55192         (minus_zero): New variable.
55193         (main): Use minus_zero instead of -zero.
55194         * modules/floorl-tests (Depends-on): Add float.
55195
55196         * tests/test-roundl.c: Include <float.h>.
55197         (zero): Remove variable.
55198         (minus_zero): New variable.
55199         (main): Use minus_zero instead of -zero.
55200         * modules/roundl-tests (Depends-on): Add float.
55201
55202         * tests/test-truncl.c: Include <float.h>.
55203         (zero): Remove variable.
55204         (minus_zero): New variable.
55205         (main): Use minus_zero instead of -zero.
55206         * modules/truncl-tests (Depends-on): Add float.
55207
55208         * tests/test-frexpl.c (zero): Remove variable.
55209         (minus_zero): New variable.
55210         (main): Use minus_zero instead of -zero.
55211         * modules/frexpl-tests (Depends-on): Add float.
55212
55213         * tests/test-isnan.c (zerol): Remove variable.
55214         (minus_zerol): New variable.
55215         (test_long_double): Use minus_zerol instead of -zerol.
55216         * modules/isnan-tests (Depends-on): Add float.
55217
55218         * tests/test-isnanl.h (zero): Remove variable.
55219         (minus_zero): New variable.
55220         (main): Use minus_zero instead of -zero.
55221         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55222         * modules/isnanl-tests (Depends-on): Add float.
55223
55224         * tests/test-ldexpl.c (zero): Remove variable.
55225         (minus_zero): New variable.
55226         (main): Use minus_zero instead of -zero.
55227         * modules/ldexpl-tests (Depends-on): Add float.
55228
55229         * tests/test-snprintf-posix.h (zerol): Remove variable.
55230         (minus_zerol): New variable.
55231         (test_function): Use minus_zerol instead of -zerol.
55232         * modules/snprintf-posix-tests (Depends-on): Add float.
55233         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55234
55235         * tests/test-sprintf-posix.h (zerol): Remove variable.
55236         (minus_zerol): New variable.
55237         (test_function): Use minus_zerol instead of -zerol.
55238         * modules/sprintf-posix-tests (Depends-on): Add float.
55239         * modules/vsprintf-posix-tests (Depends-on): Add float.
55240
55241         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55242         (minus_zerol): New variable.
55243         (test_function): Use minus_zerol instead of -zerol.
55244         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55245
55246         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55247         (minus_zerol): New variable.
55248         (test_function): Use minus_zerol instead of -zerol.
55249         * modules/vasprintf-posix-tests (Depends-on): Add float.
55250
55251 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55252
55253         * MODULES.html.sh (Support for building documentation): Mention
55254         pmccabe2html.  Sort entries.
55255
55256         Add pmccabe2html module, from gnupdf.
55257         * build-aux/pmccabe.css: New file.
55258         * build-aux/pmccabe2html: New file.
55259         * m4/pmccabe2html.m4: New file.
55260         * modules/pmccabe2html: New file.
55261
55262 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55263
55264         flock: new module
55265         * MODULES.html.sh: Add to list of modules.
55266         * lib/flock.c: flock implementation for Windows and Unix systems
55267         which have fcntl.
55268         * doc/glibc-functions/flock.texi: Update documentation.
55269         * lib/sys_file.in.h: <sys/file.h> header file.
55270         * m4/flock.m4: M4 macros.
55271         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55272         * modules/flock: flock module.
55273         * modules/flock-tests: flock tests module.
55274         * modules/sys_file: sys/file.h module.
55275         * tests/test-flock.c: test suite for flock.
55276
55277 2008-10-06  Jim Meyering  <meyering@redhat.com>
55278
55279         bootstrap: check for LT_INIT more portably still ;-)
55280         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55281         Spotted by Bruno Haible.
55282
55283 2008-10-06  Eric Blake  <ebb9@byu.net>
55284
55285         test-signbit: avoid tripping Irix cc bug on -0.0L
55286         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55287         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55288         entire testsuite consistent and avoids an Irix 6.2 bug.
55289
55290 2008-10-05  Bruno Haible  <bruno@clisp.org>
55291             Jim Meyering  <jim@meyering.net>
55292
55293         Add an option for ignoring EPIPE during close_stdout.
55294         * lib/closeout.h: Include <stdbool.h>.
55295         (close_stdout_set_ignore_EPIPE): New declaration.
55296         * lib/closeout.c: Include <stdbool.h>.
55297         (ignore_EPIPE): New variable.
55298         (close_stdout_set_ignore_EPIPE): New function.
55299         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55300         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55301         failure.
55302         * modules/closeout (Depends-on): Add stdbool.
55303
55304 2008-10-05  Bruno Haible  <bruno@clisp.org>
55305
55306         * modules/accept: New file.
55307         * modules/bind: New file.
55308         * modules/connect: New file.
55309         * modules/getpeername: New file.
55310         * modules/getsockname: New file.
55311         * modules/getsockopt: New file.
55312         * modules/listen: New file.
55313         * modules/recv: New file.
55314         * modules/recvfrom: New file.
55315         * modules/send: New file.
55316         * modules/sendto: New file.
55317         * modules/setsockopt: New file.
55318         * modules/socket: New file.
55319         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55320         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55321         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55322         the particular module is requested. Add a link warning when the
55323         particular module is not requested.
55324         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55325         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55326         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55327         the particular module is requested.
55328         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55329         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55330         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55331         * modules/sys_socket (Depends-on): Add link-warning.
55332         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55333         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55334         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55335         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55336         GL_LINK_WARNING.
55337         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55338         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55339         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55340         * doc/posix-functions/getpeername.texi: Mention the new module
55341         'getpeername'.
55342         * doc/posix-functions/getsockname.texi: Mention the new module
55343         'getsockname'.
55344         * doc/posix-functions/getsockopt.texi: Mention the new module
55345         'getsockopt'.
55346         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55347         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55348         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55349         * doc/posix-functions/send.texi: Mention the new module 'send'.
55350         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55351         * doc/posix-functions/setsockopt.texi: Mention the new module
55352         'setsockopt'.
55353         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55354         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55355         listen, connect, accept.
55356         * modules/select-tests (Depends-on): Likewise.
55357
55358 2008-10-05  Bruno Haible  <bruno@clisp.org>
55359
55360         * lib/winsock.c (strerror): Remove unused #undef.
55361         (rpl_close): Remove unused local variable.
55362
55363         * modules/sys_socket (Depends-on); Add errno.
55364
55365 2008-10-05  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55368         (select): Add a link warning when the 'select' module is not used.
55369         * modules/sys_select (Depends-on): Add link-warning.
55370         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55371         Suggested by Paolo Bonzini.
55372
55373 2008-10-05  Jim Meyering  <meyering@redhat.com>
55374
55375         bootstrap: check for LT_INIT more portably
55376         * build-aux/bootstrap: Avoid using grep -E, since it's not
55377         portable enough.  Suggestion from Bruno Haible.
55378
55379 2008-10-05  Bruno Haible  <bruno@clisp.org>
55380
55381         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55382         as being fixed by gnulib.
55383
55384 2008-10-05  Bruno Haible  <bruno@clisp.org>
55385
55386         * modules/select-tests: New file, mostly copied from
55387         modules/sys_select-tests.
55388         * tests/test-select.c: New file, mostly copied from
55389         tests/test-sys_select.c.
55390         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55391         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55392         (Makefile.am): Remove test_sys_select_LDADD.
55393
55394         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55395         to an undefined symbol, for an error message.
55396         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55397         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55398         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55399         winsock-select.c here.
55400         * modules/sys_select (Files): Remove lib/winsock-select.c.
55401         (Depends-on): Remove alloca.
55402         (Makefile.am): Substitute GNULIB_SELECT.
55403         * modules/select: New file.
55404         * doc/posix-functions/select.texi: Update.
55405
55406 2008-10-05  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55409         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55410         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55411         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55412         getdtablesize.
55413         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55414         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55415
55416 2008-10-05  Bruno Haible  <bruno@clisp.org>
55417
55418         * modules/getdtablesize-tests: New file.
55419         * tests/test-getdtablesize.c: New file.
55420
55421         New module 'getdtablesize'.
55422         * lib/unistd.in.h (getdtablesize): New declaration.
55423         * lib/getdtablesize.c: New file.
55424         * m4/getdtablesize.m4: New file.
55425         * modules/getdtablesize: New file.
55426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55427         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55428         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55429         HAVE_GETDTABLESIZE.
55430         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55431
55432 2008-10-05  Bruno Haible  <bruno@clisp.org>
55433
55434         * modules/sched (Makefile.am): Fix typo.
55435         Reported by Simon Josefsson.
55436
55437 2008-10-05  Jim Meyering  <meyering@redhat.com>
55438
55439         bootstrap: check for LT_INIT, too
55440         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55441         are deprecated.  Suggestion from Ralf Wildenhues.
55442
55443 2008-10-05  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55446         overriding them by ours.
55447         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55448
55449 2008-10-05  Jim Meyering  <meyering@redhat.com>
55450
55451         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55452         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55453         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55454
55455 2008-10-04  Bruno Haible  <bruno@clisp.org>
55456
55457         * modules/dup2 (License): Change to LGPLv2+.
55458         * modules/sleep (License): Likewise.
55459         * modules/perror (License): Likewise.
55460         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55461         Blake.
55462         * modules/signal (License): Likewise.
55463         * modules/sigprocmask (License): Likewise.
55464         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55465         Meyering.
55466
55467 2008-10-04  Bruno Haible  <bruno@clisp.org>
55468
55469         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55470         Reported by Rainer Tammer <tammer@tammer.net>.
55471
55472 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55473             Bruno Haible  <bruno@clisp.org>
55474
55475         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55476         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55477         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55478
55479 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55480
55481         filevercmp: new module
55482         * lib/filevercmp.h: New function filevercmp comparing version strings.
55483         * lib/filevercmp.c: Implementation of filevercmp function.
55484         * modules/filevercmp: Module metadata.
55485         * tests/test-filevercmp.c: Unit test for new module.
55486         * modules/filevercmp-tests: Unit test metadata.
55487         * MODULES.html.sh: Add filevercmp module.
55488
55489 2008-10-03  Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/c-ctype.h: Add comment.
55492         Reported by Jim Meyering.
55493
55494 2008-10-02  Bruno Haible  <bruno@clisp.org>
55495
55496         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55497
55498 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55499
55500         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55501         name of bootstrap.conf accordingly.
55502
55503 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55504
55505         * build-aux/bootstrap: Install git-merge-changelog configuration
55506         items into .gitconfig if needed.
55507
55508 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55509
55510         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55511         git repository, and initialize/update it accordingly.
55512
55513 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55514
55515         * modules/fsync-tests: New file.
55516         * tests/test-fsync.c: New file.
55517
55518         New module 'fsync'.
55519         * lib/fsync.c: New file.
55520         * m4/fsync.m4: New file.
55521         * modules/fsync: New file.
55522         * lib/unistd.in.h (fsync): New declaration.
55523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55524         GNULIB_FSYNC and HAVE_FSYNC.
55525         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55526         * MODULES.html.sh (posix_functions): Add fsync.
55527         * doc/posix-functions/fsync.texi: Mention the new module.
55528
55529 2008-10-02  Jim Meyering  <meyering@redhat.com>
55530
55531         fts.c: sync with similar code from coreutils' remove.c
55532         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55533         Guard also with "#if defined __linux__", since for now at least,
55534         this code is Linux-kernel-specific.
55535
55536 2008-10-02  Jim Meyering  <meyering@redhat.com>
55537
55538         fts: bug fixes
55539         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55540         Include <sys/vfs.h>, not <sys/statfs.h>.
55541
55542         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55543         Include <sys/vfs.h>, not <sys/statfs.h>.
55544
55545 2008-10-01  Bruno Haible  <bruno@clisp.org>
55546
55547         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55549         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55550         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55551         * doc/posix-functions/posix_spawnp.texi: Likewise.
55552         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55553         whether posix_spawn actually works.
55554         * m4/pipe.m4 (gl_PIPE): Likewise.
55555         * modules/execute (Files): Add m4/posix_spawn.m4.
55556         * modules/pipe (Files): Add m4/posix_spawn.m4.
55557         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55558
55559 2008-10-01  Jim Meyering  <meyering@redhat.com>
55560
55561         remove trailing spaces
55562         * NEWS: Likewise.
55563         * lib/poll.c (poll): Likewise.
55564         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55565         * lib/winsock.c (rpl_close): Likewise.
55566         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55567         * modules/yield: Likewise.
55568         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55569         * tests/test-sys_select.c (connect_to_socket): Likewise.
55570
55571         fts.c: adjust a new interface to be more generally useful
55572         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55573         (fts_build): Adjust caller.
55574
55575 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55576
55577         * modules/cond-tests: New file.
55578         * tests/test-cond.c: New file.
55579
55580 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55581             Bruno Haible  <bruno@clisp.org>
55582
55583         * modules/cond (Dependencies): Add errno, time.
55584         * lib/glthread/cond.h: Include <time.h>.
55585         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55586         across platforms.
55587
55588 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55589             Bruno Haible  <bruno@clisp.org>
55590
55591         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55592
55593 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55594             Bruno Haible  <bruno@clisp.org>
55595
55596         * modules/tls-tests (Depends-on): Add thread, yield.
55597         (configure.ac): Remove all checks.
55598         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55599         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55600         gl_thread_self): Remove definitions. Include glthread/thread.h and
55601         glthread/yield.h instead.
55602         (test_tls): Pass an additional NULL argument to gl_thread_join.
55603
55604 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55605             Bruno Haible  <bruno@clisp.org>
55606
55607         * modules/lock-tests (Depends-on): Add thread, yield.
55608         (configure.ac): Remove all checks.
55609         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55610         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55611         gl_thread_self): Remove definitions. Include glthread/thread.h and
55612         glthread/yield.h instead.
55613         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55614         additional NULL argument to gl_thread_join.
55615
55616 2008-09-30  Bruno Haible  <bruno@clisp.org>
55617
55618         Fix the Win32 implementation of the 'thread' module.
55619         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55620         pointer type.
55621         (gl_thread_self): Invoke gl_thread_self_func.
55622         (gl_thread_self_func): New declaration.
55623         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55624         (do_init_self_key, init_self_key): New functions.
55625         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55626         Remove some fields.
55627         (running_threads, running_lock): Remove variables.
55628         (get_current_thread_handle): New function.
55629         (gl_thread_self_func, wrapper_func, glthread_create_func,
55630         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55631         simplified.
55632
55633 2008-09-30  Bruno Haible  <bruno@clisp.org>
55634
55635         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55636         files.
55637
55638 2008-09-30  Jim Meyering  <meyering@redhat.com>
55639
55640         fts.m4: correct the test for statfs.f_type
55641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55642         when checking for statfs.f_type.
55643
55644 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55645
55646         tests: avoid some compiler warnings
55647         * tests/test-memchr.c (main): Pass NULL indirectly.
55648         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55649
55650 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55651
55652         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55653         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55654         exactly specified dayshifts.
55655         (dayshift): New rule.
55656         (rel): Add dayshift.
55657         (relative_time_table) [tomorrow, yesterday, today, now]:
55658         Use tDAY_SHIFT in place of tDAY_UNIT.
55659         * tests/test-getdate.c: Add tests for now-disallowed countable
55660         dayshifts, e.g., "4 yesterday ago".
55661
55662 2008-09-29  Bruno Haible  <bruno@clisp.org>
55663
55664         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55665         * tests/test-posix_spawn1.in.sh: Renamed from
55666         tests/test-posix_spawn.in.sh.
55667         * tests/test-posix_spawn2.c: New file.
55668         * tests/test-posix_spawn2.in.sh: New file.
55669         * modules/posix_spawnp-tests (Files): Update.
55670         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55671
55672 2008-09-29  Bruno Haible  <bruno@clisp.org>
55673
55674         Propagate effects of putenv/setenv/unsetenv to child processes.
55675         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55676         * lib/pipe.c (create_pipe): Likewise.
55677
55678 2008-09-29  Bruno Haible  <bruno@clisp.org>
55679
55680         Enable use of shell scripts as executables in mingw.
55681         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55682         run the program as a shell script.
55683         * lib/pipe.c (create_pipe): Likewise.
55684         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55685         resulting array.
55686
55687 2008-09-29  Eric Blake  <ebb9@byu.net>
55688
55689         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55690
55691 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55692
55693         * doc/posix-functions/accept.texi: Update mingw problems.
55694         * doc/posix-functions/bind.texi: Update mingw problems.
55695         * doc/posix-functions/close.texi: Update mingw problems.
55696         * doc/posix-functions/connect.texi: Update mingw problems.
55697         * doc/posix-functions/getpeername.texi: Update mingw problems.
55698         * doc/posix-functions/getsockname.texi: Update mingw problems.
55699         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55700         * doc/posix-functions/ioctl.texi: Update mingw problems.
55701         * doc/posix-functions/listen.texi: Update mingw problems.
55702         * doc/posix-functions/recv.texi: Update mingw problems.
55703         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55704         * doc/posix-functions/select.texi: Update mingw problems.
55705         * doc/posix-functions/send.texi: Update mingw problems.
55706         * doc/posix-functions/sendto.texi: Update mingw problems.
55707         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55708         * doc/posix-functions/socket.texi: Update mingw problems.
55709
55710 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55711             Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/sys_select.in.h: Include sys/time.h.
55714         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55715         * modules/sys_select: Depend on sys_time.
55716         * tests/test-sys_select.c: Test that sys/select.h defines struct
55717         timeval fully.
55718
55719 2008-09-29  Bruno Haible  <bruno@clisp.org>
55720
55721         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55722         * lib/sys_select.in.h: Likewise.
55723
55724 2008-09-29  Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55727
55728 2008-09-29  Bruno Haible  <bruno@clisp.org>
55729
55730         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55731         Set LIBSOCKET instead of augmenting LIBS.
55732         * modules/sockets (Link): New section.
55733         * modules/sockets-tests (test_sockets_LDADD): New variable.
55734         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55735         * modules/poll-tests (test_poll_LDADD): New variable.
55736         * NEWS: Document the change.
55737
55738 2008-09-29  Bruno Haible  <bruno@clisp.org>
55739
55740         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55741         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55742         ARPA_INET_H directly.
55743         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55744
55745 2008-09-28  Bruno Haible  <bruno@clisp.org>
55746
55747         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55748         from gl_HEADER_SYS_SOCKET.
55749         (gl_HEADER_SYS_SOCKET): Invoke it.
55750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55751
55752 2008-09-28  Bruno Haible  <bruno@clisp.org>
55753
55754         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55755         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55756         Needed on OSF/1 4.0.
55757
55758 2008-09-28  Bruno Haible  <bruno@clisp.org>
55759
55760         Override open more carefully.
55761         * lib/open.c (orig_open): New function.
55762         (rpl_open): Use orig_open instead of open.
55763         * lib/fcntl.in.h: Add special invocation convention.
55764         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55765         (gl_FUNC_OPEN): Invoke it.
55766
55767         Override freopen more carefully.
55768         * lib/freopen.c (orig_freopen): New function.
55769         (rpl_freopen): Use orig_freopen instead of freopen.
55770         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55771         (gl_FUNC_FREOPEN): Invoke it.
55772
55773         Override fopen more carefully.
55774         * lib/fopen.c (orig_fopen): New function.
55775         (rpl_fopen): Use orig_fopen instead of fopen.
55776         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55777         (gl_FUNC_FOPEN): Invoke it.
55778         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55779
55780 2008-09-28  Bruno Haible  <bruno@clisp.org>
55781
55782         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55783         SIGPIPE.
55784
55785 2008-09-28  Bruno Haible  <bruno@clisp.org>
55786
55787         * tests/test-sigaction.c (handler, main): Disable the check whether
55788         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55789         glibc systems with LinuxThreads.
55790
55791 2008-09-28  Bruno Haible  <bruno@clisp.org>
55792
55793         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55794
55795         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55796         with AIX xlc.
55797         * lib/fcntl.in.h (open): Likewise.
55798         Reported by Rainer Tammer <tammer@tammer.net>.
55799
55800 2008-09-28  Bruno Haible  <bruno@clisp.org>
55801
55802         * modules/posix_spawnp-tests: New file.
55803         * tests/test-posix_spawn.c: New file.
55804         * tests/test-posix_spawn.in.sh: New file.
55805
55806         New module 'posix_spawnp'.
55807         * modules/posix_spawnp: New file.
55808         * lib/spawnp.c: New file, from GNU libc with modifications.
55809         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55810
55811         New module 'posix_spawn'.
55812         * modules/posix_spawn: New file.
55813         * lib/spawn.c: New file, from GNU libc with modifications.
55814         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55815
55816         New module 'posix_spawnattr_destroy'.
55817         * modules/posix_spawnattr_destroy: New file.
55818         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55819         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55820         module.
55821
55822         New module 'posix_spawnattr_setsigmask'.
55823         * modules/posix_spawnattr_setsigmask: New file.
55824         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55825         modifications.
55826         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55827         new module.
55828
55829         New module 'posix_spawnattr_getsigmask'.
55830         * modules/posix_spawnattr_getsigmask: New file.
55831         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55832         modifications.
55833         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55834         new module.
55835
55836         New module 'posix_spawnattr_setsigdefault'.
55837         * modules/posix_spawnattr_setsigdefault: New file.
55838         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55839         modifications.
55840         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55841         new module.
55842
55843         New module 'posix_spawnattr_getsigdefault'.
55844         * modules/posix_spawnattr_getsigdefault: New file.
55845         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55846         modifications.
55847         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55848         new module.
55849
55850         New module 'posix_spawnattr_setschedpolicy'.
55851         * modules/posix_spawnattr_setschedpolicy: New file.
55852         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55853         modifications.
55854         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55855         new module.
55856
55857         New module 'posix_spawnattr_getschedpolicy'.
55858         * modules/posix_spawnattr_getschedpolicy: New file.
55859         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55860         modifications.
55861         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55862         new module.
55863
55864         New module 'posix_spawnattr_setschedparam'.
55865         * modules/posix_spawnattr_setschedparam: New file.
55866         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55867         modifications.
55868         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55869         new module.
55870
55871         New module 'posix_spawnattr_getschedparam'.
55872         * modules/posix_spawnattr_getschedparam: New file.
55873         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55874         modifications.
55875         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55876         new module.
55877
55878         New module 'posix_spawnattr_setpgroup'.
55879         * modules/posix_spawnattr_setpgroup: New file.
55880         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55881         modifications.
55882         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55883         module.
55884
55885         New module 'posix_spawnattr_getpgroup'.
55886         * modules/posix_spawnattr_getpgroup: New file.
55887         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55888         modifications.
55889         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55890         module.
55891
55892         New module 'posix_spawnattr_setflags'.
55893         * modules/posix_spawnattr_setflags: New file.
55894         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55895         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55896         module.
55897
55898         New module 'posix_spawnattr_getflags'.
55899         * modules/posix_spawnattr_getflags: New file.
55900         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55901         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55902         module.
55903
55904         New module 'posix_spawnattr_init'.
55905         * modules/posix_spawnattr_init: New file.
55906         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55907         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55908         module.
55909
55910         New module 'posix_spawn_file_actions_destroy'.
55911         * modules/posix_spawn_file_actions_destroy: New file.
55912         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55913         modifications.
55914         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55915         the new module.
55916
55917         New module 'posix_spawn_file_actions_addopen'.
55918         * modules/posix_spawn_file_actions_addopen: New file.
55919         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55920         modifications.
55921         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55922         the new module.
55923
55924         New module 'posix_spawn_file_actions_adddup2'.
55925         * modules/posix_spawn_file_actions_adddup2: New file.
55926         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55927         modifications.
55928         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55929         the new module.
55930
55931         New module 'posix_spawn_file_actions_addclose'.
55932         * modules/posix_spawn_file_actions_addclose: New file.
55933         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55934         modifications.
55935         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55936         the new module.
55937
55938         New module 'posix_spawn_file_actions_init'.
55939         * modules/posix_spawn_file_actions_init: New file.
55940         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55941         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55942         new module.
55943
55944         New module 'posix_spawn-internal'.
55945         * modules/posix_spawn-internal: New file.
55946         * lib/spawn_int.h: New file, from GNU libc with modifications.
55947         * lib/spawni.c: New file, from GNU libc with modifications.
55948         * m4/posix_spawn.m4: New file.
55949
55950         New module 'spawn'.
55951         * modules/spawn: New file.
55952         * lib/spawn.in.h: New file, from GNU libc with modifications.
55953         * m4/spawn_h.m4: New file.
55954         * doc/posix-headers/spawn.texi: Mention the new module.
55955
55956 2008-09-28  Bruno Haible  <bruno@clisp.org>
55957
55958         * modules/sched-tests: New file.
55959         * tests/test-sched.c: New file.
55960
55961         New module 'sched'.
55962         * modules/sched: New file.
55963         * lib/sched.in.h: New file.
55964         * m4/sched_h.m4: New file.
55965         * doc/posix-headers/sched.texi: Mention the new module.
55966
55967 2008-09-27  Eric Blake  <ebb9@byu.net>
55968
55969         Fix previous patch, and tweak references to $0.
55970         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55971         (func_version, func_gnulib_dir): Don't call this program
55972         gnulib-tool.
55973         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55974         with using $0 in function.
55975         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55976         (func_fatal_error): Reuse the name the user invoked us with.
55977
55978 2008-09-27  Bruno Haible  <bruno@clisp.org>
55979
55980         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55981         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55982         (gl_ICONV_H): Not here.
55983         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55984         instead of assigning ICONV_H directly.
55985
55986         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55988         WCHAR_H directly.
55989
55990 2008-09-27  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55993         * modules/arpa_inet (Depends-on): Add link-warning.
55994         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55995         * modules/unistd (Makefile.am): Likewise.
55996
55997 2008-09-26  Bruno Haible  <bruno@clisp.org>
55998
55999         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56000         variables.
56001         (func_version): Essentially copied from gnulib-tool.
56002         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56003         func_readlink): Copied from gnulib-tool.
56004
56005 2008-09-26  Bruno Haible  <bruno@clisp.org>
56006
56007         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56008         invoking git-version-gen.
56009
56010 2008-09-26  Bruno Haible  <bruno@clisp.org>
56011
56012         * posix-modules: Update to directory names changed on 2008-01-19.
56013         Remove commas in output before splitting into words. No more need to
56014         avoid 'ftruncate' since 2007-02-19.
56015
56016 2008-09-26  Bruno Haible  <bruno@clisp.org>
56017
56018         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56019
56020 2008-09-26  Bruno Haible  <bruno@clisp.org>
56021
56022         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56023         * modules/fwriteerror (Depends-on): Add errno.
56024
56025 2008-09-26  Bruno Haible  <bruno@clisp.org>
56026
56027         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56028         * tests/test-vc-list-files-cvs.sh: Likewise.
56029
56030 2008-09-26  Bruno Haible  <bruno@clisp.org>
56031
56032         * doc/posix-headers/sys_resource.texi: Reorder items.
56033
56034 2008-09-26  Jim Meyering  <meyering@redhat.com>
56035
56036         fts: tweak inode comparison function
56037         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56038         inode numbers, as documented.
56039
56040         fts: sort dirent entries on inode number before traversing
56041         This avoids a quadratic, seek-related performance penalty when
56042         operating on a directory containing many entries (measurable at 10k;
56043         3.5 hours at 2 million entries with a cold cache) on certain types
56044         of file systems, including ext3 and ext4, but not tmpfs.
56045         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56046         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56047         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56048         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56049         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56050         (fts_build): Set the stat.st_ino member from D_INO.
56051         If it is likely to be useful, sort dirent entries on inode number.
56052
56053         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56054         and the struct statfs.f_type member.
56055         * modules/fts (Depends-on): Add d-ino.
56056
56057 2008-09-26  Bruno Haible  <bruno@clisp.org>
56058
56059         * modules/sigpipe-die (Depends-on): Add sigpipe.
56060
56061         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56062         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56063         and GNULIB_STDIO_H_SIGPIPE are set.
56064         * lib/stdio-write.c: New file.
56065         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56066         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56067         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56068         REPLACE_STDIO_WRITE_FUNCS.
56069         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56070         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56071         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56072         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56073         * modules/stdio (Files): Add lib/stdio-write.c.
56074         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56075         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56076         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56077         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56078         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56079         REPLACE_FPRINTF_POSIX.
56080         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56081         REPLACE_PRINTF_POSIX.
56082         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56083         REPLACE_VFPRINTF_POSIX.
56084         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56085         REPLACE_VPRINTF_POSIX.
56086         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56087         SIGPIPE issue.
56088         * doc/posix-functions/fputc.texi: Likewise.
56089         * doc/posix-functions/fputs.texi: Likewise.
56090         * doc/posix-functions/fwrite.texi: Likewise.
56091         * doc/posix-functions/printf.texi: Likewise.
56092         * doc/posix-functions/putc.texi: Likewise.
56093         * doc/posix-functions/putchar.texi: Likewise.
56094         * doc/posix-functions/puts.texi: Likewise.
56095         * doc/posix-functions/vfprintf.texi: Likewise.
56096         * doc/posix-functions/vprintf.texi: Likewise.
56097
56098         * modules/safe-write (Depends-on): Add write.
56099
56100         * modules/sigpipe-tests: New file.
56101         * tests/test-sigpipe.c: New file.
56102         * tests/test-sigpipe.sh: New file.
56103
56104         * modules/write: New file.
56105         * lib/unistd.in.h: Include <sys/types.h>.
56106         (write): New declaration.
56107         * lib/write.c: New file.
56108         * m4/write.m4: New file.
56109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56110         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56111         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56112         GNULIB_WRITE, REPLACE_WRITE.
56113         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56114         and the SIGPIPE issue.
56115
56116         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56117         (raise): New declaration.
56118         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56119         (ext_signal): New function.
56120         (rpl_raise): New function.
56121         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56122         GNULIB_SIGNAL_H_SIGPIPE.
56123         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56124         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56125
56126         * modules/sigpipe: New file.
56127         * m4/sigpipe.m4: New file.
56128
56129 2008-09-25  Derek Price  <derek@ximbiot.com>
56130             Bruno Haible  <bruno@clisp.org>
56131
56132         * gnulib-tool (func_import): Report all license incompatibilities, not
56133         just the first one.
56134
56135 2008-09-25  Bruno Haible  <bruno@clisp.org>
56136
56137         * gnulib-tool (func_import): When computing the edits, consider not
56138         only the Makefile.ams that exist but also those that will be generated.
56139
56140 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56141
56142         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56143         fixes gnulib-tool --test warning about duplicate dependency.
56144
56145 2008-09-25  Bruno Haible  <bruno@clisp.org>
56146
56147         * gnulib-tool: Don't ask the user to perform edits in the generated
56148         Makefile.ams.
56149         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56150         apply to the Makefile.am being generated.
56151         (func_emit_tests_Makefile_am): Execute edits that apply to the
56152         Makefile.am being generated.
56153         (func_import): Setup list of Makefile.am edits before emitting the
56154         Makefile.ams, not at the end.
56155         (func_create_testdir): Update.
56156         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56157
56158 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56159
56160         * gnulib-tool (func_import): Store the --tests-base option in the
56161         comment in gnulib-cache.m4.
56162
56163 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56164
56165         * NEWS: Document increased portability that sys_select now provides.
56166
56167         * lib/sys_select.in.h: Install select wrapper.
56168         * lib/sys_socket.in.h: Use more descriptive name when there is no
56169         select wrapper.
56170         * lib/winsock-select.c: New.
56171         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56172         Require gl_HEADER_SYS_SOCKET.
56173         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56174         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56175         * tests/test-sys_select.c: Add functional tests.
56176
56177 2008-09-24  Eric Blake  <ebb9@byu.net>
56178
56179         open, fopen: close fd leak in last patch
56180         * lib/open.c (rpl_open): Close fd before returning error.
56181         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56182         * doc/posix-functions/open.texi (open): Document that Irix also
56183         has the bug.
56184         * doc/posix-functions/fopen.texi (fopen): Likewise.
56185         Reported by Paolo Bonzini.
56186
56187 2008-09-24  Bruno Haible  <bruno@clisp.org>
56188
56189         Ensure that a filename ending in a slash cannot be used to access a
56190         non-directory.
56191         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56192         to check whether it's really a directory.
56193         * lib/fopen.c: Include fcntl.h, unistd.h.
56194         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56195         and fdopen().
56196         * modules/fopen (Depends-on): Add unistd.
56197         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56198         * tests/test-fopen.c (main): Likewise.
56199         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56200         * doc/posix-functions/fopen.texi: Likewise.
56201         Reported by Eric Blake.
56202
56203 2008-09-23  Eric Blake  <ebb9@byu.net>
56204
56205         c-stack: avoid compiler optimizations when provoking overflow
56206         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56207         recursion harder to optimize, to ensure a stack overflow occurs.
56208         * tests/test-c-stack.c (recurse): Likewise.
56209         Borrowed from libsigsegv.
56210
56211         c-stack: work around Irix sigaltstack bug
56212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56213         whether sigaltstack uses wrong end of stack_t (copied in part from
56214         libsigsegv).
56215         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56216         Irix bug, without requiring an over-allocation.
56217         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56218         bug.
56219
56220         fopen: document mingw bug on directories
56221         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56222         not allowing a stream visiting a directory, even though reading
56223         from such a stream is not portable.
56224
56225 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56226
56227         * lib/poll.c: Rewrite.
56228         * modules/poll: Depend on alloca.
56229
56230 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56231
56232         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56233         instead define prototypes for a full set of wrappers.  Ensure
56234         that Cygwin does not use the compatibility code, which is only
56235         for MinGW.
56236         * lib/winsock.c: New.
56237         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56238         * modules/sys_socket: Add lib/winsock.c.
56239
56240         * modules/poll-tests: Add errno and perror.
56241         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56242
56243 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56244
56245         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56246
56247 2008-09-23  Bruno Haible  <bruno@clisp.org>
56248
56249         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56250         * doc/glibc-functions/*: Likewise.
56251
56252 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56253
56254         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56255         success.
56256
56257 2008-09-22  Eric Blake  <ebb9@byu.net>
56258             Bruno Haible  <bruno@clisp.org>
56259
56260         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56261         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56262         supply %A but mishandle pseudo-NaN.
56263         Reported by Simon Josefsson.
56264
56265 2008-09-21  Bruno Haible  <bruno@clisp.org>
56266
56267         * tests/test-lock.c (main): Tweak skip message.
56268         * tests/test-tls.c (main): Likewise.
56269
56270 2008-09-21  Bruno Haible  <bruno@clisp.org>
56271
56272         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56273         whether 'struct sigaction' has sa_sigaction here...
56274         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56275         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56276
56277 2008-09-21  Bruno Haible  <bruno@clisp.org>
56278
56279         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56280         section.
56281         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56282         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56283         the new section.
56284         (Support for obsolete systems lacking POSIX:2001): New section.
56285         (String handling <string.h>): Move strdup to the new section.
56286         Suggested by Simon Josefsson and Paolo Bonzini.
56287
56288 2008-09-21  Bruno Haible  <bruno@clisp.org>
56289
56290         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56291         exponents in %e and %g results on 'long double'. Needed for mingw's
56292         improved *printf functions.
56293         * tests/test-vasprintf-posix.c (test_function): Likewise.
56294         * tests/test-snprintf-posix.h (test_function): Likewise.
56295         * tests/test-sprintf-posix.h (test_function): Likewise.
56296         Reported by Eric Blake.
56297
56298 2008-09-21  Bruno Haible  <bruno@clisp.org>
56299
56300         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56301         * tests/test-sprintf-posix.h (test_function): Likewise.
56302
56303 2008-09-21  Bruno Haible  <bruno@clisp.org>
56304
56305         * modules/getpass (Depends-on): Add strdup-posix.
56306
56307         New module 'strdup-posix'.
56308         * modules/strdup-posix: New file.
56309         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56310         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56312         REPLACE_STRDUP.
56313         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56314         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56315         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56316         strdup-posix.
56317
56318         * modules/strdup (Depends-on): Remove malloc-posix.
56319
56320 2008-09-20  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56323         Wildenhues.
56324
56325 2008-09-20  Bruno Haible  <bruno@clisp.org>
56326
56327         Ensure that wint_t gets defined on IRIX 5.3.
56328         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56329         * lib/wctype.in.h (wint_t): Likewise.
56330         (__wctype_wint_t): Remove type.
56331         (isw*): Use wint_t instead of __wctype_wint_t.
56332         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56333         * modules/wchar (Files): Add m4/wint_t.m4.
56334         (Makefile.am): Substitute HAVE_WINT_T.
56335         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56336         * tests/test-wctype.c: Check that wint_t is defined.
56337         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56338         * doc/posix-headers/wctype.texi: Likewise.
56339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56340
56341 2008-09-18  Bruno Haible  <bruno@clisp.org>
56342
56343         * gnulib-tool (func_exit): Update comment.
56344
56345 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56346
56347         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56348         assumes strdup exists and does not depend on strdup to return
56349         ENOMEM on out of memory conditions.
56350
56351 2008-09-18  Bruno Haible  <bruno@clisp.org>
56352
56353         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56354         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56355         digits for the exponent.
56356
56357 2008-09-18  Jim Meyering  <meyering@redhat.com>
56358             Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/vasnprintf.c (decimal_point_char): Define also if
56361         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56362
56363 2008-09-16  Bruno Haible  <bruno@clisp.org>
56364         and Eric Blake  <ebb9@byu.net>
56365
56366         vasnprintf: support Irix 5.3
56367         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56368         that mishandle long double infinity.
56369         Reported by Tom G. Christensen.
56370
56371 2008-09-16  Bruno Haible  <bruno@clisp.org>
56372
56373         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56374         Solaris 9.
56375         * doc/glibc-functions/alphasort.texi: Likewise.
56376         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56377
56378 2008-09-16  Jim Meyering  <meyering@redhat.com>
56379
56380         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56381         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56382         a umask modification leak out of a subshell.  Otherwise, the
56383         opensolaris /bin/sh would be accepted and thus cause unwarranted
56384         failures in the coreutils test suite.
56385
56386 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56387
56388         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56389         to succeed.
56390
56391 2008-09-16  Jim Meyering  <meyering@redhat.com>
56392
56393         avoid spurious test failure when library is built without ACL support
56394         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56395         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56396         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56397         * tests/test-copy-acl.sh: Likewise.
56398
56399 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56400
56401         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56402         based on character occurrence counts.
56403
56404 2008-09-15  Eric Blake  <ebb9@byu.net>
56405
56406         tests: avoid some compiler warnings
56407         * tests/test-memchr.c (main): Pass NULL indirectly.
56408         * tests/test-closein.c (main): Avoid unused variable.
56409
56410 2008-09-15  Bruno Haible  <bruno@clisp.org>
56411
56412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56413         are missing on OpenBSD 4.0 individually.
56414         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56415
56416 2008-09-15  Bruno Haible  <bruno@clisp.org>
56417
56418         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56419         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56420         * doc/posix-functions/perror.texi: Likewise.
56421         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56422         is missing.
56423         Reported by Eric Blake.
56424
56425         * lib/errno.in.h: Use replacement values >= 2000.
56426         Reported by Eric Blake.
56427
56428 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56429
56430         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56431         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56432         limit.
56433         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56434         compareseq was aborted.
56435
56436 2008-09-14  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56439         yvec_edit_count.
56440         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56441         (fstrcmp_bounded): Simplify result computation accordingly.
56442
56443 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56444
56445         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56446         (fstrcmp): Define in terms of fstrcmp_bounded.
56447         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56448         lower_bound argument.
56449         Return quickly if the result is certainly < lower_bound.
56450         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56451
56452 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56453
56454         * lib/diffseq.h (EARLY_ABORT): New macro.
56455         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56456         evaluates to true.
56457
56458 2008-09-14  Bruno Haible  <bruno@clisp.org>
56459
56460         * modules/perror-tests: New file.
56461         * tests/test-perror.sh: New file.
56462         * tests/test-perror.c: New file.
56463
56464         New module 'perror'.
56465         * lib/stdio.in.h (perror): New declaration.
56466         * lib/perror.c: New file.
56467         * m4/perror.m4: New file.
56468         * modules/perror: New file.
56469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56470         * doc/posix-functions/perror.texi: Mention the perror module.
56471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56472         REPLACE_PERROR.
56473         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56474         REPLACE_PERROR.
56475
56476 2008-09-14  Bruno Haible  <bruno@clisp.org>
56477
56478         * modules/stdio (Makefile.am): Reorder to match the order in
56479         lib/stdio.in.h.
56480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56481
56482 2008-09-13  Bruno Haible  <bruno@clisp.org>
56483
56484         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56485
56486 2008-09-13  Bruno Haible  <bruno@clisp.org>
56487
56488         Extend strerror to cover the added errno values.
56489         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56490         (rpl_strerror): Provide error messages for the added errno values and
56491         for the WSA* values.
56492         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56493         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56494         strerror.
56495         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56496         * modules/strerror (Depends-on): Add errno.
56497         * doc/posix-functions/strerror.texi: Document the change.
56498         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56499         and EOVERFLOW.
56500
56501 2008-09-13  Bruno Haible  <bruno@clisp.org>
56502
56503         * modules/EOVERFLOW: Remove file.
56504         * m4/eoverflow.m4: Remove file.
56505         * modules/EOVERFLOW-tests: Remove file.
56506         * tests/test-EOVERFLOW.c: Remove file.
56507         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56508         * modules/ftell (Depends-on): Likewise.
56509         * modules/getdelim (Depends-on): Likewise.
56510         * modules/getugroups (Depends-on): Likewise.
56511         * modules/poll (Depends-on): Likewise.
56512         * modules/snprintf (Depends-on): Likewise.
56513         * modules/sprintf-posix (Depends-on): Likewise.
56514         * modules/vasnprintf (Depends-on): Likewise.
56515         * modules/vasprintf (Depends-on): Likewise.
56516         * modules/vfprintf-posix (Depends-on): Likewise.
56517         * modules/vsnprintf (Depends-on): Likewise.
56518         * modules/vsprintf-posix (Depends-on): Likewise.
56519         * modules/xvasprintf (Depends-on): Likewise.
56520         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56521         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56522         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56523         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56524         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56525         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56526         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56527         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56528         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56529         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56530         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56531         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56532         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56533         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56534         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56535         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56536         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56537         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56538         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56539         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56540         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56541         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56542         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56543         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56544         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56545         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56546         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56547         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56548         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56549         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56550         * MODULES.html.sh: Remove EOVERFLOW.
56551         * NEWS: Mention the change.
56552
56553 2008-09-13  Bruno Haible  <bruno@clisp.org>
56554
56555         * modules/errno-tests: New file.
56556         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56557
56558         * lib/errno.in.h: New file.
56559         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56560         * modules/errno: New file.
56561         * doc/posix-headers/errno.texi: Update documentation.
56562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56563
56564 2008-09-13  Bruno Haible  <bruno@clisp.org>
56565
56566         * tests/test-poll.c: Use #if for native Windows, rather than testing
56567         __MSVCRT__.
56568
56569 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56570             Bruno Haible  <bruno@clisp.org>
56571
56572         * lib/glob.c: Don't include <pwd.h> on native Windows.
56573         (WINDOWS32): New macro.
56574         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56575
56576 2008-09-13  Bruno Haible  <bruno@clisp.org>
56577
56578         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56579         (ETIMEDOUT): Remove macro.
56580         (glthread_cond_timedwait_multithreaded): New declaration.
56581         (glthread_cond_timedwait): Use it.
56582         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56583         (glthread_cond_timedwait_multithreaded): New function.
56584
56585 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56586
56587         * modules/poll-tests: Do not check for io.h.
56588         * tests/test-poll.c: Check for __MSVCRT__ instead.
56589
56590 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56591
56592         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56593         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56594         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56595
56596 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56597
56598         * modules/poll-tests: New.
56599         * tests/test-poll.c: New.
56600
56601 2008-09-12  Eric Blake  <ebb9@byu.net>
56602
56603         frexp: test for NetBSD failure on -0.0
56604         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56605         not all, bugs from NetBSD 3.0 have been fixed.
56606         * doc/posix-functions/frexp.texi (frexp): Document bug.
56607         Reported by Thomas Klausner.
56608
56609         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56610         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56611         literal -0.0.
56612         Reported by Jonathan C. Patschke <jp@centtech.com>.
56613
56614 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56615
56616         * lib/glthread/cond.h: Use dummy implementation also if
56617         USE_WIN32_THREADS.
56618
56619 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56620
56621         * modules/fnmatch-posix (License): Change to LGPLv2+.
56622         * modules/fnmatch-gnu (License): Likewise.
56623
56624 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56625
56626         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56627
56628 2008-09-11  Jim Meyering  <meyering@redhat.com>
56629
56630         * users.txt: Add gtk-vnc.
56631
56632 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56633
56634         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56635         rotate amounts.
56636
56637         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56638         required for 16-bit and 8-bit rotates.
56639         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56640         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56641         UINT8_MAX instead of hard-coded constants.
56642         Suggested by Paul Eggert.
56643
56644 2008-09-07  Bruno Haible  <bruno@clisp.org>
56645
56646         * tests/test-striconveh.c (main): Check behaviour when converting from
56647         UTF-7.
56648
56649         Make striconveh work better with stateful encodings.
56650         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56651         that iconv does not increment the inptr when returning -1/EINVAL.
56652
56653 2008-09-07  Bruno Haible  <bruno@clisp.org>
56654
56655         * build-aux/config.rpath: Update according to libtool-2.2.6.
56656         * build-aux/config.libpath: Likewise.
56657
56658 2008-09-06  Bruno Haible  <bruno@clisp.org>
56659
56660         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56661         * lib/freadptr.c (freadptr): Likewise.
56662         * lib/freadseek.c (freadptrinc): Likewise.
56663         Reported by Simon Josefsson.
56664
56665 2008-09-06  Bruno Haible  <bruno@clisp.org>
56666
56667         * modules/freadptr (License): Change to LGPLv2+.
56668         * modules/freadseek (License): Likewise.
56669         Suggested by Eric Blake.
56670
56671         * modules/memchr2 (License): Change to LGPLv2+.
56672         Approved by Eric Blake.
56673
56674 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56675             Bruno Haible  <bruno@clisp.org>
56676
56677         Make gnulib-tool work with native 'sed' on AIX.
56678         * gnulib-tool (sed_noop): New variable.
56679         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56680         func_add_or_update, func_create_testdir): Use it to initialize sed
56681         script variables.
56682         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56683
56684 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56685             Bruno Haible  <bruno@clisp.org>
56686
56687         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56688         also works after #include directives.
56689
56690 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56691
56692         getdate.y: reject an out-of-range timezone value
56693         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56694         the range [-24...+24].  When specified with only one or two digits,
56695         * tests/test-getdate.c: Tests for the fix.
56696         * doc/getdate.texi: Document this change.
56697
56698 2008-09-03  Bruno Haible  <bruno@clisp.org>
56699
56700         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56701
56702 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56703
56704         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56705         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56706         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56707         Blake <ebb9@byu.net>.
56708
56709         * tests/test-bitrotate.c: Add more test vectors.
56710
56711 2008-09-02  Eric Blake  <ebb9@byu.net>
56712
56713         vasnprintf-posix: handle large precision via %.*d
56714         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56715         when handling it ourselves.
56716         * tests/test-vasnprintf-posix.c (test_function): Add test.
56717         * tests/test-snprintf-posix.h (test_function): Likewise.
56718         * tests/test-sprintf-posix.h (test_function): Likewise.
56719         * tests/test-vasprintf-posix.c (test_function): Likewise.
56720         Reported by Alain Guibert.
56721
56722 2008-09-01  Eric Blake  <ebb9@byu.net>
56723
56724         c-stack: make configure-time check more robust
56725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56726         successful sigaction call.
56727         Reported by Tom G. Christensen.
56728
56729 2008-09-01  Bruno Haible  <bruno@clisp.org>
56730
56731         New module 'findprog-lgpl'.
56732         * modules/findprog-lgpl: New file.
56733         * lib/findprog-lgpl.c: New file.
56734         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56735         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56736         to decide whether to use strdup or xstrdup, concatenated_filename or
56737         xconcatenated_filename.
56738
56739 2008-09-01  Bruno Haible  <bruno@clisp.org>
56740
56741         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56742         'xconcat-filename' (GPL).
56743         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56744         (License): Change to LGPLv2+.
56745         * modules/xconcat-filename: New file.
56746         * lib/concat-filename.h (concatenated_filename): Change specification.
56747         (xconcatenated_filename): New declaration.
56748         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56749         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56750         memory situations.
56751         * lib/xconcat-filename.c: New file.
56752         * NEWS: Mention the change.
56753         * lib/findprog.c: Include concat-filename.h, not filename.h.
56754         (find_in_path): Use xconcatenated_filename instead of
56755         concatenated_filename.
56756         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56757         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56758         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56759         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56760         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56761         instead of concatenated_filename.
56762         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56763         (execute_java_class): Use xconcatenated_filename instead of
56764         concatenated_filename.
56765         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56766         * modules/javacomp (Depends-on): Likewise.
56767         * modules/javaexec (Depends-on): Likewise.
56768
56769 2008-09-01  Bruno Haible  <bruno@clisp.org>
56770
56771         Split module 'filename' into 'filename' and 'concat-filename'.
56772         * modules/filename: Keep only lib/filename.h.
56773         (License): Change to LGPLv2+.
56774         * modules/concat-filename: New file, extracted from modules/filename.
56775         * lib/filename.h (concatenated_filename): Remove declaration.
56776         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56777         * lib/concat-filename.c: Include concat-filename.h.
56778         * NEWS: Mention the change.
56779
56780 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56781
56782         * lib/bitrotate.h (rotl8, rotr8): Add.
56783
56784         * modules/bitrotate (configure.ac): Need
56785         AC_REQUIRE([AC_C_INLINE]).
56786         (Description): Mention stdint.h.  Reported by Bruno Haible
56787         <bruno@clisp.org>.
56788
56789         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56790         Paolo Bonzini <bonzini@gnu.org>.
56791
56792 2008-08-31  Bruno Haible  <bruno@clisp.org>
56793
56794         Assume Solaris specific bi-arch conventions on Solaris systems.
56795         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56796         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56798         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56799         like acl_libdirstem.
56800         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56801         acl_libdirstem.
56802         * NEWS: Mention the change.
56803         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56804
56805 2008-08-31  Jim Meyering  <meyering@redhat.com>
56806
56807         * lib/strftime.h: Add comments describing the two added arguments.
56808
56809         remove duplicate #include directives
56810         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56811         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56812
56813 2008-08-31  Bruno Haible  <bruno@clisp.org>
56814
56815         New module 'sigpipe-die'.
56816         * modules/sigpipe-die: New file.
56817         * lib/sigpipe-die.h: New file.
56818         * lib/sigpipe-die.c: New file.
56819         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56820
56821 2008-08-31  Bruno Haible  <bruno@clisp.org>
56822
56823         Don't override previously installed signal handlers.
56824         * lib/fatal-signal.c (saved_sigactions): New variable.
56825         (uninstall_handlers): Reset the signal to the saved handler, not
56826         to SIG_DFL (except when ignored).
56827         (install_handlers): Save the previous handlers.
56828
56829 2008-08-30  Bruno Haible  <bruno@clisp.org>
56830
56831         * gnulib-tool (func_reset_sigpipe): New function.
56832         (func_get_automake_snippet, func_modules_transitive_closure,
56833         func_import): Invoke it before a join command that reads from stdin,
56834         to avoid "echo: write error: Broken pipe" error messages on stderr.
56835         Reported by Sam Steingold <sds@gnu.org>.
56836
56837 2008-08-30  Bruno Haible  <bruno@clisp.org>
56838
56839         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56840         Code copied from m4/open.m4.
56841         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56842         access and the filename ends in a slash. Code copied from lib/open.c.
56843         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56844         * tests/test-fopen.c (main): Check against bug with trailing slash.
56845
56846 2008-08-29  Bruno Haible  <bruno@clisp.org>
56847
56848         Avoid some "gcc -pedantic" warnings.
56849         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56850         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56851         * lib/dirent.in.h: Likewise.
56852         * lib/fcntl.in.h: Likewise.
56853         * lib/float.in.h: Likewise.
56854         * lib/iconv.in.h: Likewise.
56855         * lib/inttypes.in.h: Likewise.
56856         * lib/locale.in.h: Likewise.
56857         * lib/math.in.h: Likewise.
56858         * lib/netinet_in.in.h: Likewise.
56859         * lib/search.in.h: Likewise.
56860         * lib/signal.in.h: Likewise.
56861         * lib/stdarg.in.h: Likewise.
56862         * lib/stdint.in.h: Likewise.
56863         * lib/stdio.in.h: Likewise.
56864         * lib/stdlib.in.h: Likewise.
56865         * lib/string.in.h: Likewise.
56866         * lib/strings.in.h: Likewise.
56867         * lib/sys_select.in.h: Likewise.
56868         * lib/sys_socket.in.h: Likewise.
56869         * lib/sys_stat.in.h: Likewise.
56870         * lib/sys_time.in.h: Likewise.
56871         * lib/sysexits.in.h: Likewise.
56872         * lib/time.in.h: Likewise.
56873         * lib/unistd.in.h: Likewise.
56874         * lib/wchar.in.h: Likewise.
56875         * lib/wctype.in.h: Likewise.
56876         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56877         * modules/fchdir (Makefile.am): Likewise.
56878         * modules/fcntl (Makefile.am): Likewise.
56879         * modules/float (Makefile.am): Likewise.
56880         * modules/iconv_open (Makefile.am): Likewise.
56881         * modules/inttypes (Makefile.am): Likewise.
56882         * modules/locale (Makefile.am): Likewise.
56883         * modules/math (Makefile.am): Likewise.
56884         * modules/netinet_in (Makefile.am): Likewise.
56885         * modules/search (Makefile.am): Likewise.
56886         * modules/signal (Makefile.am): Likewise.
56887         * modules/stdarg (Makefile.am): Likewise.
56888         * modules/stdint (Makefile.am): Likewise.
56889         * modules/stdio (Makefile.am): Likewise.
56890         * modules/stdlib (Makefile.am): Likewise.
56891         * modules/string (Makefile.am): Likewise.
56892         * modules/strings (Makefile.am): Likewise.
56893         * modules/sys_select (Makefile.am): Likewise.
56894         * modules/sys_socket (Makefile.am): Likewise.
56895         * modules/sys_stat (Makefile.am): Likewise.
56896         * modules/sys_time (Makefile.am): Likewise.
56897         * modules/sysexits (Makefile.am): Likewise.
56898         * modules/time (Makefile.am): Likewise.
56899         * modules/unistd (Makefile.am): Likewise.
56900         * modules/wchar (Makefile.am): Likewise.
56901         * modules/wctype (Makefile.am): Likewise.
56902         Reported by Reuben Thomas <rrt@sc3d.org>.
56903
56904 2008-08-29  Bruno Haible  <bruno@clisp.org>
56905
56906         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56907         any more.
56908
56909 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56910
56911         * MODULES.html.sh (Misc): Add bitrotate.
56912
56913         * modules/bitrotate: New file.
56914
56915         * lib/bitrotate.h: New file.
56916
56917         * modules/bitrotate-tests: New file.
56918
56919         * tests/test-bitrotate.c: New file.
56920
56921         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56922         on the bitrotate module.
56923
56924         * lib/arctwo.c: Use new bitrotate module.
56925
56926 2008-08-29  Jim Meyering  <meyering@redhat.com>
56927
56928         bootstrap: merge changes from coreutils
56929         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56930         of copied files.  Remove a kludge, now that this is fixed.
56931         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56932         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56933         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56934
56935 2008-08-29  Bruno Haible  <bruno@clisp.org>
56936
56937         * MODULES.html.sh: Remove --cvs-urls option.
56938
56939 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56940
56941         maint.mk: adjust to file name change
56942         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56943
56944 2008-08-28  Jim Meyering  <meyering@redhat.com>
56945
56946         * modules/getndelim2 (License): Relicense to LGPLv2+.
56947         Approved by Richard Stallman for the version of 1995, and by
56948         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56949
56950 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56951
56952         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56953         dummy if one is not available.  Do not touch them if
56954         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56955         (getc_maybe_unlocked): New.
56956         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56957
56958 2008-08-26  Eric Blake  <ebb9@byu.net>
56959
56960         doc/INSTALL: resync from autoconf
56961         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56962         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56963         moving...
56964         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56965         * INSTALL: Regenerate.
56966         * INSTALL.ISO: New file.
56967         * INSTALL.UTF-8: Likewise.
56968
56969 2008-08-26  Jim Meyering  <meyering@redhat.com>
56970
56971         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56972         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56973         these definitions conditional, so that they may be overridden, too.
56974
56975 2008-08-26  Bruno Haible  <bruno@clisp.org>
56976
56977         Generate INSTALL file variants with prettier quotes.
56978         * doc/Makefile (INSTALL_PRELUDE): New macro.
56979         (INSTALL): Use it.
56980         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56981
56982 2008-08-26  Bruno Haible  <bruno@clisp.org>
56983
56984         Run makeinfo in an English locale.
56985         * doc/Makefile (MAKEINFO): New variable.
56986
56987 2008-08-26  Bruno Haible  <bruno@clisp.org>
56988
56989         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56990         Suggested by Eric Blake.
56991
56992 2008-08-25  Bruno Haible  <bruno@clisp.org>
56993
56994         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56995
56996 2008-08-25  Eric Blake  <ebb9@byu.net>
56997
56998         c-stack: test that stack overflow can be caught
56999         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57000         that platform allows handling stack overflow; at least OS/2 EMX
57001         has sigaltstack, but crashes before transferring control to
57002         handler on stack overflow.
57003         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57004         check for HAVE_STACK_OVERFLOW_HANDLING.
57005         Reported by Elbert Pol.
57006
57007 2008-08-25  Bruno Haible  <bruno@clisp.org>
57008
57009         * doc/posix-functions/strftime.texi: Fix description of strftime
57010         module.
57011
57012 2008-08-24  Bruno Haible  <bruno@clisp.org>
57013
57014         * tests/uniwidth/test-uc_width2.c: New file.
57015         * tests/uniwidth/test-uc_width2.sh: New file.
57016         * modules/uniwidth/width-tests (Files): Add the new files.
57017         (TESTS): Add uniwidth/test-uc_width2.sh.
57018         (TESTS_ENVIRONMENT): New variable.
57019         (check_PROGRAMS): Add test-uc_width2.
57020         (test_uc_width2_SOURCES): New variable.
57021
57022         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57023         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57024         not 0x00AB.
57025         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57026
57027 2008-08-22  Eric Blake  <ebb9@byu.net>
57028
57029         test-lock, test-tls: mention why a test is skipped
57030         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57031         skipped.
57032         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57033
57034         count-one-bits: relax license
57035         * modules/count-one-bits (License): Relicense to LGPLv2+.
57036         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57037
57038 2008-08-22  Andreas Schwab  <schwab@suse.de>
57039
57040         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57041         Remove spurious space in assignment.
57042
57043 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57044
57045         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57046         Paul Eggert <eggert@CS.UCLA.EDU>.
57047
57048 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57049
57050         * modules/gettext: Add m4/threadlib.m4.
57051
57052 2008-08-19  Eric Blake  <ebb9@byu.net>
57053
57054         test-c-stack: fix compilation failure on FreeBSD 5.0
57055         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57056         headers before <sys/resource.h>.
57057         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57058         the bug.
57059         Reported by Nelson H. F. Beebe.
57060
57061         strverscmp: migrate from "strverscmp.h" to <string.h>
57062         * modules/string (Makefile.am): Add new hooks.
57063         * modules/strverscmp (Files): Remove strverscmp.h.
57064         (Depends-on): Add string.
57065         (configure.ac): Add indicator.
57066         (Include): Mention new header.
57067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57068         defaults.
57069         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57070         results.
57071         * lib/strverscmp.h: Delete.
57072         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57073         * tests/test-strverscmp.c (includes): Adjust client.
57074         * lib/check-version.c (includes): Likewise.
57075         * NEWS: Document the change.
57076
57077         strverscmp: add unit test
57078         * modules/strverscmp-tests: New file.
57079         * tests/test-strverscmp.c: Likewise.
57080
57081 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57082
57083         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57084         regarding Windows crypto stuff, from Mono.
57085
57086 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57087
57088         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57089         if present, for intel RND.  Return error on failures.
57090
57091 2008-08-18  Ben Pfaff  <blp@gnu.org>
57092
57093         gitlog-to-changelog: give better diagnostic for failed pipe-open
57094         * build-aux/gitlog-to-changelog: Improve error message: suggest
57095         that the version of Git may be too old.
57096
57097 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57098
57099         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57100         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57101
57102 2008-08-18  Bruno Haible  <bruno@clisp.org>
57103
57104         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57105         pthread_in_use().
57106
57107 2008-08-18  Bruno Haible  <bruno@clisp.org>
57108
57109         * lib/glthread/threadlib.c: Include <pthread.h>.
57110
57111 2008-08-18  Bruno Haible  <bruno@clisp.org>
57112
57113         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57114         glthread_recursive_lock_* macros.
57115         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57116         Fix syntax error.
57117
57118 2008-08-18  Bruno Haible  <bruno@clisp.org>
57119
57120         * lib/glthread/thread.c: Avoid forcing a context switch right after
57121         thread creation.
57122
57123 2008-08-17  Bruno Haible  <bruno@clisp.org>
57124
57125         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57126         * lib/glthread/thread.h: Provide Win32 specific implementation.
57127         * modules/thread (Files): Add lib/glthread/thread.c.
57128         (Depends-on): Add lock.
57129         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57130
57131 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57132
57133         New module 'yield'.
57134         * modules/yield: New file.
57135         * lib/glthread/yield.h: New file.
57136         * m4/yield.m4: New file.
57137         * MODULES.html.sh (Multithreading): Add yield.
57138
57139 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57140
57141         New module 'thread'.
57142         * modules/thread: New file.
57143         * lib/glthread/thread.h: New file.
57144         * m4/thread.m4: New file.
57145         * MODULES.html.sh (Multithreading): Add thread.
57146
57147 2008-08-17  Bruno Haible  <bruno@clisp.org>
57148
57149         * lib/glthread/lock.h: Include <stdlib.h> always.
57150         * lib/glthread/tls.h: Likewise.
57151         * lib/glthread/cond.h: Likewise.
57152
57153 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57154
57155         New module 'cond'.
57156         * modules/cond: New file.
57157         * lib/glthread/cond.h: New file.
57158         * lib/glthread/cond.c: New file.
57159         * m4/cond.m4: New file.
57160         * MODULES.html.sh (Multithreading): Add cond.
57161
57162 2008-08-16  Eric Blake  <ebb9@byu.net>
57163
57164         c-stack: fix regression on Irix 5.3 from 2008-06-21
57165         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57166         sa_sigaction...
57167         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57168         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57169         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57170         * modules/signal (Makefile.am): Use the value.
57171         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57172         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57173         * doc/posix-headers/signal.texi (signal.h): Document this
57174         portability issue.
57175         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57176         Reported by Tom G. Christensen.
57177
57178 2008-08-17  Bruno Haible  <bruno@clisp.org>
57179
57180         New module 'threadlib'.
57181         * modules/threadlib: New file.
57182         * lib/glthread/threadlib.c: New file, extracted from
57183         lib/glthread/lock.c.
57184         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57185         functions.
57186         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57187         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57188         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57189         macros.
57190         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57191         (gl_DISABLE_THREADS): Remove macro.
57192         * modules/lock (Files): Remove build-aux/config.rpath.
57193         (Depends-on): Remove havelib. Add threadlib.
57194         (configure.ac-early): Remove section.
57195         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57196         * modules/tls (Depends-on): Remove lock. Add threadlib.
57197         (Link): New section, copied from threadlib.
57198         * MODULES.html.sh (Multithreading): Add threadlib.
57199
57200 2008-08-14  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57203         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57204         glthread_rwlock_unlock, glthread_rwlock_destroy,
57205         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57206         glthread_recursive_lock_destroy): Define as macros always.
57207         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57208         glthread_lock_lock.
57209         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57210         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57211         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57212         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57213         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57214         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57215         (glthread_recursive_lock_lock_func): Renamed from
57216         glthread_recursive_lock_lock.
57217         (glthread_recursive_lock_unlock_func): Renamed from
57218         glthread_recursive_lock_unlock.
57219         (glthread_recursive_lock_destroy_func): Renamed from
57220         glthread_recursive_lock_destroy.
57221
57222 2008-08-14  Bruno Haible  <bruno@clisp.org>
57223
57224         * lib/glthread/lock.h: Renamed from lib/lock.h.
57225         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57226         * lib/glthread/tls.h: Renamed from lib/tls.h.
57227         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57228         * lib/fstrcmp.c: Update includes.
57229         * lib/strsignal.c: Update includes.
57230         * modules/lock (Files, Makefile.am): Update.
57231         (Include): Change to "glthread/lock.h".
57232         * modules/tls (Files, Makefile.am): Update.
57233         (Include): Change to "glthread/tls.h".
57234         * tests/test-lock.c: Update includes.
57235         * tests/test-tls.c: Update includes.
57236         * NEWS: Mention the renamed header files.
57237
57238 2008-08-11  Jim Meyering  <meyering@redhat.com>
57239
57240         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57241
57242 2008-08-11  Eric Blake  <ebb9@byu.net>
57243
57244         test-c-stack: avoid C99-ism
57245         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57246         before statement.
57247         Reported by Alain Guibert.
57248
57249 2008-08-10  Jim Meyering  <meyering@redhat.com>
57250
57251         ensure that return value of uinttostr et al are not ignored
57252         * lib/inttostr.h (__GNUC_PREREQ): Define.
57253         (__attribute_warn_unused_result__): Define.
57254         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57255
57256 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57257
57258         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57259         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57260
57261 2008-08-07  Jim Meyering  <meyering@redhat.com>
57262
57263         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57264
57265         * modules/mkstemp (License): Relicense under LGPLv2+.
57266         * modules/tempname (License): Likewise.
57267
57268 2008-08-06  Bruno Haible  <bruno@clisp.org>
57269
57270         * lib/poll.c (poll): Further micro-optimization.
57271
57272 2008-08-06  Jim Meyering  <meyering@redhat.com>
57273
57274         inet_pton.c: use locale-independent tolower
57275         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57276         (inet_pton6): Use c_tolower rather than tolower.
57277         * modules/inet_pton (Depends-on): Add c-ctype.
57278
57279 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57280
57281         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57282         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57283
57284 2008-08-06  Jim Meyering  <meyering@redhat.com>
57285
57286         * modules/inet_pton (License): Relicense under LGPLv2+.
57287
57288 2008-08-03  Bruno Haible  <bruno@clisp.org>
57289
57290         Additional non-aborting API for lock and tls.
57291         * lib/lock.h: Include <errno.h>.
57292         (glthread_lock_init): New macro/function.
57293         (gl_lock_init): Define as wrapper around glthread_lock_init.
57294         (glthread_lock_lock): New macro/function.
57295         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57296         (glthread_lock_unlock): New macro/function.
57297         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57298         (glthread_lock_destroy): New macro/function.
57299         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57300         (glthread_rwlock_init): New macro/function.
57301         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57302         (glthread_rwlock_rdlock): New macro/function.
57303         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57304         (glthread_rwlock_wrlock): New macro/function.
57305         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57306         (glthread_rwlock_unlock): New macro/function.
57307         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57308         (glthread_rwlock_destroy): New macro/function.
57309         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57310         (glthread_recursive_lock_init): New macro/function.
57311         (gl_recursive_lock_init): Define as wrapper around
57312         glthread_recursive_lock_init.
57313         (glthread_recursive_lock_lock): New macro/function.
57314         (gl_recursive_lock_lock): Define as wrapper around
57315         glthread_recursive_lock_lock.
57316         (glthread_recursive_lock_unlock): New macro/function.
57317         (gl_recursive_lock_unlock): Define as wrapper around
57318         glthread_recursive_lock_unlock.
57319         (glthread_recursive_lock_destroy): New macro/function.
57320         (gl_recursive_lock_destroy): Define as wrapper around
57321         glthread_recursive_lock_destroy.
57322         (glthread_once): New macro/function.
57323         (gl_once): Define as wrapper around glthread_once.
57324         Update function declarations.
57325         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57326         glthread_rwlock_init. Return error code.
57327         (glthread_rwlock_rdlock_multithreaded): Renamed from
57328         glthread_rwlock_rdlock. Return error code.
57329         (glthread_rwlock_wrlock_multithreaded): Renamed from
57330         glthread_rwlock_wrlock. Return error code.
57331         (glthread_rwlock_unlock_multithreaded): Renamed from
57332         glthread_rwlock_unlock. Return error code.
57333         (glthread_rwlock_destroy_multithreaded): Renamed from
57334         glthread_rwlock_destroy. Return error code.
57335         (glthread_recursive_lock_init_multithreaded): Renamed from
57336         glthread_recursive_lock_init. Return error code.
57337         (glthread_recursive_lock_lock_multithreaded): Renamed from
57338         glthread_recursive_lock_lock. Return error code.
57339         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57340         glthread_recursive_lock_unlock. Return error code.
57341         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57342         glthread_recursive_lock_destroy. Return error code.
57343         (glthread_once_call): Make static.
57344         (glthread_once_multithreaded): Renamed from glthread_once.
57345         * lib/tls.h: Include <errno.h>.
57346         (glthread_tls_key_init): New macro/function.
57347         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57348         (glthread_tls_set): New macro/function.
57349         (gl_tls_set): Define as wrapper around glthread_tls_set.
57350         (glthread_tls_key_destroy): New macro/function.
57351         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57352         Update function declarations.
57353         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57354         glthread_tls_get.
57355         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57356
57357 2008-08-04  Eric Blake  <ebb9@byu.net>
57358
57359         gnumakefile: use space, not TAB, outside of targets
57360         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57361
57362 2008-08-02  Jim Meyering  <meyering@redhat.com>
57363
57364         getdate.y: avoid locale-dependent date parsing failure
57365         In Turkish locales, getdate would fail to recognize keywords
57366         containing a lowercase "i".  The solution is not to rely on
57367         locale-sensitive case-conversion.
57368         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57369         (lookup_word): Use c_toupper in place of toupper.
57370         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57371         Reported by Vefa Bicakci <bicave@superonline.com> in
57372         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57373         * modules/getdate (Depends-on): Add c-ctype.
57374
57375 2008-08-02  Bruno Haible  <bruno@clisp.org>
57376
57377         * gnulib-tool (func_import): When updating or creating a .gitignore
57378         file, prepend each added line with a slash, and ignore leading slashes
57379         from the existing lines.
57380         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57381
57382 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57383
57384         Portability fix for GNU make 3.79.1.
57385         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57386         versions do not understand.
57387
57388 2008-08-01  Bruno Haible  <bruno@clisp.org>
57389
57390         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57391         * tests/test-isnanf.h (zero): New variable.
57392         (main): Avoid literal -0.0f.
57393         * tests/test-isnand.h (zero): New variable.
57394         (main): Avoid literal -0.0.
57395         * tests/test-isnanl.h (zero): New variable.
57396         (main): Avoid literal -0.0L.
57397         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57398         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57399         -0.0, -0.0L.
57400         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57401         (test_signbitd): Avoid literal -0.0.
57402         (test_signbitl): Avoid literal -0.0L.
57403         * tests/test-ceilf1.c (zero): New variable.
57404         (main): Avoid literal -0.0f.
57405         * tests/test-ceill.c (zero): New variable.
57406         (main): Avoid literal -0.0L.
57407         * tests/test-floorf1.c (zero): New variable.
57408         (main): Avoid literal -0.0f.
57409         * tests/test-floorl.c (zero): New variable.
57410         (main): Avoid literal -0.0L.
57411         * tests/test-roundf1.c (zero): New variable.
57412         (main): Avoid literal -0.0f.
57413         * tests/test-round1.c (zero): New variable.
57414         (main): Avoid literal -0.0.
57415         * tests/test-roundl.c (zero): New variable.
57416         (main): Avoid literal -0.0L.
57417         * tests/test-truncf1.c (zero): New variable.
57418         (main): Avoid literal -0.0f.
57419         * tests/test-trunc1.c (zero): New variable.
57420         (main): Avoid literal -0.0.
57421         * tests/test-truncl.c (zero): New variable.
57422         (main): Avoid literal -0.0L.
57423         * tests/test-frexp.c (zero): New variable.
57424         (main): Avoid literal -0.0.
57425         * tests/test-frexpl.c (zero): New variable.
57426         (main): Avoid literal -0.0L.
57427         * tests/test-ldexpl.c (zero): New variable.
57428         (main): Avoid literal -0.0L.
57429         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57430         (zerod, zerol): New variables.
57431         (test_function): Avoid literals -0.0, -0.0L.
57432         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57433         (zerod, zerol): New variables.
57434         (test_function): Avoid literals -0.0, -0.0L.
57435         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57436         (zerod, zerol): New variables.
57437         (test_function): Avoid literals -0.0, -0.0L.
57438         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57439         (zerod, zerol): New variables.
57440         (test_function): Avoid literals -0.0, -0.0L.
57441         * tests/test-strtod.c (zero): New variable.
57442         (main): Avoid literal -0.0.
57443         Reported by Jonathan C. Patschke <jp@centtech.com>.
57444
57445 2008-07-31  Jim Meyering  <meyering@redhat.com>
57446
57447         sha256.h: correct definition of SHA224_DIGEST_SIZE
57448         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57449         Reported by Paulie Pena IV <paulie4@gmail.com>.
57450         Define as 224 / 8, rather than as a literal.
57451         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57452         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57453         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57454
57455 2008-07-31  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57458         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57459         Reported by Jonathan Patschke <jp@centtech.com>.
57460
57461 2008-07-31  Bruno Haible  <bruno@clisp.org>
57462
57463         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57464         Reported by Paolo Bonzini <bonzini@gnu.org>.
57465
57466 2008-07-30  Eric Blake  <ebb9@byu.net>
57467
57468         test-strtod: allow compilation without -lm
57469         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57470         Reported by Dennis Clarke <blastwave@gmail.com>.
57471
57472 2008-07-28  Jim Meyering  <meyering@redhat.com>
57473
57474         bootstrap: work also when there are no .po files in po/
57475         * build-aux/bootstrap (update_po_files): Complete the change
57476         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57477
57478 2008-07-27  Jim Meyering  <meyering@redhat.com>
57479
57480         * users.txt: Add zile.
57481
57482 2008-07-26  Ben Pfaff  <blp@gnu.org>
57483
57484         Add missing dependencies on new m4/exponent[fdl].m4 files.
57485         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57486         * modules/isnand-nolibm: Add m4/exponentd.m4.
57487         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57488         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57489         m4/isnan[fdl].m4, because the macros actually used moved.
57490         Reported by Jim Meyering.
57491
57492 2008-07-14  Ben Pfaff  <blp@gnu.org>
57493
57494         Add isinf module.
57495         * lib/isinf.c: New file.
57496         * lib/math.in.h: Define isinf macro if we have decided to replace
57497         it.
57498         * m4/isinf.m4: New file.
57499         * m4/math_h.m4: Initialize and substitute variables for isinf
57500         module.
57501         * modules/isinf: New file.
57502         * modules/isinf-tests: New file.
57503         * modules/math: Add substitutions for new module.
57504         * tests/test-isinf.c: New file.
57505         * doc/posix-functions/isinf.texi: Mention new module.
57506         * MODULES.html.sh: Mention new module.
57507
57508 2008-07-14  Ben Pfaff  <blp@gnu.org>
57509
57510         Factor out some macros for use by additional modules.
57511         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57512         exponentf.m4.
57513         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57514         exponentd.m4.
57515         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57516         file exponentl.m4.
57517         * m4/exponentf.m4: New file.
57518         * m4/exponentd.m4: New file.
57519         * m4/exponentl.m4: New file.
57520         * modules/isnanf: Use new file m4/exponentf.m4.
57521         * modules/isnand: Use new file m4/exponentd.m4.
57522         * modules/isnanl: Use new file m4/exponentl.m4.
57523
57524 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57525
57526         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57527         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57528         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57529         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57530
57531         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57532         readlink on platforms without PATH_MAX.
57533
57534 2008-07-21  Eric Blake  <ebb9@byu.net>
57535
57536         Warn, not fail, on stale version.
57537         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57538
57539         Don't allow installation with stale devel version number.
57540         * top/GNUmakefile (_is-install-target): New macro.
57541         (_curr-ver): Forbid installation with stale version number.
57542
57543 2008-07-20  Bruno Haible  <bruno@clisp.org>
57544
57545         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57546         TESTS_ENVIRONMENT.
57547         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57548
57549 2008-07-20  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/c-stack.h (c_stack_action): Add documentation.
57552         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57553
57554 2008-07-20  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57557         * modules/readlink (License): Likewise.
57558
57559 2008-07-17  Eric Blake  <ebb9@byu.net>
57560
57561         * modules/c-stack (Link): Fix typo.
57562
57563         Make c-stack use libsigsegv, when available.
57564         * modules/c-stack (Depends-on): Add libsigsegv.
57565         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57566         needed.
57567         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57568         (segv_handler, overflow_handler, c_stack_action)
57569         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57570         implementation when libsigsegv is available, but only when using
57571         the library is necessary.
57572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57573         comment, explaining why XSI check fails on Linux.
57574         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57575         * tests/test-c-stack2.sh: Tweak skip message.
57576         * NEWS: Document new link-time requirements.
57577
57578 2008-07-16  Eric Blake  <ebb9@byu.net>
57579
57580         c-stack: Expose false positives when not using libsigsegv.
57581         * modules/c-stack-tests (Files): Expand test.
57582         * tests/test-c-stack.c (main): Add means to conditionally trigger
57583         non-overflow SIGSEGV.
57584         * tests/test-c-stack2.sh: New file.
57585
57586 2008-07-14  Bruno Haible  <bruno@clisp.org>
57587
57588         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57589         Reported by Eric Blake.
57590
57591 2008-07-14  Sam Steingold  <sds@gnu.org>
57592             Bruno Haible  <bruno@clisp.org>
57593
57594         New module libsigsegv.
57595         * modules/libsigsegv: New file.
57596         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57597         modifications.
57598         * MODULES.html.sh (Signal handling): New section.
57599
57600 2008-07-14  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/unictype/ctype-* (Description): Add the word "function".
57603         Improves the resulting doc in MODULES.html.
57604
57605 2008-07-12  Ben Pfaff  <blp@gnu.org>
57606
57607         Add longlong module.
57608         * modules/longlong: New file.
57609
57610 2008-07-12  Bruno Haible  <bruno@clisp.org>
57611
57612         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57613         to empty.
57614
57615 2008-07-10  Ben Pfaff  <blp@gnu.org>
57616
57617         Add isnan module.
57618         * doc/posix-functions/isnan.texi: Mention new module.
57619         * lib/math.in.h: Define isnan macro if we have decided to replace
57620         it.
57621         * m4/isnan.m4: New file.
57622         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57623         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57624         also.
57625         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57626         redundancy.
57627         * m4/math_h.m4: Initialize and substitute variables for isnan
57628         module.
57629         * modules/isnan: New file.
57630         * modules/isnan-tests: New file.
57631         * modules/math: Add substitutions for new module.
57632         * tests/test-isnan.c: New file.
57633         * MODULES.html.sh: Mention new module.
57634
57635 2008-07-10  Ben Pfaff  <blp@gnu.org>
57636
57637         Add isnanf module.
57638         * lib/isnanf.m4: New file.
57639         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57640         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57641         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57642         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57643         * modules/isnanf: New file.
57644         * modules/isnanf-tests: New file.
57645         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57646         files.
57647         * tests/test-isnanf-nolibm.c: factored most of its contents into
57648         new file tests/test-isnanf.h.
57649         * tests/test-isnanf.h: New file.
57650         * tests/test-isnanf.c: New file.
57651         * MODULES.html.sh: Mention new module.
57652         * doc/glibc-functions/isnanf.texi: Mention new module.
57653
57654 2008-07-10  Ben Pfaff  <blp@gnu.org>
57655
57656         Add isnand module.
57657         * lib/isnand.h: New file.
57658         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57659         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57660         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57661         functionality also.
57662         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57663         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57664         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57665         * modules/isnand: New file.
57666         * modules/isnand-tests: New file.
57667         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57668         files.
57669         * tests/test-isnand-nolibm.c: factored most of its contents into
57670         new file tests/test-isnand.h.
57671         * tests/test-isnand.h: New file.
57672         * tests/test-isnand.c: New file.
57673         * MODULES.html.sh: Mention new module.
57674
57675 2008-07-10  Ben Pfaff  <blp@gnu.org>
57676
57677         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57678         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57679         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57680         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57681         * modules/isnanf-nolibm: Update references to renamed files.
57682         * modules/isnand-nolibm: Likewise.
57683         * modules/isnanf-nolibm-tests: Likewise.
57684         * modules/isnand-nolibm-tests: Likewise.
57685         * lib/frexp.c: Likewise.
57686         * lib/isfinite.c: Likewise.
57687         * lib/signbitd.c: Likewise.
57688         * lib/signbitf.c: Likewise.
57689         * lib/vasnprintf.c: Likewise.
57690         * tests/test-ceilf1.c: Likewise.
57691         * tests/test-ceilf2.c: Likewise.
57692         * tests/test-floorf1.c: Likewise.
57693         * tests/test-floorf2.c: Likewise.
57694         * tests/test-frexp.c: Likewise.
57695         * tests/test-round1.c: Likewise.
57696         * tests/test-round2.c: Likewise.
57697         * tests/test-roundf1.c: Likewise.
57698         * tests/test-strtod.c: Likewise.
57699         * tests/test-trunc1.c: Likewise.
57700         * tests/test-trunc2.c: Likewise.
57701         * tests/test-truncf1.c: Likewise.
57702         * tests/test-truncf2.c: Likewise.
57703         * NEWS: Mention the renamed header files.
57704
57705 2008-07-11  Jim Meyering  <meyering@redhat.com>
57706
57707         vc-list-files: make the last-resort awk code more portable
57708         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57709         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57710         does not support it.
57711
57712 2008-07-10  Eric Blake  <ebb9@byu.net>
57713
57714         Work with tar's bootstrap.
57715         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57716         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57717         an m4 comment.
57718
57719 2008-07-09  Jim Meyering  <meyering@redhat.com>
57720
57721         posix-shell.m4: fix typo that made this test malfunction
57722         * m4/posix-shell.m4: Remove capitalization in variable name.
57723
57724 2008-07-08  Bruno Haible  <bruno@clisp.org>
57725
57726         * m4/onceonly.m4: Update comments.
57727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57728
57729 2008-07-04  Jim Meyering  <meyering@redhat.com>
57730
57731         * users.txt: Add vc-dwim.
57732         (bison, coreutils): Use the gitweb URL.
57733
57734 2008-07-03  Jim Meyering  <meyering@redhat.com>
57735
57736         * users.txt: Add libffcall.  From Sam Steingold.
57737
57738 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57739
57740         getdate.y: do not ignore TZ with relative day, month or year offset
57741         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57742         relative-date-handling, since otherwise, the latter would clobber the
57743         sole output (an updated Start value) of the tz-handling block.
57744         * tests/test-getdate.c: Tests for the fix
57745
57746 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57747
57748         Recognize 'foo_LIBRARIES += libgnu.a'.
57749         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57750         makefile snippet has already specified an installation location,
57751         also using '+='.
57752
57753 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57754
57755         getdate.y: factor out common actions
57756         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57757         Use them in place of open-coded actions.
57758
57759 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57760
57761         Add self-test for getdate module.
57762         * modules/getdate-tests: New file.
57763         * tests/test-getdate.c: New file.
57764
57765 2008-06-29  Bruno Haible  <bruno@clisp.org>
57766
57767         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57768         .gitignore.
57769         Reported by Sylvain Beucler <beuc@beuc.net>.
57770
57771 2008-06-29  Bruno Haible  <bruno@clisp.org>
57772
57773         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57774         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57775
57776 2008-06-29  Bruno Haible  <bruno@clisp.org>
57777
57778         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57779         EXTRA_DIST.
57780         Reported by Sylvain Beucler <beuc@beuc.net>.
57781
57782 2008-06-26  Jim Meyering  <meyering@redhat.com>
57783
57784         make several modules depend on the "open" module
57785         This provides slightly increased consistency when opening-for-write
57786         the name of a non-directory spelled with a trailing slash.
57787         * modules/chdir-safer: Likewise.
57788         * modules/chown: Likewise.
57789         * modules/clean-temp: Likewise.
57790         * modules/copy-file: Likewise.
57791         * modules/fchdir: Likewise.
57792         * modules/fcntl-safer: Likewise.
57793         * modules/pipe: Likewise.
57794         * modules/utime: Likewise.
57795         Prompted by Eric Blake and Bruno Haible.
57796
57797 2008-06-24  Andreas Schwab  <schwab@suse.de>
57798
57799         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57800         literals can be used as initializers for global variables.
57801
57802 2008-06-23  Eric Blake  <ebb9@byu.net>
57803
57804         Make gnulib-cache.m4 easier to diff.
57805         * gnulib-tool (func_import): Allow newlines when reading cached
57806         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57807
57808 2008-06-23  Bruno Haible  <bruno@clisp.org>
57809
57810         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57811         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57812         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57813         m4/signalblocking.m4.
57814         (gl_PREREQ_SIGACTION): Don't invoke it.
57815         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57816         gl_PREREQ_SIG_HANDLER_H.
57817         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57818         Don't check for sigaction here.
57819
57820 2008-06-23  Bruno Haible  <bruno@clisp.org>
57821
57822         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57823         (install_handlers): Don't set the SA_RESETHAND flag.
57824
57825 2008-06-23  Bruno Haible  <bruno@clisp.org>
57826
57827         * m4/sigaction.m4: Comment fixes.
57828         * lib/signal.in.h: Likewise.
57829
57830 2008-06-23  Eric Blake  <ebb9@byu.net>
57831
57832         Fix typo.
57833         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57834
57835         Avoid SA_ namespace.
57836         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57837         Reported by Ralf Wildenhues.
57838
57839         Avoid test failure due to SA_RESTORER.
57840         * tests/test-sigaction.c (SA_MASK): New macro.
57841         (main): Avoid failing due to extension flags being set.
57842         Reported by Jim Meyering.
57843
57844         Revert use of sig-handler.h in sigprocmask.c.
57845         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57846         it requires the existence of struct sigaction.
57847         * lib/sigprocmask.c (handler_t): Restore typedef.
57848         (rpl_signal, old_handlers): Use local type.
57849
57850 2008-06-22  Bruno Haible  <bruno@clisp.org>
57851
57852         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57853         conditionally.
57854         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57855
57856 2008-06-22  Bruno Haible  <bruno@clisp.org>
57857
57858         * doc/posix-functions/siginterrupt.texi: Move note.
57859
57860         * lib/signal.in.h (SA_RESTART): New macro.
57861         * lib/sigaction.c: Update comment.
57862
57863         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57864
57865         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57866         (gl_PREREQ_SIGPROCMASK): Invoke it.
57867         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57868
57869         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57870
57871         * lib/sigprocmask.c: Update a comment.
57872
57873 2008-06-21  Eric Blake  <ebb9@byu.net>
57874
57875         Use sigaction module rather than signal().
57876         * modules/c-stack (Depends-on): Add sigaction.
57877         * modules/fatal-signal (Depends-on): Likewise.
57878         * modules/nanosleep (Depends-on): Likewise.
57879         * modules/sigprocmask (Files): Add sig-handler.h.
57880         * modules/sigaction (Files): Likewise.
57881         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57882         Eggert.
57883         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57884         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57885         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57886         (init_fatal_signals): Likewise.
57887         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57888         (siginterrupt): Delete fallback.
57889         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57890         instead.
57891         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57892         siginterrupt.
57893
57894         New module sigaction, for mingw.
57895         * modules/sigaction: New module...
57896         * modules/sigaction-tests: ...and its test.
57897         * m4/sigaction.m4: New file.
57898         * lib/sigaction.c: Likewise.
57899         * tests/test-sigaction.c: Likewise.
57900         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57901         * modules/signal (Makefile.am): Likewise.
57902         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57903         needed.
57904         * doc/posix-headers/signal.texi (signal.h): Mention provided
57905         types.
57906         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57907         that sigaction is preferable.
57908         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57909         module.
57910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57911         sigaction.
57912
57913         Improve robustness of sigprocmask by overriding signal.
57914         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57915         is in use.
57916         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57917         (SIGKILL, SIGSTOP): Provide fallbacks.
57918         (rpl_signal): Implement.
57919         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57920         signal can be called inside handlers.
57921
57922         Fix nanosleep module on mingw.
57923         * modules/nanosleep (Depends-on): Add sys_select.
57924         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57925
57926         Fix licensing of sigprocmask.
57927         * modules/raise (License): Relicense as LGPL.
57928
57929 2008-06-21  Bruno Haible  <bruno@clisp.org>
57930
57931         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57932         result if it contains question marks.
57933         Reported by Michael Geng <linux@michaelgeng.de>.
57934
57935 2008-06-19  Bruno Haible  <bruno@clisp.org>
57936
57937         Fix CVS-ism.
57938         * doc/gnulib.texi: Include updated-stamp.texi.
57939         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57940         (updated-stamp.texi): New rule.
57941         (gnulib.info): Depend on it.
57942         * doc/.gitignore: Add updated-stamp.texi.
57943         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57944
57945 2008-06-19  Bruno Haible  <bruno@clisp.org>
57946
57947         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57948         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57949
57950 2008-06-19  Eric Blake  <ebb9@byu.net>
57951
57952         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57953         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57954         Reported by Stepan Kasal.
57955
57956 2008-06-18  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57959         Reported by Eric Blake.
57960
57961 2008-06-18  Eric Blake  <ebb9@byu.net>
57962
57963         Work around cygwin 1.5.25 strsignal bug.
57964         * tests/test-strsignal.c: Allow for const char *.
57965         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57966
57967 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57968
57969         * users.txt: Update URL to article and add author/date
57970         information.
57971
57972 2008-06-17  Bruno Haible  <bruno@clisp.org>
57973
57974         New macro gl_DISABLE_THREADS.
57975         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57976         if the user did not pass --enable-threads or --disable-threads option.
57977         (gl_DISABLE_THREADS): New macro.
57978         Reported by Eric Blake <ebb9@byu.net>.
57979
57980 2008-06-17  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57983         when the macro ignores it.
57984         Based on a patch by Eric Blake <ebb9@byu.net>.
57985
57986 2008-06-17  Bruno Haible  <bruno@clisp.org>
57987
57988         * modules/tls (License): Change to LGPLv2+.
57989         Reported by Eric Blake.
57990
57991 2008-06-17  Eric Blake  <ebb9@byu.net>
57992
57993         Simplify c-stack prerequisites.
57994         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57996         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57997         check.
57998         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57999         <sys/resource.h>.
58000
58001         Move c-stack test into testsuite.
58002         * modules/c-stack-tests: New file.
58003         * lib/c-stack.c [DEBUG]: Move test program...
58004         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58005         fail test if sigaltstack is lacking.
58006         * tests/test-c-stack.sh: New driver file.
58007
58008 2008-06-16  Eric Blake  <ebb9@byu.net>
58009
58010         Use raise module consistently.
58011         * modules/fatal-signal (Depends-on): Add raise.
58012         * modules/sigprocmask (Depends-on): Likewise.
58013         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58014         * lib/sigprocmask.c (sigprocmask): Likewise.
58015         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58016         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58017
58018         Fix compliance bug in sigpending.
58019         * lib/sigprocmask.c (sigpending): Return pending array via
58020         parameter, not return value.
58021
58022 2008-06-14  Eric Blake  <ebb9@byu.net>
58023
58024         Improve obstack-printf test code.
58025         * tests/test-obstack-printf.c (test_function): Fix comment, and
58026         simplify usage of obstack_* in macros.  Add a test for coverage.
58027         Reported by Bruno Haible.
58028
58029 2008-06-14  Bruno Haible  <bruno@clisp.org>
58030
58031         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58032         array size as a constant, not as a const variable.
58033         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58034         AC_USE_SYSTEM_EXTENSIONS.
58035         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58036         Test whether the obstack_printf function actually exists.
58037         * modules/obstack-printf (Depends-on): Add extensions.
58038         (Include): Remove obstack.h.
58039         * modules/obstack-printf-posix (Depends-on): Add extensions.
58040         (Include): Remove obstack.h.
58041
58042 2008-06-13  Eric Blake  <ebb9@byu.net>
58043
58044         Add obstack-printf and obstack-printf-posix modules.
58045         * modules/obstack-printf: New file.
58046         * modules/obstack-printf-posix: Likewise.
58047         * MODULES.html.sh (Misc): Mention them.
58048         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58049         Likewise.
58050         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58051         Likewise.
58052         * modules/stdio (Makefile.am): Accomodate new modules.
58053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58054         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58055         Declare.
58056         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58057         functions.
58058         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58059         (gl_REPLACE_OBSTACK_PRINTF): New macros
58060         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58061         * tests/test-obstack-printf.c: New file.
58062         * modules/obstack-printf-tests: Likewise.
58063         * modules/obstack-printf-posix-tests: Likewise.
58064
58065 2008-06-11  Bruno Haible  <bruno@clisp.org>
58066
58067         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58068         * lib/open.c: Include errno.h.
58069         (open): Fail when attempting to write to a file that has a trailing
58070         slash.
58071         * tests/test-open.c (main): Test against trailing slash bug.
58072         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58073
58074 2008-06-10  Bruno Haible  <bruno@clisp.org>
58075
58076         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58077         for $? to work inside the trap command, with various /bin/sh-s.
58078         * tests/test-vc-list-files-cvs.sh: Likewise.
58079
58080 2008-06-10  Bruno Haible  <bruno@clisp.org>
58081
58082         * lib/acl-internal.h: Don't include gettext.h here.
58083         * lib/set-mode-acl.c: Include gettext.h here.
58084         * lib/copy-acl.c: Likewise.
58085
58086 2008-06-10  Bruno Haible  <bruno@clisp.org>
58087
58088         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58089         * lib/wait-process.c (wait_subprocess): Likewise.
58090         * lib/execute.h (execute): Add termsigp argument.
58091         * lib/execute.c (execute): Likewise.
58092         * lib/csharpcomp.c (compile_csharp_using_pnet,
58093         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58094         * lib/csharpexec.c (execute_csharp_using_pnet,
58095         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58096         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58097         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58098         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58099         is_jikes_present): Update.
58100         * lib/javaexec.c (execute_java_class): Update.
58101         * lib/javaversion.c (execute_and_read_line): Update.
58102         * NEWS: Document the changes.
58103         Reported by Eric Blake.
58104
58105 2008-06-10  Eric Blake  <ebb9@byu.net>
58106
58107         Add missing include.
58108         * tests/test-strstr.c (includes): Add <signal.h>.
58109         * tests/test-strcasestr.c (includes): Likewise.
58110         * tests/test-memmem.c (includes): Likewise.
58111
58112 2008-06-10  Bruno Haible  <bruno@clisp.org>
58113
58114         * lib/wait-process.c (wait_subprocess): Add an assertion.
58115
58116 2008-06-10  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58119
58120 2008-06-10  Bruno Haible  <bruno@clisp.org>
58121
58122         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58123         using alarm().
58124         * tests/test-strcasestr.c (main): Likewise.
58125         * tests/test-strstr.c (main): Likewise.
58126
58127 2008-06-09  Bruno Haible  <bruno@clisp.org>
58128
58129         Work around the Solaris 10 ACE ACLs ABI change.
58130         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58131         declare if ACL_NO_TRIVIAL is present.
58132         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58133         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58134         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58135         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58136         define if ACL_NO_TRIVIAL is present.
58137         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58138         and use the current ABI.
58139         (file_has_acl): Use same #if condition as elsewhere.
58140         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58141         in use, and use the current ABI.
58142         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58143         Reported by Jim Meyering.
58144
58145 2008-06-09  Eric Blake  <ebb9@byu.net>
58146
58147         Work around environments that (stupidly) ignore SIGALRM.
58148         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58149         before using alarm().
58150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58152         Reported by Ian Beckwith <ianb@erislabs.net>.
58153
58154         Produce autobuild blurb earlier in log.
58155         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58156
58157 2008-06-09  Jim Meyering  <meyering@redhat.com>
58158         and OndÅ™ej Vašík  <ovasik@redhat.com>
58159
58160         utimens.c: correct kernel bug work-around
58161         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58162         failure, not success, and the kernel bug we're trying to work
58163         around affects not just the utimensat call, but also the fallback
58164         futimens call.
58165         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58166         not success.
58167         [HAVE_FUTIMENS]: Use the same work-around, here.
58168
58169 2008-06-09  Jim Meyering  <meyering@redhat.com>
58170
58171         add more guards around definition of ACE_-related code
58172         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58173         ALLOW and ACE_OWNER are also defined.
58174
58175 2008-06-08  Bruno Haible  <bruno@clisp.org>
58176
58177         * lib/acl-internal.h: Add me as co-author.
58178         * lib/file-has-acl.c: Likewise.
58179         * lib/set-mode-acl.c: Likewise.
58180         * lib/copy-acl.c: Likewise.
58181
58182 2008-06-08  Bruno Haible  <bruno@clisp.org>
58183
58184         Add support for AIX ACLs.
58185         * lib/acl-internal.h (acl_nontrivial): New declaration.
58186         * lib/file-has-acl.c (acl_nontrivial): New function.
58187         (file_has_acl): Add implementation using AIX 4 ACL API.
58188         * lib/set-mode-acl.c (qset_acl): Likewise.
58189         * lib/copy-acl.c (qcopy_acl): Likewise.
58190
58191 2008-06-08  Bruno Haible  <bruno@clisp.org>
58192
58193         Add support for HP-UX ACLs.
58194         * lib/acl-internal.h (acl_nontrivial): New declaration.
58195         * lib/file-has-acl.c (acl_nontrivial): New function.
58196         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58197         * lib/set-mode-acl.c (qset_acl): Likewise.
58198         * lib/copy-acl.c (qcopy_acl): Likewise.
58199
58200 2008-06-08  Bruno Haible  <bruno@clisp.org>
58201
58202         Add support for Cygwin ACLs.
58203         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58204         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58205         the chmod_or_fchmod call.
58206         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58207
58208 2008-06-08  Bruno Haible  <bruno@clisp.org>
58209
58210         Fix bug with setuid modes in Solaris 10+ code.
58211         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58212         succeeded, when the mode contains some special bits.
58213
58214 2008-06-08  Bruno Haible  <bruno@clisp.org>
58215
58216         Add support for Solaris 7..10 ACLs.
58217         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58218         declarations.
58219         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58220         functions.
58221         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58222         * lib/set-mode-acl.c (qset_acl): Likewise.
58223         * lib/copy-acl.c (qcopy_acl): Likewise.
58224
58225 2008-06-08  Bruno Haible  <bruno@clisp.org>
58226
58227         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58228         declaration.
58229         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58230         (acl_access_nontrivial): Remove MacOS X case.
58231         (file_has_acl): Use acl_extended_nontrivial.
58232         * lib/copy-acl.c (qcopy_acl): Likewise.
58233
58234 2008-06-08  Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58237
58238 2008-06-08  Jim Meyering  <meyering@redhat.com>
58239
58240         * modules/acl (Maintainer): Add Bruno Haible.
58241
58242 2008-06-07  Bruno Haible  <bruno@clisp.org>
58243
58244         Improve support for Tru64 ACLs.
58245         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58246         ACL on OSF/1.
58247
58248 2008-06-07  Bruno Haible  <bruno@clisp.org>
58249
58250         Add support for MacOS X ACLs.
58251         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58252         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58253         * lib/set-mode-acl.c (qset_acl): Likewise.
58254         * lib/copy-acl.c (qcopy_acl): Likewise.
58255
58256 2008-06-07  Bruno Haible  <bruno@clisp.org>
58257
58258         Fix memory leak introduced on 2008-05-22.
58259         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58260         use.
58261
58262 2008-06-07  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58265         to construct an empty ACL.
58266
58267 2008-06-07  Bruno Haible  <bruno@clisp.org>
58268
58269         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58270         precisely.
58271         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58272
58273 2008-06-07  Bruno Haible  <bruno@clisp.org>
58274
58275         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58276         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58277
58278 2008-06-07  Bruno Haible  <bruno@clisp.org>
58279
58280         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58281         regardless of POSIX.
58282         * doc/posix-functions/_longjmp.texi: Likewise.
58283         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58284         SystemV platform in this case.
58285
58286 2008-06-06  Eric Blake  <ebb9@byu.net>
58287
58288         Document abort() bugs.
58289         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58290
58291         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58292         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58293         sigsetjmp.
58294         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58295         siglongjmp, but only as a macro.
58296         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58297         is obsolete.
58298         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58299
58300         Tweak documentation to cover cygwin argz bugs.
58301         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58302         argz bug fix; no code change needed since no cygwin releases
58303         occurred between the last fix and the bug being tested.
58304         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58305         module and recently fixed cygwin bugs.
58306         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58307         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58308         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58309         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58310         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58311         Likewise.
58312         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58313         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58314         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58315         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58316         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58317         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58318         Likewise.
58319
58320         Avoid gcc warning on cygwin.
58321         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58322         !ACL_NO_TRIVIAL]: Avoid unused variable.
58323
58324 2008-06-05  Eric Blake  <ebb9@byu.net>
58325
58326         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58327         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58328         git-version-gen fails to come up with a version.
58329         Reported by Simon Josefsson.
58330
58331 2008-06-05  Jim Meyering  <meyering@redhat.com>
58332             Paul Eggert  <eggert@cs.ucla.edu>
58333
58334         utimens.c: work around a probable Linux kernel bug
58335         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58336         appears to be a kernel bug that causes utimensat to return 280
58337         instead of 0, indicating success.
58338
58339 2008-06-04  Bruno Haible  <bruno@clisp.org>
58340
58341         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58342         2008-06-01 commit.
58343
58344 2008-06-04  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58347         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58348         (file_has_acl): Use it. Save errno afterwards.
58349         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58350
58351 2008-06-03  Bruno Haible  <bruno@clisp.org>
58352
58353         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58354         draft code. Simplify #ifs.
58355         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58356         Put Solaris code after POSIX-draft code. Fix comments regarding
58357         Solaris 10, HP-UX. Mention Cygwin.
58358         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58359
58360 2008-06-03  Eric Blake  <ebb9@byu.net>
58361
58362         Provide fallback for older kernels.
58363         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58364         Provide runtime fallback if kernel lacks support.
58365         Reported by Mike Frysinger.
58366
58367 2008-06-02  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58370         it exists.
58371
58372 2008-06-02  Bruno Haible  <bruno@clisp.org>
58373
58374         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58375         * lib/copy-acl.c (qcopy_acl): Update comment.
58376
58377 2008-06-02  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58380         like ACL APIs.
58381
58382 2008-06-02  Bruno Haible  <bruno@clisp.org>
58383
58384         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58385         * tests/test-set-mode-acl.sh: Likewise.
58386         * tests/test-copy-acl.sh: Likewise.
58387         * tests/test-copy-file.sh: Likewise.
58388
58389 2008-06-02  Bruno Haible  <bruno@clisp.org>
58390
58391         * tests/test-file-has-acl.sh: Remove unused code.
58392
58393 2008-06-01  Bruno Haible  <bruno@clisp.org>
58394
58395         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58396         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58397         messages.
58398         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58399
58400 2008-06-01  Bruno Haible  <bruno@clisp.org>
58401
58402         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58403         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58404         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58405         APIs.
58406         * modules/acl-tests (configure.ac): Remove tests now contained in
58407         m4/acl.m4.
58408
58409 2008-06-02  Jim Meyering  <meyering@redhat.com>
58410
58411         announce-gen: use a better key-server host name
58412         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58413         it may be more consistently reliable.  Suggested by Werner Koch
58414         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58415
58416 2008-06-01  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58419         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58420
58421 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58422
58423         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58424
58425 2008-06-01  Bruno Haible  <bruno@clisp.org>
58426
58427         New ACL tests.
58428         * tests/test-file-has-acl.sh: New file.
58429         * tests/test-file-has-acl.c: New file.
58430         * tests/test-set-mode-acl.sh: New file.
58431         * tests/test-set-mode-acl.c: New file.
58432         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58433         * tests/test-copy-acl.c: New file.
58434         * modules/acl-tests: New file, based on modules/copy-file-tests.
58435         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58436         (Depends-on): Add acl-tests.
58437         (configure.ac): Remove checks.
58438         (Makefile.am): Don't create test-sameacls program here any more.
58439
58440 2008-06-01  Bruno Haible  <bruno@clisp.org>
58441
58442         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58443         * tests/test-sameacls.c: Include progname.h.
58444         (main): Invoke set_program_name. Portability fixes for MacOS X,
58445         Solaris, HP-UX.
58446
58447 2008-06-01  Bruno Haible  <bruno@clisp.org>
58448
58449         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58450         function.
58451         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58452
58453 2008-06-01  Bruno Haible  <bruno@clisp.org>
58454
58455         * modules/rpmatch (Depends-on): Add strdup.
58456
58457 2008-06-01  Bruno Haible  <bruno@clisp.org>
58458
58459         * lib/pipe.c: Include unistd-safer.h.
58460         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58461         * modules/pipe (Depends-on): Add unistd-safer.
58462
58463 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58464
58465         * modules/autobuild (configure.ac): Call AB_INIT.
58466
58467 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58468
58469         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58470         Suggested by Bruno Haible <bruno@clisp.org>.
58471
58472 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58473
58474         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58475         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58476         <bruno@clisp.org>.
58477
58478 2008-05-29  Eric Blake  <ebb9@byu.net>
58479
58480         Prefer new POSIX 200x interfaces over futimesat.
58481         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58482         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58483         when available.
58484         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58485
58486 2008-05-28  Bruno Haible  <bruno@clisp.org>
58487
58488         * modules/stpcpy (License): Change to LGPLv2+.
58489         Requested by David Lutterkort <dlutter@redhat.com>.
58490
58491 2008-05-27  Bruno Haible  <bruno@clisp.org>
58492
58493         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58494         current mingw.
58495         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58496
58497 2008-05-27  Bruno Haible  <bruno@clisp.org>
58498
58499         * modules/iconv_open (Link): New section, from module 'iconv'.
58500         * modules/striconv (Link): Likewise.
58501         * modules/striconveh (Link): Likewise.
58502         * modules/xstriconv (Link): Likewise.
58503         * modules/unicodeio (Link): Likewise.
58504         * modules/propername (Link): Likewise.
58505         Reported by Jim Meyering.
58506
58507 2008-05-26  Jim Meyering  <meyering@redhat.com>
58508
58509         sha256: do not artificially restrict buffer length to be < 2^32
58510         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58511         uint32_t to size_t.
58512         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58513         to match.
58514
58515         avoid unaligned access errors, e.g., on sparc
58516         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58517         direct access through a possibly-unaligned uint64* pointer.
58518         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58519         direct access through a possibly-unaligned uint32* pointer.
58520         Prompted by this patch from Tom "spot" Callaway:
58521         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58522
58523         sha512.c: fix typo in comment
58524         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58525
58526 2008-05-25  Bruno Haible  <bruno@clisp.org>
58527
58528         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58529         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58530         (Makefile.am): Update lib_SOURCES.
58531
58532 2008-05-25  Bruno Haible  <bruno@clisp.org>
58533
58534         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58535
58536 2008-05-25  Jim Meyering  <meyering@redhat.com>
58537
58538         useless-if-before-free: freed expr may have white-space differences
58539         * build-aux/useless-if-before-free: Recognize cases in which the
58540         freed expression differs from the tested one in embedded white
58541         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58542         $1 was used, so we can't make any regexp shy.  Improved tests now
58543         detect this.
58544
58545         useless-if-before-free: accept white space in the expression.
58546         * build-aux/useless-if-before-free: For now, any white space
58547         in the expression must be identical in the free argument.
58548
58549         useless-if-before-free: efficiency tweak
58550         * build-aux/useless-if-before-free: Make the expression-matching
58551         regexp "shy".
58552         Make the *outer* regexp shy, not the expr-matching one.
58553
58554         update code-in-comment to accept cast of free arg
58555         * build-aux/useless-if-before-free: Update regexp.
58556
58557 2008-05-25  Bruno Haible  <bruno@clisp.org>
58558
58559         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58560         * modules/copy-file-tests (Files, Makefile.am): Update.
58561         * tests/test-copy-file.c (func_test_copy): Update.
58562
58563 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58564
58565         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58566
58567 2008-05-23  Bruno Haible  <bruno@clisp.org>
58568
58569         Improve support for ACLs on OSF/1.
58570         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58571         Remove fallback for unknown flavors of ACLs.
58572
58573 2008-05-22  Bruno Haible  <bruno@clisp.org>
58574
58575         Add support for ACLs on OSF/1.
58576         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58577         replacements.
58578         (acl_free_text): New macro fallback.
58579         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58580         acl_free.
58581         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58582         acl_free_text function. Require AC_C_INLINE.
58583
58584 2008-05-22  Bruno Haible  <bruno@clisp.org>
58585
58586         Make copy_acl work on MacOS X 10.5.
58587         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58588         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58589         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58590         If MODE_INSIDE_ACL, don't assume that every system has the same text
58591         representation for ACLs as FreeBSD.
58592         * lib/copy-acl.c (copy_acl): Add support for platforms with
58593         !MODE_INSIDE_ACL.
58594         * lib/file-has-acl.c (file_has_acl): Likewise.
58595         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58596         FreeBSD, MacOS X, or IRIX, respectively.
58597
58598 2008-05-22  Bruno Haible  <bruno@clisp.org>
58599
58600         * lib/acl.h: Don't include <sys/acl.h>.
58601         (GETACLCNT): Move fallback to lib/acl-internal.h.
58602         * lib/acl-internal.h: Include <sys/acl.h> here.
58603         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58604
58605 2008-05-22  Bruno Haible  <bruno@clisp.org>
58606
58607         Split off copy_acl function to separate file.
58608         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58609         * lib/acl.c (copy_acl): Moved function to separate file.
58610         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58611         * modules/acl (Files): Add lib/copy-acl.c.
58612         (Makefiles.am): Augment lib_SOURCES.
58613
58614 2008-05-22  Bruno Haible  <bruno@clisp.org>
58615
58616         * modules/copy-file-tests: New file.
58617         * tests/test-copy-file.sh: New file.
58618         * tests/test-copy-file.c: New file.
58619         * tests/test-copy-file-sameacls.c: New file.
58620
58621 2008-05-22  Eric Blake  <ebb9@byu.net>
58622
58623         Avoid gcc warning.
58624         * tests/test-memcmp.c (main): Pass NULL indirectly.
58625
58626 2008-05-21  Bruno Haible  <bruno@clisp.org>
58627
58628         Add reference doc about ACLs.
58629         * doc/acl-resources.txt: New file.
58630         * doc/acl-cygwin.txt: New file.
58631
58632 2008-05-21  Bruno Haible  <bruno@clisp.org>
58633
58634         Avoid one more warning from gcc.
58635         * lib/vasnprintf.c (IF_LINT): Update comments.
58636         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58637
58638 2008-05-21  Jim Meyering  <meyering@redhat.com>
58639
58640         avoid a warning from gcc
58641         * lib/vasnprintf.c (IF_LINT): Define.
58642         (scale10_round_decimal_long_double):
58643         Use it to avoid a "may be used uninitialized" warning.
58644         (scale10_round_decimal_double): Likewise.
58645
58646 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58647
58648         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58649         declared.
58650
58651 2008-05-20  Bruno Haible  <bruno@clisp.org>
58652
58653         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58654         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58655
58656 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58657
58658         * modules/memcmp-tests: New file.
58659         * tests/test-memcmp.c: New file.
58660
58661 2008-05-19  Bruno Haible  <bruno@clisp.org>
58662
58663         * modules/propername (Notice, configure.ac): Put quoted "..." into
58664         --keyword option.
58665         * lib/propername.h: Update comments accordingly.
58666         Reported by Eric Blake.
58667
58668 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58669
58670         * modules/getpass-gnu (Depends-on): Add fseeko.
58671
58672 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58673
58674         * modules/base64-tests: New file.
58675
58676 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58677
58678         * lib/base64.c (base64_decode_ctx): If a decode context structure
58679         was passed in use it to ignore newlines.  If a context structure
58680         was _not_ passed in, continue to treat newlines as garbage (this
58681         is the historical behavior).  Formerly base64_decode.
58682         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58683         takes a decode context structure.
58684         * lib/base64.h (base64_decode): Macro for four-argument calls.
58685         (base64_decode_alloc): Likewise.
58686         * lib/base64.c (base64_decode_ctx): If a decode context structure
58687         was passed in use it to ignore newlines.  If a context structure
58688         was _not_ passed in, continue to treat newlines as garbage (this
58689         is the historical behavior).  Formerly base64_decode.
58690         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58691         takes a decode context structure.
58692         * lib/base64.h (base64_decode): Macro for four-argument calls.
58693         (base64_decode_alloc): Likewise.
58694
58695 2008-05-19  Jim Meyering  <meyering@redhat.com>
58696
58697         avoid a warning from gcc
58698         * lib/trim.c (IF_LINT): Define.
58699         (trim2): Use it to avoid a "may be used uninitialized" warning.
58700
58701         Fix doc typo.
58702         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58703
58704 2008-05-19  Bruno Haible  <bruno@clisp.org>
58705
58706         * doc/glibc-functions/getpass.texi: Document limits of other
58707         implementations.
58708
58709 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58710             Bruno Haible <bruno@clisp.org>
58711
58712         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58713
58714 2008-05-18  Bruno Haible  <bruno@clisp.org>
58715
58716         * modules/propername: New file, from GNU gettext.
58717         * lib/propername.h: New file, from GNU gettext.
58718         * lib/propername.c: New file, from GNU gettext.
58719         * MODULES.html.sh (Internationalization functions): Add propername.
58720
58721 2008-05-16  Jim Meyering  <meyering@redhat.com>
58722             Bruno Haible  <bruno@clisp.org>
58723
58724         Avoid some warnings from "gcc -Wshadow".
58725         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58726
58727 2008-05-15  Eric Blake  <ebb9@byu.net>
58728
58729         Extend previous patch to cygwin 1.7.0.
58730         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58731         fast implementation in cygwin >= 1.7.0.
58732         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58733         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58734
58735 2008-05-15  Bruno Haible  <bruno@clisp.org>
58736
58737         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58738         implementation in glibc >= 2.9.
58739         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58741
58742 2008-05-15  Bruno Haible  <bruno@clisp.org>
58743
58744         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58745         (Unicode string functions): Add unilbrk/*.
58746         Reported by Karl Berry.
58747
58748 2008-05-15  Eric Blake  <ebb9@byu.net>
58749
58750         Fix violation of <stdbool.h> replacement in regex.
58751         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58752         * lib/regexec.c (re_search_internal): Likewise.
58753         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58754
58755 2008-05-15  Jim Meyering  <meyering@redhat.com>
58756
58757         avoid distracting test output when git or cvs is not found
58758         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58759         * tests/test-vc-list-files-git.sh: Likewise.
58760
58761 2008-05-15  Eric Blake  <ebb9@byu.net>
58762
58763         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58764         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58765         glibc version.
58766         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58767         * doc/posix-functions/strstr.texi (strstr): Likewise.
58768         * lib/str-two-way.h (MAX): Sychronize with glibc.
58769
58770 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58771
58772         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58773         opr.ctx_type.
58774         (calc_first): Initialize constraint field.
58775         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58776         Fix grammar.
58777         (duplicate_node): Merge constraint field for all node types.
58778         (calc_eclosure_iter): Look at constraint field for all node types.
58779         * lib/regex_internal.c (create_cd_newstate): Don't look at
58780         opr.ctx_type.
58781
58782 2008-05-14  Bruno Haible  <bruno@clisp.org>
58783
58784         Help GCC to do better code generation.
58785         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58786         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58787         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58788         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58789         Declare with attribute 'malloc' if supported.
58790
58791 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58792
58793         use "echo STR|wc -c" rather than unportable "expr length STR"
58794         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58795         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58796
58797 2008-05-14  Jim Meyering  <meyering@redhat.com>
58798
58799         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58800         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58801         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58802         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58803         via Collin Lasse.
58804
58805 2008-05-14  Eric Blake  <ebb9@byu.net>
58806
58807         Avoid quadratic growth in gl_LIBSOURCES.
58808         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58809         Suggested by Bruno Haible.
58810
58811         Test xmemdup0.
58812         * modules/xmemdup0-tests: New file.
58813         * tests/test-xmemdup0.c: Likewise.
58814
58815 2008-05-13  Eric Blake  <ebb9@byu.net>
58816
58817         Split xmemdup0 into its own module.
58818         * modules/xmemdup0: New file.
58819         * lib/xmemdup0.h: Likewise.
58820         * lib/xmemdup0.c: Likewise.
58821         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58822         * lib/xalloc.h (xmemdup0): Remove.
58823         * lib/xmalloc.c (xmemdup0): Likewise.
58824
58825 2008-05-13  Eric Blake  <ebb9@byu.net>
58826             Bruno Haible  <bruno@clisp.org>
58827
58828         Reduce number of forks required during autoconf.
58829         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58830         and gl_LIBSOURCES_DIR.
58831         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58832         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58833         m4_syscmd per file.
58834         <m4_foreach_w>: Move...
58835         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58836
58837 2008-05-13  Eric Blake  <ebb9@byu.net>
58838
58839         * gnulib-tool: Fix various comment typos.
58840
58841 2008-05-12  Bruno Haible  <bruno@clisp.org>
58842
58843         Tailor the linebreaking algorithm.
58844         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58845
58846 2008-05-12  Bruno Haible  <bruno@clisp.org>
58847
58848         Update to Unicode 5.0.0.
58849         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58850         LBP_JV, LBP_JT. Redistribute values.
58851         (unilbrk_table): Change size.
58852         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58853         Unicode TR#14 rev. 22.
58854         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58855         LBP_JV, LBP_JT. Redistribute values.
58856         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58857         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58858         Update.
58859         * lib/unilbrk/lbrkprop1.h: Regenerated.
58860         * lib/unilbrk/lbrkprop2.h: Regenerated.
58861         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58862         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58863         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58864         Likewise.
58865         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58866         Likewise.
58867         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58868         result.
58869         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58870         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58871         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58872         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58873         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58874         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58875
58876 2008-05-11  Bruno Haible  <bruno@clisp.org>
58877
58878         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58879
58880 2008-05-11  Bruno Haible  <bruno@clisp.org>
58881
58882         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58883         * modules/unilbrk/gen-lbrk: New file.
58884
58885 2008-05-11  Bruno Haible  <bruno@clisp.org>
58886
58887         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58888         * m4/sha512.m4 (gl_SHA512): Likewise.
58889
58890 2008-05-11  Jim Meyering  <meyering@redhat.com>
58891
58892         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58893         * modules/crypto/sha256: New file.
58894         * modules/crypto/sha512: Likewise.
58895         * lib/sha256.c: Likewise.
58896         * lib/sha256.h: Likewise.
58897         * lib/sha512.c: Likewise.
58898         * lib/sha512.h: Likewise.
58899         * lib/u64.h: Likewise.
58900         * m4/sha256.m4: Likewise.
58901         * m4/sha512.m4: Likewise.
58902         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58903
58904 2008-05-10  Bruno Haible  <bruno@clisp.org>
58905
58906         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58907         (Input/Output <stdio.h>): Add xprintf.
58908         (Signal handling <signal.h>): Add strsignal.
58909         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58910         (Core language properties): Add func.
58911         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58912         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58913         strings.
58914         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58915         (Input/output): New section.
58916         (File system functions): Add openat-die, stat-macros.
58917         (Networking functions): Add sockets.
58918         (Unicode string functions): Add unictype/*.
58919         (Support for building libraries and executables): Add gperf.
58920         (Support for building documentation): Add agpl-3.0.
58921         (Misc): Add nocrash.
58922
58923 2008-05-10  Bruno Haible  <bruno@clisp.org>
58924
58925         * modules/unictype/gen-ctype: New file.
58926
58927 2008-05-10  Jim Meyering  <meyering@redhat.com>
58928
58929         Make chdir-safer.c more efficient on a system with no symlinks.
58930         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58931         also if ELOOP is zero.  Suggested by Bruno Haible.
58932
58933         Make chdir-safer.c slightly safer.
58934         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58935         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58936
58937         Avoid compile failure on systems without ELOOP (like mingw).
58938         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58939         Reported by Bruno Haible.
58940
58941 2008-05-10  Bruno Haible  <bruno@clisp.org>
58942
58943         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58944         (is_utf8_encoding): Use a case-insensitive comparison.
58945         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58946         streq.
58947
58948 2008-05-10  Bruno Haible  <bruno@clisp.org>
58949
58950         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58951         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58952         * lib/unilbrk/ulc-common.h (iconv_string_length,
58953         iconv_string_keeping_offsets): Remove declarations.
58954         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58955         Don't include <iconv.h>, streq.h, xsize.h.
58956         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58957         conversion.
58958         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58959         <iconv.h>, streq.h, xsize.h.
58960         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58961         conversion.
58962         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58963         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58964         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58965         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58966
58967 2008-05-10  Bruno Haible  <bruno@clisp.org>
58968
58969         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58970         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58971
58972         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58973         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58974
58975         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58976         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58977
58978         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58979         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58980
58981         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58982         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58983
58984         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58985         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58986
58987         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58988         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58989
58990         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58991         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58992
58993 2008-05-10  Bruno Haible  <bruno@clisp.org>
58994
58995         Split up 'linebreak' module.
58996         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58997         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58998         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58999         modifications.
59000         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59001         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59002         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59003         lib/linebreak.c.
59004         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59005         lib/linebreak.c.
59006         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59007         lib/linebreak.c.
59008         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59009         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59010         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59011         lib/linebreak.c.
59012         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59013         lib/linebreak.c.
59014         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59015         lib/linebreak.c.
59016         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59017         lib/linebreak.c.
59018         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59019         lib/linebreak.c.
59020         * modules/unilbrk/base: New file.
59021         * modules/unilbrk/tables: New file.
59022         * modules/unilbrk/u8-possible-linebreaks: New file.
59023         * modules/unilbrk/u16-possible-linebreaks: New file.
59024         * modules/unilbrk/u32-possible-linebreaks: New file.
59025         * modules/unilbrk/ulc-common: New file.
59026         * modules/unilbrk/ulc-possible-linebreaks: New file.
59027         * modules/unilbrk/u8-width-linebreaks: New file.
59028         * modules/unilbrk/u16-width-linebreaks: New file.
59029         * modules/unilbrk/u32-width-linebreaks: New file.
59030         * modules/unilbrk/ulc-width-linebreaks: New file.
59031         * lib/linebreak.h: Remove file.
59032         * lib/linebreak.c: Remove file.
59033         * m4/linebreak.m4: Remove file.
59034         * modules/linebreak: Remove file.
59035         * NEWS: Mention the changes.
59036
59037 2008-05-09  Eric Blake  <ebb9@byu.net>
59038
59039         Add xmemdup0.
59040         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59041         implementation.
59042         * lib/xmalloc.c (xmemdup0): New C implementation.
59043
59044 2008-05-08  Bruno Haible  <bruno@clisp.org>
59045
59046         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59047
59048 2008-05-07  Eric Blake  <ebb9@byu.net>
59049
59050         Support cross-compilation of <wctype.h>.
59051         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59052         AC_CACHE_CHECK.
59053
59054 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59055
59056         * build-aux/vc-list-files: Add support for bzr.
59057
59058 2008-05-03  Jim Meyering  <meyering@redhat.com>
59059
59060         avoid failed assertion with tight malloc
59061         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59062
59063 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59064
59065         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59066         are needed from arpa/inet.h.
59067         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59068         Reported by Bruno Haible.
59069
59070 2008-05-02  Jim Meyering  <meyering@redhat.com>
59071
59072         avoid compilation error on FreeBSD 6
59073         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59074
59075 2008-05-01  Jim Meyering  <meyering@redhat.com>
59076
59077         useless-if-before-free: correct --help's exit status description
59078         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59079         for one or more matches, etc.  Reported by Bruno Haible.
59080
59081         vc-list-files: make the stand-alone gnulib test work
59082         * modules/vc-list-files-tests (configure.ac):
59083         Define and AC_SUBST abs_aux_dir.
59084         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59085         $(abs_top_srcdir) to each script and having each of them
59086         duplicate the work of setting PATH, set PATH here, using
59087         the new variable, abs_aux_dir instead.
59088         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59089         * tests/test-vc-list-files-git.sh: Likewise.
59090         Reported by Bruno Haible.
59091
59092 2008-05-01  Bruno Haible  <bruno@clisp.org>
59093
59094         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59095         reallocation. Rename 'done' to 'found_delimiter'.
59096
59097 2008-05-01  Jim Meyering  <meyering@redhat.com>
59098
59099         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59100         * build-aux/vc-list-files: Use `...`, not $(...).
59101
59102 2008-04-30  Jim Meyering  <meyering@redhat.com>
59103
59104         add tests for vc-list-files
59105         * modules/vc-list-files-tests: New module.
59106         * tests/test-vc-list-files-cvs.sh: New file.
59107         * tests/test-vc-list-files-git.sh: New file.
59108
59109         avoid a warning from gcc
59110         * lib/getndelim2.c (IF_LINT): Define.
59111         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59112
59113         vc-list-files: work properly with build-aux/cvsu, too
59114         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59115         to all cvs-based clauses.
59116
59117         vc-list-files: work properly in the CVS+awk case, too
59118         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59119
59120         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59121         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59122         take more than one file argument, so .  Add quotes, just in case $dir
59123         ever contains a shell meta-character.  Prompted by Soren Hansen in
59124         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59125
59126 2008-04-29  Eric Blake  <ebb9@byu.net>
59127
59128         Optimize getndelim2 to use block operations when possible.
59129         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59130         freadseek, and memchr2.
59131         * lib/getndelim2.c (getndelim2): Use them for block reads.
59132
59133 2008-04-29  Bruno Haible  <bruno@clisp.org>
59134
59135         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59136         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59137         * modules/inet_ntop (Depends-on): Add extensions.
59138         * modules/inet_pton (Depends-on): Likewise.
59139         Reported by Simon Josefsson.
59140
59141 2008-04-29  Jim Meyering  <meyering@redhat.com>
59142
59143         When the is more than one match in a block, match all of them.
59144         * build-aux/useless-if-before-free: Iterate through each block
59145         until there are no more matches.
59146
59147         Fix broken useless-if-before-free script.
59148         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59149         the expression to match cast of argument to free-like function.
59150
59151 2008-04-29  Eric Blake  <ebb9@byu.net>
59152
59153         Use new header.
59154         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59155
59156 2008-04-29  Jim Meyering  <meyering@redhat.com>
59157
59158         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59159         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59160         by gnulib to exist and to declare e.g., inet_ntop.
59161         Don't include "inet_ntop.h", now removed.
59162
59163         * m4/arpa_inet_h.m4: Remove trailing blanks.
59164
59165 2008-04-29  Eric Blake  <ebb9@byu.net>
59166
59167         Silence valgrind on safe reads beyond potential array bounds.
59168         * lib/rawmemchr.valgrind: New file.
59169         * lib/strchrnul.valgrind: Likewise.
59170         * modules/rawmemchr (Files): Distribute new file.
59171         * modules/strchrnul (Files): Likewise.
59172         Suggested by Bruno Haible.
59173
59174 2008-04-29  Bruno Haible  <bruno@clisp.org>
59175
59176         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59177         (inet_ntop, inet_pton): Change portability warning's wording.
59178         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59179         Invoke gl_CHECK_NEXT_HEADERS.
59180         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59181         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59182         set ARPA_INET_H.
59183         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59184         * modules/arpa_inet (Description): No longer only for systems that
59185         lack it.
59186         (Depends-on): Add include_next.
59187         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59188         HAVE_ARPA_INET_H.
59189
59190 2008-04-29  Jim Meyering  <meyering@redhat.com>
59191
59192         * modules/mkdir (License): Re-license as LGPLv2+.
59193
59194 2008-04-29  Bruno Haible  <bruno@clisp.org>
59195
59196         * modules/rawmemchr (Maintainer): Set to Eric.
59197         * modules/strchrnul (Maintainer): Likewise.
59198
59199 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59200
59201         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59202         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59203
59204         * modules/arpa_inet (arpa/inet.h): Use them.
59205
59206 2008-04-28  Eric Blake  <ebb9@byu.net>
59207
59208         Test getndelim2.
59209         * modules/getndelim2-tests: New file.
59210         * tests/test-getndelim2.c: Likewise.
59211         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59212         stream.
59213         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59214
59215         * MODULES.html.sh: Document new module.
59216
59217 2008-04-20  Bruno Haible  <bruno@clisp.org>
59218
59219         * lib/c-stack.c (die): Use raise.
59220         * modules/c-stack (Depends-on): Add raise.
59221
59222 2008-04-28  Bruno Haible  <bruno@clisp.org>
59223
59224         Expect rpmatch to be declared.
59225         * lib/yesno.c (rpmatch): Remove declaration.
59226
59227         Declare rpmatch.
59228         * lib/stdlib.in.h (rpmatch): New declaration.
59229         * lib/rpmatch.c: Include <stdlib.h> first.
59230         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59231         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59233         HAVE_RPMATCH.
59234         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59235         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59236         (Include): Set to <stdlib.h>.
59237         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59238         HAVE_RPMATCH.
59239         * NEWS: Document the change.
59240
59241 2008-04-28  Bruno Haible  <bruno@clisp.org>
59242
59243         Change rpmatch to use nl_langinfo when appropriate.
59244         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59245         (N_): New macro.
59246         (localized_pattern): New function/macro.
59247         (try): Remove match, nomatch arguments. Copy the pattern into safe
59248         memory before caching it.
59249         (rpmatch): Use localized_pattern. Add translator comments.
59250         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59251         Suggested by Eric Blake.
59252         * modules/rpmatch (Depends-on): Add stdbool.
59253
59254 2008-04-28  Eric Blake  <ebb9@byu.net>
59255
59256         Add rawmemchr module, matching glibc.
59257         * modules/string (Makefile.am): New indicator.
59258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59259         * lib/string.in.h (rawmemchr): Declare when appropriate.
59260         * modules/rawmemchr: New file.
59261         * m4/rawmemchr.m4: Likewise.
59262         * lib/rawmemchr.c: Likewise.
59263         * modules/rawmemchr-tests: Likewise.
59264         * tests/test-rawmemchr.c: Likewise.
59265         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59266         module.
59267         * modules/strchrnul (Depends-on): Add rawmemchr.
59268         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59269
59270         Whitespace cleanup.
59271         * tests/test-strchrnul.c: Reindent.
59272         * lib/strchrnul.c: Likewise.
59273
59274         Optimize and test strchrnul.
59275         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59276         * modules/strchrnul-tests: New file.
59277         * tests/test-strchrnul.c: Likewise.
59278
59279         Remove intprops dependency.
59280         * modules/memchr (Depends-on): Remove intprops.
59281         * modules/memrchr (Depends-on): Likewise.
59282         * modules/memchr2 (Depends-on): Likewise.
59283         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59284         * lib/memrchr.c (__memrchr): Likewise.
59285         * lib/memrchr2.c (memchr2): Likewise.
59286         Reported by Simon Josefsson.
59287
59288 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59289
59290         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59291         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59292
59293 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59294
59295         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59296
59297         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59298
59299         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59300
59301         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59302         declarations.
59303         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59304
59305         * m4/inet_pton.m4: Don't check for header files.
59306
59307         * m4/inet_ntop.m4: Don't check for header files.
59308
59309 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59310
59311         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59312         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59313         trigger for cygwin).
59314         Reported by Bruno Haible  <bruno@clisp.org>.
59315
59316 2008-04-28  Bruno Haible  <bruno@clisp.org>
59317
59318         * doc/posix-functions/strdup.texi: Mention mingw problem.
59319
59320 2008-04-27  Bruno Haible  <bruno@clisp.org>
59321
59322         * modules/stat-time-tests (Depends-on): Add sleep.
59323         * tests/test-stat-time.c (force_unlink): New function.
59324         (cleanup): Use it.
59325         (test_mtime): Remove the ctime related tests.
59326         (test_ctime): New function, containing the ctime related tests.
59327         (main): Call test_ctime, except on native Windows platforms.
59328
59329 2008-04-27  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/rpmatch.c (rpmatch): Add some comments.
59332         Reported by James Youngman <jay@gnu.org>.
59333
59334 2008-04-27  Bruno Haible  <bruno@clisp.org>
59335
59336         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59337         quiet NaNs.
59338
59339 2008-04-27  Bruno Haible  <bruno@clisp.org>
59340
59341         Make test-yesno.sh work on mingw.
59342         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59343         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59344         (main): Set stdin to binary mode.
59345         * modules/yesno-tests (Depends-on): Add binary-io.
59346
59347 2008-04-27  Bruno Haible  <bruno@clisp.org>
59348
59349         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59350         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59351         argument that lie outside the IEEE 854 domain.
59352         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59353         (gl_ISFINITE): Use it.
59354         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59355
59356 2008-04-27  Bruno Haible  <bruno@clisp.org>
59357
59358         Allow local renaming in config.h.
59359         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59360
59361 2008-04-27  Bruno Haible  <bruno@clisp.org>
59362
59363         * lib/memchr.c (__memchr): Change type of 'i'.
59364         * lib/memchr2.c (memchr2): Likewise.
59365
59366 2008-04-26  Eric Blake  <ebb9@byu.net>
59367         and Bruno Haible  <bruno@clisp.org>
59368
59369         Optimize and test memrchr.
59370         * modules/memrchr (Depends-on): Add intprops.
59371         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59372         * modules/memrchr-tests: New file.
59373         * tests/test-memrchr.c: New file.
59374
59375 2008-04-26  Bruno Haible  <bruno@clisp.org>
59376
59377         Add tentative support for DragonFly BSD.
59378         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59379         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59380         fp.
59381         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59382         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59383         * lib/fpurge.c (fpurge): Likewise.
59384         * lib/freadable.c (freaadable): Likewise.
59385         * lib/freadahead.c (freadahead): Likewise.
59386         * lib/freading.c (freading): Likewise.
59387         * lib/freadptr.c (freadptr): Likewise.
59388         * lib/freadseek.c (freadptrinc): Likewise.
59389         * lib/fseeko.c (fseeko): Likewise.
59390         * lib/fseterr.c (fseterr): Likewise.
59391         * lib/fwritable.c (fwritable): Likewise.
59392         * lib/fwriting.c (fwriting): Likewise.
59393
59394 2008-04-26  Bruno Haible  <bruno@clisp.org>
59395
59396         * lib/stdio-impl.h: New file.
59397         * lib/fbufmode.c: Include stdio-impl.h.
59398         (fbufmode): Use fp_, remove redundant #defines.
59399         * lib/fflush.c: Include stdio-impl.h.
59400         (clear_ungetc_buffer): Remove redundant #defines.
59401         * lib/fpurge.c: Include stdio-impl.h.
59402         (fpurge): Remove redundant #defines.
59403         * lib/freadable.c: Include stdio-impl.h.
59404         (freadable): Remove redundant #defines.
59405         * lib/freadahead.c: Include stdio-impl.h.
59406         (freadahead): Remove redundant #defines.
59407         * lib/freading.c: Include stdio-impl.h.
59408         (freading): Remove redundant #defines.
59409         * lib/freadptr.c: Include stdio-impl.h.
59410         (freadptr): Remove redundant #defines.
59411         * lib/freadseek.c: Include stdio-impl.h.
59412         (freadptrinc): Remove redundant #defines.
59413         * lib/fseeko.c: Include stdio-impl.h.
59414         (rpl_fseeko): Remove redundant #defines.
59415         * lib/fseterr.c: Include stdio-impl.h.
59416         (fseterr): Remove redundant #defines.
59417         * lib/fwritable.c: Include stdio-impl.h.
59418         (fwritable: Remove redundant #defines.
59419         * lib/fwriting.c: Include stdio-impl.h.
59420         (fwriting): Remove redundant #defines.
59421         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59422         * modules/fflush (Files): Likewise.
59423         * modules/fpurge (Files): Likewise.
59424         * modules/freadable (Files): Likewise.
59425         * modules/freadahead (Files): Likewise.
59426         * modules/freading (Files): Likewise.
59427         * modules/freadptr (Files): Likewise.
59428         * modules/freadseek (Files): Likewise.
59429         * modules/fseeko (Files): Likewise.
59430         * modules/fseterr (Files): Likewise.
59431         * modules/fwritable (Files): Likewise.
59432         * modules/fwriting (Files): Likewise.
59433
59434 2008-04-26  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59437         restore_seek_optimization, update_fpos_cache): New functions, extracted
59438         from rpl_fflush.
59439         (rpl_fflush): Use them.
59440         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59441         (gl_REPLACE_FFLUSH): Use it.
59442
59443 2008-04-26  Bruno Haible  <bruno@clisp.org>
59444
59445         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59446         on Solaris.
59447         * tests/test-xstrtoimax.sh: Likewise.
59448         * tests/test-xstrtoumax.sh: Likewise.
59449         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59450
59451 2008-04-26  Bruno Haible  <bruno@clisp.org>
59452
59453         * modules/memchr-tests: New file.
59454         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59455
59456 2008-04-26  Eric Blake  <ebb9@byu.net>
59457             Bruno Haible  <bruno@clisp.org>
59458
59459         * lib/memchr.c: Include intprops.h.
59460         (__memchr): Optimize parallel detection of matching bytes. Rename local
59461         variables. Add explanatory comments.
59462
59463 2008-04-26  Bruno Haible  <bruno@clisp.org>
59464
59465         Fix module 'memchr', broken since 2000-10-28.
59466         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59467
59468 2008-04-26  Bruno Haible  <bruno@clisp.org>
59469
59470         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59471         comments.
59472
59473 2008-04-25  Eric Blake  <ebb9@byu.net>
59474
59475         Use native fstatat on cygwin 1.7.0.
59476         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59477         first.
59478
59479 2008-04-23  Eric Blake  <ebb9@byu.net>
59480
59481         Improve memchr2 performance.
59482         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59483         NUL bytes.
59484         * modules/memchr2 (Depends-on): Use intprops.h.
59485
59486 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59487
59488         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59489         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59490         <blp@cs.stanford.edu>.
59491
59492 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59493
59494         * lib/arpa_inet.in.h: New file.
59495
59496         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59497         (Makefile.am): Sed in substitute header file.
59498
59499         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59500         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59501
59502         * modules/inet_ntop (configure.ac): Use
59503         gl_ARPA_INET_MODULE_INDICATOR.
59504
59505         * modules/inet_pton (configure.ac): Use
59506         gl_ARPA_INET_MODULE_INDICATOR.
59507
59508 2008-04-22  Jim Meyering  <meyering@redhat.com>
59509
59510         * modules/verify (License): Re-license as LGPLv2+.
59511
59512 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59513
59514         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59515         parameter to void* as per POSIX standard (MinGW uses char*).
59516
59517 2008-04-21  Bruno Haible  <bruno@clisp.org>
59518
59519         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59520         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59521         Define to replacements if REPLACE_ISWCNTRL is 1.
59522         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59523         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59524         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59525         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59526         what it fixes.
59527         * doc/posix-functions/iswalpha.texi: Likewise.
59528         * doc/posix-functions/iswblank.texi: Likewise.
59529         * doc/posix-functions/iswcntrl.texi: Likewise.
59530         * doc/posix-functions/iswdigit.texi: Likewise.
59531         * doc/posix-functions/iswgraph.texi: Likewise.
59532         * doc/posix-functions/iswlower.texi: Likewise.
59533         * doc/posix-functions/iswprint.texi: Likewise.
59534         * doc/posix-functions/iswpunct.texi: Likewise.
59535         * doc/posix-functions/iswspace.texi: Likewise.
59536         * doc/posix-functions/iswupper.texi: Likewise.
59537         * doc/posix-functions/iswxdigit.texi: Likewise.
59538         Reported by Alain Guibert.
59539
59540 2008-04-21  Bruno Haible  <bruno@clisp.org>
59541
59542         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59543         Patch by Alain Guibert.
59544
59545 2008-04-21  Bruno Haible  <bruno@clisp.org>
59546
59547         Fix test failures on mingw.
59548         * tests/test-xstrtol.c (print_no_progname): New function.
59549         (main): Install it in error_print_progname hook.
59550         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59551         * tests/test-xstrtoimax.sh: Likewise.
59552         * tests/test-xstrtoumax.sh: Likewise.
59553
59554 2008-04-21  Bruno Haible  <bruno@clisp.org>
59555
59556         Fix test failure on mingw.
59557         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59558
59559 2008-04-21  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59562         Actually assign a value.
59563
59564 2008-04-20  Bruno Haible  <bruno@clisp.org>
59565
59566         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59567         take 2.
59568         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59569         'canonicalize-lgpl' module is also used.
59570         * lib/canonicalize-lgpl.c: Undo last change.
59571         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59572
59573 2008-04-20  Bruno Haible  <bruno@clisp.org>
59574
59575         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59576         config.h. Provide _mkdir based fallback for mingw.
59577         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59578         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59579         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59580         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59581         rather than defining mkdir in config.h.
59582         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59583         (gl_SYS_STAT_H_DEFAULTS): New macro.
59584         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59585         HAVE_IO_H any more.
59586         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59587         HAVE_DECL_MKDIR and HAVE_IO_H.
59588
59589 2008-04-20  Bruno Haible  <bruno@clisp.org>
59590
59591         * lib/isapipe.c: Port to native Windows platforms.
59592
59593 2008-04-20  Bruno Haible  <bruno@clisp.org>
59594
59595         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59596
59597 2008-04-21  Eric Blake  <ebb9@byu.net>
59598
59599         Work around preprocessors that don't handle UINTMAX_MAX.
59600         * lib/memchr2.c (memchr2): Avoid embedded #if.
59601         Reported by Alain Guibert, fix suggested by Bruno Haible.
59602
59603 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59604
59605         * doc/posix-functions/strftime.texi (strftime): Explain better
59606         Windows incompatibility.  Suggested by Micah Cowan
59607         <micah@cowan.name>.
59608
59609 2008-04-20  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59612         unistr/u8-mblen.
59613
59614 2008-04-20  Bruno Haible  <bruno@clisp.org>
59615
59616         Fix test failure on platforms with non-GNU iconv.
59617         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59618         (U_TO_U8): Use it, rather than u16_to_u8.
59619         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59620         units at the end of the input string.
59621         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59622
59623 2008-04-20  Bruno Haible  <bruno@clisp.org>
59624
59625         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59626         when the resulting length is 0.
59627         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59628
59629 2008-04-20  Bruno Haible  <bruno@clisp.org>
59630
59631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59632         works.
59633         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59634
59635 2008-04-20  Bruno Haible  <bruno@clisp.org>
59636
59637         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59638         * modules/tsearch-tests (configure.ac): Test for initstate function.
59639
59640 2008-04-20  Bruno Haible  <bruno@clisp.org>
59641
59642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59643         for nlink_t if missing.
59644         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59645
59646 2008-04-19  Bruno Haible  <bruno@clisp.org>
59647
59648         Work around snprintf bug on Linux libc5.
59649         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59651         gl_SNPRINTF_SIZE1.
59652         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59653         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59654         that test failed.
59655         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59656         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59657         * modules/snprintf (Files): Add m4/printf.m4.
59658         * modules/vsnprintf (Files): Likewise.
59659         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59660         * doc/posix-functions/vsnprintf.texi: Likewise.
59661
59662 2008-04-19  Bruno Haible  <bruno@clisp.org>
59663
59664         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59665         from 0.0058 to less than 10^-7.
59666
59667 2008-04-19  Bruno Haible  <bruno@clisp.org>
59668
59669         Fix rounding when a precision is given.
59670         * lib/vasnprintf.c (is_borderline): New function.
59671         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59672         9...9x.
59673         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59674         %e, %g.
59675         * tests/test-vasprintf-posix.c (test_function): Likewise.
59676         * tests/test-snprintf-posix.h (test_function): Likewise.
59677         * tests/test-sprintf-posix.h (test_function): Likewise.
59678         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59679         * tests/test-printf-posix.h (test_function): Likewise.
59680         * tests/test-printf-posix.output: Update.
59681         Reported by John Darrington <john@darrington.wattle.id.au> via
59682         Ben Pfaff <blp@cs.stanford.edu>.
59683
59684 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59685
59686         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59687         Suggested by Bruno Haible <bruno@clisp.org>.
59688
59689 2008-04-17  Bruno Haible  <bruno@clisp.org>
59690
59691         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59692         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59693         implementation.
59694         Patch by Bruce Merry <bmerry@gmail.com>.
59695
59696 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59697
59698         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59699         doesn't work under Windows.
59700
59701 2008-04-16  Bruno Haible  <bruno@clisp.org>
59702
59703         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59704         New macros.
59705         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59706         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59707         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59708         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59709         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59710         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59711         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59712         macros.
59713         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59714         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59715         Northern Sotho, Uighur.
59716
59717 2008-04-16  Bruno Haible  <bruno@clisp.org>
59718
59719         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59720         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59721         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59722         Reported by Daniel Bergström <daniel@octocode.com>.
59723
59724 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59725             Bruno Haible  <bruno@clisp.org>
59726
59727         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59728         function.
59729         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59730         New functions, mostly extracted from gl_locale_name_default.
59731         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59732
59733 2008-04-16  Eric Blake  <ebb9@byu.net>
59734
59735         Adjust strtod detection to catch glibc 2.7 bug.
59736         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59737         Reported by John Gatewood Ham.
59738
59739 2008-04-16  Bruno Haible  <bruno@clisp.org>
59740
59741         Add tentative support for Linux libc5.
59742         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59743         * lib/fpurge.c (fpurge): Likewise.
59744         * lib/freadable.c (freadable): Likewise.
59745         * lib/freadahead.c (freadahead): Likewise.
59746         * lib/freading.c (freading): Likewise.
59747         * lib/freadptr.c (freadptr): Likewise.
59748         * lib/freadseek.c (freadptrinc): Likewise.
59749         * lib/fseeko.c (rpl_fseeko): Likewise.
59750         * lib/fseterr.c (fseterr): Likewise.
59751         * lib/fwritable.c (fwritable): Likewise.
59752         * lib/fwriting.c (fwriting): Likewise.
59753         Reported by Alain Guibert <alguibert+bts@free.fr>.
59754
59755 2008-04-15  Bruno Haible  <bruno@clisp.org>
59756
59757         * modules/mathl (configure.ac): Define module indicator.
59758
59759 2008-04-15  Bruno Haible  <bruno@clisp.org>
59760
59761         * lib/logl.c (logl): Remove unused variables.
59762
59763 2008-04-15  Bruno Haible  <bruno@clisp.org>
59764
59765         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59766         fails.
59767
59768 2008-04-15  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/trim.c (trim2): Fix argument of isspace() macro.
59771
59772 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59773
59774         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59775         to 0.
59776         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59777
59778 2008-04-14  Bruno Haible  <bruno@clisp.org>
59779
59780         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59781         AC_LANG_PROGRAM argument.
59782         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59783         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59785         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59786         * m4/math_h.m4 (gl_MATH_H): Likewise.
59787         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59788         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59789         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59790         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59791         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59792         * m4/regex.m4 (gl_REGEX): Likewise.
59793         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59794         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59796         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59797         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59798         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59799         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59800         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59801
59802 2008-04-14  Jim Meyering  <meyering@redhat.com>
59803
59804         test-strtod: fix typos: s/abs/fabs/
59805         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59806
59807 2008-04-13  Bruno Haible  <bruno@clisp.org>
59808
59809         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59810         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59811         module is also used and while not building the reloc-wrapper.
59812
59813 2008-04-13  Bruno Haible  <bruno@clisp.org>
59814
59815         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59816
59817 2008-04-13  Bruno Haible  <bruno@clisp.org>
59818
59819         Fix AIX compilation failure introduced on 2008-04-02.
59820         * tests/test-frexp.c (exp): Undefine before redefining.
59821         * tests/test-frexpl.c (exp): Likewise.
59822
59823 2008-04-13  Bruno Haible  <bruno@clisp.org>
59824
59825         Work around a HP-UX stdio bug.
59826         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59827         * tests/test-ftello.c (main): Likewise.
59828         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59829         * doc/posix-functions/ftello.texi: Likewise.
59830
59831 2008-04-13  Bruno Haible  <bruno@clisp.org>
59832
59833         Make test-signbit pass on HP-UX/hppa.
59834         * tests/test-signbit.c (minus_zerol): New variable.
59835         (test_signbitl): Use it.
59836
59837 2008-04-13  Bruno Haible  <bruno@clisp.org>
59838
59839         Make truncl work on OSF/1 4.0.
59840         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59841         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59842         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59844         HAVE_DECL_TRUNCL.
59845         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59846         HAVE_DECL_TRUNCL.
59847         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59848
59849 2008-04-13  Bruno Haible  <bruno@clisp.org>
59850
59851         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59852
59853 2008-04-13  Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59856         expression, so as to avoid HP-UX 11 cc compiler bug.
59857
59858 2008-04-13  Bruno Haible  <bruno@clisp.org>
59859
59860         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59861
59862 2008-04-13  Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/git-merge-changelog.c: Remove empty declaration outside of
59865         functions.
59866
59867 2008-04-13  Bruno Haible  <bruno@clisp.org>
59868
59869         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59870
59871 2008-04-13  Bruno Haible  <bruno@clisp.org>
59872
59873         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59874         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59876         also if it exists but lacks definitions of the SHUT_* macros.
59877         * modules/sys_socket (Description): Update.
59878         Reported by Elbert Pol <e.pol@chello.nl>.
59879
59880 2008-04-13  Bruno Haible  <bruno@clisp.org>
59881
59882         * lib/localcharset.c (OS2): Don't redefine if already defined.
59883         Reported by Elbert Pol <e.pol@chello.nl>.
59884
59885 2008-04-13  Bruno Haible  <bruno@clisp.org>
59886
59887         * lib/binary-io.h [__EMX__]: Include <io.h>.
59888         Reported by Elbert Pol <e.pol@chello.nl>.
59889
59890 2008-04-12  Bruno Haible  <bruno@clisp.org>
59891
59892         * lib/fpucw.h: Enable the definitions also for x86_64.
59893         Needed for NetBSD/x86_64.
59894         Reported by Thomas Klausner <tk@giga.or.at>.
59895
59896 2008-04-12  Bruno Haible  <bruno@clisp.org>
59897
59898         * tests/test-strtod.c: Include isnand.h.
59899         (main): Use isnand instead of isnan.
59900         Reported by Jim Meyering.
59901
59902 2008-04-12  Bruno Haible  <bruno@clisp.org>
59903
59904         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59905         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59906
59907 2008-04-12  Jim Meyering  <meyering@redhat.com>
59908
59909         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59910
59911 2008-04-12  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59914         Reported by Elbert Pol <e.pol@chello.nl>.
59915
59916 2008-04-12  Eric Blake  <ebb9@byu.net>
59917
59918         Work around Solaris 10 math.h bug.
59919         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59920         (gl_MATH_H_DEFAULTS): Set up default.
59921         * modules/math (Makefile.am): Replace new indicators.
59922         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59923         * tests/test-math.c (main): Test this.
59924         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59925         * doc/posix-headers/math.texi (math.h): Mention bug.
59926         Reported by Nelson H. F. Beebe and Jim Meyering.
59927
59928 2008-04-11  Bruno Haible  <bruno@clisp.org>
59929
59930         Adapt to future versions of Apple GCC.
59931         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59932         Reported by Peter O'Gorman <peter@pogma.com>.
59933
59934 2008-04-11  Bruno Haible  <bruno@clisp.org>
59935
59936         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59937
59938 2008-04-11  Bruno Haible  <bruno@clisp.org>
59939
59940         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59941
59942         * modules/getaddrinfo-tests (Makefile.am): Define
59943         test_getaddrinfo_LDADD.
59944
59945 2008-04-11  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59948         (init): Fix syntax error.
59949         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59950         is declared.
59951
59952 2008-04-11  Bruno Haible  <bruno@clisp.org>
59953
59954         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59955         * modules/glob (Depends-on): Add stdbool.
59956
59957 2008-04-11  Bruno Haible  <bruno@clisp.org>
59958
59959         * lib/trim.c: Include <string.h>.
59960
59961 2008-04-11  Eric Blake  <ebb9@byu.net>
59962
59963         Avoid compile failure on OS/2.
59964         * lib/regex_internal.h (internal_function): Disable optimization
59965         on OS/2 (__EMX__), where it caused compiler error.
59966         Reported by Elbert Pol.
59967
59968 2008-04-11  Bruno Haible  <bruno@clisp.org>
59969
59970         Flush the standard error stream before aborting. Needed on mingw.
59971         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59972         * tests/test-array_list.c (ASSERT): Likewise.
59973         * tests/test-array_oset.c (ASSERT): Likewise.
59974         * tests/test-avltree_list.c (ASSERT): Likewise.
59975         * tests/test-avltree_oset.c (ASSERT): Likewise.
59976         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59977         * tests/test-binary-io.c (ASSERT): Likewise.
59978         * tests/test-byteswap.c (ASSERT): Likewise.
59979         * tests/test-c-ctype.c (ASSERT): Likewise.
59980         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59981         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59982         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59983         * tests/test-c-strstr.c (ASSERT): Likewise.
59984         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59985         * tests/test-canonicalize.c (ASSERT): Likewise.
59986         * tests/test-carray_list.c (ASSERT): Likewise.
59987         * tests/test-ceilf1.c (ASSERT): Likewise.
59988         * tests/test-ceilf2.c (ASSERT): Likewise.
59989         * tests/test-ceill.c (ASSERT): Likewise.
59990         * tests/test-count-one-bits.c (ASSERT): Likewise.
59991         * tests/test-fbufmode.c (ASSERT): Likewise.
59992         * tests/test-fflush2.c (ASSERT): Likewise.
59993         * tests/test-floorf1.c (ASSERT): Likewise.
59994         * tests/test-floorf2.c (ASSERT): Likewise.
59995         * tests/test-floorl.c (ASSERT): Likewise.
59996         * tests/test-fopen.c (ASSERT): Likewise.
59997         * tests/test-fpending.c (ASSERT): Likewise.
59998         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59999         * tests/test-fpurge.c (ASSERT): Likewise.
60000         * tests/test-freadable.c (ASSERT): Likewise.
60001         * tests/test-freadahead.c (ASSERT): Likewise.
60002         * tests/test-freading.c (ASSERT): Likewise.
60003         * tests/test-freadptr.c (ASSERT): Likewise.
60004         * tests/test-freadptr2.c (ASSERT): Likewise.
60005         * tests/test-freadseek.c (ASSERT): Likewise.
60006         * tests/test-freopen.c (ASSERT): Likewise.
60007         * tests/test-frexp.c (ASSERT): Likewise.
60008         * tests/test-frexpl.c (ASSERT): Likewise.
60009         * tests/test-fseek.c (ASSERT): Likewise.
60010         * tests/test-fseeko.c (ASSERT): Likewise.
60011         * tests/test-fstrcmp.c (ASSERT): Likewise.
60012         * tests/test-ftell.c (ASSERT): Likewise.
60013         * tests/test-ftello.c (ASSERT): Likewise.
60014         * tests/test-func.c (ASSERT): Likewise.
60015         * tests/test-fwritable.c (ASSERT): Likewise.
60016         * tests/test-fwriting.c (ASSERT): Likewise.
60017         * tests/test-getdelim.c (ASSERT): Likewise.
60018         * tests/test-getline.c (ASSERT): Likewise.
60019         * tests/test-i-ring.c (ASSERT): Likewise.
60020         * tests/test-iconv-utf.c (ASSERT): Likewise.
60021         * tests/test-iconv.c (ASSERT): Likewise.
60022         * tests/test-isfinite.c (ASSERT): Likewise.
60023         * tests/test-isnand.c (ASSERT): Likewise.
60024         * tests/test-isnanf.c (ASSERT): Likewise.
60025         * tests/test-isnanl.h (ASSERT): Likewise.
60026         * tests/test-ldexpl.c (ASSERT): Likewise.
60027         * tests/test-linked_list.c (ASSERT): Likewise.
60028         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60029         * tests/test-localename.c (ASSERT): Likewise.
60030         * tests/test-lseek.c (ASSERT): Likewise.
60031         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60032         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60033         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60034         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60035         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60036         * tests/test-mbschr.c (ASSERT): Likewise.
60037         * tests/test-mbscspn.c (ASSERT): Likewise.
60038         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60039         * tests/test-mbspbrk.c (ASSERT): Likewise.
60040         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60041         * tests/test-mbsrchr.c (ASSERT): Likewise.
60042         * tests/test-mbsspn.c (ASSERT): Likewise.
60043         * tests/test-mbsstr1.c (ASSERT): Likewise.
60044         * tests/test-mbsstr2.c (ASSERT): Likewise.
60045         * tests/test-mbsstr3.c (ASSERT): Likewise.
60046         * tests/test-memchr2.c (ASSERT): Likewise.
60047         * tests/test-memmem.c (ASSERT): Likewise.
60048         * tests/test-open.c (ASSERT): Likewise.
60049         * tests/test-printf-frexp.c (ASSERT): Likewise.
60050         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60051         * tests/test-printf-posix.c (ASSERT): Likewise.
60052         * tests/test-quotearg.c (ASSERT): Likewise.
60053         * tests/test-rbtree_list.c (ASSERT): Likewise.
60054         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60055         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60056         * tests/test-round1.c (ASSERT): Likewise.
60057         * tests/test-roundf1.c (ASSERT): Likewise.
60058         * tests/test-roundl.c (ASSERT): Likewise.
60059         * tests/test-signbit.c (ASSERT): Likewise.
60060         * tests/test-sleep.c (ASSERT): Likewise.
60061         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60062         * tests/test-snprintf.c (ASSERT): Likewise.
60063         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60064         * tests/test-stat-time.c (ASSERT): Likewise.
60065         * tests/test-strcasestr.c (ASSERT): Likewise.
60066         * tests/test-strerror.c (ASSERT): Likewise.
60067         * tests/test-striconv.c (ASSERT): Likewise.
60068         * tests/test-striconveh.c (ASSERT): Likewise.
60069         * tests/test-striconveha.c (ASSERT): Likewise.
60070         * tests/test-strsignal.c (ASSERT): Likewise.
60071         * tests/test-strstr.c (ASSERT): Likewise.
60072         * tests/test-strtod.c (ASSERT): Likewise.
60073         * tests/test-trunc1.c (ASSERT): Likewise.
60074         * tests/test-trunc2.c (ASSERT): Likewise.
60075         * tests/test-truncf1.c (ASSERT): Likewise.
60076         * tests/test-truncf2.c (ASSERT): Likewise.
60077         * tests/test-truncl.c (ASSERT): Likewise.
60078         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60079         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60080         * tests/test-vasnprintf.c (ASSERT): Likewise.
60081         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60082         * tests/test-vasprintf.c (ASSERT): Likewise.
60083         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60084         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60085         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60086         * tests/test-vsnprintf.c (ASSERT): Likewise.
60087         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60088         * tests/test-wcwidth.c (ASSERT): Likewise.
60089         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60090         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60091         * tests/test-xvasprintf.c (ASSERT): Likewise.
60092         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60093         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60094         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60095         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60096         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60097         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60098         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60099         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60100         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60101         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60102         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60103         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60104         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60105         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60106         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60107         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60108         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60109         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60110         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60111         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60112         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60113         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60114         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60115         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60116         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60117         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60118         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60119         * tests/unictype/test-combining.c (ASSERT): Likewise.
60120         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60121         * tests/unictype/test-digit.c (ASSERT): Likewise.
60122         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60123         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60124         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60125         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60126         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60127         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60128         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60129         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60130         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60131         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60132         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60133         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60134         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60135         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60136         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60137         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60138         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60139         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60140         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60141         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60142         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60143         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60144         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60145         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60146         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60147         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60148         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60149         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60150         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60151         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60152         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60153         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60154         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60155         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60156         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60157         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60158         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60159         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60160         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60161         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60162         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60163         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60164         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60165         Reported by Eric Blake.
60166
60167 2008-04-11  Bruno Haible  <bruno@clisp.org>
60168
60169         * lib/wchar.in.h: Tweak comment.
60170
60171 2008-04-11  Bruno Haible  <bruno@clisp.org>
60172
60173         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60174         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60175         gl_COMMON.
60176         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60177
60178 2008-04-11  Bruno Haible  <bruno@clisp.org>
60179
60180         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60181
60182 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60183
60184         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60185         of attempting to use non-existing /dev/*random.  Based on patch
60186         from Adam Strzelecki <ono@java.pl> in
60187         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60188
60189 2008-04-08  Bruno Haible  <bruno@clisp.org>
60190
60191         Add tentative support for emx+gcc.
60192         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60193         * lib/fpurge.c (fpurge): Likewise.
60194         * lib/freadable.c (freadable): Likewise.
60195         * lib/freadahead.c (freadahead): Likewise.
60196         * lib/freading.c (freading): Likewise.
60197         * lib/freadptr.c (freadptr): Likewise.
60198         * lib/freadseek.c (freadptrinc): Likewise.
60199         * lib/fseeko.c (rpl_fseeko): Likewise.
60200         * lib/fseterr.c (fseterr): Likewise.
60201         * lib/fwritable.c (fwritable): Likewise.
60202         * lib/fwriting.c (fwriting): Likewise.
60203         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60204
60205 2008-04-09  Eric Blake  <ebb9@byu.net>
60206
60207         Avoid some autoconf warnings.
60208         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60209         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60210         * m4/afs.m4 (gl_AFS): Likewise.
60211         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60212         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60214         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60215         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60216         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60217         (AC_CHECK_DECLS_ONCE): Likewise.
60218         Rename file...
60219         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60220         gnulib-tool requires autoconf 2.59 or better.
60221         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60222
60223 2008-04-08  Eric Blake  <ebb9@byu.net>
60224
60225         Use 'git describe --match' if present (added in git 1.5.5).
60226         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60227         if possible.
60228
60229 2008-04-08  Bruno Haible  <bruno@clisp.org>
60230
60231         Add tentative support for OpenServer.
60232         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60233         _ptr, _cnt.
60234         * lib/fpurge.c (fpurge): Likewise.
60235         * lib/freadable.c (freadable): Likewise.
60236         * lib/freadahead.c (freadahead): Likewise.
60237         * lib/freading.c (freading): Likewise.
60238         * lib/freadptr.c (freadptr): Likewise.
60239         * lib/freadseek.c (freadptrinc): Likewise.
60240         * lib/fseeko.c (rpl_fseeko): Likewise.
60241         * lib/fseterr.c (fseterr): Likewise.
60242         * lib/fwritable.c (fwritable): Likewise.
60243         * lib/fwriting.c (fwriting): Likewise.
60244         Reported by Roger Cornelius <rac@tenzing.org> and
60245         Brian K. White <brian@aljex.com>.
60246
60247 2008-04-06  Jim Meyering  <meyering@redhat.com>
60248
60249         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60250
60251 2008-04-06  Bruno Haible  <bruno@clisp.org>
60252
60253         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60254         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60255         * tests/test-printf-posix.sh: Likewise.
60256         * tests/test-vfprintf-posix.sh: Likewise.
60257         * tests/test-vprintf-posix.sh: Likewise.
60258         * tests/test-xprintf-posix.sh: Likewise.
60259
60260 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60261
60262         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60263         hide error from 'ls', needed on OS/2.
60264         Report by Elbert Pol <elbert.pol@gmail.com>.
60265
60266 2008-04-04  Eric Blake  <ebb9@byu.net>
60267
60268         Make test-fseeko.c failures meaningful.
60269         * tests/test-fseeko.c: Print line number on failure.
60270         * tests/test-fseek.c: Likewise.
60271         Reported by Nelson H. F. Beebe.
60272
60273         Improve strtod bug detection check.
60274         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60275         required for Solaris 10.
60276         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60277
60278 2008-04-04  Bruno Haible  <bruno@clisp.org>
60279
60280         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60281         by m4/setenv.m4.
60282
60283 2008-04-03  Eric Blake  <ebb9@byu.net>
60284
60285         Ensure sane .version contents.
60286         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60287         version string.
60288         * build-aux/git-version-gen: Improve documentation.
60289
60290         Make GNU make output nicer.
60291         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60292         MAKECMDGOALS to enforce message for all command line targets.  Set
60293         srcdir for use in maint.mk.
60294
60295         Another maintainer tweak.
60296         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60297         a target that regenerates version.
60298
60299 2008-04-03  Jim Meyering  <meyering@redhat.com>
60300
60301         vc-list-files: don't cause coreutils "make po-check" failure
60302         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60303
60304 2008-04-03  Eric Blake  <ebb9@byu.net>
60305
60306         Allow VPATH usage of vc-list-files.
60307         * build-aux/vc-list-files (scriptversion): Add timestamp.
60308         (options): Add --help, --version, -C.
60309         (CVS): Support installed cvsu.
60310
60311 2008-04-02  Bruno Haible  <bruno@clisp.org>
60312
60313         Avoid some "statement with no effect" warnings from gcc.
60314         * tests/test-wctype.c (main): Explicitly ignore unused values.
60315         Reported by Jim Meyering.
60316
60317 2008-04-02  Jim Meyering  <meyering@redhat.com>
60318
60319         Avoid some warnings from "gcc -Wshadow".
60320         * tests/test-frexp.c (exp): Define to a different identifier.
60321         * tests/test-frexpl.c (exp): Likewise.
60322
60323 2008-04-03  Jim Meyering  <meyering@redhat.com>
60324
60325         bootstrap: remove dangling *.[ch] symlinks from lib
60326         * build-aux/bootstrap [dangling symlink removal]: Move find's
60327         -depth option to precede all others, to avoid a warning.
60328         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60329
60330 2008-04-02  Bruno Haible  <bruno@clisp.org>
60331
60332         Avoid some warnings from "gcc -Wshadow".
60333         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60334         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60335         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60336         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60337         Reported by Jim Meyering.
60338
60339 2008-04-01  Bruno Haible  <bruno@clisp.org>
60340
60341         Fix test to work on IRIX 6.5 with cc.
60342         * tests/test-math.c (numeric_equal): New function.
60343         (main): Use it.
60344
60345 2008-04-01  Bruno Haible  <bruno@clisp.org>
60346
60347         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60348
60349 2008-04-01  Bruno Haible  <bruno@clisp.org>
60350
60351         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60352         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60353         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60354         (Depends-on): Remove math.
60355
60356         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60357         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60358         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60359         (Depends-on): Remove math.
60360
60361         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60362         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60363         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60364         (Depends-on): Remove math.
60365         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60366         (Depends-on): Remove math.
60367
60368         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60369         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60370         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60371         (Depends-on): Remove math.
60372         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60373         (Depends-on): Remove math.
60374
60375         * tests/test-round1.c: Include nan.h.
60376         (main): Use NaNd instead of NAN.
60377         * modules/round-tests (Files): Add tests/nan.h.
60378
60379         * tests/test-trunc1.c: Include nan.h.
60380         (main): Use NaNd instead of NAN.
60381         * modules/trunc-tests (Files): Add tests/nan.h.
60382
60383         * tests/test-roundf1.c: Include nan.h.
60384         (main): Use NaNf instead of NAN.
60385         * modules/roundf-tests (Files): Add tests/nan.h.
60386
60387         * tests/test-truncf1.c: Include nan.h.
60388         (main): Use NaNf instead of NAN.
60389         * modules/truncf-tests (Files): Add tests/nan.h.
60390
60391         * tests/test-ceilf1.c: Include nan.h.
60392         (main): Use NaNf instead of NAN.
60393         * modules/ceilf-tests (Files): Add tests/nan.h.
60394
60395         * tests/test-floorf1.c: Include nan.h.
60396         (main): Use NaNf instead of NAN.
60397         * modules/floorf-tests (Files): Add tests/nan.h.
60398
60399         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60400         (main): Use NaNf instead of NAN.
60401         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60402
60403         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60404         (main): Use NaNd instead of NAN.
60405         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60406
60407         * tests/test-frexp.c: Include nan.h.
60408         (main): Use NaNd instead of NAN.
60409         * modules/frexp-tests (Files): Add tests/nan.h.
60410
60411         * lib/isnan.c: Don't include <math.h>.
60412         (FUNC): Don't use NAN macro.
60413         * modules/isnand-nolibm (Depends-on): Remove math.
60414         * modules/isnanf-nolibm (Depends-on): Remove math.
60415         * modules/isnanl (Depends-on): Remove math.
60416         * modules/isnanl-nolibm (Depends-on): Remove math.
60417
60418         * tests/nan.h: New file.
60419
60420 2008-04-01  Eric Blake  <ebb9@byu.net>
60421
60422         Fix typos.
60423         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60424         values to be the right type.
60425
60426         For now, cater to gnulib strtod inaccuracies.
60427         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60428         fractional results.  While not as nice from a QoI perspective, it
60429         is a quicker patch than correctly implementing decimal to binary
60430         rounding.
60431
60432 2008-03-31  Eric Blake  <ebb9@byu.net>
60433
60434         Guarantee a definition of NAN.
60435         * lib/math.in.h (NAN): Define if missing.
60436         * tests/test-math.c (main): Test it.
60437         * doc/posix-headers/math.texi (math.h): Document this.
60438         * lib/isnan.c (rpl_isnand): Use it.
60439         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60440         * tests/test-floorf1.c (NaN): Likewise.
60441         * tests/test-frexp.c (NaN): Likewise.
60442         * tests/test-isnand.c (NaN): Likewise.
60443         * tests/test-isnanf.c (NaN): Likewise.
60444         * tests/test-round1.c (NaN): Likewise.
60445         * tests/test-roundf1.c (NaN): Likewise.
60446         * tests/test-snprintf-posix.h (NaN): Likewise.
60447         * tests/test-sprintf-posix.h (NaN): Likewise.
60448         * tests/test-trunc1.c (NaN): Likewise.
60449         * tests/test-truncf1.c (NaN): Likewise.
60450         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60451         * tests/test-vasprintf-posix.c (NaN): Likewise.
60452         * modules/isnand-nolibm (Depends-on): Add math.
60453         * modules/isnanf-nolibm (Depends-on): Likewise.
60454         * modules/isnanl (Depends-on): Likewise.
60455         * modules/isnanl-nolibm (Depends-on): Likewise.
60456         * modules/snprintf-posix-tests (Depends-on): Likewise.
60457         * modules/sprintf-posix-tests (Depends-on): Likewise.
60458         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60459         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60460         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60461         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60462
60463 2008-03-31  Bruno Haible  <bruno@clisp.org>
60464
60465         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60466         * doc/posix-functions/strtod.texi: Likewise.
60467
60468 2008-03-31  Bruno Haible  <bruno@clisp.org>
60469
60470         * tests/test-strtod.c (main): Don't use C99 syntax.
60471
60472 2008-03-31  Bruno Haible  <bruno@clisp.org>
60473
60474         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60475         Reported by Eric Blake.
60476
60477 2008-03-31  Jim Meyering  <meyering@redhat.com>
60478
60479         Don't compare actual signbit return values.
60480         * tests/test-strtod.c (main): Rather, compare only their
60481         zero/non-zero nature.
60482
60483 2008-03-31  Eric Blake  <ebb9@byu.net>
60484
60485         More strtod documentation.
60486         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60487         failures as distinct bugs.
60488
60489 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60490
60491         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60492         Problem reported by Erik Benada in
60493         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60494
60495 2008-03-30  Bruno Haible  <bruno@clisp.org>
60496
60497         * tests/test-strtod.c: Add comments about which assertion fails on which
60498         platform.
60499         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60500
60501 2008-03-30  Eric Blake  <ebb9@byu.net>
60502
60503         Test signbit behavior on zeros.
60504         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60505         (test_signbitd, test_signbitl): Likewise.
60506
60507         More strtod touchups.
60508         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60509         sign of negative underflow, for now.  Use .5, not .1.
60510         * doc/posix-functions/strtod.texi (strtod): Mention these
60511         limitations.
60512         Reported by Jim Meyering.
60513
60514 2008-03-30  Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60517         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60518
60519 2008-03-30  Bruno Haible  <bruno@clisp.org>
60520
60521         Avoid failure when attempting to return empty iconv results on some
60522         platforms.
60523         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60524         allocation, don't report ENOMEM when the resulting string is empty.
60525
60526 2008-03-30  Bruno Haible  <bruno@clisp.org>
60527
60528         Fix buffer overrun.
60529         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60530         Don't consider the width for tmp_length. Check count against tmp_length
60531         before doing the padding. Ensure enough allocation during padding.
60532
60533 2008-03-30  Eric Blake  <ebb9@byu.net>
60534
60535         strtod touchups.
60536         * lib/strtod.c (strtod): Avoid compiler warnings.
60537         Reported by Jim Meyering.
60538
60539 2008-03-30  Bruno Haible  <bruno@clisp.org>
60540
60541         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60542         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60543         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60544         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60545         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60546         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60547         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60548         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60549
60550         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60551         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60552         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60553         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60554         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60555         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60556         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60557         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60558
60559         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60560         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60561         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60562         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60563         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60564         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60565         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60566         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60567
60568         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60569         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60570
60571         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60572         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60573
60574         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60575         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60576
60577         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60579         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60580
60581         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60582         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60583         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60584
60585         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60586         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60587         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60588
60589         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60590         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60591         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60592
60593         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60594         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60596         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60597         (Depends-on): Add EOVERFLOW.
60598         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60599         (Depends-on): Add EOVERFLOW.
60600         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60601         (Depends-on): Add EOVERFLOW.
60602         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60603         (Depends-on): Add EOVERFLOW.
60604         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60605         (Depends-on): Add EOVERFLOW.
60606         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60607         (Depends-on): Add EOVERFLOW.
60608         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60609         (Depends-on): Add EOVERFLOW.
60610         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60611         (Depends-on): Add EOVERFLOW.
60612
60613         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60615         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60616
60617         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60619         * modules/snprintf (Depends-on): Add EOVERFLOW.
60620
60621         * lib/poll.c (EOVERFLOW): Remove fallback.
60622         * modules/poll (Depends-on): Add EOVERFLOW.
60623
60624         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60625         * modules/getugroups (Depends-on): Add EOVERFLOW.
60626
60627         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60628         * modules/getdelim (Depends-on): Add EOVERFLOW.
60629
60630         * lib/ftell.c (EOVERFLOW): Remove fallback.
60631         * modules/ftell (Depends-on): Add EOVERFLOW.
60632
60633         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60635         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60636
60637         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60638
60639         * modules/EOVERFLOW-tests: New file.
60640         * tests/test-EOVERFLOW.c: New file.
60641
60642         * modules/EOVERFLOW: New file.
60643         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60644
60645 2008-03-30  Bruno Haible  <bruno@clisp.org>
60646
60647         Fix bug introduced on 2007-06-10.
60648         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60649         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60650
60651 2008-03-30  Bruno Haible  <bruno@clisp.org>
60652
60653         Improve freadseek's efficiency after ungetc.
60654         * lib/freadseek.c: Include freadahead.h.
60655         (freadptrinc): New function, extracted from freadseek.
60656         (freadseek): Use it in a loop. Use freadahead to determine the number
60657         of loop iterations.
60658         * modules/freadseek (Depends-on): Add freadahead.
60659         (configure.ac): Require AC_C_INLINE.
60660
60661 2008-03-30  Bruno Haible  <bruno@clisp.org>
60662
60663         * lib/freadseek.c (freadseek): Don't ignore the return value of
60664         freadptr.
60665
60666 2008-03-29  Eric Blake  <ebb9@byu.net>
60667
60668         Add hex float support.
60669         * modules/strtod (Depends-on): Add c-ctype.
60670         (Link): Mention POW_LIB.
60671         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60672         whitespace between 'e' and exponent.
60673         * tests/test-strtod.c (main): Enable hex float tests.
60674         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60675         now provides.
60676
60677         Document various strtod bugs, with some fixes.
60678         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60679         "-0x", "inf", "nan", and hex constants.
60680         * doc/posix-functions/atof.texi (atof): Likewise.
60681         * modules/stdlib (Makefile.am): Support strtod.
60682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60683         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60684         detect additional strtod bugs.
60685         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60686         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60687         bool where appropriate.  Parse 'inf' and 'nan'.
60688         * tests/test-strtod.c: New file.
60689         * modules/strtod (Depends-on): Add stdbool, stdlib.
60690         (configure.ac): Turn on module indicator.
60691         * modules/strtod-tests: New module.
60692
60693 2008-03-29  Eric Blake  <ebb9@byu.net>
60694
60695         Fix ftell on mingw.
60696         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60697         * modules/ftell-tests (Depends-on): Add binary-io.
60698         * modules/ftello-tests (Depends-on): Likewise.
60699         * tests/test-ftell.c (main): Enhance test to cover behavior after
60700         ungetc.  Enforce binary mode.
60701         * tests/test-ftello.c (main): Likewise.
60702
60703         Pass test-freadseek on cygwin.
60704         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60705         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60706         ungetc buffer.
60707
60708         * tests/test-fflush2.c (main): Fix typo.
60709
60710 2008-03-29  Bruno Haible  <bruno@clisp.org>
60711
60712         * tests/test-fflush2.c (main): Temporarily disable the contents of
60713         this test.
60714         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60715         Reported by Eric Blake.
60716
60717 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60718
60719         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60720         (GC_SHA224_DIGEST_SIZE): Add.
60721
60722         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60723         (gc_hash_digest_length): Likewise.
60724         (gc_hash_buffer): Likewise.
60725
60726 2008-03-25  Bruno Haible  <bruno@clisp.org>
60727
60728         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60729         detail which gettext release to use.
60730         Reported by Simon Josefsson.
60731
60732 2008-03-26  Jim Meyering  <meyering@redhat.com>
60733
60734         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60735         * modules/gnumakefile (clean-GNUmakefile): Also, use
60736         test ... && ... || : syntax rather than if-then ... fi.
60737
60738         gnumakefile: Don't double-quote-expand $(VPATH) value.
60739         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60740
60741 2008-03-24  Eric Blake  <ebb9@byu.net>
60742
60743         Alter GNUmakefile to install into top directory.
60744         * modules/maintainer-makefile: Split, and add dependency...
60745         * modules/gnumakefile: to this new module.
60746         * build-aux/GNUmakefile: Move...
60747         * top/GNUmakefile: ...here.
60748         * build-aux/maint.mk: Move...
60749         * top/maint.mk: ...here.
60750         * MODULES.html.sh (Support for maintaining...): Document new
60751         module.
60752
60753 2008-03-23  Bruno Haible  <bruno@clisp.org>
60754
60755         * gnulib-tool: New options --vc-files, --no-vc-files.
60756         (func_usage): Document them.
60757         (vc_files): New variable.
60758         (func_import): Consider vc_files.
60759         (func_create_testdir): Set vc_files to empty.
60760         Suggested by Jim Meyering and Karl Berry.
60761
60762 2008-03-23  Bruno Haible  <bruno@clisp.org>
60763
60764         Fix regex compilation error on HP-UX 11.
60765         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60766         * modules/regex (Files): Add m4/mbstate_t.m4.
60767         Reported by Ton Voon <ton.voon@altinity.com>.
60768
60769 2008-03-23  Bruno Haible  <bruno@clisp.org>
60770
60771         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60772
60773 2008-03-23  Eric Blake  <ebb9@byu.net>
60774             Bruno Haible  <bruno@clisp.org>
60775
60776         Install files from top/ in the destination directory.
60777         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60778         augmentation also for the files from top/.
60779         (func_import, func_create_testdir): Rewrite file names:
60780         top/filename -> filename.
60781
60782 2008-03-23  Bruno Haible  <bruno@clisp.org>
60783
60784         Tweak "gnulib --version" output.
60785         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60786
60787 2008-03-23  Bruno Haible  <bruno@clisp.org>
60788
60789         Tweak "gnulib --version" output.
60790         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60791         rather than contents of ChangeLog, when possible.
60792
60793 2008-03-21  Eric Blake  <ebb9@byu.net>
60794
60795         More --version tweaks.
60796         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60797         date of last ChangeLog entry.
60798
60799 2008-03-21  Jim Meyering  <meyering@redhat.com>
60800
60801         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60802
60803 2008-03-20  Eric Blake  <ebb9@byu.net>
60804
60805         VPATH fix.
60806         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60807
60808 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60809
60810         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60811         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60812
60813 2008-03-20  Eric Blake  <ebb9@byu.net>
60814
60815         Sync GNUmakefile with coreutils.
60816         * build-aux/GNUmakefile (have-Makefile): Rename...
60817         (_have-Makefile): ...to this, for namespace consideration.
60818         (GNUmakefile.cfg): Include, if present.
60819         (_autoreconf): Define a default.
60820         (_is-dist-target): New rule for rebuilds to pick up intra-release
60821         version.
60822         (maint-cfg.mk): Rename...
60823         (cfg.mk): ...to this.
60824
60825 2008-03-18  Jim Meyering  <meyering@redhat.com>
60826
60827         New script and module: mktempd
60828         * MODULES.html.sh (maint+release support): Add mktempd.
60829         * build-aux/mktempd: New file.
60830         * modules/mktempd: New file.
60831
60832 2008-03-15  Jim Meyering  <meyering@redhat.com>
60833
60834         Undo last change.
60835         * lib/sha1.c, lib/md5.c: 63 != ~63.
60836         Reported by Andreas Schwab.
60837
60838         sha1.c, md5.c: Hoist a redundant expression.
60839         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60840         "ctx->buflen" only once, before calling *_process_block.
60841         * lib/md5.c (md5_process_bytes): Likewise.
60842
60843 2008-03-14  Eric Blake  <ebb9@byu.net>
60844
60845         Bump copyright year in files generated by gnulib-tool.
60846         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60847         gnulib-tool, rather than hard-coding it.
60848
60849         Fix 'gnulib-tool --version' output to work with git.
60850         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60851         (startup): ...here.
60852         (func_version): Use it to invoke git-version-gen, rather than
60853         relying on CVS keyword expansion.  Modernize wording.
60854         (cvsdatestamp, last_checkin_date, version): Kill unused
60855         variables.
60856
60857 2008-03-12  Jim Meyering  <meyering@redhat.com>
60858
60859         Recognize optional cast of the argument to free.
60860         * build-aux/useless-if-before-free: Update regexps.
60861
60862         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60863
60864 2008-03-11  Bruno Haible  <bruno@clisp.org>
60865
60866         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60867         by a single package.
60868         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60869         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60870         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60871         Reported by Sam Steingold <sds@gnu.org>.
60872
60873 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60874
60875         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60876         repositories.
60877
60878 2008-03-11  Bruno Haible  <bruno@clisp.org>
60879
60880         Avoid conflicts between local macro definitions.
60881         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60882         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60883
60884 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60885             Bruno Haible  <bruno@clisp.org>
60886
60887         Make va_copy work with some version of xlc on AIX 5.1.
60888         * lib/stdarg.in.h: New file.
60889         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60890         On AIX, use a <stdarg.h> file substitute.
60891         * modules/stdarg (Files): Add lib/stdarg.in.h.
60892         (Depends-on): Add include_next.
60893         (Makefile.am): Build a stdarg.h substitute if requested.
60894         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60895
60896 2008-03-10  Bruno Haible  <bruno@clisp.org>
60897
60898         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60899         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60900         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60901
60902 2008-03-10  Bruno Haible  <bruno@clisp.org>
60903
60904         * modules/stdlib (Depends-on): Add include_next, remove
60905         absolute-header.
60906
60907 2008-03-09  Bruno Haible  <bruno@clisp.org>
60908
60909         * lib/freadahead.h (freadahead): Document more precisely.
60910         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60911         the sum of both buffer sizes.
60912         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60913         * NEWS: Document the change.
60914
60915 2008-03-09  Bruno Haible  <bruno@clisp.org>
60916
60917         Extend freadptr to return also the buffer size.
60918         * lib/freadptr.h (freadptr): Add sizep argument.
60919         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60920         (freadptr): Add sizep argument. Determine buffer size like freadahead
60921         does.
60922         * tests/test-freadptr.c: Don't include freadahead.h.
60923         (main): Adapt for new calling convention of freadptr.
60924         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60925         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60926         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60927         tests/test-freadptr2.sh.
60928         (Depends): Remove freadahead.
60929         (TESTS): Add test-freadptr2.sh.
60930         (check_PROGRAMS): Add test-freadptr2.
60931
60932 2008-03-09  Bruno Haible  <bruno@clisp.org>
60933
60934         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60935         Report and solution by Simon Josefsson.
60936
60937 2008-03-06  Bruno Haible  <bruno@clisp.org>
60938
60939         Make fflush after ungetc work on BSD platforms.
60940         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60941         * tests/test-fflush2.c: New file.
60942         * tests/test-fflush2.sh: New file.
60943         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60944         tests/test-fflush2.c.
60945         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60946         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60947
60948 2008-03-06  Eric Blake  <ebb9@byu.net>
60949
60950         Likewise for ftello.
60951         * modules/ftello (Dependencies): Add extensions.
60952         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60953
60954 2008-03-06  Bruno Haible  <bruno@clisp.org>
60955
60956         * modules/fseeko (Dependencies): Add extensions.
60957         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60958         Needed on glibc systems.
60959
60960 2008-03-06  Bruno Haible  <bruno@clisp.org>
60961
60962         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60963         email address.
60964         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60965
60966 2008-03-06  Bruno Haible  <bruno@clisp.org>
60967
60968         * users.txt: Add libgnupdf.
60969
60970 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60971
60972         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60973         (Header File Substitutes, Function Substitutes,
60974         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60975         (Build robot for gnulib): Fix typo.
60976
60977 2008-03-06  Bruno Haible  <bruno@clisp.org>
60978
60979         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60980         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60981
60982 2008-03-06  Bruno Haible  <bruno@clisp.org>
60983
60984         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60985         * doc/gnulib.texi: Include it.
60986
60987 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60988
60989         * modules/func (License): Change license to unlimited; there was
60990         no LGPL parts in the module anyway.
60991
60992 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60993
60994         * modules/__func__: Renamed to modules/func.
60995         * modules/__func__-tests: Renamed to modules/func-tests.
60996         * tests/test-__func__.c: Renamed to tests/test-func.c.
60997         * m4/__func__.m4: Renamed to m4/func.m4.
60998         * doc/gnulib.texi (__func__): Section renamed to func.
60999         Suggested by Eric Blake <ebb9@byu.net>.
61000
61001 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61002
61003         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61004         about __func__.  Make example self-contained.  Suggested by Eric
61005         Blake <ebb9@byu.net>.
61006
61007         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61008         Suggested by Eric Blake <ebb9@byu.net>.
61009
61010 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61011
61012         * modules/__func__: New file.
61013         * modules/__func__-tests: New file.
61014         * tests/test-__func__.c: New file.
61015         * m4/__func__.m4: New file.
61016         * doc/gnulib.texi (__func__): Document __func__ module.
61017
61018 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61019
61020         * modules/byteswap (License): Re-license as LGPLv2+.
61021
61022 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61023
61024         * doc/Makefile: Add pdf target.
61025
61026 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61027
61028         * modules/inline (License): Use 'unlimited', since there are only
61029         *.m4 files in this module.
61030
61031 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61032             Bruno Haible  <bruno@clisp.org>
61033
61034         Add support for HP C 7.1 on OpenVMS 8.3.
61035         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61036
61037 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61038
61039         Update VMS specifics.
61040         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61041
61042 2008-03-02  Jim Meyering  <meyering@redhat.com>
61043
61044         Remove the last dependency on the "free" module.
61045         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61046         Reported by Bob Proulx.
61047
61048         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61049
61050         Remove useless "if" tests before free.  Deprecate "free" module.
61051         * doc/posix-functions/free.texi: Mention that this
61052         module is no longer useful.
61053         * modules/free (Notice): Say this module is obsolete.
61054         * modules/readutmp (Depends-on): Remove free.
61055         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61056         * lib/putenv.c (putenv): Likewise.
61057         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61058         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61059         * tests/test-c-strcasestr.c (main): Likewise.
61060         * tests/test-c-strstr.c (main): Likewise.
61061         * tests/test-mbscasestr1.c (main): Likewise.
61062         * tests/test-mbscasestr2.c (main): Likewise.
61063         * tests/test-mbsstr1.c (main): Likewise.
61064         * tests/test-mbsstr2.c (main): Likewise.
61065         * tests/test-memmem.c (main): Likewise.
61066         * tests/test-strcasestr.c (main): Likewise.
61067         * tests/test-striconv.c (main): Likewise.
61068         * tests/test-striconveh.c (main): Likewise.
61069         * tests/test-striconveha.c (main): Likewise.
61070         * tests/test-strstr.c (main): Likewise.
61071
61072         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61073
61074         bootstrap: sync from coreutils again
61075         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61076
61077 2008-03-01  Jim Meyering  <meyering@redhat.com>
61078
61079         bootstrap: sync from coreutils
61080         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61081         also when the target doesn't exist.
61082
61083 2008-03-01  Eric Blake  <ebb9@byu.net>
61084
61085         Fix bugs in last patch.
61086         * lib/memchr2.c (memchr2): Fix typo.
61087         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61088         extension.
61089         Reported by Bruce Korb.
61090
61091         New module 'memchr2'.
61092         * modules/memchr2: New file.
61093         * modules/memchr2-tests: Likewise.
61094         * lib/memchr2.h: Likewise.
61095         * lib/memchr2.c: Likewise, based on memchr.c.
61096         * tests/test-memchr2.c: New test.
61097         * MODULES.html.sh (String handling): Add memchr2.
61098
61099 2008-02-29  Bruno Haible  <bruno@clisp.org>
61100
61101         * modules/freadseek-tests: New file.
61102         * tests/test-freadseek.sh: New file.
61103         * tests/test-freadseek.c: New file.
61104
61105         New module 'freadseek'.
61106         * modules/freadseek: New file.
61107         * lib/freadseek.h: New file.
61108         * lib/freadseek.c: New file.
61109         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61110
61111 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61112
61113         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61114         wydawca.
61115
61116         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61117         program_invocation_name and program_invocation_short_name are
61118         present.
61119
61120 2008-02-28  Bruno Haible  <bruno@clisp.org>
61121
61122         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61123         * tests/test-freadptr.sh: Also test non-seekable stdin.
61124
61125 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61126
61127         * build-aux/bootstrap (source_base, m4_base)
61128         (doc_base, tests_base): New variables.
61129         (gnulib_tool_options): Do not hardcode base directories, use
61130         the above variables instead.
61131
61132 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61133
61134         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61135
61136 2008-02-28  Bruno Haible  <bruno@clisp.org>
61137
61138         * modules/freadptr-tests: New file.
61139         * tests/test-freadptr.sh: New file.
61140         * tests/test-freadptr.c: New file.
61141
61142         New module 'freadptr'.
61143         * modules/freadptr: New file.
61144         * lib/freadptr.h: New file.
61145         * lib/freadptr.c: New file.
61146         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61147
61148 2008-02-26  Karl Berry  <karl@freefriends.org>
61149
61150         Sync from Libtool:
61151         * libltdl/argz.c (argz_add, argz_count): New functions.
61152         * libltdl/argz.in.h: Declare them.
61153         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61154
61155 2008-02-22  Bruno Haible  <bruno@clisp.org>
61156
61157         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61158         is a pointer type.  Needed for HP-UX 10.
61159         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61160         * doc/posix-functions/gmtime_r.texi: Likewise.
61161         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61162
61163 2008-02-24  Bruno Haible  <bruno@clisp.org>
61164
61165         * modules/environ-tests: New file.
61166         * tests/test-environ.c: New file.
61167
61168         New module 'environ'.
61169         * modules/environ: New file.
61170         * lib/unistd.in.h (environ): New declaration.
61171         * m4/environ.m4: New file.
61172         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61173         after use.
61174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61175         HAVE_DECL_ENVIRON.
61176         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61177         HAVE_DECL_ENVIRON.
61178         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61179         wrong claim that 'environ' is missing on some systems.
61180         * modules/execute (Depends-on): Add environ.
61181         * lib/execute.c (environ): Remove fallback declaration.
61182         * modules/pipe (Depends-on): Add environ.
61183         * lib/pipe.c (environ): Remove fallback declaration.
61184         * modules/setenv (Depends-on): Add environ.
61185         * lib/setenv.c (environ): Remove fallback declaration.
61186         * modules/unsetenv (Depends-on): Add environ.
61187         * lib/unsetenv.c (environ): Remove fallback declaration.
61188         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61189         m4/environ.m4.
61190         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61191         (gl_PREREQ_UNSETENV): Likewise.
61192
61193 2008-02-24  Bruno Haible  <bruno@clisp.org>
61194
61195         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61196
61197 2008-02-20  Bob Proulx  <bob@proulx.com>
61198
61199         Enable use of older two part flavor 'git describe'.
61200         * build-aux/git-version-gen: If using the older two part flavor of
61201         git version then recreate the third part now present in the
61202         newer three part flavor of git describe.
61203
61204 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61205
61206         * lib/fts.c (fts_build): Typo correction to comment.
61207
61208 2008-02-17  Bruno Haible  <bruno@clisp.org>
61209
61210         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61211         generating no-op conflicts.
61212
61213 2008-02-17  Bruno Haible  <bruno@clisp.org>
61214
61215         Speed up by 10%.
61216         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61217         result_entries, rather than an index-based loop.
61218
61219 2008-02-17  Bruno Haible  <bruno@clisp.org>
61220
61221         Speed up by 25%.
61222         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61223         'hashcode_cached'.
61224         (entry_create): New function.
61225         (entry_hashcode): Use the cached hashcode if possible.
61226         (read_changelog_file, try_split_merged_entry): Use entry_create.
61227
61228 2008-02-17  Bruno Haible  <bruno@clisp.org>
61229
61230         Speed up from O(n^2) to O(n) for long ChangeLog files.
61231         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61232         (read_changelog_file): Change implementation of entries_reversed list
61233         to rbtreehash.
61234         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61235
61236 2008-02-17  Bruno Haible  <bruno@clisp.org>
61237
61238         New option --split-merged-entry.
61239         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61240         (find_paragraph_end, try_split_merged_entry): New functions.
61241         (long_options): Add option --split-merged-entry.
61242         (usage): Document option --split-merged-entry.
61243         (main): Implement option --split-merged-entry.
61244         Reported by Eric Blake.
61245
61246 2008-02-17  Bruno Haible  <bruno@clisp.org>
61247
61248         * lib/git-merge-changelog.c: Include c-strstr.h.
61249         (main): Support the "git pull --rebase" situation.
61250         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61251         Reported by Eric Blake.
61252
61253 2008-02-16  Eric Blake  <ebb9@byu.net>
61254
61255         Avoid doubling \ in common case of "c-maybe" quoting style.
61256         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61257         eliding outer quotes.
61258         * lib/quotearg.h: Document this.
61259         * tests/test-quotearg.c (result_strings, inputs, results_g)
61260         (flag_results, locale_results): Test it by adding a new string to
61261         each test group.
61262         (compare_strings): Test new string.
61263
61264 2008-02-13  Eric Blake  <ebb9@byu.net>
61265
61266         Avoid trigraph quoting in default output.
61267         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61268         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61269         unless explicitly requested.
61270         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61271
61272 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61273
61274         Don't rely on signed integer overflowing to negative value.
61275         * lib/getugroups.c (getugroups): Include <limits.h>.
61276         Instead, compare against INT_MAX, and increment only if the test passes.
61277
61278 2008-02-13  Jim Meyering  <meyering@redhat.com>
61279         and Eric Blake  <ebb9@byu.net>
61280
61281         Avoid shadowing warning and compile errors on Linux.
61282         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61283         forwarding macros on Linux.
61284         (dcgettext): Define a stub, for Linux.
61285         (results_g, main): Avoid warnings.
61286
61287 2008-02-12  Eric Blake  <ebb9@byu.net>
61288
61289         Silence warning in last patch.
61290         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61291
61292         Quotearg part 4: add tests, fix c-maybe colon quoting.
61293         * lib/quotearg.h: Improve documentation.
61294         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61295         escapes when adding outer quotes.  When quoting trigraphs, use
61296         valid C notation.  When quoting NUL, omit extra characters if next
61297         character is not digit.  Alter prototype.
61298         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61299         callers.
61300         * modules/quotearg-tests: New module.
61301         * tests/test-quotearg.c: New test.
61302
61303 2008-02-07  Eric Blake  <ebb9@byu.net>
61304
61305         Quotearg part 3: add flag to control outer quote elision.
61306         * lib/quotearg.h (c_maybe_quoting_style): New style.
61307         (enum quoting_flags): Better documentation of flags.
61308         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61309         c-maybe style.
61310         (quotearg_buffer_restyled): Handle new flag to elide outer
61311         quotes.
61312
61313         Quotearg part 2: add flag that can control NUL elision.
61314         * lib/quotearg.h (set_quoting_flags): New prototype.
61315         * lib/quotearg.c (struct quoting_options): Add flag field.
61316         (set_quoting_flags): New function.
61317         (quotearg_buffer_restyled): Add flags parameter.
61318         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61319         (quotearg_n_options): Set the flag, since length cannot be
61320         returned.
61321         (quoting_options_from_style): Default flags correctly.
61322
61323         Quotearg part 1: more wrappers, restore quotearg_char state.
61324         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61325         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61326         (quotearg_colon_mem): New wrappers.
61327         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61328         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61329         functions.
61330         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61331         (quotearg_colon_mem): New functions.
61332
61333 2008-02-11  Bruno Haible  <bruno@clisp.org>
61334
61335         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61336         library in the current directory: it does not work with parallel make.
61337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61338
61339 2008-02-11  Bruno Haible  <bruno@clisp.org>
61340
61341         * .gitattributes: New file.
61342
61343 2008-02-11  Jim Meyering  <meyering@redhat.com>
61344
61345         useless-if-before-free: Fix reversed exit values.
61346         * build-aux/useless-if-before-free: Use correct values
61347         for EXIT_MATCH and EXIT_NO_MATCH.
61348
61349         * build-aux/useless-if-before-free: Close stdout carefully.
61350
61351 2008-02-10  Bruno Haible  <bruno@clisp.org>
61352
61353         New module 'git-merge-changelog'.
61354         * modules/git-merge-changelog: New file.
61355         * lib/git-merge-changelog.c: New file.
61356
61357 2008-02-10  Jim Meyering  <meyering@redhat.com>
61358
61359         useless-if-before-free: New option: --list (-l).
61360
61361         useless-if-before-free: Don't exit immediately upon open failure.
61362         * build-aux/useless-if-before-free: Exit 2 for errors.
61363         Upon failure to open a file, don't exit immediately.
61364         Rather, just warn and continue with any remaining files.
61365
61366 2008-02-10  Bruno Haible  <bruno@clisp.org>
61367
61368         New abstract list operation 'node_set_value'.
61369         * lib/gl_list.h (gl_list_node_set_value): New function.
61370         (struct gl_list_implementation): New field node_set_value.
61371         * lib/gl_list.c (gl_list_node_set_value): New function.
61372         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61373         (gl_array_list_implementation): Update.
61374         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61375         (gl_carray_list_implementation): Update.
61376         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61377         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61378         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61379         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61380         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61381         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61382         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61383         Update.
61384         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61385         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61386         (gl_sublist_list_implementation): Update.
61387
61388 2008-02-10  Bruno Haible  <bruno@clisp.org>
61389
61390         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61391         Needed when ELEMENT is #defined to 'some_type *'.
61392
61393 2008-02-10  Jim Meyering  <meyering@redhat.com>
61394
61395         New script and module: useless-if-before-free
61396         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61397         * build-aux/useless-if-before-free: New file.
61398         * modules/useless-if-before-free: New file.
61399
61400         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61401
61402         xstrtol_error: Fix typo.
61403         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61404         s/exit_failure/exit_status/.
61405
61406 2008-02-09  Jim Meyering  <meyering@redhat.com>
61407
61408         New script and module: gitlog-to-changelog
61409         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61410         * modules/gitlog-to-changelog: New file.
61411         * build-aux/gitlog-to-changelog: New file.
61412
61413 2008-02-08  Jim Meyering  <meyering@redhat.com>
61414
61415         Avoid two "parameter unused" warnings.
61416         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61417         Mark "st" as used.
61418
61419         Use "git COMMAND", not "git-COMMAND".
61420         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61421         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61422         * build-aux/git-version-gen: Use "git status", not "git-status".
61423
61424 2008-02-07  Bruno Haible  <bruno@clisp.org>
61425
61426         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61427         Avoids a crash on Windows Vista.
61428         Reported by Adam Strzelecki <ono@java.pl> via
61429         Simon Josefsson <simon@josefsson.org>.
61430
61431 2008-02-06  Bruno Haible  <bruno@clisp.org>
61432
61433         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61434         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61435         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61437         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61438         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61439         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61440         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61441         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61442         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61445         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61446         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61447         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61448         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61449         left-adjust flag.
61450         * tests/test-snprintf-posix.h (test_function): Likewise.
61451         * tests/test-sprintf-posix.h (test_function): Likewise.
61452         * tests/test-vasprintf-posix.c (test_function): Likewise.
61453         * doc/posix-functions/fprintf.texi: Update.
61454         * doc/posix-functions/printf.texi: Update.
61455         * doc/posix-functions/snprintf.texi: Update.
61456         * doc/posix-functions/sprintf.texi: Update.
61457         * doc/posix-functions/vfprintf.texi: Update.
61458         * doc/posix-functions/vprintf.texi: Update.
61459         * doc/posix-functions/vsnprintf.texi: Update.
61460         * doc/posix-functions/vsprintf.texi: Update.
61461         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61462
61463 2008-02-06  Bruno Haible  <bruno@clisp.org>
61464
61465         Fix bug introduced on 2008-01-26.
61466         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61467
61468 2008-02-06  Bruno Haible  <bruno@clisp.org>
61469
61470         Fix bug introduced on 2007-06-10.
61471         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61472         !NEED_PRINTF_FLAG_ZERO.
61473
61474 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61475
61476         getloadavg: use libperfstat on AIX5
61477         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61478
61479 2008-02-03  Bruno Haible  <bruno@clisp.org>
61480
61481         * lib/diffseq.h: Add comments about required #includes.
61482         Reported by Michael Biggs <gnulib@doubleplum.net>.
61483
61484 2008-02-01  Bruno Haible  <bruno@clisp.org>
61485
61486         * users.txt: Add gnuit.
61487
61488 2008-01-31  Bruno Haible  <bruno@clisp.org>
61489
61490         * lib/md4.c (set_uint32): Mark as inline.
61491         * lib/md5.c (set_uint32): Likewise.
61492         * lib/sha1.c (set_uint32): Likewise.
61493         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61494         * m4/md5.m4 (gl_MD5): Likewise.
61495         * m4/sha1.m4 (gl_SHA1): Likewise.
61496
61497 2008-01-31  Jim Meyering  <meyering@redhat.com>
61498
61499         Use "sizeof VAR", rather than a literal "4".
61500         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61501         * lib/md4.c (md4_read_ctx): Likewise.
61502         * lib/sha1.c (sha1_read_ctx): Likewise.
61503
61504 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61505
61506         * tests/test-sha1.c: New file, based on test-md5.c.
61507
61508         * modules/crypto/sha1-tests: New file.
61509
61510 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61511
61512         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61513
61514 2008-01-31  Jim Meyering  <meyering@redhat.com>
61515
61516         Prefer "sizeof v" over the equivalent "4".
61517         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61518         * lib/md5.c (set_uint32): Likewise.
61519         * lib/sha1.c (set_uint32): Likewise.
61520
61521 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61522
61523         * lib/sha1.c (set_uint32): Mark function as static.
61524
61525 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61526
61527         md2: clarify comments to say that alignment is not required.
61528         * lib/md2.h: Remove warning about alignment in comment.
61529         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61530         never been required.
61531
61532 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61533
61534         md4: adapt alignment constraint fix from sha1.
61535         * lib/md4.c (set_uint32): New function, from sha1.c
61536         (md4_read_ctx): Use it.
61537         (md4_finish_ctx): Doc fix.
61538         * lib/md4.h: Doc fix.
61539
61540 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61541
61542         md5: adapt alignment constraint fix from sha1.
61543         * lib/md5.c (set_uint32): New function, from sha1.c
61544         (md5_read_ctx): Use it.
61545         (md5_finish_ctx): Doc fix.
61546         * lib/md5.h: Doc fix.
61547
61548 2008-01-30  Peter Palfrader  <weasel@debian.org>
61549
61550         sha1: remove the result buffer alignment constraint
61551         * lib/sha1.c (set_uint32): New function.
61552         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61553         constraint.
61554         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61555         * lib/sha1.h: Likewise.
61556
61557 2008-01-30  Andreas Schwab  <schwab@suse.de>
61558             Bruno Haible  <bruno@clisp.org>
61559
61560         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61561         correct definition of LDBL_MIN_EXP.
61562
61563 2008-01-30  Karl Berry  <karl@gnu.org>
61564
61565         * config/srclist-update: try to preserve x bit on updates.
61566         * config/srclistvars.sh: update for karl.
61567
61568 2008-01-29  Jim Meyering  <meyering@redhat.com>
61569
61570         vasnprintf.c: Avoid warning about unused label
61571         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61572         "overflow" label definition and associated code with the
61573         same cpp condition that guards the sole use of that label.
61574
61575 2008-01-26  Bruno Haible  <bruno@clisp.org>
61576
61577         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61578         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61579         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61580         * lib/isnanl-nolibm.h (isnanl): Likewise.
61581         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61582
61583 2008-01-26  Bruno Haible  <bruno@clisp.org>
61584
61585         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61586         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61587
61588 2008-01-26  Bruno Haible  <bruno@clisp.org>
61589
61590         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61591         GCC >= 4.0 built-in.
61592         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61593
61594 2008-01-26  Bruno Haible  <bruno@clisp.org>
61595
61596         Rename isnan, applicable to 'double' only, to isnand.
61597         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61598         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61599         (configure.ac): Update.
61600         (Include): Replace "isnan.h" with "isnand.h".
61601         * m4/isnand.m4: Renamed from m4/isnan.m4.
61602         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61603         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61604         instead of isnan.c.
61605         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61606         instead of HAVE_ISNAN_IN_LIBC.
61607         (isnand): Renamed from isnan.
61608         * lib/isnand.c: New file.
61609         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61610         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61611         (Makefile.am): Update.
61612         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61613         Include isnand.h instead of isnan.h.
61614         (main): Test isnand instead of isnan.
61615         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61616         isnan-nolibm.
61617         * modules/frexp (Depends-on): Likewise.
61618         * modules/frexp-tests (Depends-on): Likewise.
61619         * modules/frexp-nolibm (Depends-on): Likewise.
61620         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61621         * modules/isfinite (Depends-on): Likewise.
61622         * modules/round-tests (Depends-on): Likewise.
61623         * modules/signbit (Depends-on): Likewise.
61624         * modules/signbit-tests (Depends-on): Likewise.
61625         * modules/snprintf-posix (Depends-on): Likewise.
61626         * modules/sprintf-posix (Depends-on): Likewise.
61627         * modules/trunc-tests (Depends-on): Likewise.
61628         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61629         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61630         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61631         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61632         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61633         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61634         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61635         * modules/vasnprintf-posix (Depends-on): Likewise.
61636         * modules/vasprintf-posix (Depends-on): Likewise.
61637         * modules/vfprintf-posix (Depends-on): Likewise.
61638         * modules/vsnprintf-posix (Depends-on): Likewise.
61639         * modules/vsprintf-posix (Depends-on): Likewise.
61640         * lib/frexp.c: Include isnand.h instead of isnan.h.
61641         (ISNAN): Set to isnand instead of isnan.
61642         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61643         (gl_isfinited): Use isnand instead of isnan.
61644         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61645         (gl_signbitd): Use isnand instead of isnan.
61646         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61647         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61648         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61649         (main): Use isnand instead of isnan.
61650         * tests/test-round1.c: Include isnand.h.
61651         (main): Use isnand instead of isnan.
61652         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61653         (ISNAN): Set to isnand instead of isnan.
61654         * tests/test-trunc1.c: Include isnand.h.
61655         (main): Use isnand instead of isnan.
61656         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61657         (equal): Use isnand instead of isnan.
61658         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61659         isnand-nolibm.
61660         * NEWS: Mention the change.
61661
61662 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61663             Bruno Haible  <bruno@clisp.org>
61664
61665         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61666         the GCC builtins for signbits are present and set
61667         REPLACE_SIGNBIT_USING_GCC if so.
61668         * lib/math.in.h (signbit): Define using GCC builtins if
61669         REPLACE_SIGNBIT_USING_GCC is set.
61670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61671         REPLACE_SIGNBIT_USING_GCC.
61672         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61673
61674 2008-01-25  Jim Meyering  <meyering@redhat.com>
61675
61676         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61677         * lib/poll.c: Include <config.h>, not "config.h".
61678         * tests/test-getaddrinfo.c: Likewise.
61679
61680 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61681
61682         * modules/sockets-tests: New file.
61683
61684 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61685
61686         * modules/sockets: New module, can be used to call WSA_Startup and
61687         WSA_Cleanup when needed.
61688
61689         * lib/sockets.h, lib/sockets.c: New files.
61690
61691         * m4/sockets.m4: New file.
61692
61693         * tests/test-sockets.c: New file.
61694
61695 2008-01-19  Bruno Haible  <bruno@clisp.org>
61696
61697         * doc/posix-headers: Renamed from doc/headers.
61698         * doc/posix-functions: Renamed from doc/functions.
61699         * doc/gnulib.texi: Update.
61700
61701 2008-01-19  Bruno Haible  <bruno@clisp.org>
61702
61703         * doc/glibc-functions/strcasestr.texi: Include contents of
61704         doc/functions/strcasestr.texi, fixing the list of platforms.
61705         * doc/functions/strcasestr.texi: Remove file.
61706
61707 2008-01-19  Bruno Haible  <bruno@clisp.org>
61708
61709         * doc/glibc-functions/memmem.texi: Include contents of
61710         doc/functions/memmem.texi.
61711         * doc/functions/memmem.texi: Remove file.
61712
61713 2008-01-18  Bruno Haible  <bruno@clisp.org>
61714
61715         * doc/glibc-functions/*.texi: New files.
61716         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61717         to use the new files.
61718
61719 2008-01-17  Bruno Haible  <bruno@clisp.org>
61720
61721         * tests/test-gethostname.c (main): Fix printf statement.
61722
61723 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61724
61725         * modules/gethostname-tests: New file.
61726
61727         * tests/test-gethostname.c: New file.
61728
61729 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61730
61731         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61732         used by the UNAME case.  Reported by Bruno Haible
61733         <bruno@clisp.org>.
61734
61735 2008-01-17  Eric Blake  <ebb9@byu.net>
61736
61737         Convert c-strcasestr to be more efficient.
61738         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61739         (Depends-on): Add c-strcase, remove malloca, strnlen.
61740         * tests/test-c-strcasestr.c (main): Enhance test.
61741         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61742
61743 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61744
61745         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61746         Use it in creating po/Makevars.
61747
61748 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61749
61750         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61751         Applications that requires it should initialize libgcrypt
61752         manually.
61753
61754 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61755
61756         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61757
61758 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         Fix problem with getdate on mingw32 reported by Simon Josefsson
61761         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61762         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61763         tzname", when deciding whether to declare tzname.
61764         * lib/strftime.c (tzname): Likewise.
61765
61766 2008-01-15  Bruno Haible  <bruno@clisp.org>
61767
61768         Work around a MacOS X 10.5 bug in frexpl().
61769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61770         * doc/functions/frexpl.texi: Document the bug.
61771         Reported by Elias Pipping <pipping@gentoo.org>.
61772
61773 2008-01-14  Eric Blake  <ebb9@byu.net>
61774
61775         Touch up previous patch.
61776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61777         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61778
61779         Convert strcasestr module to use Two-Way algorithm.
61780         * modules/strcasestr-simple: New module, based on the old
61781         strcasestr, but with Two-Way rather than KMP.
61782         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61783         * lib/string.in.h (rpl_strcasestr): Declare.
61784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61785         performance.
61786         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61787         * modules/string (Makefile.am): Support strcasestr.
61788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61789         * modules/strcasestr-tests (Depends-on): Check for alarm.
61790         * tests/test-strcasestr.c: Augment test.
61791         * lib/str-two-way.h: Clean up stray macro.
61792         * NEWS: Document new module.
61793         * MODULES.html.sh (string handling): Likewise.
61794         * doc/functions/strcasestr.texi: New file.
61795         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61796         here, since it is not a POSIX function.
61797
61798 2008-01-14  Colin Watson  <cjwatson@debian.org>
61799             Bruno Haible  <bruno@clisp.org>
61800
61801         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61802         works fine; if not, set REPLACE_STRSIGNAL.
61803         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61805         REPLACE_STRSIGNAL.
61806         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61807         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61808         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61809
61810 2008-01-14  Bruno Haible  <bruno@clisp.org>
61811
61812         * modules/strsignal (Include): Change to <string.h>.
61813
61814 2008-01-14  Colin Watson  <cjwatson@debian.org>
61815
61816         * modules/argp (Notice): Add a notice recommending to change
61817         XGETTEXT_OPTIONS.
61818         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61819
61820 2008-01-13  Colin Watson  <cjwatson@debian.org>
61821
61822         * modules/strsignal-tests: New file.
61823         * tests/test-strsignal.c: New file.
61824
61825         * lib/strsignal.c: New file, from glibc with modifications.
61826         * lib/siglist.h: New file, from glibc with modifications.
61827         * lib/string.in.h (strsignal): New declaration.
61828         * m4/strsignal.m4: New file.
61829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61830         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61831         * modules/strsignal: New file.
61832         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61833         HAVE_DECL_STRSIGNAL.
61834
61835 2008-01-13  Bruno Haible  <bruno@clisp.org>
61836
61837         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61838         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61839         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61840         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61841
61842 2008-01-13  Bruno Haible  <bruno@clisp.org>
61843
61844         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61845         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61846         * lib/argp.h (__attribute__): Likewise.
61847         * lib/c-stack.c (__attribute__): Likewise.
61848         * lib/error.h (__attribute__): Likewise.
61849         * lib/fts.c (__attribute__): Likewise.
61850         * lib/openat.h (__attribute__): Likewise.
61851         * lib/stdio.in.h (__attribute__): Likewise.
61852         * lib/string.in.h (__attribute__): Likewise.
61853         * lib/utimens.c (__attribute__): Likewise.
61854         * lib/vasnprintf.h (__attribute__): Likewise.
61855         * lib/xalloc.h (__attribute__): Likewise.
61856         * lib/xprintf.h (__attribute__): Likewise.
61857         * lib/xstrtol.h (__attribute__): Likewise.
61858         * lib/xvasprintf.h (__attribute__): Likewise.
61859
61860 2008-01-12  Bruno Haible  <bruno@clisp.org>
61861
61862         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61863         * doc/glibc-headers/a.out.texi: New file.
61864         * doc/glibc-headers/aliases.texi: New file.
61865         * doc/glibc-headers/alloca.texi: New file.
61866         * doc/glibc-headers/ar.texi: New file.
61867         * doc/glibc-headers/argp.texi: New file.
61868         * doc/glibc-headers/argz.texi: New file.
61869         * doc/glibc-headers/byteswap.texi: New file.
61870         * doc/glibc-headers/crypt.texi: New file.
61871         * doc/glibc-headers/endian.texi: New file.
61872         * doc/glibc-headers/envz.texi: New file.
61873         * doc/glibc-headers/err.texi: New file.
61874         * doc/glibc-headers/error.texi: New file.
61875         * doc/glibc-headers/execinfo.texi: New file.
61876         * doc/glibc-headers/fpu_control.texi: New file.
61877         * doc/glibc-headers/fstab.texi: New file.
61878         * doc/glibc-headers/fts.texi: New file.
61879         * doc/glibc-headers/getopt.texi: New file.
61880         * doc/glibc-headers/ieee754.texi: New file.
61881         * doc/glibc-headers/ifaddrs.texi: New file.
61882         * doc/glibc-headers/libintl.texi: New file.
61883         * doc/glibc-headers/mcheck.texi: New file.
61884         * doc/glibc-headers/mntent.texi: New file.
61885         * doc/glibc-headers/obstack.texi: New file.
61886         * doc/glibc-headers/paths.texi: New file.
61887         * doc/glibc-headers/printf.texi: New file.
61888         * doc/glibc-headers/pty.texi: New file.
61889         * doc/glibc-headers/resolv.texi: New file.
61890         * doc/glibc-headers/shadow.texi: New file.
61891         * doc/glibc-headers/sysexits.texi: New file.
61892         * doc/glibc-headers/ttyent.texi: New file.
61893
61894 2008-01-12  Jim Meyering  <meyering@redhat.com>
61895
61896         announce-gen: emit Gnulib's git-based version string.
61897         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61898         New option --gnulib-version=V, where V is expected to be
61899         the output of running git describe in the gnulib directory.
61900         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61901         not useful, and plan to stop publishing an xdelta file with each
61902         coreutils release.
61903
61904         * build-aux/announce-gen: Also check for lzma-compressed files.
61905
61906 2008-01-11  Bruno Haible  <bruno@clisp.org>
61907
61908         * tests/test-memmem.c (main): Increase maximum allowed time.
61909         * tests/test-strstr.c (main): Likewise.
61910
61911 2008-01-11  Bruno Haible  <bruno@clisp.org>
61912
61913         * doc/functions/memmem.texi: Add more precisions about platforms.
61914         * doc/functions/strstr.texi: Likewise.
61915
61916 2008-01-10  Eric Blake  <ebb9@byu.net>
61917
61918         * m4/strstr.m4: Delete cruft from copy-n-paste.
61919         Reported by Bruno Haible.
61920
61921 2008-01-10  Bruno Haible  <bruno@clisp.org>
61922
61923         Make c-strstr rely on strstr.
61924         * lib/c-strstr.c: Don't include str-kmp.h.
61925         (c_strstr): Define in terms of strstr.
61926         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61927         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61928
61929 2008-01-10  Bruno Haible  <bruno@clisp.org>
61930
61931         * doc/gnulib.texi (String Functions in C Locale): New section.
61932         * doc/c-ctype.texi: New file.
61933         * doc/c-strcase.texi: New file.
61934         * doc/c-strcaseeq.texi: New file.
61935         * doc/c-strcasestr.texi: New file.
61936         * doc/c-strstr.texi: New file.
61937         * doc/c-strtod.texi: New file.
61938         * doc/c-strtold.texi: New file.
61939
61940 2008-01-10  Eric Blake  <ebb9@byu.net>
61941
61942         * lib/relocatable.h: Fix a comment.
61943
61944 2008-01-10  Eric Blake  <ebb9@byu.net>
61945
61946         Share two-way algorithm.
61947         * lib/str-two-way.h: New file, merged from...
61948         * lib/memmem.c: ...here...
61949         * lib/strstr.c: ...and here.
61950         * modules/memmem (Files): Use it.
61951         * modules/strstr (Files): Likewise.
61952
61953         Avoid quadratic strstr implementations.
61954         * lib/strstr.c: New file.
61955         * m4/strstr.m4: Likewise.
61956         * modules/strstr: Likewise.
61957         * modules/strstr-tests: Likewise.
61958         * tests/test-strstr.c: Likewise.
61959         * lib/string.in.h (rpl_strstr): Declare.
61960         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61962         * modules/string (Makefile.am): Likewise.
61963         * MODULES.html.sh (string handling): Mention new module.
61964         * doc/functions/strstr.texi (strstr): Document the bug.
61965
61966 2008-01-10  Bruno Haible  <bruno@clisp.org>
61967
61968         * lib/relocatable.h (relocate): State whether result is freshly
61969         allocated or not.
61970         * lib/relocatable.c (relocate): Return a freshly allocated string
61971         instead of a pointer to a privately held string.
61972         Reported by Sylvain Beucler <beuc@gnu.org>.
61973
61974 2008-01-10  Colin Watson  <cjwatson@debian.org>
61975
61976         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61977         s/S_ISNLK/S_ISLNK/.
61978
61979 2008-01-09  Bruno Haible  <bruno@clisp.org>
61980
61981         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61982         and other files.
61983         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61984         if it's only a guess.
61985         * modules/memmem: Simplify by depending on memmem-simple.
61986
61987 2008-01-09  Bruno Haible  <bruno@clisp.org>
61988
61989         Work around OpenBSD 4.0 tdelete() bug.
61990         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61991         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61992         macros and don't redefine the enum values.
61993         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61994         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61995         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61996
61997 2008-01-09  Bruno Haible  <bruno@clisp.org>
61998
61999         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62000         (main): Don't perform the tests if setlocale did not install a UTF-8
62001         locale. Needed on OpenBSD 4.0.
62002         * modules/wcwidth-tests (Depends-on): Add localcharset.
62003
62004 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62007         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62008         * NEWS: announce this.
62009         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62010
62011 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62012         and Eric Blake  <ebb9@byu.net>
62013
62014         Add memmem-simple module.
62015         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62016         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62017         * modules/memmem-simple: New file.
62018         * modules/memmem (Description): Tweak.
62019         * MODULES.html.sh (string handling): Mention new module.
62020         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62021         addressed by memmem-simple.
62022         * NEWS: Document the difference.
62023
62024 2008-01-09  Eric Blake  <ebb9@byu.net>
62025
62026         Give gcc some memmem optimization hints.
62027         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62028         (strcasestr): Declare as pure.
62029         * modules/memmem (Maintainer): Claim my implementation.
62030
62031 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62032
62033         Support AIX 6.1 and higher.
62034         * build-aux/config.libpath: Likewise.
62035         * build-aux/config.rpath: Likewise.
62036
62037 2008-01-08  Jim Meyering  <meyering@redhat.com>
62038             Bruno Haible  <bruno@clisp.org>
62039
62040         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62041         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62042         Reported by Peter Fales in
62043         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62044
62045 2008-01-08  Bruno Haible  <bruno@clisp.org>
62046
62047         * modules/unictype/category-of (Depends-on): Add
62048         unictype/category-none.
62049         * modules/unictype/category-and-tests (Depends-on): Add
62050         unictype/category-{L,N,Lu,Nd}.
62051         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62052         * modules/unictype/category-or-tests (Depends-on): Add
62053         unictype/category-{L,N}.
62054         * modules/unictype/category-name-tests (Depends-on): Add
62055         unictype/category-{Z,Nl}.
62056         Reported by Simon Josefsson.
62057
62058 2008-01-08  Bruno Haible  <bruno@clisp.org>
62059
62060         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62061         convention better.
62062         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62063         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62064         Reported by Peter Miller <millerp@canb.auug.org.au>.
62065
62066 2008-01-08  Eric Blake  <ebb9@byu.net>
62067
62068         Rewrite memmem to guarantee linear complexity without malloc.
62069         * lib/memmem.c (memmem): Use Two-Way rather than
62070         Knuth-Morris-Pratt, to allow O(1) space usage.
62071         (critical_factorization, two_way_short_needle)
62072         (two_way_long_needle): New functions.
62073         (knuth_morris_pratt): Delete.
62074         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62075         Add stdint.
62076         * tests/test-memmem.c (main): Add tests for periodic needle and
62077         sublinear performance.
62078         * doc/functions/memmem.texi (memmem): Document other deficiencies
62079         in cygwin and older glibc.
62080
62081 2008-01-08  Bruno Haible  <bruno@clisp.org>
62082
62083         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62084         augmentation.
62085
62086 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62087
62088         Add a configure time option: --disable-acl.
62089         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62090         AC_ARG_ENABLE(acl).
62091
62092 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62093
62094         * tests/test-localename.c: Don't include obsolete "setenv.h".
62095
62096         * modules/localename-tests (Depends-on): Need unsetenv.
62097
62098 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62099
62100         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62101
62102 2008-01-06  Colin Watson  <cjwatson@debian.org>
62103
62104         * users.txt: Add man-db.
62105
62106 2008-01-07  Bruno Haible  <bruno@clisp.org>
62107
62108         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62109         previous section name.
62110
62111 2008-01-07  Bruno Haible  <bruno@clisp.org>
62112
62113         * lib/progname.c (set_program_name): Don't strip off a leading
62114         "lt-" prefix outside a .libs directory.
62115         Suggested by Paul Eggert.
62116
62117 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62118             Bruno Haible  <bruno@clisp.org>
62119
62120         Improve memory cleanup in 'relocatable' module.
62121         * lib/relocatable.h (compute_curr_prefix): Change return type to
62122         'char *'.
62123         * lib/relocatable.c (compute_curr_prefix): Change return type to
62124         'char *'. Free curr_installdir after use.
62125         (relocate): Free curr_prefix_better after use.
62126         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62127
62128 2008-01-01  Bruno Haible  <bruno@clisp.org>
62129
62130         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62131         failure on older glibc systems.
62132         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62133
62134 2008-01-05  Eric Blake  <ebb9@byu.net>
62135
62136         Avoid quadratic system memmem.
62137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62138         Reported by Ralf Wildenhues.
62139
62140         Fix memmem test for mingw.
62141         * modules/memmem-tests (configure.ac): Check for alarm.
62142         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62143         it.
62144         * doc/functions/memmem.texi: New file.
62145         * doc/gnulib.texi (Function Substitutes): Add memmem.
62146         Reported by Bruno Haible.
62147
62148 2008-01-04  Bruno Haible  <bruno@clisp.org>
62149
62150         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62151         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62152         gl_HEADER_STRING_H_DEFAULTS.
62153
62154 2008-01-04  Eric Blake  <ebb9@byu.net>
62155
62156         Shorten duration of memmem test.
62157         * tests/test-memmem.c (main): Use alarm to declare failure if test
62158         is taking too long.
62159         Reported by Ralf Wildenhues.
62160
62161 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62162
62163         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62164         string, needed by strerror.
62165
62166 2008-01-03  Colin Watson  <cjwatson@debian.org>
62167             Bruno Haible  <bruno@clisp.org>
62168
62169         * doc/gnulib-tool.texi (Localization): New section.
62170
62171 2008-01-02  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62174         variables to 'unsigned char *' type.
62175         Reported by Paul Eggert.
62176
62177 2008-01-02  Jim Meyering  <jim@meyering.net>
62178
62179         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62180
62181 2007-12-31  Jim Meyering  <jim@meyering.net>
62182
62183         Avoid use of private FTS type name.
62184         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62185
62186 2007-12-30  Karl Berry  <karl@gnu.org>
62187
62188         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62189         work around defect in Texinfo and/or the standalone Info browser.
62190
62191 2007-12-30  Bruno Haible  <bruno@clisp.org>
62192
62193         Unify 5 copies of the KMP code.
62194         * lib/str-kmp.h: New file.
62195         * lib/c-strcasestr.c: Include str-kmp.h.
62196         (knuth_morris_pratt): Remove function.
62197         (c_strcasestr): Update.
62198         * lib/c-strstr.c: Include str-kmp.h.
62199         (knuth_morris_pratt): Remove function.
62200         (c_strcasestr): Update.
62201         * lib/mbscasestr.c: Include str-kmp.h.
62202         (knuth_morris_pratt_unibyte): Remove function.
62203         * lib/mbsstr.c: Include str-kmp.h.
62204         (knuth_morris_pratt_unibyte): Remove function.
62205         * lib/strcasestr.c: Include str-kmp.h.
62206         (knuth_morris_pratt): Remove function.
62207         (strcasestr): Update.
62208         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62209         * modules/c-strstr (Files): Likewise.
62210         * modules/mbscasestr (Files): Likewise.
62211         * modules/mbsstr (Files): Likewise.
62212         * modules/strcasestr (Files): Likewise.
62213         Suggested by Paul Eggert.
62214
62215 2007-12-30  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62218         defined.
62219
62220 2007-12-30  Bruno Haible  <bruno@clisp.org>
62221
62222         * lib/xmalloca.h: Include xalloc.h.
62223         (xnmalloca): New macro.
62224
62225 2007-12-30  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/malloca.h (nmalloca): New macro.
62228         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62229         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62230         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62231         knuth_morris_pratt_multibyte): Likewise.
62232         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62233         knuth_morris_pratt_multibyte): Likewise.
62234         * lib/memmem.c (knuth_morris_pratt): Likewise.
62235         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62236
62237 2007-12-25  Bruno Haible  <bruno@clisp.org>
62238
62239         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62240         * lib/glob.c: Don't include openat.h.
62241         (link_exists2_p): Add back the code that deals with the
62242         !GLOB_ALTDIRFUNC case.
62243         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62244         let it do the filename concatenation.
62245         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62246         * modules/glob (Depends-on): Remove openat.
62247
62248 2007-12-31  Bruno Haible  <bruno@clisp.org>
62249
62250         * modules/dirfd (License): Change to LGPLv2+.
62251         Approved by Jim Meyering.
62252
62253 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62254
62255         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62256         when multiplying M by sizeof (size_t).
62257
62258 2007-12-10  Martin Lambers  <marlam@marlam.de>
62259
62260         Override getpagesize on mingw.
62261         * lib/getpagesize.c: New file.
62262         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62263         * modules/getpagesize (Files): Add lib/getpagesize.c.
62264         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62266         REPLACE_GETPAGESIZE.
62267         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62268
62269 2007-12-25  Bruno Haible  <bruno@clisp.org>
62270
62271         * modules/localcharset (Notice): New field.
62272         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62273         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62274
62275 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62276             Bruno Haible  <bruno@clisp.org>
62277
62278         Avoid using the syntax symbol() in formatted documentation.
62279         * MODULES.html.sh (func_module): When replacing symbol() with a
62280         hyperlink, remove the parentheses. Show an error if some remain.
62281         Recognize and render the '...' syntax.
62282         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62283         Rework. Add paragraph about GCC's inlining.
62284         * doc/alloca.texi: Likewise.
62285         * doc/error.texi: Remove parentheses from symbol reference.
62286         * doc/gnulib-intro.texi: Likewise.
62287         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62288         * modules/fnmatch (Description): Reword to say "the ... function".
62289         * modules/full-read (Description): Likewise.
62290         * modules/full-write (Description): Likewise.
62291         * modules/safe-read (Description): Likewise.
62292         * modules/safe-write (Description): Likewise.
62293         * modules/strchrnul (Description): Likewise.
62294         * modules/trim (Description): Likewise.
62295         * modules/error (Description): Remove parentheses from symbol
62296         references.
62297         * modules/verror (Description): Likewise.
62298         Reported by Karl Berry.
62299
62300 2007-12-25  Bruno Haible  <bruno@clisp.org>
62301
62302         Fixup after 2007-10-16 commit.
62303         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62304
62305 2007-12-24  Bruno Haible  <bruno@clisp.org>
62306
62307         Make --enable-relocatable work with DESTDIR.
62308         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62309         to compute installdir from destprog.
62310         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62311         also set the RELOC_DESTDIR variable.
62312         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62313
62314 2007-12-24  Bruno Haible  <bruno@clisp.org>
62315
62316         Fix link error due to xalloc_die().
62317         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62318         of xreadlink.
62319         * lib/relocwrapper.c: Update comments.
62320         * build-aux/install-reloc: Remove xreadlink.c from file list.
62321         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62322         xreadlink.c.
62323         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62324
62325 2007-12-24  Bruno Haible  <bruno@clisp.org>
62326
62327         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62328         * lib/setenv.h: Remove file.
62329         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62330         lib/setenv.h.
62331         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62332         (Depends-on): Add stdlib.
62333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62334         gl_FUNC_UNSETENV.
62335         (Include): Replace setenv.h with <stdlib.h>.
62336         * modules/unsetenv: New file.
62337         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62338         * lib/unsetenv.c: Include <stdlib.h> first.
62339         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62340         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62341         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62342         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62343         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62344         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62346         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62347         * doc/functions/unsetenv.texi: Update.
62348         * modules/xsetenv (Depends-on): Add unsetenv.
62349         * modules/getdate (Depends-on): Likewise.
62350         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62351         * lib/xsetenv.c: Don't include setenv.h.
62352         * lib/getdate.y: Likewise.
62353         * lib/relocwrapper.c: Likewise.
62354         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62355         (Depends-on): Add stdlib.
62356         * NEWS: Mention the changes.
62357         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62358
62359 2007-12-23  Bruno Haible  <bruno@clisp.org>
62360
62361         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62362         indentation.
62363
62364 2007-12-23  Bruno Haible  <bruno@clisp.org>
62365
62366         * lib/c-strcasestr.c: Add more comments.
62367         * lib/c-strstr.c: Likewise.
62368         * lib/mbscasestr.c: Likewise.
62369         * lib/mbsstr.c: Likewise.
62370         * lib/strcasestr.c: Likewise.
62371         * lib/memmem.c: Likewise.
62372
62373 2007-12-23  Bruno Haible  <bruno@clisp.org>
62374
62375         * tests/test-memmem.c: Include <string.h> first.
62376
62377 2007-12-22  Bruno Haible  <bruno@clisp.org>
62378
62379         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62380         the contents of $testsbase.
62381         Reported by Ralf Wildenhues.
62382
62383 2007-12-22  Bruno Haible  <bruno@clisp.org>
62384
62385         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62386         two variables local_ldadd_before, local_ldadd_last.
62387
62388 2007-12-20  Eric Blake  <ebb9@byu.net>
62389
62390         Work around circular library issue when cross-compiling.
62391         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62392         that progname.o does not need to pull in rpl_memcmp.
62393
62394 2007-12-19  Eric Blake  <ebb9@byu.net>
62395
62396         Fix memmem to avoid O(n^2) worst-case complexity.
62397         * lib/memmem.c (knuth_morris_pratt): New function.
62398         (memmem): Use it if first few naive iterations fail.
62399         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62400         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62401         * modules/memchr (License): Likewise.
62402         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62403         malloca.
62404         * tests/test-memmem.c: Rewrite, borrowing ideas from
62405         test-mbsstr1.c; the old version wouldn't even compile!
62406         * modules/memmem-tests: New file.
62407         * lib/string.in.h (rpl_memmem): Add declaration.
62408         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62410         REPLACE_MEMMEM.
62411
62412 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62413
62414         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62415         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62416         before any system include files, and undef after them all.  This
62417         should fix a problem on VMS reported by John E. Malmberg in
62418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62419
62420 2007-12-17  Eric Blake  <ebb9@byu.net>
62421
62422         Revert addition of verify, for BSD/OS.
62423         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62424         can't handle large files, for the sake of obsolete platforms.
62425         * modules/fseeko (Depends-on): Remove verify.
62426         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62427         * doc/functions/ftello.texi (ftello): Likewise.
62428         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62429         Reported by Larry Jones.
62430
62431 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62432
62433         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62434         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62435
62436 2007-12-17  Jim Meyering  <meyering@redhat.com>
62437
62438         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62439         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62440         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62441         * modules/getcwd (Depends-on): Add openat.
62442         Reported by Petr Salinger.
62443
62444 2007-12-17  Bruno Haible  <bruno@clisp.org>
62445
62446         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62447         avoid a segmentation fault of the configure test on x86_64 systems.
62448
62449 2007-12-15  Jim Meyering  <meyering@redhat.com>
62450
62451         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62452
62453 2007-12-13  Eric Blake  <ebb9@byu.net>
62454
62455         Another fseek test.
62456         * tests/test-fseek.c (main): Also test ungetc handling.
62457         * tests/test-fseeko.c (main): Likewise.
62458         * modules/fseeko (Depends-on): Add verify.
62459         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62460         large.
62461         Reported by Larry Jones.
62462
62463         Fix fseeko on mingw.
62464         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62465         seek.
62466
62467         Beef up fseek tests.
62468         * tests/test-fseek.c (main): Also test eof handling.
62469         * tests/test-fseeko.c (main): Likewise.
62470         Reported by Larry Jones.
62471
62472 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62473
62474         Fix fseeko on BSD-based platforms.
62475         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62476         successful seek.
62477
62478 2007-12-12  Eric Blake  <ebb9@byu.net>
62479
62480         Allow circular dependency of separate libtests.a
62481         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62482         when use_libtests.
62483
62484 2007-12-11  Eric Blake  <ebb9@byu.net>
62485
62486         Fix bug with -0.0L in previous patch.
62487         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62488         * tests/test-isnan.c (main): Also test on zeroes.
62489         * tests/test-isnanf.c (main): Likewise.
62490         * tests/test-isnanl.h (main): Likewise.
62491
62492         Detect pseudo-denormals on x86 even when cross-compiling.
62493         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62494         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62495         invalid bit patterns that happen to satisfy ==.
62496
62497         Avoid link failures with separate libtests.a.
62498         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62499         last, to satisfy circular dependencies.
62500
62501 2007-12-11  Eric Blake  <ebb9@byu.net>
62502         and Bruno Haible  <bruno@clisp.org>
62503
62504         Fix OpenBSD 4.0 <float.h> handling of long double.
62505         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62506         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62507         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62508
62509 2007-12-11  Jim Meyering  <meyering@redhat.com>
62510
62511         * users.txt: Add libvirt.
62512
62513         Support versions of autoconf prior to 2.59c.
62514         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62515         if it is not already defined.
62516
62517 2007-12-09  Bruno Haible  <bruno@clisp.org>
62518
62519         Let 'gnulib-tool --import' collect sources needed for the tests in
62520         tests/ rather than in lib/.
62521         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62522         argument. If true, add rules to generate libtests.a, and put libtests.a
62523         into $(LDADD). Consider source files in subdirectories and set
62524         uses_subdirs.
62525         (func_emit_initmacro_start, func_emit_initmacro_end,
62526         func_emit_initmacro_done): Pass all arguments explicitly.
62527         (func_import): Determine two module lists main_modules,
62528         testsrelated_modules. Determine use_libtests. Determine two variables
62529         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62530         instead of just sed_transform_lib_file. Determine two variables
62531         main_files and testsrelated_files. Compute 'files' as the union of
62532         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62533         func_add_or_update. In the generated gnulib-comp.m4, collect the
62534         object files for tests/ in different variables than those for lib/.
62535         Substitute LIBTESTS_LIBDEPS.
62536         (func_create_testdir): Combine the uses_subdirs results from
62537         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62538
62539 2007-12-09  Bruno Haible  <bruno@clisp.org>
62540
62541         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62542         the build-aux directory.
62543
62544 2007-12-09  Bruno Haible  <bruno@clisp.org>
62545
62546         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62547         introduced on 2006-09-09.
62548
62549 2007-12-07  Jim Meyering  <meyering@redhat.com>
62550
62551         Let these macros work also with autoconf-2.59.
62552         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62553         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62555
62556 2007-12-06  Jim Meyering  <meyering@redhat.com>
62557
62558         Avoid a configure-time syntax error in gl_FUNC_ACL.
62559         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62560         function in each branch, before testing the cache variable.
62561
62562 2007-12-04  Eric Blake  <ebb9@byu.net>
62563
62564         Make scripts executable.
62565         * build-aux/config.guess: Add execute permissions.
62566         * build-aux/config.sub: Likewise.
62567         * build-aux/gendocs.sh: Likewise.
62568
62569         Fix frexp on mingw.
62570         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62571         cross-compiling.
62572         * doc/functions/frexp.texi (frexp): Document the bug.
62573
62574         Make cygwin fseeko check more reliable.
62575         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62576         version numbers, rather than unrelated feature check.
62577         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62578         * doc/functions/ftello.texi (ftello): Likewise.
62579         Reported by Bruno Haible.
62580
62581         * m4/strerror.m4: Bump version number.
62582
62583 2007-12-03  Bruno Haible  <bruno@clisp.org>
62584
62585         * doc/functions/mprotect.texi: Mention the mingw problem.
62586
62587 2007-12-03  Eric Blake  <ebb9@byu.net>
62588
62589         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62590         REPLACE_STRERROR is initialized before this macro.
62591
62592 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62595         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62596         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62597         put -lsec in even for programs other than 'ls'.  This fixes a problem
62598         for gettext reported by Bruno Haible in
62599         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62600         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62601         Add support for Solaris 10.  This isn't efficient, but should get the
62602         job done for now.
62603
62604 2007-12-03  James Youngman  <jay@gnu.org>
62605
62606         * doc/regexprops-generic.texi: change "an close-group" to "a
62607         close-group" and "illegal" to "not allowed".
62608
62609 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62610
62611         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62612         pr_byname.h. Needed for the rare case when the maintainer has done
62613         "make maintainer-clean" in the source directory and then attempts a
62614         build outside the source directory.
62615         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62616         scripts_byname.h.
62617
62618 2007-12-02  Martin Lambers <marlam@marlam.de>
62619             Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/getpagesize.h: Remove file.
62622         * lib/unistd.in.h: Include declaration of getpagesize here.
62623         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62624         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62625         HAVE_SYS_PARAM_H.
62626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62627         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62628         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62629         (Depends-on): Add unistd.
62630         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62631         (Include): Use <unistd.h> instead of getpagesize.h.
62632         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62633         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62634         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62635         gl_GETPAGESIZE invocation, already handled by module dependency.
62636         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62637
62638 2007-12-02  Bruno Haible  <bruno@clisp.org>
62639
62640         * modules/strings-tests: New file.
62641         * tests/test-strings.c: New file.
62642
62643         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62644         * lib/strings.in.h: New file.
62645         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62646         * m4/strings_h.m4: New file.
62647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62648         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62649         * modules/strings: New file.
62650         * modules/string (Makefile.am): Update.
62651         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62652         Reported by Karl Berry.
62653
62654 2007-12-01  Eric Blake  <ebb9@byu.net>
62655
62656         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62657         accommodate fix in cygwin 1.5.25.
62658
62659 2007-12-01  Jim Meyering  <meyering@redhat.com>
62660
62661         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62662         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62663         that would inhibit utf8-optimization of a regexp containing line-
62664         or buffer-anchors, e.g., `^', `$'.
62665
62666 2007-11-30  Bruno Haible  <bruno@clisp.org>
62667
62668         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62669         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62670         glthread_recursive_lock_init.
62671         * lib/lock.c (glthread_recursive_lock_init)
62672         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62673         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62674
62675 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62676
62677         New function qset_acl, like set_acl but with syscall semantics.
62678         * lib/acl.h (qset_acl): New decl.
62679         * lib/acl.c (qset_acl): New function.
62680         (set_acl): Use new function.  Use more-consistent diagnostics.
62681
62682 2007-11-28  Jim Meyering  <meyering@redhat.com>
62683
62684         * modules/physmem (License): Change from GPL to LGPLv2+.
62685
62686 2007-11-26  Bruno Haible  <bruno@clisp.org>
62687
62688         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62689         'long double' type has excess precision.
62690         Reported by Jim Meyering in
62691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62692
62693 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62694
62695         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62696         Sync from <http://gnu.org/licenses>.
62697         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62698         with license text from same location.
62699         * doc/maintain.texi, doc/standards.texi:  Sync from
62700         <http://savannah.gnu.org/projects/gnustandards>.
62701
62702 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62703         and Jim Meyering  <meyering@redhat.com>
62704
62705         Adjust getdate' grammar to accept a slightly more regular language.
62706         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62707         Before, the former was rejected.
62708         * lib/getdate.y (digits_to_date_time): New function, factored
62709         out of ...
62710         (number): ...here.  Just call digits_to_date_time.
62711         (hybrid): New non-terminal to handle an <unsigned number,
62712         signed relative offset> sequence consistently.
62713
62714 2007-11-18  Jim Meyering  <meyering@redhat.com>
62715
62716         Pull my changes from coreutils:
62717         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62718         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62719         use of $gnulib_tool_option_extras, so that it's separated from the
62720         preceding argument.
62721
62722         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62723         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62724         parent destination directories before copying a file into place.
62725
62726 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62727
62728         bootstrap: work also with 4-argument variant of AC_INIT
62729         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62730
62731 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62732
62733         Port test-getaddrinfo to Solaris.
62734         Problem reported by Bruno Haible in
62735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62736         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62737         explanation of setting 'hints'.
62738         Don't reject an implementation merely because it returns EAI_SERVICE.
62739         (EAI_SERVICE): Define to 0 if not defined.
62740
62741 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62742
62743         The license of gnu-make and posix-shell is now "GPLed build tool".
62744         * modules/gnu-make (License): Likewise.
62745         * modules/posix-shell (License): Likewise.
62746
62747         New module posix-shell, for determining a POSIX shell
62748         or perhaps something that is close enough to a POSIX shell.
62749         * m4/posix-shell.m4: New file.
62750         * modules/posix-shell: New file.
62751
62752         * MODULES.html.sh: Mention new module.
62753
62754         New module gnu-make, for determining whether we're using GNU Make.
62755         * m4/gnu-make.m4: New file.
62756         * modules/gnu-make: New file.
62757         * MODULES.html.sh: Mention new module.
62758
62759 2007-11-14  Jim Meyering  <meyering@redhat.com>
62760
62761         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62762         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62763         use this macro to create a function _definition_.
62764         Remove useless "#undef ARGMATCH_DIE".
62765
62766 2007-11-14  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/config.charset: Update for OpenBSD 4.1.
62769         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62770
62771 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62772
62773         Document 64-bit #if problems in stdint.texi.
62774         * doc/headers/stdint.texi (stdint.h): Mention problems with
62775         64-bit-#if, and how to work around them.
62776
62777         Don't insist on 'long long int' support in the preprocessor.  It
62778         breaks too many things.  For example, PRIdMAX still uses a 'long
62779         long int' format with the latest Sun compiler, even though
62780         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62781         preprocessor problem.  This causes the latest coreutils to dump
62782         core on Solaris 10 sparc with the Sun C compiler.
62783         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62784         the troublesome expressions at configure-time, not at #if-time.
62785         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62786         preprocessor.
62787         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62788         compile-time C checks, done at 'configure'-time.
62789         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62790         * modules/inttypes (Makefile): Substitute the new symbols that
62791         gl_INTTYPES_H now generates.
62792         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62793
62794 2007-11-12  Bruno Haible  <bruno@clisp.org>
62795
62796         Tests for Unicode character classification functions.
62797
62798         * modules/unictype/bidicategory-byname-tests: New file.
62799         * modules/unictype/bidicategory-name-tests: New file.
62800         * modules/unictype/bidicategory-of-tests: New file.
62801         * modules/unictype/bidicategory-test-tests: New file.
62802         * modules/unictype/block-list-tests: New file.
62803         * modules/unictype/block-of-tests: New file.
62804         * modules/unictype/block-test-tests: New file.
62805         * modules/unictype/category-C-tests: New file.
62806         * modules/unictype/category-Cc-tests: New file.
62807         * modules/unictype/category-Cf-tests: New file.
62808         * modules/unictype/category-Cn-tests: New file.
62809         * modules/unictype/category-Co-tests: New file.
62810         * modules/unictype/category-Cs-tests: New file.
62811         * modules/unictype/category-L-tests: New file.
62812         * modules/unictype/category-Ll-tests: New file.
62813         * modules/unictype/category-Lm-tests: New file.
62814         * modules/unictype/category-Lo-tests: New file.
62815         * modules/unictype/category-Lt-tests: New file.
62816         * modules/unictype/category-Lu-tests: New file.
62817         * modules/unictype/category-M-tests: New file.
62818         * modules/unictype/category-Mc-tests: New file.
62819         * modules/unictype/category-Me-tests: New file.
62820         * modules/unictype/category-Mn-tests: New file.
62821         * modules/unictype/category-N-tests: New file.
62822         * modules/unictype/category-Nd-tests: New file.
62823         * modules/unictype/category-Nl-tests: New file.
62824         * modules/unictype/category-No-tests: New file.
62825         * modules/unictype/category-P-tests: New file.
62826         * modules/unictype/category-Pc-tests: New file.
62827         * modules/unictype/category-Pd-tests: New file.
62828         * modules/unictype/category-Pe-tests: New file.
62829         * modules/unictype/category-Pf-tests: New file.
62830         * modules/unictype/category-Pi-tests: New file.
62831         * modules/unictype/category-Po-tests: New file.
62832         * modules/unictype/category-Ps-tests: New file.
62833         * modules/unictype/category-S-tests: New file.
62834         * modules/unictype/category-Sc-tests: New file.
62835         * modules/unictype/category-Sk-tests: New file.
62836         * modules/unictype/category-Sm-tests: New file.
62837         * modules/unictype/category-So-tests: New file.
62838         * modules/unictype/category-Z-tests: New file.
62839         * modules/unictype/category-Zl-tests: New file.
62840         * modules/unictype/category-Zp-tests: New file.
62841         * modules/unictype/category-Zs-tests: New file.
62842         * modules/unictype/category-and-not-tests: New file.
62843         * modules/unictype/category-and-tests: New file.
62844         * modules/unictype/category-byname-tests: New file.
62845         * modules/unictype/category-name-tests: New file.
62846         * modules/unictype/category-none-tests: New file.
62847         * modules/unictype/category-of-tests: New file.
62848         * modules/unictype/category-or-tests: New file.
62849         * modules/unictype/category-test-withtable-tests: New file.
62850         * modules/unictype/combining-class-tests: New file.
62851         * modules/unictype/ctype-alnum-tests: New file.
62852         * modules/unictype/ctype-alpha-tests: New file.
62853         * modules/unictype/ctype-blank-tests: New file.
62854         * modules/unictype/ctype-cntrl-tests: New file.
62855         * modules/unictype/ctype-digit-tests: New file.
62856         * modules/unictype/ctype-graph-tests: New file.
62857         * modules/unictype/ctype-lower-tests: New file.
62858         * modules/unictype/ctype-print-tests: New file.
62859         * modules/unictype/ctype-punct-tests: New file.
62860         * modules/unictype/ctype-space-tests: New file.
62861         * modules/unictype/ctype-upper-tests: New file.
62862         * modules/unictype/ctype-xdigit-tests: New file.
62863         * modules/unictype/decimal-digit-tests: New file.
62864         * modules/unictype/digit-tests: New file.
62865         * modules/unictype/mirror-tests: New file.
62866         * modules/unictype/numeric-tests: New file.
62867         * modules/unictype/property-alphabetic-tests: New file.
62868         * modules/unictype/property-ascii-hex-digit-tests: New file.
62869         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62870         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62871         * modules/unictype/property-bidi-block-separator-tests: New file.
62872         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62873         * modules/unictype/property-bidi-common-separator-tests: New file.
62874         * modules/unictype/property-bidi-control-tests: New file.
62875         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62876         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62877         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62878         * modules/unictype/property-bidi-european-digit-tests: New file.
62879         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62880         * modules/unictype/property-bidi-left-to-right-tests: New file.
62881         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62882         * modules/unictype/property-bidi-other-neutral-tests: New file.
62883         * modules/unictype/property-bidi-pdf-tests: New file.
62884         * modules/unictype/property-bidi-segment-separator-tests: New file.
62885         * modules/unictype/property-bidi-whitespace-tests: New file.
62886         * modules/unictype/property-byname-tests: New file.
62887         * modules/unictype/property-combining-tests: New file.
62888         * modules/unictype/property-composite-tests: New file.
62889         * modules/unictype/property-currency-symbol-tests: New file.
62890         * modules/unictype/property-dash-tests: New file.
62891         * modules/unictype/property-decimal-digit-tests: New file.
62892         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62893         * modules/unictype/property-deprecated-tests: New file.
62894         * modules/unictype/property-diacritic-tests: New file.
62895         * modules/unictype/property-extender-tests: New file.
62896         * modules/unictype/property-format-control-tests: New file.
62897         * modules/unictype/property-grapheme-base-tests: New file.
62898         * modules/unictype/property-grapheme-extend-tests: New file.
62899         * modules/unictype/property-grapheme-link-tests: New file.
62900         * modules/unictype/property-hex-digit-tests: New file.
62901         * modules/unictype/property-hyphen-tests: New file.
62902         * modules/unictype/property-id-continue-tests: New file.
62903         * modules/unictype/property-id-start-tests: New file.
62904         * modules/unictype/property-ideographic-tests: New file.
62905         * modules/unictype/property-ids-binary-operator-tests: New file.
62906         * modules/unictype/property-ids-trinary-operator-tests: New file.
62907         * modules/unictype/property-ignorable-control-tests: New file.
62908         * modules/unictype/property-iso-control-tests: New file.
62909         * modules/unictype/property-join-control-tests: New file.
62910         * modules/unictype/property-left-of-pair-tests: New file.
62911         * modules/unictype/property-line-separator-tests: New file.
62912         * modules/unictype/property-logical-order-exception-tests: New file.
62913         * modules/unictype/property-lowercase-tests: New file.
62914         * modules/unictype/property-math-tests: New file.
62915         * modules/unictype/property-non-break-tests: New file.
62916         * modules/unictype/property-not-a-character-tests: New file.
62917         * modules/unictype/property-numeric-tests: New file.
62918         * modules/unictype/property-other-alphabetic-tests: New file.
62919         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62920         * modules/unictype/property-other-grapheme-extend-tests: New file.
62921         * modules/unictype/property-other-id-continue-tests: New file.
62922         * modules/unictype/property-other-id-start-tests: New file.
62923         * modules/unictype/property-other-lowercase-tests: New file.
62924         * modules/unictype/property-other-math-tests: New file.
62925         * modules/unictype/property-other-uppercase-tests: New file.
62926         * modules/unictype/property-paired-punctuation-tests: New file.
62927         * modules/unictype/property-paragraph-separator-tests: New file.
62928         * modules/unictype/property-pattern-syntax-tests: New file.
62929         * modules/unictype/property-pattern-white-space-tests: New file.
62930         * modules/unictype/property-private-use-tests: New file.
62931         * modules/unictype/property-punctuation-tests: New file.
62932         * modules/unictype/property-quotation-mark-tests: New file.
62933         * modules/unictype/property-radical-tests: New file.
62934         * modules/unictype/property-sentence-terminal-tests: New file.
62935         * modules/unictype/property-soft-dotted-tests: New file.
62936         * modules/unictype/property-space-tests: New file.
62937         * modules/unictype/property-terminal-punctuation-tests: New file.
62938         * modules/unictype/property-test-tests: New file.
62939         * modules/unictype/property-titlecase-tests: New file.
62940         * modules/unictype/property-unassigned-code-value-tests: New file.
62941         * modules/unictype/property-unified-ideograph-tests: New file.
62942         * modules/unictype/property-uppercase-tests: New file.
62943         * modules/unictype/property-variation-selector-tests: New file.
62944         * modules/unictype/property-white-space-tests: New file.
62945         * modules/unictype/property-xid-continue-tests: New file.
62946         * modules/unictype/property-xid-start-tests: New file.
62947         * modules/unictype/property-zero-width-tests: New file.
62948         * modules/unictype/scripts-tests: New file.
62949         * modules/unictype/syntax-c-ident-tests: New file.
62950         * modules/unictype/syntax-c-whitespace-tests: New file.
62951         * modules/unictype/syntax-java-ident-tests: New file.
62952         * modules/unictype/syntax-java-whitespace-tests: New file.
62953         * tests/unictype/test-bidi_byname.c: New file.
62954         * tests/unictype/test-bidi_name.c: New file.
62955         * tests/unictype/test-bidi_of.c: New file.
62956         * tests/unictype/test-bidi_test.c: New file.
62957         * tests/unictype/test-block_list.c: New file.
62958         * tests/unictype/test-block_of.c: New file.
62959         * tests/unictype/test-block_test.c: New file.
62960         * tests/unictype/test-categ_and.c: New file.
62961         * tests/unictype/test-categ_and_not.c: New file.
62962         * tests/unictype/test-categ_byname.c: New file.
62963         * tests/unictype/test-categ_name.c: New file.
62964         * tests/unictype/test-categ_none.c: New file.
62965         * tests/unictype/test-categ_of.c: New file.
62966         * tests/unictype/test-categ_or.c: New file.
62967         * tests/unictype/test-categ_test_withtable.c: New file.
62968         * tests/unictype/test-combining.c: New file.
62969         * tests/unictype/test-decdigit.c: New file.
62970         * tests/unictype/test-digit.c: New file.
62971         * tests/unictype/test-mirror.c: New file.
62972         * tests/unictype/test-numeric.c: New file.
62973         * tests/unictype/test-pr_byname.c: New file.
62974         * tests/unictype/test-pr_test.c: New file.
62975         * tests/unictype/test-predicate-part1.h: New file.
62976         * tests/unictype/test-predicate-part2.h: New file.
62977         * tests/unictype/test-scripts.c: New file.
62978         * tests/unictype/test-sy_c_ident.c: New file.
62979         * tests/unictype/test-sy_java_ident.c: New file.
62980
62981         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62982         for Unicode 5.0.0.
62983         * tests/unictype/test-categ_Cc.c: Likewise.
62984         * tests/unictype/test-categ_Cf.c: Likewise.
62985         * tests/unictype/test-categ_Cn.c: Likewise.
62986         * tests/unictype/test-categ_Co.c: Likewise.
62987         * tests/unictype/test-categ_Cs.c: Likewise.
62988         * tests/unictype/test-categ_L.c: Likewise.
62989         * tests/unictype/test-categ_Ll.c: Likewise.
62990         * tests/unictype/test-categ_Lm.c: Likewise.
62991         * tests/unictype/test-categ_Lo.c: Likewise.
62992         * tests/unictype/test-categ_Lt.c: Likewise.
62993         * tests/unictype/test-categ_Lu.c: Likewise.
62994         * tests/unictype/test-categ_M.c: Likewise.
62995         * tests/unictype/test-categ_Mc.c: Likewise.
62996         * tests/unictype/test-categ_Me.c: Likewise.
62997         * tests/unictype/test-categ_Mn.c: Likewise.
62998         * tests/unictype/test-categ_N.c: Likewise.
62999         * tests/unictype/test-categ_Nd.c: Likewise.
63000         * tests/unictype/test-categ_Nl.c: Likewise.
63001         * tests/unictype/test-categ_No.c: Likewise.
63002         * tests/unictype/test-categ_P.c: Likewise.
63003         * tests/unictype/test-categ_Pc.c: Likewise.
63004         * tests/unictype/test-categ_Pd.c: Likewise.
63005         * tests/unictype/test-categ_Pe.c: Likewise.
63006         * tests/unictype/test-categ_Pf.c: Likewise.
63007         * tests/unictype/test-categ_Pi.c: Likewise.
63008         * tests/unictype/test-categ_Po.c: Likewise.
63009         * tests/unictype/test-categ_Ps.c: Likewise.
63010         * tests/unictype/test-categ_S.c: Likewise.
63011         * tests/unictype/test-categ_Sc.c: Likewise.
63012         * tests/unictype/test-categ_Sk.c: Likewise.
63013         * tests/unictype/test-categ_Sm.c: Likewise.
63014         * tests/unictype/test-categ_So.c: Likewise.
63015         * tests/unictype/test-categ_Z.c: Likewise.
63016         * tests/unictype/test-categ_Zl.c: Likewise.
63017         * tests/unictype/test-categ_Zp.c: Likewise.
63018         * tests/unictype/test-categ_Zs.c: Likewise.
63019         * tests/unictype/test-ctype_alnum.c: Likewise.
63020         * tests/unictype/test-ctype_alpha.c: Likewise.
63021         * tests/unictype/test-ctype_blank.c: Likewise.
63022         * tests/unictype/test-ctype_cntrl.c: Likewise.
63023         * tests/unictype/test-ctype_digit.c: Likewise.
63024         * tests/unictype/test-ctype_graph.c: Likewise.
63025         * tests/unictype/test-ctype_lower.c: Likewise.
63026         * tests/unictype/test-ctype_print.c: Likewise.
63027         * tests/unictype/test-ctype_punct.c: Likewise.
63028         * tests/unictype/test-ctype_space.c: Likewise.
63029         * tests/unictype/test-ctype_upper.c: Likewise.
63030         * tests/unictype/test-ctype_xdigit.c: Likewise.
63031         * tests/unictype/test-decdigit.h: Likewise.
63032         * tests/unictype/test-digit.h: Likewise.
63033         * tests/unictype/test-numeric.h: Likewise.
63034         * tests/unictype/test-pr_alphabetic.c: Likewise.
63035         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63036         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63037         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63038         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63039         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63040         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63041         * tests/unictype/test-pr_bidi_control.c: Likewise.
63042         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63043         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63044         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63045         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63046         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63047         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63048         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63049         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63050         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63051         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63052         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63053         * tests/unictype/test-pr_combining.c: Likewise.
63054         * tests/unictype/test-pr_composite.c: Likewise.
63055         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63056         * tests/unictype/test-pr_dash.c: Likewise.
63057         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63058         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63059         * tests/unictype/test-pr_deprecated.c: Likewise.
63060         * tests/unictype/test-pr_diacritic.c: Likewise.
63061         * tests/unictype/test-pr_extender.c: Likewise.
63062         * tests/unictype/test-pr_format_control.c: Likewise.
63063         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63064         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63065         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63066         * tests/unictype/test-pr_hex_digit.c: Likewise.
63067         * tests/unictype/test-pr_hyphen.c: Likewise.
63068         * tests/unictype/test-pr_id_continue.c: Likewise.
63069         * tests/unictype/test-pr_id_start.c: Likewise.
63070         * tests/unictype/test-pr_ideographic.c: Likewise.
63071         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63072         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63073         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63074         * tests/unictype/test-pr_iso_control.c: Likewise.
63075         * tests/unictype/test-pr_join_control.c: Likewise.
63076         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63077         * tests/unictype/test-pr_line_separator.c: Likewise.
63078         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63079         * tests/unictype/test-pr_lowercase.c: Likewise.
63080         * tests/unictype/test-pr_math.c: Likewise.
63081         * tests/unictype/test-pr_non_break.c: Likewise.
63082         * tests/unictype/test-pr_not_a_character.c: Likewise.
63083         * tests/unictype/test-pr_numeric.c: Likewise.
63084         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63085         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63086         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63087         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63088         * tests/unictype/test-pr_other_id_start.c: Likewise.
63089         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63090         * tests/unictype/test-pr_other_math.c: Likewise.
63091         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63092         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63093         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63094         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63095         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63096         * tests/unictype/test-pr_private_use.c: Likewise.
63097         * tests/unictype/test-pr_punctuation.c: Likewise.
63098         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63099         * tests/unictype/test-pr_radical.c: Likewise.
63100         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63101         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63102         * tests/unictype/test-pr_space.c: Likewise.
63103         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63104         * tests/unictype/test-pr_titlecase.c: Likewise.
63105         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63106         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63107         * tests/unictype/test-pr_uppercase.c: Likewise.
63108         * tests/unictype/test-pr_variation_selector.c: Likewise.
63109         * tests/unictype/test-pr_white_space.c: Likewise.
63110         * tests/unictype/test-pr_xid_continue.c: Likewise.
63111         * tests/unictype/test-pr_xid_start.c: Likewise.
63112         * tests/unictype/test-pr_zero_width.c: Likewise.
63113         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63114         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63115
63116 2007-11-12  Bruno Haible  <bruno@clisp.org>
63117
63118         Unicode character classification functions.
63119         * lib/unictype.h: New file.
63120         * modules/unictype/base: New file.
63121         * modules/unictype/category-L: New file.
63122         * modules/unictype/category-Lu: New file.
63123         * modules/unictype/category-Ll: New file.
63124         * modules/unictype/category-Lt: New file.
63125         * modules/unictype/category-Lm: New file.
63126         * modules/unictype/category-Lo: New file.
63127         * modules/unictype/category-M: New file.
63128         * modules/unictype/category-Mn: New file.
63129         * modules/unictype/category-Mc: New file.
63130         * modules/unictype/category-Me: New file.
63131         * modules/unictype/category-N: New file.
63132         * modules/unictype/category-Nd: New file.
63133         * modules/unictype/category-Nl: New file.
63134         * modules/unictype/category-No: New file.
63135         * modules/unictype/category-P: New file.
63136         * modules/unictype/category-Pc: New file.
63137         * modules/unictype/category-Pd: New file.
63138         * modules/unictype/category-Ps: New file.
63139         * modules/unictype/category-Pe: New file.
63140         * modules/unictype/category-Pi: New file.
63141         * modules/unictype/category-Pf: New file.
63142         * modules/unictype/category-Po: New file.
63143         * modules/unictype/category-S: New file.
63144         * modules/unictype/category-Sm: New file.
63145         * modules/unictype/category-Sc: New file.
63146         * modules/unictype/category-Sk: New file.
63147         * modules/unictype/category-So: New file.
63148         * modules/unictype/category-Z: New file.
63149         * modules/unictype/category-Zs: New file.
63150         * modules/unictype/category-Zl: New file.
63151         * modules/unictype/category-Zp: New file.
63152         * modules/unictype/category-C: New file.
63153         * modules/unictype/category-Cc: New file.
63154         * modules/unictype/category-Cf: New file.
63155         * modules/unictype/category-Cs: New file.
63156         * modules/unictype/category-Co: New file.
63157         * modules/unictype/category-Cn: New file.
63158         * modules/unictype/category-or: New file.
63159         * modules/unictype/category-of: New file.
63160         * modules/unictype/category-test: New file.
63161         * modules/unictype/category-test-withtable: New file.
63162         * modules/unictype/category-byname: New file.
63163         * modules/unictype/category-none: New file.
63164         * modules/unictype/category-and: New file.
63165         * modules/unictype/category-and-not: New file.
63166         * modules/unictype/category-name: New file.
63167         * modules/unictype/combining-class: New file.
63168         * modules/unictype/category-all: New file.
63169         * modules/unictype/bidicategory-all: New file.
63170         * modules/unictype/bidicategory-byname: New file.
63171         * modules/unictype/bidicategory-name: New file.
63172         * modules/unictype/bidicategory-of: New file.
63173         * modules/unictype/bidicategory-test: New file.
63174         * modules/unictype/decimal-digit: New file.
63175         * modules/unictype/digit: New file.
63176         * modules/unictype/numeric: New file.
63177         * modules/unictype/mirror: New file.
63178         * modules/unictype/property-white-space: New file.
63179         * modules/unictype/property-alphabetic: New file.
63180         * modules/unictype/property-other-alphabetic: New file.
63181         * modules/unictype/property-not-a-character: New file.
63182         * modules/unictype/property-default-ignorable-code-point: New file.
63183         * modules/unictype/property-other-default-ignorable-code-point: New
63184         file.
63185         * modules/unictype/property-deprecated: New file.
63186         * modules/unictype/property-logical-order-exception: New file.
63187         * modules/unictype/property-variation-selector: New file.
63188         * modules/unictype/property-private-use: New file.
63189         * modules/unictype/property-unassigned-code-value: New file.
63190         * modules/unictype/property-uppercase: New file.
63191         * modules/unictype/property-other-uppercase: New file.
63192         * modules/unictype/property-lowercase: New file.
63193         * modules/unictype/property-other-lowercase: New file.
63194         * modules/unictype/property-titlecase: New file.
63195         * modules/unictype/property-soft-dotted: New file.
63196         * modules/unictype/property-id-start: New file.
63197         * modules/unictype/property-other-id-start: New file.
63198         * modules/unictype/property-id-continue: New file.
63199         * modules/unictype/property-other-id-continue: New file.
63200         * modules/unictype/property-xid-start: New file.
63201         * modules/unictype/property-xid-continue: New file.
63202         * modules/unictype/property-pattern-white-space: New file.
63203         * modules/unictype/property-pattern-syntax: New file.
63204         * modules/unictype/property-join-control: New file.
63205         * modules/unictype/property-grapheme-base: New file.
63206         * modules/unictype/property-grapheme-extend: New file.
63207         * modules/unictype/property-other-grapheme-extend: New file.
63208         * modules/unictype/property-grapheme-link: New file.
63209         * modules/unictype/property-bidi-control: New file.
63210         * modules/unictype/property-bidi-left-to-right: New file.
63211         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63212         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63213         * modules/unictype/property-bidi-european-digit: New file.
63214         * modules/unictype/property-bidi-eur-num-separator: New file.
63215         * modules/unictype/property-bidi-eur-num-terminator: New file.
63216         * modules/unictype/property-bidi-arabic-digit: New file.
63217         * modules/unictype/property-bidi-common-separator: New file.
63218         * modules/unictype/property-bidi-block-separator: New file.
63219         * modules/unictype/property-bidi-segment-separator: New file.
63220         * modules/unictype/property-bidi-whitespace: New file.
63221         * modules/unictype/property-bidi-non-spacing-mark: New file.
63222         * modules/unictype/property-bidi-boundary-neutral: New file.
63223         * modules/unictype/property-bidi-pdf: New file.
63224         * modules/unictype/property-bidi-embedding-or-override: New file.
63225         * modules/unictype/property-bidi-other-neutral: New file.
63226         * modules/unictype/property-hex-digit: New file.
63227         * modules/unictype/property-ascii-hex-digit: New file.
63228         * modules/unictype/property-ideographic: New file.
63229         * modules/unictype/property-unified-ideograph: New file.
63230         * modules/unictype/property-radical: New file.
63231         * modules/unictype/property-ids-binary-operator: New file.
63232         * modules/unictype/property-ids-trinary-operator: New file.
63233         * modules/unictype/property-zero-width: New file.
63234         * modules/unictype/property-space: New file.
63235         * modules/unictype/property-non-break: New file.
63236         * modules/unictype/property-iso-control: New file.
63237         * modules/unictype/property-format-control: New file.
63238         * modules/unictype/property-dash: New file.
63239         * modules/unictype/property-hyphen: New file.
63240         * modules/unictype/property-punctuation: New file.
63241         * modules/unictype/property-line-separator: New file.
63242         * modules/unictype/property-paragraph-separator: New file.
63243         * modules/unictype/property-quotation-mark: New file.
63244         * modules/unictype/property-sentence-terminal: New file.
63245         * modules/unictype/property-terminal-punctuation: New file.
63246         * modules/unictype/property-currency-symbol: New file.
63247         * modules/unictype/property-math: New file.
63248         * modules/unictype/property-other-math: New file.
63249         * modules/unictype/property-paired-punctuation: New file.
63250         * modules/unictype/property-left-of-pair: New file.
63251         * modules/unictype/property-combining: New file.
63252         * modules/unictype/property-composite: New file.
63253         * modules/unictype/property-decimal-digit: New file.
63254         * modules/unictype/property-numeric: New file.
63255         * modules/unictype/property-diacritic: New file.
63256         * modules/unictype/property-extender: New file.
63257         * modules/unictype/property-ignorable-control: New file.
63258         * modules/unictype/property-test: New file.
63259         * modules/unictype/property-byname: New file.
63260         * modules/unictype/property-all: New file.
63261         * modules/unictype/scripts: New file.
63262         * modules/unictype/scripts-all: New file.
63263         * modules/unictype/block-of: New file.
63264         * modules/unictype/block-test: New file.
63265         * modules/unictype/block-list: New file.
63266         * modules/unictype/block-all: New file.
63267         * modules/unictype/syntax-c-whitespace: New file.
63268         * modules/unictype/syntax-java-whitespace: New file.
63269         * modules/unictype/syntax-c-ident: New file.
63270         * modules/unictype/syntax-java-ident: New file.
63271         * modules/unictype/ctype-alnum: New file.
63272         * modules/unictype/ctype-alpha: New file.
63273         * modules/unictype/ctype-cntrl: New file.
63274         * modules/unictype/ctype-digit: New file.
63275         * modules/unictype/ctype-graph: New file.
63276         * modules/unictype/ctype-lower: New file.
63277         * modules/unictype/ctype-print: New file.
63278         * modules/unictype/ctype-punct: New file.
63279         * modules/unictype/ctype-space: New file.
63280         * modules/unictype/ctype-upper: New file.
63281         * modules/unictype/ctype-xdigit: New file.
63282         * modules/unictype/ctype-blank: New file.
63283         * lib/unictype/bidi_byname.c: New file.
63284         * lib/unictype/bidi_name.c: New file.
63285         * lib/unictype/bidi_of.c: New file.
63286         * lib/unictype/bidi_test.c: New file.
63287         * lib/unictype/bitmap.h: New file.
63288         * lib/unictype/block_test.c: New file.
63289         * lib/unictype/blocks.c: New file.
63290         * lib/unictype/categ_C.c: New file.
63291         * lib/unictype/categ_Cc.c: New file.
63292         * lib/unictype/categ_Cf.c: New file.
63293         * lib/unictype/categ_Cn.c: New file.
63294         * lib/unictype/categ_Co.c: New file.
63295         * lib/unictype/categ_Cs.c: New file.
63296         * lib/unictype/categ_L.c: New file.
63297         * lib/unictype/categ_Ll.c: New file.
63298         * lib/unictype/categ_Lm.c: New file.
63299         * lib/unictype/categ_Lo.c: New file.
63300         * lib/unictype/categ_Lt.c: New file.
63301         * lib/unictype/categ_Lu.c: New file.
63302         * lib/unictype/categ_M.c: New file.
63303         * lib/unictype/categ_Mc.c: New file.
63304         * lib/unictype/categ_Me.c: New file.
63305         * lib/unictype/categ_Mn.c: New file.
63306         * lib/unictype/categ_N.c: New file.
63307         * lib/unictype/categ_Nd.c: New file.
63308         * lib/unictype/categ_Nl.c: New file.
63309         * lib/unictype/categ_No.c: New file.
63310         * lib/unictype/categ_P.c: New file.
63311         * lib/unictype/categ_Pc.c: New file.
63312         * lib/unictype/categ_Pd.c: New file.
63313         * lib/unictype/categ_Pe.c: New file.
63314         * lib/unictype/categ_Pf.c: New file.
63315         * lib/unictype/categ_Pi.c: New file.
63316         * lib/unictype/categ_Po.c: New file.
63317         * lib/unictype/categ_Ps.c: New file.
63318         * lib/unictype/categ_S.c: New file.
63319         * lib/unictype/categ_Sc.c: New file.
63320         * lib/unictype/categ_Sk.c: New file.
63321         * lib/unictype/categ_Sm.c: New file.
63322         * lib/unictype/categ_So.c: New file.
63323         * lib/unictype/categ_Z.c: New file.
63324         * lib/unictype/categ_Zl.c: New file.
63325         * lib/unictype/categ_Zp.c: New file.
63326         * lib/unictype/categ_Zs.c: New file.
63327         * lib/unictype/categ_and.c: New file.
63328         * lib/unictype/categ_and_not.c: New file.
63329         * lib/unictype/categ_byname.c: New file.
63330         * lib/unictype/categ_name.c: New file.
63331         * lib/unictype/categ_none.c: New file.
63332         * lib/unictype/categ_of.c: New file.
63333         * lib/unictype/categ_or.c: New file.
63334         * lib/unictype/categ_test.c: New file.
63335         * lib/unictype/combining.c: New file.
63336         * lib/unictype/ctype_alnum.c: New file.
63337         * lib/unictype/ctype_alpha.c: New file.
63338         * lib/unictype/ctype_blank.c: New file.
63339         * lib/unictype/ctype_cntrl.c: New file.
63340         * lib/unictype/ctype_digit.c: New file.
63341         * lib/unictype/ctype_graph.c: New file.
63342         * lib/unictype/ctype_lower.c: New file.
63343         * lib/unictype/ctype_print.c: New file.
63344         * lib/unictype/ctype_punct.c: New file.
63345         * lib/unictype/ctype_space.c: New file.
63346         * lib/unictype/ctype_upper.c: New file.
63347         * lib/unictype/ctype_xdigit.c: New file.
63348         * lib/unictype/decdigit.c: New file.
63349         * lib/unictype/digit.c: New file.
63350         * lib/unictype/identsyntaxmap.h: New file.
63351         * lib/unictype/mirror.c: New file.
63352         * lib/unictype/numeric.c: New file.
63353         * lib/unictype/pr_alphabetic.c: New file.
63354         * lib/unictype/pr_ascii_hex_digit.c: New file.
63355         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63356         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63357         * lib/unictype/pr_bidi_block_separator.c: New file.
63358         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63359         * lib/unictype/pr_bidi_common_separator.c: New file.
63360         * lib/unictype/pr_bidi_control.c: New file.
63361         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63362         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63363         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63364         * lib/unictype/pr_bidi_european_digit.c: New file.
63365         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63366         * lib/unictype/pr_bidi_left_to_right.c: New file.
63367         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63368         * lib/unictype/pr_bidi_other_neutral.c: New file.
63369         * lib/unictype/pr_bidi_pdf.c: New file.
63370         * lib/unictype/pr_bidi_segment_separator.c: New file.
63371         * lib/unictype/pr_bidi_whitespace.c: New file.
63372         * lib/unictype/pr_byname.c: New file.
63373         * lib/unictype/pr_byname.gperf: New file.
63374         * lib/unictype/pr_combining.c: New file.
63375         * lib/unictype/pr_composite.c: New file.
63376         * lib/unictype/pr_currency_symbol.c: New file.
63377         * lib/unictype/pr_dash.c: New file.
63378         * lib/unictype/pr_decimal_digit.c: New file.
63379         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63380         * lib/unictype/pr_deprecated.c: New file.
63381         * lib/unictype/pr_diacritic.c: New file.
63382         * lib/unictype/pr_extender.c: New file.
63383         * lib/unictype/pr_format_control.c: New file.
63384         * lib/unictype/pr_grapheme_base.c: New file.
63385         * lib/unictype/pr_grapheme_extend.c: New file.
63386         * lib/unictype/pr_grapheme_link.c: New file.
63387         * lib/unictype/pr_hex_digit.c: New file.
63388         * lib/unictype/pr_hyphen.c: New file.
63389         * lib/unictype/pr_id_continue.c: New file.
63390         * lib/unictype/pr_id_start.c: New file.
63391         * lib/unictype/pr_ideographic.c: New file.
63392         * lib/unictype/pr_ids_binary_operator.c: New file.
63393         * lib/unictype/pr_ids_trinary_operator.c: New file.
63394         * lib/unictype/pr_ignorable_control.c: New file.
63395         * lib/unictype/pr_iso_control.c: New file.
63396         * lib/unictype/pr_join_control.c: New file.
63397         * lib/unictype/pr_left_of_pair.c: New file.
63398         * lib/unictype/pr_line_separator.c: New file.
63399         * lib/unictype/pr_logical_order_exception.c: New file.
63400         * lib/unictype/pr_lowercase.c: New file.
63401         * lib/unictype/pr_math.c: New file.
63402         * lib/unictype/pr_non_break.c: New file.
63403         * lib/unictype/pr_not_a_character.c: New file.
63404         * lib/unictype/pr_numeric.c: New file.
63405         * lib/unictype/pr_other_alphabetic.c: New file.
63406         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63407         * lib/unictype/pr_other_grapheme_extend.c: New file.
63408         * lib/unictype/pr_other_id_continue.c: New file.
63409         * lib/unictype/pr_other_id_start.c: New file.
63410         * lib/unictype/pr_other_lowercase.c: New file.
63411         * lib/unictype/pr_other_math.c: New file.
63412         * lib/unictype/pr_other_uppercase.c: New file.
63413         * lib/unictype/pr_paired_punctuation.c: New file.
63414         * lib/unictype/pr_paragraph_separator.c: New file.
63415         * lib/unictype/pr_pattern_syntax.c: New file.
63416         * lib/unictype/pr_pattern_white_space.c: New file.
63417         * lib/unictype/pr_private_use.c: New file.
63418         * lib/unictype/pr_punctuation.c: New file.
63419         * lib/unictype/pr_quotation_mark.c: New file.
63420         * lib/unictype/pr_radical.c: New file.
63421         * lib/unictype/pr_sentence_terminal.c: New file.
63422         * lib/unictype/pr_soft_dotted.c: New file.
63423         * lib/unictype/pr_space.c: New file.
63424         * lib/unictype/pr_terminal_punctuation.c: New file.
63425         * lib/unictype/pr_test.c: New file.
63426         * lib/unictype/pr_titlecase.c: New file.
63427         * lib/unictype/pr_unassigned_code_value.c: New file.
63428         * lib/unictype/pr_unified_ideograph.c: New file.
63429         * lib/unictype/pr_uppercase.c: New file.
63430         * lib/unictype/pr_variation_selector.c: New file.
63431         * lib/unictype/pr_white_space.c: New file.
63432         * lib/unictype/pr_xid_continue.c: New file.
63433         * lib/unictype/pr_xid_start.c: New file.
63434         * lib/unictype/pr_zero_width.c: New file.
63435         * lib/unictype/scripts.c: New file.
63436         * lib/unictype/sy_c_ident.c: New file.
63437         * lib/unictype/sy_c_whitespace.c: New file.
63438         * lib/unictype/sy_java_ident.c: New file.
63439         * lib/unictype/sy_java_whitespace.c: New file.
63440
63441         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63442         Unicode 5.0.0.
63443         * lib/unictype/blocks.h: Likewise.
63444         * lib/unictype/categ_C.h: Likewise.
63445         * lib/unictype/categ_Cc.h: Likewise.
63446         * lib/unictype/categ_Cf.h: Likewise.
63447         * lib/unictype/categ_Cn.h: Likewise.
63448         * lib/unictype/categ_Co.h: Likewise.
63449         * lib/unictype/categ_Cs.h: Likewise.
63450         * lib/unictype/categ_L.h: Likewise.
63451         * lib/unictype/categ_Ll.h: Likewise.
63452         * lib/unictype/categ_Lm.h: Likewise.
63453         * lib/unictype/categ_Lo.h: Likewise.
63454         * lib/unictype/categ_Lt.h: Likewise.
63455         * lib/unictype/categ_Lu.h: Likewise.
63456         * lib/unictype/categ_M.h: Likewise.
63457         * lib/unictype/categ_Mc.h: Likewise.
63458         * lib/unictype/categ_Me.h: Likewise.
63459         * lib/unictype/categ_Mn.h: Likewise.
63460         * lib/unictype/categ_N.h: Likewise.
63461         * lib/unictype/categ_Nd.h: Likewise.
63462         * lib/unictype/categ_Nl.h: Likewise.
63463         * lib/unictype/categ_No.h: Likewise.
63464         * lib/unictype/categ_P.h: Likewise.
63465         * lib/unictype/categ_Pc.h: Likewise.
63466         * lib/unictype/categ_Pd.h: Likewise.
63467         * lib/unictype/categ_Pe.h: Likewise.
63468         * lib/unictype/categ_Pf.h: Likewise.
63469         * lib/unictype/categ_Pi.h: Likewise.
63470         * lib/unictype/categ_Po.h: Likewise.
63471         * lib/unictype/categ_Ps.h: Likewise.
63472         * lib/unictype/categ_S.h: Likewise.
63473         * lib/unictype/categ_Sc.h: Likewise.
63474         * lib/unictype/categ_Sk.h: Likewise.
63475         * lib/unictype/categ_Sm.h: Likewise.
63476         * lib/unictype/categ_So.h: Likewise.
63477         * lib/unictype/categ_Z.h: Likewise.
63478         * lib/unictype/categ_Zl.h: Likewise.
63479         * lib/unictype/categ_Zp.h: Likewise.
63480         * lib/unictype/categ_Zs.h: Likewise.
63481         * lib/unictype/categ_of.h: Likewise.
63482         * lib/unictype/combining.h: Likewise.
63483         * lib/unictype/ctype_alnum.h: Likewise.
63484         * lib/unictype/ctype_alpha.h: Likewise.
63485         * lib/unictype/ctype_blank.h: Likewise.
63486         * lib/unictype/ctype_cntrl.h: Likewise.
63487         * lib/unictype/ctype_digit.h: Likewise.
63488         * lib/unictype/ctype_graph.h: Likewise.
63489         * lib/unictype/ctype_lower.h: Likewise.
63490         * lib/unictype/ctype_print.h: Likewise.
63491         * lib/unictype/ctype_punct.h: Likewise.
63492         * lib/unictype/ctype_space.h: Likewise.
63493         * lib/unictype/ctype_upper.h: Likewise.
63494         * lib/unictype/ctype_xdigit.h: Likewise.
63495         * lib/unictype/decdigit.h: Likewise.
63496         * lib/unictype/digit.h: Likewise.
63497         * lib/unictype/mirror.h: Likewise.
63498         * lib/unictype/numeric.h: Likewise.
63499         * lib/unictype/pr_alphabetic.h: Likewise.
63500         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63501         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63502         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63503         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63504         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63505         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63506         * lib/unictype/pr_bidi_control.h: Likewise.
63507         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63508         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63509         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63510         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63511         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63512         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63513         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63514         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63515         * lib/unictype/pr_bidi_pdf.h: Likewise.
63516         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63517         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63518         * lib/unictype/pr_combining.h: Likewise.
63519         * lib/unictype/pr_composite.h: Likewise.
63520         * lib/unictype/pr_currency_symbol.h: Likewise.
63521         * lib/unictype/pr_dash.h: Likewise.
63522         * lib/unictype/pr_decimal_digit.h: Likewise.
63523         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63524         * lib/unictype/pr_deprecated.h: Likewise.
63525         * lib/unictype/pr_diacritic.h: Likewise.
63526         * lib/unictype/pr_extender.h: Likewise.
63527         * lib/unictype/pr_format_control.h: Likewise.
63528         * lib/unictype/pr_grapheme_base.h: Likewise.
63529         * lib/unictype/pr_grapheme_extend.h: Likewise.
63530         * lib/unictype/pr_grapheme_link.h: Likewise.
63531         * lib/unictype/pr_hex_digit.h: Likewise.
63532         * lib/unictype/pr_hyphen.h: Likewise.
63533         * lib/unictype/pr_id_continue.h: Likewise.
63534         * lib/unictype/pr_id_start.h: Likewise.
63535         * lib/unictype/pr_ideographic.h: Likewise.
63536         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63537         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63538         * lib/unictype/pr_ignorable_control.h: Likewise.
63539         * lib/unictype/pr_iso_control.h: Likewise.
63540         * lib/unictype/pr_join_control.h: Likewise.
63541         * lib/unictype/pr_left_of_pair.h: Likewise.
63542         * lib/unictype/pr_line_separator.h: Likewise.
63543         * lib/unictype/pr_logical_order_exception.h: Likewise.
63544         * lib/unictype/pr_lowercase.h: Likewise.
63545         * lib/unictype/pr_math.h: Likewise.
63546         * lib/unictype/pr_non_break.h: Likewise.
63547         * lib/unictype/pr_not_a_character.h: Likewise.
63548         * lib/unictype/pr_numeric.h: Likewise.
63549         * lib/unictype/pr_other_alphabetic.h: Likewise.
63550         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63551         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63552         * lib/unictype/pr_other_id_continue.h: Likewise.
63553         * lib/unictype/pr_other_id_start.h: Likewise.
63554         * lib/unictype/pr_other_lowercase.h: Likewise.
63555         * lib/unictype/pr_other_math.h: Likewise.
63556         * lib/unictype/pr_other_uppercase.h: Likewise.
63557         * lib/unictype/pr_paired_punctuation.h: Likewise.
63558         * lib/unictype/pr_paragraph_separator.h: Likewise.
63559         * lib/unictype/pr_pattern_syntax.h: Likewise.
63560         * lib/unictype/pr_pattern_white_space.h: Likewise.
63561         * lib/unictype/pr_private_use.h: Likewise.
63562         * lib/unictype/pr_punctuation.h: Likewise.
63563         * lib/unictype/pr_quotation_mark.h: Likewise.
63564         * lib/unictype/pr_radical.h: Likewise.
63565         * lib/unictype/pr_sentence_terminal.h: Likewise.
63566         * lib/unictype/pr_soft_dotted.h: Likewise.
63567         * lib/unictype/pr_space.h: Likewise.
63568         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63569         * lib/unictype/pr_titlecase.h: Likewise.
63570         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63571         * lib/unictype/pr_unified_ideograph.h: Likewise.
63572         * lib/unictype/pr_uppercase.h: Likewise.
63573         * lib/unictype/pr_variation_selector.h: Likewise.
63574         * lib/unictype/pr_white_space.h: Likewise.
63575         * lib/unictype/pr_xid_continue.h: Likewise.
63576         * lib/unictype/pr_xid_start.h: Likewise.
63577         * lib/unictype/pr_zero_width.h: Likewise.
63578         * lib/unictype/scripts.h: Likewise.
63579         * lib/unictype/scripts_byname.gperf: Likewise.
63580         * lib/unictype/sy_c_ident.h: Likewise.
63581         * lib/unictype/sy_c_whitespace.h: Likewise.
63582         * lib/unictype/sy_java_ident.h: Likewise.
63583         * lib/unictype/sy_java_whitespace.h: Likewise.
63584
63585         * lib/unictype/Makefile: New file.
63586         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63587         glibc.
63588         * lib/unictype/3level.h: New file, copied from glibc.
63589         * lib/unictype/3levelbit.h: New file.
63590
63591 2007-11-11  Bruno Haible  <bruno@clisp.org>
63592
63593         * modules/gperf: New file.
63594         * modules/iconv_open (Depends-on): Add it.
63595         (Makefile.am): Remove the GPERF definition.
63596
63597 2007-11-11  Bruno Haible  <bruno@clisp.org>
63598
63599         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63600         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63601
63602 2007-11-11  Bruno Haible  <bruno@clisp.org>
63603
63604         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63605         (usage): Remove function.
63606
63607 2007-11-11  Bruno Haible  <bruno@clisp.org>
63608
63609         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63610         gl_FUNC_CEILF_LIBS.
63611         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63612         gl_FUNC_CEIL_LIBS.
63613         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63614         gl_FUNC_CEILL_LIBS.
63615         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63616         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63617         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63618
63619 2007-11-11  Bruno Haible  <bruno@clisp.org>
63620
63621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63622         roundf were declared but do not exist on functions.
63623         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63624         roundl were declared but do not exist on functions.
63625         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63626         HAVE_FLOORL_AND_CEILL, respectively.
63627         Needed for Sun C on Solaris 10.
63628
63629 2007-11-11  Bruno Haible  <bruno@clisp.org>
63630
63631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63632         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63633         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63634         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63635         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63636         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63637         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63638         HAVE_DECL_ROUNDF.
63639         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63640         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63642         of HAVE_DECL_ROUND*.
63643         * modules/math (Makefile.am): Update.
63644
63645 2007-11-10  Bruno Haible  <bruno@clisp.org>
63646
63647         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63648         ptrdiff_t as m4/intl.m4.
63649
63650 2007-11-10  Jim Meyering  <meyering@redhat.com>
63651
63652         Avoid link failure for the argmatch test.
63653         * tests/test-argmatch.c (usage): Define function to avoid a link
63654         failure: argmatch_die requires a usage function.
63655
63656 2007-11-09  Bruno Haible  <bruno@clisp.org>
63657
63658         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63659         * doc/functions/vsnprintf.texi: Likewise.
63660         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63661         with a size argument < 2.
63662
63663 2007-11-09  Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63666         buffer. Fixes an inefficiency introduced on 2007-11-03.
63667
63668 2007-11-09  Bruno Haible  <bruno@clisp.org>
63669
63670         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63671         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63672
63673 2007-11-08  Jim Meyering  <meyering@redhat.com>
63674
63675         Change cache variable name prefix "jm_" to "gl_" everywhere.
63676         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63677         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63678         * m4/uptime.m4: s/gl_/jm_/
63679
63680 2007-11-07  Bruno Haible  <bruno@clisp.org>
63681
63682         Update to GNU gettext 0.17.
63683         * m4/intl.m4: Update to GNU gettext 0.17.
63684         * m4/po.m4: Likewise.
63685         * modules/gettext (Files): Remove m4/ulonglong.m4.
63686         (configure.ac): Require gettext infrastructure from version 0.17.
63687
63688 2007-11-06  Bruno Haible  <bruno@clisp.org>
63689
63690         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63691         symbolic values are not defined in a public header.
63692         * lib/freadable.c (freadable) [QNX]: Likewise.
63693         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63694         * lib/freading.c (freading) [QNX]: Likewise.
63695         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63696         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63697         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63698         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63699         Reported by Alain Magloire.
63700
63701         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63702
63703 2007-11-05  Bruno Haible  <bruno@clisp.org>
63704
63705         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63706         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63707         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63708         Reported by Eric Blake.
63709
63710 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63711             Bruno Haible  <bruno@clisp.org>
63712
63713         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63714         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63715         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63716         (malloc): Undefine also before including <stdlib.h>.
63717         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63718         Needed on OSF/1 4.0.
63719
63720 2007-11-05  Jim Meyering  <meyering@redhat.com>
63721
63722         git-version-gen: sync from coreutils.
63723         * build-aux/git-version-gen: Add comments.
63724         Change the first '-' to '.' in the snapshot version string,
63725         e.g., 6.9-377-08144 -> 6.9.377-08144
63726         Remove first parameter.
63727         Don't declare a version "-dirty" merely because a time
63728         stamp has changed.
63729
63730 2007-11-04  Bruno Haible  <bruno@clisp.org>
63731
63732         * lib/lock.h: Protect all macro definitions containing an 'if'
63733         statement through a "do { ... } while (0)".
63734         * lib/tls.h: Likewise.
63735
63736 2007-11-04  Bruno Haible  <bruno@clisp.org>
63737
63738         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63739
63740 2007-11-04  Bruno Haible  <bruno@clisp.org>
63741
63742         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63743         * modules/fprintf-posix (Depends-on): Add nocrash.
63744         * modules/snprintf-posix (Depends-on): Likewise.
63745         * modules/sprintf-posix (Depends-on): Likewise.
63746         * modules/vasnprintf-posix (Depends-on): Likewise.
63747         * modules/vasprintf-posix (Depends-on): Likewise.
63748         * modules/vfprintf-posix (Depends-on): Likewise.
63749         * modules/vsnprintf-posix (Depends-on): Likewise.
63750         * modules/vsprintf-posix (Depends-on): Likewise.
63751         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63752         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63753         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63754         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63755         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63756         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63757         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63758
63759 2007-11-04  Bruno Haible  <bruno@clisp.org>
63760
63761         * modules/nocrash: New file.
63762         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63763         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63764
63765 2007-11-04  Bruno Haible  <bruno@clisp.org>
63766
63767         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63768         precision handling.
63769         * tests/test-vasprintf-posix.c (test_function): Likewise.
63770         * tests/test-snprintf-posix.h (test_function): Likewise.
63771         * tests/test-sprintf-posix.h (test_function): Likewise.
63772
63773         Fix *printf behaviour for large precisions on mingw and BeOS.
63774         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63775         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63777         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63778         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63779         gl_PRINTF_PRECISION and test its result. Invoke
63780         gl_PREREQ_VASNPRINTF_PRECISION.
63781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63782         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63783         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63784         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63785         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63786         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63787         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63788         * doc/functions/fprintf.texi: Update.
63789         * doc/functions/printf.texi: Update.
63790         * doc/functions/snprintf.texi: Update.
63791         * doc/functions/sprintf.texi: Update.
63792         * doc/functions/vfprintf.texi: Update.
63793         * doc/functions/vprintf.texi: Update.
63794         * doc/functions/vsnprintf.texi: Update.
63795         * doc/functions/vsprintf.texi: Update.
63796
63797 2007-11-04  Bruno Haible  <bruno@clisp.org>
63798
63799         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63800
63801 2007-11-04  Bruno Haible  <bruno@clisp.org>
63802
63803         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63804         Reported by Sylvain Beucler <beuc@gnu.org>.
63805
63806 2007-11-03  Bruno Haible  <bruno@clisp.org>
63807
63808         * tests/test-fprintf-posix2.sh: New file.
63809         * tests/test-fprintf-posix2.c: New file.
63810         * modules/fprintf-posix-tests (Files): Add them.
63811         (TESTS): Add test-fprintf-posix2.sh.
63812         (configure.ac): Check for getrlimit and setrlimit.
63813         (check_PROGRAMS): Add test-fprintf-posix2.
63814
63815         * tests/test-printf-posix2.sh: New file.
63816         * tests/test-printf-posix2.c: New file.
63817         * modules/printf-posix-tests (Files): Add them.
63818         (TESTS): Add test-printf-posix2.sh.
63819         (configure.ac): Check for getrlimit and setrlimit.
63820         (check_PROGRAMS): Add test-printf-posix2.
63821
63822         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63823         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63824         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63825         (decode_double): New function, copied from decode_long_double.
63826         (scale10_round_decimal_decoded): New function, extracted from
63827         scale10_round_decimal_long_double.
63828         (scale10_round_decimal_long_double): Use it.
63829         (scale10_round_decimal_double): New function.
63830         (floorlog10): New function.
63831         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63833         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63834         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63835         gl_PRINTF_ENOMEM and test its result. Invoke
63836         gl_PREREQ_VASNPRINTF_ENOMEM.
63837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63844         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63845         * modules/snprintf-posix (Depends-on): Likewise.
63846         * modules/sprintf-posix (Depends-on): Likewise.
63847         * modules/vasnprintf-posix (Depends-on): Likewise.
63848         * modules/vasprintf-posix (Depends-on): Likewise.
63849         * modules/vfprintf-posix (Depends-on): Likewise.
63850         * modules/vsnprintf-posix (Depends-on): Likewise.
63851         * modules/vsprintf-posix (Depends-on): Likewise.
63852         * doc/functions/fprintf.texi: Update.
63853         * doc/functions/printf.texi: Update.
63854         * doc/functions/snprintf.texi: Update.
63855         * doc/functions/sprintf.texi: Update.
63856         * doc/functions/vfprintf.texi: Update.
63857         * doc/functions/vprintf.texi: Update.
63858         * doc/functions/vsnprintf.texi: Update.
63859         * doc/functions/vsprintf.texi: Update.
63860
63861 2007-11-03  Bruno Haible  <bruno@clisp.org>
63862
63863         * modules/frexp-nolibm-tests: New file.
63864
63865         * modules/frexp-nolibm: New file.
63866         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63867
63868 2007-11-03  Bruno Haible  <bruno@clisp.org>
63869
63870         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63871         value is C99 compliant.
63872         Needed for OSF/1 5.1.
63873
63874 2007-11-03  Bruno Haible  <bruno@clisp.org>
63875
63876         Fix out-of-memory handling of vasnprintf.
63877         * lib/printf-parse.c: Include <errno.h>.
63878         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63879         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63880         is already set.
63881
63882 2007-11-02  Eric Blake  <ebb9@byu.net>
63883
63884         Fix tests on cygwin.
63885         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63886
63887 2007-11-01  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63890         warning.
63891         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63892         needed for POSIX compatibility.
63893
63894 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63897         for compatibility with GNU.
63898
63899 2007-11-01  Bruno Haible  <bruno@clisp.org>
63900
63901         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63902         (putenv): Renamed from rpl_putenv. Change argument type from
63903         'const char *' to 'char *'.
63904         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63905         of defining putenv in config.h, just set REPLACE_PUTENV.
63906         * modules/putenv (Depends-on): Add stdlib.
63907         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63908         (Include): Use <stdlib.h>.
63909         * lib/stdlib.in.h (putenv): New declaration.
63910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63911         REPLACE_PUTENV.
63912         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63913         REPLACE_PUTENV.
63914         Needed for MacOS X 10.5.0.
63915         Reported by Peter O'Gorman <peter@pogma.com>.
63916
63917 2007-11-01  Jim Meyering  <meyering@redhat.com>
63918
63919         Treat an empty date string exactly like "0".
63920         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63921         if the remaining date string (to be parsed) is empty, use "0".
63922         Reported by Mischa Molhoek and discussed in this thread:
63923         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63924
63925 2007-10-31  Bruno Haible  <bruno@clisp.org>
63926
63927         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63928         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63929         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63930         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63931         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63932         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63933
63934 2007-10-31  Bruno Haible  <bruno@clisp.org>
63935
63936         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63937         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63938         (AC_TYPE_LONG_LONG_INT): Use it.
63939         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63940         it as well.
63941         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63942         to m4/longlong.m4.
63943         * modules/stdint (Files): Remove m4/ulonglong.m4.
63944         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63945         m4/ulonglong.m4.
63946         * modules/strtoumax (Files): Likewise.
63947
63948 2007-10-30  Bruno Haible  <bruno@clisp.org>
63949
63950         * modules/xvasprintf-posix: New file.
63951         Suggested by Eric Blake.
63952
63953 2007-10-30  Bruno Haible  <bruno@clisp.org>
63954
63955         * modules/xprintf-posix-tests: New file.
63956         * tests/test-xprintf-posix.sh: New file.
63957         * tests/test-xprintf-posix.c: New file.
63958         * tests/test-xfprintf-posix.c: New file.
63959
63960         * modules/xprintf-posix: New file.
63961
63962 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63963
63964         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63965         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63966         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63967
63968 2007-10-29  Bruno Haible  <bruno@clisp.org>
63969
63970         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63971         contain the special marker '_cv_'.
63972         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63973         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63974         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63975         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63976         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63977         Reported by Ralf Wildenhues.
63978
63979 2007-10-29  Bruno Haible  <bruno@clisp.org>
63980
63981         * gnulib-tool (func_import): When --lgpl is not specified, set
63982         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63983         GPLv3.
63984         Reported by Simon Josefsson.
63985
63986 2007-10-28  Bruno Haible  <bruno@clisp.org>
63987
63988         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63989         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63990         HAVE_DECL_ISFINITE.
63991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63992         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63993         HAVE_DECL_ISFINITE.
63994
63995 2007-10-28  Bruno Haible  <bruno@clisp.org>
63996
63997         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63998         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63999
64000 2007-10-28  Bruno Haible  <bruno@clisp.org>
64001
64002         Fix link errors with Sun C 5.0 on Solaris 10.
64003         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64004         function is declared but not present in the compiler's libm.
64005         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64006         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64007         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64008         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64009         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64010         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64011         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64013         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64014         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64015         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64016         HAVE_DECL_FLOORL.
64017
64018 2007-10-28  Bruno Haible  <bruno@clisp.org>
64019
64020         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64021         gl_FUNC_FLOORL. Cache the result.
64022         (gl_FUNC_FLOORL): Use it.
64023         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64024         gl_FUNC_CEILL. Cache the result.
64025         (gl_FUNC_CEILL): Use it.
64026
64027         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64028         gl_FUNC_FLOOR. Cache the result.
64029         (gl_FUNC_FLOOR): Use it.
64030         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64031         gl_FUNC_CEIL. Cache the result.
64032         (gl_FUNC_CEIL): Use it.
64033
64034         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64035         gl_FUNC_FLOORF. Cache the result.
64036         (gl_FUNC_FLOORF): Use it.
64037         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64038         gl_FUNC_CEILF. Cache the result.
64039         (gl_FUNC_CEILF): Use it.
64040
64041 2007-10-28  Bruno Haible  <bruno@clisp.org>
64042
64043         * gnulib-tool: Allow specifying the LGPL version number through
64044         --lgpl=2 or --lgpl=3.
64045         (func_usage): Document --lgpl with argument.
64046         Handle --lgpl=... arguments.
64047         (func_import): Recognize also gl_LGPL calls with an argument. When
64048         --lgpl=2 is used and the module's license is just LGPL, report an
64049         error. Set sed_transform_lib_file according to the lgpl variable. In
64050         the generated files, use --lgpl or gl_LGPL invocations with argument,
64051         if necessary.
64052         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64053         an LGPv2+ license.
64054         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64055         gl_LGPL macro.
64056
64057 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64058             Bruno Haible  <bruno@clisp.org>
64059
64060         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64061         (u16_uctomb_aux): Likewise.
64062         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64063         !HAVE_INLINE.
64064         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64065
64066 2007-10-28  Bruno Haible  <bruno@clisp.org>
64067
64068         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64069         Invoke AM_GETTEXT_OPTION if it exists.
64070         * modules/vasprintf: Likewise.
64071         * modules/verror: Likewise.
64072         * modules/xprintf: Likewise.
64073         * modules/xvasprintf: Likewise.
64074
64075 2007-10-27  Ben Pfaff  <blp@gnu.org>
64076
64077         * lib/math.in.h: Define isfinite macro and prototypes for
64078         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64079         implementations.
64080         * m4/math_h.m4: New substitutions for isfinite module.
64081         * lib/isfinite.c: New file.
64082         * m4/isfinite.m4: New file.
64083         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64084         * modules/isfinite: New file.
64085         * modules/isfinite-tests: New file.
64086         * tests/tests-isfinite.c: New file.
64087         * doc/functions/isfinite.texi: Mention isfinite module.
64088         * MODULES.html.sh: Mention new module.
64089
64090 2007-10-27  Ben Pfaff  <blp@gnu.org>
64091
64092         Ralf Wildenhues reported that Tru64 4.0D declares the round
64093         functions but does not have definitions.
64094         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64095         cannot be found in any library, set the output variable to
64096         "missing" instead of "".
64097         * m4/round.m4: Also use our substitute if we cannot find round in
64098         any library, even if it is declared.
64099         * m4/roundf.m4: Likewise for roundf.
64100         * m4/roundl.m4: Likewise for roundl.
64101         * lib/math.in.h: Undefine roundf, round, roundl before defining
64102         their replacements, to allow for hypothetical systems where these
64103         may be defined as macros but not available in libraries.
64104
64105 2007-10-27  Bruno Haible  <bruno@clisp.org>
64106
64107         * doc/gnulib.texi: Invoke @firstparagraphindent.
64108         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64109         changes in gnulib.
64110         (Source changes): New section.
64111
64112 2007-10-26  Bruno Haible  <bruno@clisp.org>
64113
64114         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64115         borrowed from autoconf.
64116
64117 2007-10-26  Bruno Haible  <bruno@clisp.org>
64118
64119         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64120         strerror returned the empty string. Needed on HP-UX 11.00.
64121
64122 2007-10-24  Micah Cowan  <micah@cowan.name>
64123
64124         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64125         * build-aux/bootstrap: Remove support for now-unnecessary option,
64126         --cvs-user, and envvars CVS_USER, CVS_RSH.
64127
64128 2007-10-24  Jim Meyering  <meyering@redhat.com>
64129
64130         Avoid diagnostics from sha1sum when there is no cached checksum.
64131         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64132         if the po.s1 file hasn't been created yet.
64133
64134         * build-aux/bootstrap: Sync from coreutils:
64135         2007-10-24  Jim Meyering  <meyering@redhat.com>
64136         Get gnulib from the git repository, not from an obsolete cvs one.
64137         * build-aux/bootstrap: Suggestion from Micah Cowan.
64138         2007-10-04  Jim Meyering  <jim@meyering.net>
64139         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64140         (update_po_files): Work also when there are no .po files in po/.
64141
64142 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         * README: Append ".git" to git and cg examples.
64145         Problem reported by Benoit Sigoure.
64146
64147 2007-10-23  Micah Cowan  <micah@cowan.name>
64148
64149         * users.txt: Add wget.
64150
64151 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64152
64153         Fix linking of some unistdio tests on FreeBSD.
64154         * modules/unistdio/u16-vsnprintf-tests
64155         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64156         * modules/unistdio/u16-vsprintf-tests
64157         (test_u16_vsnprintf1_LDADD): Likewise.
64158         * modules/unistdio/u32-vsnprintf-tests
64159         (test_u32_vsnprintf1_LDADD): Likewise.
64160         * modules/unistdio/u32-vsprintf-tests
64161         (test_u32_vsprintf1_LDADD): Likewise.
64162         * modules/unistdio/u8-vsnprintf-tests
64163         (test_u8_vsnprintf1_LDADD): Likewise.
64164         * modules/unistdio/u8-vsprintf-tests
64165         (test_u8_vsprintf1_LDADD): Likewise.
64166         * modules/unistdio/ulc-vsnprintf-tests
64167         (test_ulc_vsnprintf1_LDADD): Likewise.
64168         * modules/unistdio/ulc-vsprintf-tests
64169         (test_ulc_vsprintf1_LDADD): Likewise.
64170
64171         Fix linking of some uniconv tests on FreeBSD.
64172         * modules/uniconv/u16-conv-from-enc-tests
64173         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64174         * modules/uniconv/u16-conv-to-enc-tests
64175         (test_u16_conv_to_enc_LDADD): Likewise.
64176         * modules/uniconv/u16-strconv-from-enc-tests
64177         (test_u16_strconv_from_enc_LDADD): Likewise.
64178         * modules/uniconv/u16-strconv-to-enc-tests
64179         (test_u16_strconv_to_enc_LDADD): Likewise.
64180         * modules/uniconv/u32-conv-from-enc-tests
64181         (test_u32_conv_from_enc_LDADD): Likewise.
64182         * modules/uniconv/u32-conv-to-enc-tests
64183         (test_u32_conv_to_enc_LDADD): Likewise.
64184         * modules/uniconv/u32-strconv-from-enc-tests
64185         (test_u32_strconv_from_enc_LDADD): Likewise.
64186         * modules/uniconv/u32-strconv-to-enc-tests
64187         (test_u32_strconv_to_enc_LDADD): Likewise.
64188         * modules/uniconv/u8-conv-from-enc-tests
64189         (test_u8_conv_from_enc_LDADD): Likewise.
64190         * modules/uniconv/u8-conv-to-enc-tests
64191         (test_u8_conv_to_enc_LDADD): Likewise.
64192         * modules/uniconv/u8-strconv-from-enc-tests
64193         (test_u8_strconv_from_enc_LDADD): Likewise.
64194         * modules/uniconv/u8-strconv-to-enc-tests
64195         (test_u8_strconv_to_enc_LDADD): Likewise.
64196
64197 2007-10-22  Bruno Haible  <bruno@clisp.org>
64198
64199         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64200         size.
64201
64202 2007-10-22  Eric Blake  <ebb9@byu.net>
64203
64204         Tweak x*printf documentation.
64205         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64206         variable name and comments.
64207         Suggested by Bruno Haible.
64208
64209 2007-10-22  Bruno Haible  <bruno@clisp.org>
64210
64211         * lib/acl.c (copy_acl): Fix file name in comment.
64212
64213 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64214
64215         Fix Tru64 problem with stdbool.h.
64216         * lib/stdbool.in.h (false, true):
64217         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64218         Don't declare as an enum in this situation; it runs afoul of Tru64.
64219         Problem reported by Steven M. Schweda in
64220         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64221
64222 2007-10-22  Eric Blake  <ebb9@byu.net>
64223
64224         Also wrap vf?printf.
64225         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64226         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64227         (xvprintf, xvfprintf): New functions.
64228
64229 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64230
64231         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64232         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64233
64234         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64235         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64236
64237 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64238
64239         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64240         by Bruno Haible.
64241
64242 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64243
64244         * lib/getloadavg.c
64245         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64246         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64247
64248         * tests/test-i-ring.c: Work for C89.
64249
64250 2007-10-22  Bruno Haible  <bruno@clisp.org>
64251
64252         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64253         -1u, in preprocessor expression, so that we don't test for the bug
64254         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64256
64257 2007-10-22  Eric Blake  <ebb9@byu.net>
64258
64259         * tests/test-yesno.sh: Silence stderr during test.
64260
64261 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64262
64263         * modules/crypto/gc-camellia: New file.
64264
64265         * m4/gc-camellia.m4: New file.
64266
64267         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64268
64269         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64270
64271 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64272
64273         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64274         --help to stdout.  Reported by sms@antinode.org (Steven
64275         M. Schweda).
64276
64277 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64278
64279         * users.txt: Fix link to libksba.
64280
64281 2007-10-21  Ben Pfaff  <blp@gnu.org>
64282
64283         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64284         round.c roundf implementation that depends on floorf and ceilf to
64285         be tested unconditionally.
64286
64287 2007-10-21  Ben Pfaff  <blp@gnu.org>
64288
64289         * m4/check-libm-func.m4: Removed.
64290         * m4/check-math-lib.m4: New file.
64291         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64292         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64293         definition and lack of AC_LIBOBJ([roundf]).
64294         * m4/roundl.m4: Ditto, and similarly for roundl.
64295         * modules/round: Reference new m4 file.
64296         * modules/roundf: Ditto.
64297         * modules/roundl: Ditto.
64298         * tests/test-round2.c (main): Use ROUND instead of round.
64299         Bug report from Bruno Haible.
64300
64301 2007-10-21  Bruno Haible  <bruno@clisp.org>
64302
64303         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64304         context.
64305
64306 2007-10-21  Bruno Haible  <bruno@clisp.org>
64307
64308         * tests/test-wcwidth.c (main): Allow negative result for some control
64309         characters.
64310
64311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64312         Needed on OSF/1 5.1.
64313
64314 2007-10-21  Bruno Haible  <bruno@clisp.org>
64315
64316         * tests/test-floorf1.c: Include isnanf.h.
64317         (main): Use isnanf() instead of isnan().
64318         * tests/test-ceilf1.c: Include isnanf.h.
64319         (main): Use isnanf() instead of isnan().
64320         * tests/test-truncf1.c: Include isnanf.h.
64321         (main): Use isnanf() instead of isnan().
64322         * tests/test-roundf1.c: Include isnanf.h.
64323         (main): Use isnanf() instead of isnan().
64324
64325 2007-10-21  Eric Blake  <ebb9@byu.net>
64326
64327         * users.txt: Update URL for m4.
64328
64329 2007-10-21  Bruno Haible  <bruno@clisp.org>
64330
64331         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64332
64333 2007-10-21  Bruno Haible  <bruno@clisp.org>
64334
64335         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64336         Git's management files if the CVS files are not present.
64337
64338 2007-10-20  Bruno Haible  <bruno@clisp.org>
64339
64340         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64341         gcc-3.4.x.
64342
64343 2007-10-20  Ben Pfaff  <blp@gnu.org>
64344
64345         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64346         implementations.
64347         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64348         * lib/round.c: New file.
64349         * lib/roundf.c: New file.
64350         * lib/roundl.c: New file.
64351         * m4/round.m4: New file.
64352         * m4/roundf.m4: New file.
64353         * m4/roundl.m4: New file.
64354         * m4/check-libm-func-m4: New file.
64355         * modules/math: Replace round, roundf, roundl related @VARS@ in
64356         math.in.h.
64357         * modules/round: New file.
64358         * modules/round-tests: New file.
64359         * modules/roundf: New file.
64360         * modules/roundf-tests: New file.
64361         * modules/roundl: New file.
64362         * modules/roundl-tests: New file.
64363         * tests/test-round1.c: New file.
64364         * tests/test-round2.c: New file.
64365         * tests/test-roundf1.c: New file.
64366         * tests/test-roundf2.c: New file.
64367         * tests/test-roundl.c: New file.
64368         * doc/functions/round.texi: Mention round module.
64369         * doc/functions/roundf.texi: Mention roundf module.
64370         * doc/functions/roundl.texi: Mention roundl module.
64371         * MODULES.html.sh: Mention new modules.
64372         Thanks to Bruno Haible for suggestions.
64373
64374 2007-10-20  Jim Meyering  <meyering@redhat.com>
64375
64376         * lib/xprintf.c: Include <config.h> unconditionally.
64377
64378         Change xprintf's license to GPL.
64379         * modules/xprintf (License): s/LGPL/GPL/, since this module
64380         depends on modules (exit and exitfail) which are GPL.
64381         Suggestion from Bruno Haible.
64382
64383         xprintf fixes.
64384         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64385         Use a clearer diagnostic.
64386         Patch from Bruno Haible.
64387
64388 2007-10-20  Bruno Haible  <bruno@clisp.org>
64389
64390         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64391         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64392         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64393
64394 2007-10-20  Bruno Haible  <bruno@clisp.org>
64395
64396         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64397         precision in the comparison result > x - 1 or similar.
64398         * tests/test-ceilf2.c (correct_result_p): Likewise.
64399         * tests/test-truncf2.c (correct_result_p): Likewise.
64400         * tests/test-trunc2.c (correct_result_p): Likewise.
64401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64402
64403 2007-10-20  Bruno Haible  <bruno@clisp.org>
64404
64405         * modules/ceil: New file.
64406         * m4/ceil.m4: New file.
64407         * doc/functions/ceil.texi: Mention the 'ceil' module.
64408
64409 2007-10-20  Bruno Haible  <bruno@clisp.org>
64410
64411         * modules/floor: New file.
64412         * m4/floor.m4: New file.
64413         * doc/functions/floor.texi: Mention the 'floor' module.
64414
64415 2007-10-20  Bruno Haible  <bruno@clisp.org>
64416
64417         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64418         of %a.
64419         * modules/floorf-tests (Depends-on): Likewise.
64420         * modules/truncf-tests (Depends-on): Likewise.
64421         * modules/trunc-tests (Depends-on): Likewise.
64422         Reported by Ben Pfaff.
64423
64424 2007-10-19  Jim Meyering  <meyering@redhat.com>
64425
64426         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64427         Don't bother testing specific errno values.  Just test ferror.
64428
64429         New module: xprintf
64430         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64431
64432 2007-10-19  Bruno Haible  <bruno@clisp.org>
64433
64434         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64435         syntax.
64436         * modules/javaexec (Makefile.am): Likewise.
64437         * modules/relocatable-prog (Makefile.am): Likewise.
64438         Suggested by Jim Meyering.
64439
64440 2007-10-18  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64443         Reported by Jim Meyering.
64444
64445 2007-10-18  Eric Blake  <ebb9@byu.net>
64446
64447         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64448
64449 2007-10-18  Bruno Haible  <bruno@clisp.org>
64450
64451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64452         the format string into writable memory. Needed in Fortify conditions.
64453
64454 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64455             Bruno Haible  <bruno@clisp.org>
64456
64457         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64458         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64459         * modules/trim (Depends-on): Add mbchar.
64460         (configure.ac): Add gl_FUNC_MBRTOWC.
64461         (Makefile.am): Augment lib_SOURCES.
64462
64463 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         Modify glob.c to use fstatat and dirfd, to simplify it.
64466         Suggested by Eric Blake.
64467         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64468         Don't include <stdbool.h>; not used.
64469         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64470         (link_exists_p): Simplify implementation, since we can now assume
64471         dirfd and fstatat.
64472         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64473
64474 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64475
64476         * gnulib-tool (func_get_dependencies): Fix sed script to
64477         match only tests.
64478
64479 2007-10-17  Bruno Haible  <bruno@clisp.org>
64480
64481         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64482         allow locale names without encoding suffix.
64483         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64484         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64485
64486 2007-10-16  Bruno Haible  <bruno@clisp.org>
64487
64488         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64489         * lib/getgroups.c (getgroups): Likewise.
64490         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64491
64492 2007-10-16  Bruno Haible  <bruno@clisp.org>
64493
64494         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64495         * modules/malloc-posix (License): Likewise.
64496         * modules/realloc-posix (License): Likewise.
64497         * modules/calloc-posix (License): Likewise.
64498         * modules/intprops (License): Change from GPL to LGPL, with
64499         Paul Eggert's approval.
64500
64501 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64502
64503         Merge glibc changes into lib/glob.c.
64504
64505         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64506         2007-10-15 04:59:03 UTC.  Here are the changes:
64507
64508         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64509
64510         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64511
64512         * lib/glob.c: Add some branch prediction throughout.
64513
64514         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64515
64516         [BZ #5103]
64517         * lib/glob.c (glob): Recognize patterns starting \/.
64518
64519         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64520
64521         [BZ #3996]
64522         * lib/glob.c (attribute_hidden): Define if not defined.
64523         (glob): Unescape dirname, filename or username when needed and not
64524         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64525         is NULL.  Handle unescaped [ in pattern without closing ].
64526         Don't pass GLOB_CHECK down to recursive glob for directories.
64527         (__glob_pattern_type): New function.
64528         (__glob_pattern_p): Implement using __glob_pattern_type.
64529         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64530         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64531         Remove unreachable code.
64532
64533         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64534
64535         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64536         explain why there are no leaks.
64537
64538         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64539
64540         [BZ #3253]
64541         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64542         time, rather allocate increasingly bigger arrays of pointers, if
64543         possible with alloca, if too large with malloc.
64544
64545 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64546
64547         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64548         Problem reported by H.Merijn Brand in
64549         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64550         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64551         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64552
64553 2007-10-15  Bruno Haible  <bruno@clisp.org>
64554
64555         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64556         with explicit rpl_ prefix.
64557         * lib/fopen.c (fopen): Likewise.
64558         * lib/freopen.c (freopen): Likewise.
64559         * lib/iconv.c (iconv): Likewise.
64560         * lib/iconv_close.c (iconv_close): Likewise.
64561
64562 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64563
64564         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64565
64566 2007-10-15  Bruno Haible  <bruno@clisp.org>
64567
64568         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64569         <stddef.h> instead of <stdlib.h> since we only need NULL.
64570         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64571
64572 2007-10-15  Bruno Haible  <bruno@clisp.org>
64573
64574         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64575         Replace paragraph talking about LIBOBJS.
64576         Reported by Colin Watson <cjwatson@debian.org>.
64577
64578 2007-10-15  Bruno Haible  <bruno@clisp.org>
64579
64580         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64581         <stdlib.h> before using NULL.
64582
64583 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64584
64585         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64586         Reported by Albert Chin <china@thewrittenword.com>.
64587
64588 2007-10-14  Bruno Haible  <bruno@clisp.org>
64589
64590         * modules/iconv_open-utf-tests: New file.
64591         * tests/test-iconv-utf.c: New file.
64592
64593         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64594         * modules/iconv_open-utf: New file.
64595         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64596         (iconv, iconv_close): New declarations.
64597         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64598         be defined.
64599         (iconv_open): Add special handling of conversion between UTF-8 and
64600         UTF-{16,32}{BE,LE}.
64601         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64602         * lib/iconv_close.c: New file.
64603         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64604         gl_FUNC_ICONV_OPEN.
64605         (gl_FUNC_ICONV_OPEN): Use it.
64606         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64607         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64608         and REPLACE_ICONV_UTF.
64609         * modules/iconv_open (Depends-on): Add c-strcase.
64610         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64611         ICONV_CONST.
64612         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64613
64614 2007-10-13  Albert Chin  <china@thewrittenword.com>
64615             Bruno Haible  <bruno@clisp.org>
64616
64617         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64618         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64619
64620 2007-10-13  Bruno Haible  <bruno@clisp.org>
64621
64622         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64623         defined, use the ISO C99 inline semantics.
64624         * lib/argp.h (ARGP_EI): Likewise.
64625
64626 2007-10-13  Bruno Haible  <bruno@clisp.org>
64627
64628         Handle 'inline' change in gcc 4.3.0.
64629         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64630         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64631         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64632         argp_fmtstream_point): Disable 'extern' declaration if the function
64633         definition is going to be provided inline.
64634         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64635         semantics, not the ISO C99 inline semantics.
64636         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64637         'extern' declaration if the function definition is going to be provided
64638         inline.
64639         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64640         the GNU C inline semantics, not the ISO C99 inline semantics. With
64641         GCC 4.2, avoid a warning.
64642
64643 2007-10-13  Bruno Haible  <bruno@clisp.org>
64644
64645         * lib/freading.h (freading): Enable the use of __freading for
64646         glibc >= 2.7.
64647         * lib/freading.c (freading): Likewise.
64648
64649 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64650
64651         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64652         "warning: C99 inline functions are not supported; using GNU89".
64653
64654 2007-10-12  Bruno Haible  <bruno@clisp.org>
64655
64656         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64657         of 2.
64658         * tests/test-ceilf2.c: New file.
64659         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64660
64661         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64662         * modules/ceilf-tests: Update.
64663
64664 2007-10-12  Bruno Haible  <bruno@clisp.org>
64665
64666         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64667         of 2.
64668         * tests/test-floorf2.c: New file.
64669         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64670
64671         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64672         * modules/floorf-tests: Update.
64673
64674 2007-10-12  Bruno Haible  <bruno@clisp.org>
64675
64676         * tests/test-trunc2.c: New file.
64677         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64678
64679         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64680         * modules/trunc-tests: Update.
64681
64682 2007-10-12  Bruno Haible  <bruno@clisp.org>
64683
64684         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64685         of 2.
64686         * tests/test-truncf2.c: New file.
64687         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64688
64689         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64690         * modules/truncf-tests: Update.
64691
64692 2007-10-11  Eric Blake  <ebb9@byu.net>
64693
64694         Don't claim strerror is broken on Interix.
64695         * doc/functions/strerror.texi (strerror): Known broken systems are
64696         now Solaris 8, and not Interix.
64697         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64698         Interix on cross-compile.
64699         Reported by Martin Koeppe in
64700         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64701
64702 2007-10-11  Bruno Haible  <bruno@clisp.org>
64703
64704         * modules/i-ring-tests: New file.
64705         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64706         instead of assert.
64707
64708 2007-10-11  Bruno Haible  <bruno@clisp.org>
64709
64710         * modules/filenamecat-tests: New file.
64711         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64712         * lib/filenamecat.c: Remove test code.
64713
64714 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64717
64718         * lib/strerror.c: Include <string.h> always, to test interface,
64719         and to remove the need for the dummy.
64720         Include intprops.h to compute width instead of doing it ourselves
64721         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64722         (strerror): Define it to return NULL if there's no system strerror.
64723         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64724         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64725         ancient pre-strerror Unix systems well any more.  Saying "unknown
64726         system error" is enough.
64727         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64728         simpler strerror.c implementation.
64729         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64730         Simplify the tests to reflect the simpler strerror implementation.
64731         * modules/strerror (Depends-on): Add intprops.
64732
64733 2007-10-09  Eric Blake  <ebb9@byu.net>
64734
64735         Silence test-fpending.
64736         * modules/fpending-tests (Files): Add wrapper script.
64737         * tests/test-fpending.sh: New file.
64738
64739 2007-10-09  Bruno Haible  <bruno@clisp.org>
64740
64741         * MODULES.html.sh (func_module): Don't create a hyperlink for
64742         function names like 'printf_frexp'.
64743         (Misc): Add crc, memxor.
64744         (Characteristics of floating types): New section.
64745         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64746         isnanf-nolibm, signbit, trunc, truncf, truncl.
64747         (Enhancements for ISO C 99 functions): New subsection Input/output.
64748         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64749         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64750         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64751         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64752         (Enhancements for POSIX:2001 functions): Add chdir-long.
64753         (File system functions): Add areadlink, chdir-safer, read-file.
64754         Remove cycle-check.
64755         (File system as inode set): New section.
64756         (Date and time): Add gethrxtime.
64757         (Multithreading): Add openmp.
64758         (Internationalization functions): Add localename.
64759         (Unicode string functions): Add unistr/u*-mbsnlen.
64760         (Support for maintaining and releasing projects): Add git-version-gen.
64761         (Lone files): Remove directories.
64762
64763 2007-10-08  Ben Pfaff  <blp@gnu.org>
64764
64765         * lib/xmalloca.h: Fix typo in comment.
64766
64767 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64770         when avoiding problems with integer overflow.  Use a portable test
64771         instead.
64772
64773 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64774
64775         * modules/dummy (License): Change to LGPLv2+.
64776         * modules/float (License): Likewise
64777         * modules/realloc (License): Likewise
64778         * modules/stdlib (License): Likewise
64779
64780 2007-10-07  Bruno Haible  <bruno@clisp.org>
64781
64782         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64783         * floor.c (TWO_MANT_DIG): Likewise.
64784         * ceil.c (TWO_MANT_DIG): Likewise.
64785         Reported by Ben Pfaff.
64786
64787 2007-10-07  Bruno Haible  <bruno@clisp.org>
64788
64789         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64790         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64791         * lib/frexp.c (FUNC): Likewise.
64792         * lib/printf-frexp.h (printf_frexp): Likewise.
64793         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64794         * lib/printf-frexp.c (FUNC): Likewise.
64795         Suggested by Jim Meyering.
64796
64797 2007-10-07  Jim Meyering  <meyering@redhat.com>
64798
64799         Make xnanosleep's integer overflow test more robust.
64800         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64801         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64802
64803 2007-10-07  Bruno Haible  <bruno@clisp.org>
64804
64805         * NEWS: Mention the license change.
64806
64807         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64808         abbreviations in the modules files.
64809
64810         Change copyright notice from GPLv2+ to GPLv3+.
64811         * README: Change copyright notice.
64812         * MODULES.html.sh: Likewise.
64813         * build-aux/bootstrap.conf: Likewise.
64814         * build-aux/config.libpath: Likewise.
64815         * build-aux/csharpcomp.sh.in: Likewise.
64816         * build-aux/csharpexec.sh.in: Likewise.
64817         * build-aux/install-reloc: Likewise.
64818         * build-aux/javacomp.sh.in: Likewise.
64819         * build-aux/javaexec.sh.in: Likewise.
64820         * build-aux/ldd.sh.in: Likewise.
64821         * build-aux/reloc-ldflags: Likewise.
64822         * build-aux/relocatable.sh.in: Likewise.
64823         * build-aux/x-to-1.in: Likewise.
64824         * check-module: Likewise.
64825         * config/srclistvars.sh: Likewise.
64826         * gnulib-tool: Likewise.
64827         * lib/acl-internal.h: Likewise.
64828         * lib/acl.c: Likewise.
64829         * lib/acl.h: Likewise.
64830         * lib/acl_entries.c: Likewise.
64831         * lib/areadlink-with-size.c: Likewise.
64832         * lib/areadlink.c: Likewise.
64833         * lib/areadlink.h: Likewise.
64834         * lib/argmatch.c: Likewise.
64835         * lib/argmatch.h: Likewise.
64836         * lib/argp-ba.c: Likewise.
64837         * lib/argp-eexst.c: Likewise.
64838         * lib/argp-fmtstream.c: Likewise.
64839         * lib/argp-fmtstream.h: Likewise.
64840         * lib/argp-fs-xinl.c: Likewise.
64841         * lib/argp-help.c: Likewise.
64842         * lib/argp-namefrob.h: Likewise.
64843         * lib/argp-parse.c: Likewise.
64844         * lib/argp-pin.c: Likewise.
64845         * lib/argp-pv.c: Likewise.
64846         * lib/argp-pvh.c: Likewise.
64847         * lib/argp-xinl.c: Likewise.
64848         * lib/argp.h: Likewise.
64849         * lib/at-func.c: Likewise.
64850         * lib/atanl.c: Likewise.
64851         * lib/backupfile.c: Likewise.
64852         * lib/backupfile.h: Likewise.
64853         * lib/basename.c: Likewise.
64854         * lib/binary-io.h: Likewise.
64855         * lib/byteswap.in.h: Likewise.
64856         * lib/c-stack.c: Likewise.
64857         * lib/c-stack.h: Likewise.
64858         * lib/c-strcasestr.c: Likewise.
64859         * lib/c-strcasestr.h: Likewise.
64860         * lib/c-strstr.c: Likewise.
64861         * lib/c-strstr.h: Likewise.
64862         * lib/c-strtod.c: Likewise.
64863         * lib/calloc.c: Likewise.
64864         * lib/canon-host.c: Likewise.
64865         * lib/canon-host.h: Likewise.
64866         * lib/canonicalize-lgpl.c: Likewise.
64867         * lib/canonicalize.c: Likewise.
64868         * lib/canonicalize.h: Likewise.
64869         * lib/ceil.c: Likewise.
64870         * lib/ceilf.c: Likewise.
64871         * lib/ceill.c: Likewise.
64872         * lib/chdir-long.c: Likewise.
64873         * lib/chdir-long.h: Likewise.
64874         * lib/chdir-safer.c: Likewise.
64875         * lib/chdir-safer.h: Likewise.
64876         * lib/chown.c: Likewise.
64877         * lib/classpath.c: Likewise.
64878         * lib/classpath.h: Likewise.
64879         * lib/clean-temp.c: Likewise.
64880         * lib/clean-temp.h: Likewise.
64881         * lib/cloexec.c: Likewise.
64882         * lib/close-stream.c: Likewise.
64883         * lib/closein.c: Likewise.
64884         * lib/closein.h: Likewise.
64885         * lib/closeout.c: Likewise.
64886         * lib/closeout.h: Likewise.
64887         * lib/concat-filename.c: Likewise.
64888         * lib/copy-file.c: Likewise.
64889         * lib/copy-file.h: Likewise.
64890         * lib/count-one-bits.h: Likewise.
64891         * lib/crc.c: Likewise.
64892         * lib/crc.h: Likewise.
64893         * lib/creat-safer.c: Likewise.
64894         * lib/csharpcomp.c: Likewise.
64895         * lib/csharpcomp.h: Likewise.
64896         * lib/csharpexec.c: Likewise.
64897         * lib/csharpexec.h: Likewise.
64898         * lib/cycle-check.c: Likewise.
64899         * lib/cycle-check.h: Likewise.
64900         * lib/diacrit.c: Likewise.
64901         * lib/diacrit.h: Likewise.
64902         * lib/diffseq.h: Likewise.
64903         * lib/dirchownmod.c: Likewise.
64904         * lib/dirent.in.h: Likewise.
64905         * lib/dirfd.c: Likewise.
64906         * lib/dirfd.h: Likewise.
64907         * lib/dirname.c: Likewise.
64908         * lib/dirname.h: Likewise.
64909         * lib/dummy.c: Likewise.
64910         * lib/dup-safer.c: Likewise.
64911         * lib/dup2.c: Likewise.
64912         * lib/eealloc.h: Likewise.
64913         * lib/error.c: Likewise.
64914         * lib/error.h: Likewise.
64915         * lib/euidaccess.c: Likewise.
64916         * lib/exclude.c: Likewise.
64917         * lib/exclude.h: Likewise.
64918         * lib/execute.c: Likewise.
64919         * lib/execute.h: Likewise.
64920         * lib/exitfail.c: Likewise.
64921         * lib/exitfail.h: Likewise.
64922         * lib/expl.c: Likewise.
64923         * lib/fatal-signal.c: Likewise.
64924         * lib/fatal-signal.h: Likewise.
64925         * lib/fbufmode.c: Likewise.
64926         * lib/fbufmode.h: Likewise.
64927         * lib/fchdir.c: Likewise.
64928         * lib/fchmodat.c: Likewise.
64929         * lib/fchownat.c: Likewise.
64930         * lib/fcntl--.h: Likewise.
64931         * lib/fcntl-safer.h: Likewise.
64932         * lib/fcntl.in.h: Likewise.
64933         * lib/fd-safer.c: Likewise.
64934         * lib/fflush.c: Likewise.
64935         * lib/file-has-acl.c: Likewise.
64936         * lib/file-set.c: Likewise.
64937         * lib/file-type.c: Likewise.
64938         * lib/file-type.h: Likewise.
64939         * lib/fileblocks.c: Likewise.
64940         * lib/filemode.c: Likewise.
64941         * lib/filemode.h: Likewise.
64942         * lib/filename.h: Likewise.
64943         * lib/filenamecat.c: Likewise.
64944         * lib/filenamecat.h: Likewise.
64945         * lib/findprog.c: Likewise.
64946         * lib/findprog.h: Likewise.
64947         * lib/float.in.h: Likewise.
64948         * lib/floor.c: Likewise.
64949         * lib/floorf.c: Likewise.
64950         * lib/floorl.c: Likewise.
64951         * lib/fopen-safer.c: Likewise.
64952         * lib/fopen.c: Likewise.
64953         * lib/fpending.c: Likewise.
64954         * lib/fpending.h: Likewise.
64955         * lib/fprintf.c: Likewise.
64956         * lib/fprintftime.h: Likewise.
64957         * lib/fpucw.h: Likewise.
64958         * lib/fpurge.c: Likewise.
64959         * lib/fpurge.h: Likewise.
64960         * lib/freadable.c: Likewise.
64961         * lib/freadable.h: Likewise.
64962         * lib/freadahead.c: Likewise.
64963         * lib/freadahead.h: Likewise.
64964         * lib/freading.c: Likewise.
64965         * lib/freading.h: Likewise.
64966         * lib/free.c: Likewise.
64967         * lib/freopen.c: Likewise.
64968         * lib/frexp.c: Likewise.
64969         * lib/frexpl.c: Likewise.
64970         * lib/fseek.c: Likewise.
64971         * lib/fseterr.c: Likewise.
64972         * lib/fseterr.h: Likewise.
64973         * lib/fstatat.c: Likewise.
64974         * lib/fstrcmp.c: Likewise.
64975         * lib/fstrcmp.h: Likewise.
64976         * lib/fsusage.c: Likewise.
64977         * lib/fsusage.h: Likewise.
64978         * lib/ftell.c: Likewise.
64979         * lib/ftello.c: Likewise.
64980         * lib/fts-cycle.c: Likewise.
64981         * lib/fts.c: Likewise.
64982         * lib/fts_.h: Likewise.
64983         * lib/full-read.c: Likewise.
64984         * lib/full-read.h: Likewise.
64985         * lib/full-write.c: Likewise.
64986         * lib/full-write.h: Likewise.
64987         * lib/fwritable.c: Likewise.
64988         * lib/fwritable.h: Likewise.
64989         * lib/fwriteerror.c: Likewise.
64990         * lib/fwriteerror.h: Likewise.
64991         * lib/fwriting.c: Likewise.
64992         * lib/fwriting.h: Likewise.
64993         * lib/gcd.c: Likewise.
64994         * lib/gcd.h: Likewise.
64995         * lib/getcwd.c: Likewise.
64996         * lib/getdate.h: Likewise.
64997         * lib/getdate.y: Likewise.
64998         * lib/getdomainname.c: Likewise.
64999         * lib/getdomainname.h: Likewise.
65000         * lib/getgroups.c: Likewise.
65001         * lib/gethostname.c: Likewise.
65002         * lib/gethrxtime.c: Likewise.
65003         * lib/gethrxtime.h: Likewise.
65004         * lib/getloadavg.c: Likewise.
65005         * lib/getndelim2.c: Likewise.
65006         * lib/getndelim2.h: Likewise.
65007         * lib/getnline.c: Likewise.
65008         * lib/getnline.h: Likewise.
65009         * lib/getopt.c: Likewise.
65010         * lib/getopt.in.h: Likewise.
65011         * lib/getopt1.c: Likewise.
65012         * lib/getopt_int.h: Likewise.
65013         * lib/getpagesize.h: Likewise.
65014         * lib/getsubopt.c: Likewise.
65015         * lib/gettime.c: Likewise.
65016         * lib/getugroups.c: Likewise.
65017         * lib/getugroups.h: Likewise.
65018         * lib/getusershell.c: Likewise.
65019         * lib/gl_anyavltree_list1.h: Likewise.
65020         * lib/gl_anyavltree_list2.h: Likewise.
65021         * lib/gl_anyhash_list1.h: Likewise.
65022         * lib/gl_anyhash_list2.h: Likewise.
65023         * lib/gl_anylinked_list1.h: Likewise.
65024         * lib/gl_anylinked_list2.h: Likewise.
65025         * lib/gl_anyrbtree_list1.h: Likewise.
65026         * lib/gl_anyrbtree_list2.h: Likewise.
65027         * lib/gl_anytree_list1.h: Likewise.
65028         * lib/gl_anytree_list2.h: Likewise.
65029         * lib/gl_anytree_oset.h: Likewise.
65030         * lib/gl_anytreehash_list1.h: Likewise.
65031         * lib/gl_anytreehash_list2.h: Likewise.
65032         * lib/gl_array_list.c: Likewise.
65033         * lib/gl_array_list.h: Likewise.
65034         * lib/gl_array_oset.c: Likewise.
65035         * lib/gl_array_oset.h: Likewise.
65036         * lib/gl_avltree_list.c: Likewise.
65037         * lib/gl_avltree_list.h: Likewise.
65038         * lib/gl_avltree_oset.c: Likewise.
65039         * lib/gl_avltree_oset.h: Likewise.
65040         * lib/gl_avltreehash_list.c: Likewise.
65041         * lib/gl_avltreehash_list.h: Likewise.
65042         * lib/gl_carray_list.c: Likewise.
65043         * lib/gl_carray_list.h: Likewise.
65044         * lib/gl_linked_list.c: Likewise.
65045         * lib/gl_linked_list.h: Likewise.
65046         * lib/gl_linkedhash_list.c: Likewise.
65047         * lib/gl_linkedhash_list.h: Likewise.
65048         * lib/gl_list.c: Likewise.
65049         * lib/gl_list.h: Likewise.
65050         * lib/gl_oset.c: Likewise.
65051         * lib/gl_oset.h: Likewise.
65052         * lib/gl_rbtree_list.c: Likewise.
65053         * lib/gl_rbtree_list.h: Likewise.
65054         * lib/gl_rbtree_oset.c: Likewise.
65055         * lib/gl_rbtree_oset.h: Likewise.
65056         * lib/gl_rbtreehash_list.c: Likewise.
65057         * lib/gl_rbtreehash_list.h: Likewise.
65058         * lib/gl_sublist.c: Likewise.
65059         * lib/gl_sublist.h: Likewise.
65060         * lib/group-member.c: Likewise.
65061         * lib/group-member.h: Likewise.
65062         * lib/hard-locale.c: Likewise.
65063         * lib/hard-locale.h: Likewise.
65064         * lib/hash-pjw.c: Likewise.
65065         * lib/hash-pjw.h: Likewise.
65066         * lib/hash-triple.c: Likewise.
65067         * lib/hash.c: Likewise.
65068         * lib/hash.h: Likewise.
65069         * lib/human.c: Likewise.
65070         * lib/human.h: Likewise.
65071         * lib/i-ring.c: Likewise.
65072         * lib/i-ring.h: Likewise.
65073         * lib/idcache.c: Likewise.
65074         * lib/imaxabs.c: Likewise.
65075         * lib/imaxdiv.c: Likewise.
65076         * lib/inet_pton.c: Likewise.
65077         * lib/inet_pton.h: Likewise.
65078         * lib/intprops.h: Likewise.
65079         * lib/inttostr.c: Likewise.
65080         * lib/inttostr.h: Likewise.
65081         * lib/inttypes.in.h: Likewise.
65082         * lib/isapipe.c: Likewise.
65083         * lib/isdir.c: Likewise.
65084         * lib/isnan.c: Likewise.
65085         * lib/isnan.h: Likewise.
65086         * lib/isnanf.c: Likewise.
65087         * lib/isnanf.h: Likewise.
65088         * lib/isnanl-nolibm.h: Likewise.
65089         * lib/isnanl.c: Likewise.
65090         * lib/isnanl.h: Likewise.
65091         * lib/javacomp.c: Likewise.
65092         * lib/javacomp.h: Likewise.
65093         * lib/javaexec.c: Likewise.
65094         * lib/javaexec.h: Likewise.
65095         * lib/javaversion.c: Likewise.
65096         * lib/javaversion.h: Likewise.
65097         * lib/javaversion.java: Likewise.
65098         * lib/lbrkprop.h: Likewise.
65099         * lib/lchmod.h: Likewise.
65100         * lib/lchown.c: Likewise.
65101         * lib/ldexpl.c: Likewise.
65102         * lib/linebreak.c: Likewise.
65103         * lib/linebreak.h: Likewise.
65104         * lib/linebuffer.c: Likewise.
65105         * lib/linebuffer.h: Likewise.
65106         * lib/locale.in.h: Likewise.
65107         * lib/logl.c: Likewise.
65108         * lib/long-options.c: Likewise.
65109         * lib/long-options.h: Likewise.
65110         * lib/lstat.c: Likewise.
65111         * lib/lstat.h: Likewise.
65112         * lib/math.in.h: Likewise.
65113         * lib/mbchar.c: Likewise.
65114         * lib/mbchar.h: Likewise.
65115         * lib/mbfile.h: Likewise.
65116         * lib/mbiter.h: Likewise.
65117         * lib/mbscasecmp.c: Likewise.
65118         * lib/mbscasestr.c: Likewise.
65119         * lib/mbschr.c: Likewise.
65120         * lib/mbscspn.c: Likewise.
65121         * lib/mbslen.c: Likewise.
65122         * lib/mbsncasecmp.c: Likewise.
65123         * lib/mbsnlen.c: Likewise.
65124         * lib/mbspbrk.c: Likewise.
65125         * lib/mbspcasecmp.c: Likewise.
65126         * lib/mbsrchr.c: Likewise.
65127         * lib/mbssep.c: Likewise.
65128         * lib/mbsspn.c: Likewise.
65129         * lib/mbsstr.c: Likewise.
65130         * lib/mbstok_r.c: Likewise.
65131         * lib/mbswidth.c: Likewise.
65132         * lib/mbswidth.h: Likewise.
65133         * lib/mbuiter.h: Likewise.
65134         * lib/memcasecmp.c: Likewise.
65135         * lib/memcasecmp.h: Likewise.
65136         * lib/memchr.c: Likewise.
65137         * lib/memcmp.c: Likewise.
65138         * lib/memcoll.c: Likewise.
65139         * lib/memcoll.h: Likewise.
65140         * lib/memcpy.c: Likewise.
65141         * lib/memrchr.c: Likewise.
65142         * lib/mkancesdirs.c: Likewise.
65143         * lib/mkdir-p.c: Likewise.
65144         * lib/mkdir-p.h: Likewise.
65145         * lib/mkdir.c: Likewise.
65146         * lib/mkdirat.c: Likewise.
65147         * lib/mkdtemp.c: Likewise.
65148         * lib/mkstemp-safer.c: Likewise.
65149         * lib/mkstemp.c: Likewise.
65150         * lib/modechange.c: Likewise.
65151         * lib/modechange.h: Likewise.
65152         * lib/mountlist.c: Likewise.
65153         * lib/mountlist.h: Likewise.
65154         * lib/mpsort.c: Likewise.
65155         * lib/nanosleep.c: Likewise.
65156         * lib/obstack.c: Likewise.
65157         * lib/obstack.h: Likewise.
65158         * lib/open-safer.c: Likewise.
65159         * lib/open.c: Likewise.
65160         * lib/openat-die.c: Likewise.
65161         * lib/openat-priv.h: Likewise.
65162         * lib/openat-proc.c: Likewise.
65163         * lib/openat.c: Likewise.
65164         * lib/openat.h: Likewise.
65165         * lib/pagealign_alloc.c: Likewise.
65166         * lib/pagealign_alloc.h: Likewise.
65167         * lib/physmem.c: Likewise.
65168         * lib/physmem.h: Likewise.
65169         * lib/pipe-safer.c: Likewise.
65170         * lib/pipe.c: Likewise.
65171         * lib/pipe.h: Likewise.
65172         * lib/posixtm.c: Likewise.
65173         * lib/posixtm.h: Likewise.
65174         * lib/posixver.c: Likewise.
65175         * lib/printf-frexp.c: Likewise.
65176         * lib/printf-frexp.h: Likewise.
65177         * lib/printf-frexpl.c: Likewise.
65178         * lib/printf-frexpl.h: Likewise.
65179         * lib/printf.c: Likewise.
65180         * lib/progname.c: Likewise.
65181         * lib/progname.h: Likewise.
65182         * lib/progreloc.c: Likewise.
65183         * lib/putenv.c: Likewise.
65184         * lib/quote.c: Likewise.
65185         * lib/quote.h: Likewise.
65186         * lib/quotearg.c: Likewise.
65187         * lib/quotearg.h: Likewise.
65188         * lib/raise.c: Likewise.
65189         * lib/readline.c: Likewise.
65190         * lib/readline.h: Likewise.
65191         * lib/readlink.c: Likewise.
65192         * lib/readtokens.c: Likewise.
65193         * lib/readtokens.h: Likewise.
65194         * lib/readtokens0.c: Likewise.
65195         * lib/readtokens0.h: Likewise.
65196         * lib/readutmp.c: Likewise.
65197         * lib/readutmp.h: Likewise.
65198         * lib/realloc.c: Likewise.
65199         * lib/relocwrapper.c: Likewise.
65200         * lib/rename-dest-slash.c: Likewise.
65201         * lib/rename.c: Likewise.
65202         * lib/rmdir.c: Likewise.
65203         * lib/rpmatch.c: Likewise.
65204         * lib/safe-read.c: Likewise.
65205         * lib/safe-read.h: Likewise.
65206         * lib/safe-write.c: Likewise.
65207         * lib/safe-write.h: Likewise.
65208         * lib/same-inode.h: Likewise.
65209         * lib/same.c: Likewise.
65210         * lib/same.h: Likewise.
65211         * lib/save-cwd.c: Likewise.
65212         * lib/save-cwd.h: Likewise.
65213         * lib/savedir.c: Likewise.
65214         * lib/savedir.h: Likewise.
65215         * lib/savewd.c: Likewise.
65216         * lib/savewd.h: Likewise.
65217         * lib/search.in.h: Likewise.
65218         * lib/setenv.c: Likewise.
65219         * lib/setenv.h: Likewise.
65220         * lib/settime.c: Likewise.
65221         * lib/sh-quote.c: Likewise.
65222         * lib/sh-quote.h: Likewise.
65223         * lib/sig2str.c: Likewise.
65224         * lib/sig2str.h: Likewise.
65225         * lib/signal.in.h: Likewise.
65226         * lib/signbitd.c: Likewise.
65227         * lib/signbitf.c: Likewise.
65228         * lib/signbitl.c: Likewise.
65229         * lib/sigprocmask.c: Likewise.
65230         * lib/sincosl.c: Likewise.
65231         * lib/sleep.c: Likewise.
65232         * lib/sprintf.c: Likewise.
65233         * lib/sqrtl.c: Likewise.
65234         * lib/stat-time.h: Likewise.
65235         * lib/stdio--.h: Likewise.
65236         * lib/stdio-safer.h: Likewise.
65237         * lib/stdlib--.h: Likewise.
65238         * lib/stdlib-safer.h: Likewise.
65239         * lib/stdlib.in.h: Likewise.
65240         * lib/stpcpy.c: Likewise.
65241         * lib/stpncpy.c: Likewise.
65242         * lib/strchrnul.c: Likewise.
65243         * lib/strcspn.c: Likewise.
65244         * lib/strerror.c: Likewise.
65245         * lib/strftime.c: Likewise.
65246         * lib/strftime.h: Likewise.
65247         * lib/striconveh.c: Likewise.
65248         * lib/striconveh.h: Likewise.
65249         * lib/striconveha.c: Likewise.
65250         * lib/striconveha.h: Likewise.
65251         * lib/stripslash.c: Likewise.
65252         * lib/strnlen1.c: Likewise.
65253         * lib/strnlen1.h: Likewise.
65254         * lib/strtod.c: Likewise.
65255         * lib/strtoimax.c: Likewise.
65256         * lib/strtok_r.c: Likewise.
65257         * lib/strtol.c: Likewise.
65258         * lib/strtoll.c: Likewise.
65259         * lib/strtoul.c: Likewise.
65260         * lib/strtoull.c: Likewise.
65261         * lib/sysexits.in.h: Likewise.
65262         * lib/tempname.c: Likewise.
65263         * lib/tempname.h: Likewise.
65264         * lib/timespec.h: Likewise.
65265         * lib/tls.c: Likewise.
65266         * lib/tls.h: Likewise.
65267         * lib/tmpdir.c: Likewise.
65268         * lib/tmpdir.h: Likewise.
65269         * lib/tmpfile-safer.c: Likewise.
65270         * lib/tmpfile.c: Likewise.
65271         * lib/trigl.c: Likewise.
65272         * lib/trigl.h: Likewise.
65273         * lib/trim.c: Likewise.
65274         * lib/trim.h: Likewise.
65275         * lib/trunc.c: Likewise.
65276         * lib/truncf.c: Likewise.
65277         * lib/truncl.c: Likewise.
65278         * lib/tsearch.c: Likewise.
65279         * lib/unicodeio.c: Likewise.
65280         * lib/unicodeio.h: Likewise.
65281         * lib/unistd--.h: Likewise.
65282         * lib/unistd-safer.h: Likewise.
65283         * lib/unistdio/ulc-fprintf.c: Likewise.
65284         * lib/unistdio/ulc-vfprintf.c: Likewise.
65285         * lib/unlinkdir.c: Likewise.
65286         * lib/unlinkdir.h: Likewise.
65287         * lib/unlocked-io.h: Likewise.
65288         * lib/unsetenv.c: Likewise.
65289         * lib/userspec.c: Likewise.
65290         * lib/utime.c: Likewise.
65291         * lib/utimecmp.c: Likewise.
65292         * lib/utimecmp.h: Likewise.
65293         * lib/utimens.c: Likewise.
65294         * lib/verify.h: Likewise.
65295         * lib/verror.c: Likewise.
65296         * lib/verror.h: Likewise.
65297         * lib/version-etc-fsf.c: Likewise.
65298         * lib/version-etc.c: Likewise.
65299         * lib/version-etc.h: Likewise.
65300         * lib/vfprintf.c: Likewise.
65301         * lib/vprintf.c: Likewise.
65302         * lib/vsprintf.c: Likewise.
65303         * lib/w32spawn.h: Likewise.
65304         * lib/wait-process.c: Likewise.
65305         * lib/wait-process.h: Likewise.
65306         * lib/wcwidth.c: Likewise.
65307         * lib/write-any-file.c: Likewise.
65308         * lib/xalloc-die.c: Likewise.
65309         * lib/xalloc.h: Likewise.
65310         * lib/xasprintf.c: Likewise.
65311         * lib/xgetcwd.c: Likewise.
65312         * lib/xgetcwd.h: Likewise.
65313         * lib/xgetdomainname.c: Likewise.
65314         * lib/xgetdomainname.h: Likewise.
65315         * lib/xgethostname.c: Likewise.
65316         * lib/xmalloc.c: Likewise.
65317         * lib/xmalloca.c: Likewise.
65318         * lib/xmalloca.h: Likewise.
65319         * lib/xmemcoll.c: Likewise.
65320         * lib/xnanosleep.c: Likewise.
65321         * lib/xreadlink.c: Likewise.
65322         * lib/xreadlink.h: Likewise.
65323         * lib/xsetenv.c: Likewise.
65324         * lib/xsetenv.h: Likewise.
65325         * lib/xstriconv.c: Likewise.
65326         * lib/xstriconv.h: Likewise.
65327         * lib/xstrndup.c: Likewise.
65328         * lib/xstrndup.h: Likewise.
65329         * lib/xstrtod.c: Likewise.
65330         * lib/xstrtod.h: Likewise.
65331         * lib/xstrtol-error.c: Likewise.
65332         * lib/xstrtol.c: Likewise.
65333         * lib/xstrtol.h: Likewise.
65334         * lib/xtime.h: Likewise.
65335         * lib/xvasprintf.c: Likewise.
65336         * lib/xvasprintf.h: Likewise.
65337         * lib/yesno.c: Likewise.
65338         * lib/yesno.h: Likewise.
65339         * posix-modules: Likewise.
65340         * tests/test-alloca-opt.c: Likewise.
65341         * tests/test-arcfour.c: Likewise.
65342         * tests/test-arctwo.c: Likewise.
65343         * tests/test-argmatch.c: Likewise.
65344         * tests/test-argp-2.sh: Likewise.
65345         * tests/test-argp.c: Likewise.
65346         * tests/test-arpa_inet.c: Likewise.
65347         * tests/test-array_list.c: Likewise.
65348         * tests/test-array_oset.c: Likewise.
65349         * tests/test-atexit.c: Likewise.
65350         * tests/test-avltree_list.c: Likewise.
65351         * tests/test-avltree_oset.c: Likewise.
65352         * tests/test-avltreehash_list.c: Likewise.
65353         * tests/test-base64.c: Likewise.
65354         * tests/test-binary-io.c: Likewise.
65355         * tests/test-byteswap.c: Likewise.
65356         * tests/test-c-ctype.c: Likewise.
65357         * tests/test-c-strcasecmp.c: Likewise.
65358         * tests/test-c-strcasestr.c: Likewise.
65359         * tests/test-c-strncasecmp.c: Likewise.
65360         * tests/test-c-strstr.c: Likewise.
65361         * tests/test-canonicalize-lgpl.c: Likewise.
65362         * tests/test-canonicalize.c: Likewise.
65363         * tests/test-carray_list.c: Likewise.
65364         * tests/test-ceilf.c: Likewise.
65365         * tests/test-ceill.c: Likewise.
65366         * tests/test-count-one-bits.c: Likewise.
65367         * tests/test-crc.c: Likewise.
65368         * tests/test-dirname.c: Likewise.
65369         * tests/test-fbufmode.c: Likewise.
65370         * tests/test-fcntl.c: Likewise.
65371         * tests/test-fflush.c: Likewise.
65372         * tests/test-floorf.c: Likewise.
65373         * tests/test-floorl.c: Likewise.
65374         * tests/test-fopen.c: Likewise.
65375         * tests/test-fprintf-posix.c: Likewise.
65376         * tests/test-fprintf-posix.h: Likewise.
65377         * tests/test-fpurge.c: Likewise.
65378         * tests/test-freadable.c: Likewise.
65379         * tests/test-freadahead.c: Likewise.
65380         * tests/test-freading.c: Likewise.
65381         * tests/test-freopen.c: Likewise.
65382         * tests/test-frexp.c: Likewise.
65383         * tests/test-frexpl.c: Likewise.
65384         * tests/test-fseek.c: Likewise.
65385         * tests/test-fseeko.c: Likewise.
65386         * tests/test-fseterr.c: Likewise.
65387         * tests/test-fstrcmp.c: Likewise.
65388         * tests/test-ftell.c: Likewise.
65389         * tests/test-ftello.c: Likewise.
65390         * tests/test-fwritable.c: Likewise.
65391         * tests/test-fwriting.c: Likewise.
65392         * tests/test-getaddrinfo.c: Likewise.
65393         * tests/test-getpass.c: Likewise.
65394         * tests/test-gettimeofday.c: Likewise.
65395         * tests/test-hmac-md5.c: Likewise.
65396         * tests/test-hmac-sha1.c: Likewise.
65397         * tests/test-iconv.c: Likewise.
65398         * tests/test-iconvme.c: Likewise.
65399         * tests/test-inttypes.c: Likewise.
65400         * tests/test-isnan.c: Likewise.
65401         * tests/test-isnanf.c: Likewise.
65402         * tests/test-isnanl-nolibm.c: Likewise.
65403         * tests/test-isnanl.c: Likewise.
65404         * tests/test-isnanl.h: Likewise.
65405         * tests/test-ldexpl.c: Likewise.
65406         * tests/test-linked_list.c: Likewise.
65407         * tests/test-linkedhash_list.c: Likewise.
65408         * tests/test-locale.c: Likewise.
65409         * tests/test-localename.c: Likewise.
65410         * tests/test-lock.c: Likewise.
65411         * tests/test-lseek.c: Likewise.
65412         * tests/test-malloca.c: Likewise.
65413         * tests/test-math.c: Likewise.
65414         * tests/test-mbscasecmp.c: Likewise.
65415         * tests/test-mbscasestr1.c: Likewise.
65416         * tests/test-mbscasestr2.c: Likewise.
65417         * tests/test-mbscasestr3.c: Likewise.
65418         * tests/test-mbscasestr4.c: Likewise.
65419         * tests/test-mbschr.c: Likewise.
65420         * tests/test-mbscspn.c: Likewise.
65421         * tests/test-mbsncasecmp.c: Likewise.
65422         * tests/test-mbspbrk.c: Likewise.
65423         * tests/test-mbspcasecmp.c: Likewise.
65424         * tests/test-mbsrchr.c: Likewise.
65425         * tests/test-mbsspn.c: Likewise.
65426         * tests/test-mbsstr1.c: Likewise.
65427         * tests/test-mbsstr2.c: Likewise.
65428         * tests/test-mbsstr3.c: Likewise.
65429         * tests/test-md5.c: Likewise.
65430         * tests/test-memmem.c: Likewise.
65431         * tests/test-netinet_in.c: Likewise.
65432         * tests/test-open.c: Likewise.
65433         * tests/test-printf-frexp.c: Likewise.
65434         * tests/test-printf-frexpl.c: Likewise.
65435         * tests/test-printf-posix.c: Likewise.
65436         * tests/test-printf-posix.h: Likewise.
65437         * tests/test-rbtree_list.c: Likewise.
65438         * tests/test-rbtree_oset.c: Likewise.
65439         * tests/test-rbtreehash_list.c: Likewise.
65440         * tests/test-read-file.c: Likewise.
65441         * tests/test-rijndael.c: Likewise.
65442         * tests/test-search.c: Likewise.
65443         * tests/test-signbit.c: Likewise.
65444         * tests/test-sleep.c: Likewise.
65445         * tests/test-snprintf-posix.c: Likewise.
65446         * tests/test-snprintf-posix.h: Likewise.
65447         * tests/test-snprintf.c: Likewise.
65448         * tests/test-sprintf-posix.c: Likewise.
65449         * tests/test-sprintf-posix.h: Likewise.
65450         * tests/test-stat-time.c: Likewise.
65451         * tests/test-stdbool.c: Likewise.
65452         * tests/test-stdint.c: Likewise.
65453         * tests/test-stdio.c: Likewise.
65454         * tests/test-stdlib.c: Likewise.
65455         * tests/test-stpncpy.c: Likewise.
65456         * tests/test-strcasestr.c: Likewise.
65457         * tests/test-striconv.c: Likewise.
65458         * tests/test-striconveh.c: Likewise.
65459         * tests/test-striconveha.c: Likewise.
65460         * tests/test-string.c: Likewise.
65461         * tests/test-sys_select.c: Likewise.
65462         * tests/test-sys_socket.c: Likewise.
65463         * tests/test-sys_stat.c: Likewise.
65464         * tests/test-sys_time.c: Likewise.
65465         * tests/test-sysexits.c: Likewise.
65466         * tests/test-time.c: Likewise.
65467         * tests/test-tls.c: Likewise.
65468         * tests/test-trunc.c: Likewise.
65469         * tests/test-truncf.c: Likewise.
65470         * tests/test-truncl.c: Likewise.
65471         * tests/test-unistd.c: Likewise.
65472         * tests/test-vasnprintf-posix.c: Likewise.
65473         * tests/test-vasnprintf-posix2.c: Likewise.
65474         * tests/test-vasnprintf.c: Likewise.
65475         * tests/test-vasprintf-posix.c: Likewise.
65476         * tests/test-vasprintf.c: Likewise.
65477         * tests/test-verify.c: Likewise.
65478         * tests/test-vfprintf-posix.c: Likewise.
65479         * tests/test-vprintf-posix.c: Likewise.
65480         * tests/test-vsnprintf-posix.c: Likewise.
65481         * tests/test-vsnprintf.c: Likewise.
65482         * tests/test-vsprintf-posix.c: Likewise.
65483         * tests/test-wchar.c: Likewise.
65484         * tests/test-wctype.c: Likewise.
65485         * tests/test-wcwidth.c: Likewise.
65486         * tests/test-xstrtol.c: Likewise.
65487         * tests/test-xvasprintf.c: Likewise.
65488         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65489         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65490         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65491         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65492         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65493         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65494         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65495         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65496         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65497         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65498         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65499         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65500         * tests/uniname/test-uninames.c: Likewise.
65501         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65502         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65503         * tests/unistdio/test-u16-printf1.h: Likewise.
65504         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65505         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65506         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65507         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65508         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65509         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65510         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65511         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65512         * tests/unistdio/test-u32-printf1.h: Likewise.
65513         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65514         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65515         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65516         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65517         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65518         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65519         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65520         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65521         * tests/unistdio/test-u8-printf1.h: Likewise.
65522         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65523         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65524         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65525         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65526         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65527         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65528         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65529         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65530         * tests/unistdio/test-ulc-printf1.h: Likewise.
65531         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65532         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65533         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65534         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65535         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65536         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65537         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65538         * tests/uniwidth/test-u16-width.c: Likewise.
65539         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65540         * tests/uniwidth/test-u32-width.c: Likewise.
65541         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65542         * tests/uniwidth/test-u8-width.c: Likewise.
65543         * tests/uniwidth/test-uc_width.c: Likewise.
65544         * config/srclist-update: Likewise.
65545         (fixlicense): Update to GPLv3+.
65546
65547         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65548         * tests/test-tsearch.c: Change copyright notice.
65549
65550         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65551         * lib/c-strcaseeq.h: Change copyright notice.
65552         * lib/streq.h: Likewise.
65553         * lib/uniconv.h: Likewise.
65554         * lib/uniconv/u-conv-from-enc.h: Likewise.
65555         * lib/uniconv/u-conv-to-enc.h: Likewise.
65556         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65557         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65558         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65559         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65560         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65561         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65562         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65563         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65564         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65565         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65566         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65567         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65568         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65569         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65570         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65571         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65572         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65573         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65574         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65575         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65576         * lib/uniname.h: Likewise.
65577         * lib/uniname/uniname.c: Likewise.
65578         * lib/unistdio.h: Likewise.
65579         * lib/unistdio/u-asnprintf.h: Likewise.
65580         * lib/unistdio/u-asprintf.h: Likewise.
65581         * lib/unistdio/u-printf-args.c: Likewise.
65582         * lib/unistdio/u-printf-args.h: Likewise.
65583         * lib/unistdio/u-printf-parse.h: Likewise.
65584         * lib/unistdio/u-snprintf.h: Likewise.
65585         * lib/unistdio/u-sprintf.h: Likewise.
65586         * lib/unistdio/u-vasprintf.h: Likewise.
65587         * lib/unistdio/u-vsnprintf.h: Likewise.
65588         * lib/unistdio/u-vsprintf.h: Likewise.
65589         * lib/unistdio/u16-asnprintf.c: Likewise.
65590         * lib/unistdio/u16-asprintf.c: Likewise.
65591         * lib/unistdio/u16-printf-parse.c: Likewise.
65592         * lib/unistdio/u16-snprintf.c: Likewise.
65593         * lib/unistdio/u16-sprintf.c: Likewise.
65594         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65595         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65596         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65597         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65598         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65599         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65600         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65601         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65602         * lib/unistdio/u16-vasnprintf.c: Likewise.
65603         * lib/unistdio/u16-vasprintf.c: Likewise.
65604         * lib/unistdio/u16-vsnprintf.c: Likewise.
65605         * lib/unistdio/u16-vsprintf.c: Likewise.
65606         * lib/unistdio/u32-asnprintf.c: Likewise.
65607         * lib/unistdio/u32-asprintf.c: Likewise.
65608         * lib/unistdio/u32-printf-parse.c: Likewise.
65609         * lib/unistdio/u32-snprintf.c: Likewise.
65610         * lib/unistdio/u32-sprintf.c: Likewise.
65611         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65612         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65613         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65614         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65615         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65616         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65617         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65618         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65619         * lib/unistdio/u32-vasnprintf.c: Likewise.
65620         * lib/unistdio/u32-vasprintf.c: Likewise.
65621         * lib/unistdio/u32-vsnprintf.c: Likewise.
65622         * lib/unistdio/u32-vsprintf.c: Likewise.
65623         * lib/unistdio/u8-asnprintf.c: Likewise.
65624         * lib/unistdio/u8-asprintf.c: Likewise.
65625         * lib/unistdio/u8-printf-parse.c: Likewise.
65626         * lib/unistdio/u8-snprintf.c: Likewise.
65627         * lib/unistdio/u8-sprintf.c: Likewise.
65628         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65629         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65630         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65631         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65632         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65633         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65634         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65635         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65636         * lib/unistdio/u8-vasnprintf.c: Likewise.
65637         * lib/unistdio/u8-vasprintf.c: Likewise.
65638         * lib/unistdio/u8-vsnprintf.c: Likewise.
65639         * lib/unistdio/u8-vsprintf.c: Likewise.
65640         * lib/unistdio/ulc-asnprintf.c: Likewise.
65641         * lib/unistdio/ulc-asprintf.c: Likewise.
65642         * lib/unistdio/ulc-printf-parse.c: Likewise.
65643         * lib/unistdio/ulc-snprintf.c: Likewise.
65644         * lib/unistdio/ulc-sprintf.c: Likewise.
65645         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65646         * lib/unistdio/ulc-vasprintf.c: Likewise.
65647         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65648         * lib/unistdio/ulc-vsprintf.c: Likewise.
65649         * lib/unistr.h: Likewise.
65650         * lib/unistr/u-cpy-alloc.h: Likewise.
65651         * lib/unistr/u-cpy.h: Likewise.
65652         * lib/unistr/u-endswith.h: Likewise.
65653         * lib/unistr/u-move.h: Likewise.
65654         * lib/unistr/u-set.h: Likewise.
65655         * lib/unistr/u-startswith.h: Likewise.
65656         * lib/unistr/u-stpcpy.h: Likewise.
65657         * lib/unistr/u-stpncpy.h: Likewise.
65658         * lib/unistr/u-strcat.h: Likewise.
65659         * lib/unistr/u-strcpy.h: Likewise.
65660         * lib/unistr/u-strcspn.h: Likewise.
65661         * lib/unistr/u-strdup.h: Likewise.
65662         * lib/unistr/u-strlen.h: Likewise.
65663         * lib/unistr/u-strncat.h: Likewise.
65664         * lib/unistr/u-strncpy.h: Likewise.
65665         * lib/unistr/u-strnlen.h: Likewise.
65666         * lib/unistr/u-strpbrk.h: Likewise.
65667         * lib/unistr/u-strspn.h: Likewise.
65668         * lib/unistr/u-strstr.h: Likewise.
65669         * lib/unistr/u-strtok.h: Likewise.
65670         * lib/unistr/u16-check.c: Likewise.
65671         * lib/unistr/u16-chr.c: Likewise.
65672         * lib/unistr/u16-cmp.c: Likewise.
65673         * lib/unistr/u16-cpy-alloc.c: Likewise.
65674         * lib/unistr/u16-cpy.c: Likewise.
65675         * lib/unistr/u16-endswith.c: Likewise.
65676         * lib/unistr/u16-mblen.c: Likewise.
65677         * lib/unistr/u16-mbsnlen.c: Likewise.
65678         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65679         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65680         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65681         * lib/unistr/u16-mbtouc.c: Likewise.
65682         * lib/unistr/u16-mbtoucr.c: Likewise.
65683         * lib/unistr/u16-move.c: Likewise.
65684         * lib/unistr/u16-next.c: Likewise.
65685         * lib/unistr/u16-prev.c: Likewise.
65686         * lib/unistr/u16-set.c: Likewise.
65687         * lib/unistr/u16-startswith.c: Likewise.
65688         * lib/unistr/u16-stpcpy.c: Likewise.
65689         * lib/unistr/u16-stpncpy.c: Likewise.
65690         * lib/unistr/u16-strcat.c: Likewise.
65691         * lib/unistr/u16-strchr.c: Likewise.
65692         * lib/unistr/u16-strcmp.c: Likewise.
65693         * lib/unistr/u16-strcpy.c: Likewise.
65694         * lib/unistr/u16-strcspn.c: Likewise.
65695         * lib/unistr/u16-strdup.c: Likewise.
65696         * lib/unistr/u16-strlen.c: Likewise.
65697         * lib/unistr/u16-strmblen.c: Likewise.
65698         * lib/unistr/u16-strmbtouc.c: Likewise.
65699         * lib/unistr/u16-strncat.c: Likewise.
65700         * lib/unistr/u16-strncmp.c: Likewise.
65701         * lib/unistr/u16-strncpy.c: Likewise.
65702         * lib/unistr/u16-strnlen.c: Likewise.
65703         * lib/unistr/u16-strpbrk.c: Likewise.
65704         * lib/unistr/u16-strrchr.c: Likewise.
65705         * lib/unistr/u16-strspn.c: Likewise.
65706         * lib/unistr/u16-strstr.c: Likewise.
65707         * lib/unistr/u16-strtok.c: Likewise.
65708         * lib/unistr/u16-to-u32.c: Likewise.
65709         * lib/unistr/u16-to-u8.c: Likewise.
65710         * lib/unistr/u16-uctomb-aux.c: Likewise.
65711         * lib/unistr/u16-uctomb.c: Likewise.
65712         * lib/unistr/u32-check.c: Likewise.
65713         * lib/unistr/u32-chr.c: Likewise.
65714         * lib/unistr/u32-cmp.c: Likewise.
65715         * lib/unistr/u32-cpy-alloc.c: Likewise.
65716         * lib/unistr/u32-cpy.c: Likewise.
65717         * lib/unistr/u32-endswith.c: Likewise.
65718         * lib/unistr/u32-mblen.c: Likewise.
65719         * lib/unistr/u32-mbsnlen.c: Likewise.
65720         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65721         * lib/unistr/u32-mbtouc.c: Likewise.
65722         * lib/unistr/u32-mbtoucr.c: Likewise.
65723         * lib/unistr/u32-move.c: Likewise.
65724         * lib/unistr/u32-next.c: Likewise.
65725         * lib/unistr/u32-prev.c: Likewise.
65726         * lib/unistr/u32-set.c: Likewise.
65727         * lib/unistr/u32-startswith.c: Likewise.
65728         * lib/unistr/u32-stpcpy.c: Likewise.
65729         * lib/unistr/u32-stpncpy.c: Likewise.
65730         * lib/unistr/u32-strcat.c: Likewise.
65731         * lib/unistr/u32-strchr.c: Likewise.
65732         * lib/unistr/u32-strcmp.c: Likewise.
65733         * lib/unistr/u32-strcpy.c: Likewise.
65734         * lib/unistr/u32-strcspn.c: Likewise.
65735         * lib/unistr/u32-strdup.c: Likewise.
65736         * lib/unistr/u32-strlen.c: Likewise.
65737         * lib/unistr/u32-strmblen.c: Likewise.
65738         * lib/unistr/u32-strmbtouc.c: Likewise.
65739         * lib/unistr/u32-strncat.c: Likewise.
65740         * lib/unistr/u32-strncmp.c: Likewise.
65741         * lib/unistr/u32-strncpy.c: Likewise.
65742         * lib/unistr/u32-strnlen.c: Likewise.
65743         * lib/unistr/u32-strpbrk.c: Likewise.
65744         * lib/unistr/u32-strrchr.c: Likewise.
65745         * lib/unistr/u32-strspn.c: Likewise.
65746         * lib/unistr/u32-strstr.c: Likewise.
65747         * lib/unistr/u32-strtok.c: Likewise.
65748         * lib/unistr/u32-to-u16.c: Likewise.
65749         * lib/unistr/u32-to-u8.c: Likewise.
65750         * lib/unistr/u32-uctomb.c: Likewise.
65751         * lib/unistr/u8-check.c: Likewise.
65752         * lib/unistr/u8-chr.c: Likewise.
65753         * lib/unistr/u8-cmp.c: Likewise.
65754         * lib/unistr/u8-cpy-alloc.c: Likewise.
65755         * lib/unistr/u8-cpy.c: Likewise.
65756         * lib/unistr/u8-endswith.c: Likewise.
65757         * lib/unistr/u8-mblen.c: Likewise.
65758         * lib/unistr/u8-mbsnlen.c: Likewise.
65759         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65760         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65761         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65762         * lib/unistr/u8-mbtouc.c: Likewise.
65763         * lib/unistr/u8-mbtoucr.c: Likewise.
65764         * lib/unistr/u8-move.c: Likewise.
65765         * lib/unistr/u8-next.c: Likewise.
65766         * lib/unistr/u8-prev.c: Likewise.
65767         * lib/unistr/u8-set.c: Likewise.
65768         * lib/unistr/u8-startswith.c: Likewise.
65769         * lib/unistr/u8-stpcpy.c: Likewise.
65770         * lib/unistr/u8-stpncpy.c: Likewise.
65771         * lib/unistr/u8-strcat.c: Likewise.
65772         * lib/unistr/u8-strchr.c: Likewise.
65773         * lib/unistr/u8-strcmp.c: Likewise.
65774         * lib/unistr/u8-strcpy.c: Likewise.
65775         * lib/unistr/u8-strcspn.c: Likewise.
65776         * lib/unistr/u8-strdup.c: Likewise.
65777         * lib/unistr/u8-strlen.c: Likewise.
65778         * lib/unistr/u8-strmblen.c: Likewise.
65779         * lib/unistr/u8-strmbtouc.c: Likewise.
65780         * lib/unistr/u8-strncat.c: Likewise.
65781         * lib/unistr/u8-strncmp.c: Likewise.
65782         * lib/unistr/u8-strncpy.c: Likewise.
65783         * lib/unistr/u8-strnlen.c: Likewise.
65784         * lib/unistr/u8-strpbrk.c: Likewise.
65785         * lib/unistr/u8-strrchr.c: Likewise.
65786         * lib/unistr/u8-strspn.c: Likewise.
65787         * lib/unistr/u8-strstr.c: Likewise.
65788         * lib/unistr/u8-strtok.c: Likewise.
65789         * lib/unistr/u8-to-u16.c: Likewise.
65790         * lib/unistr/u8-to-u32.c: Likewise.
65791         * lib/unistr/u8-uctomb-aux.c: Likewise.
65792         * lib/unistr/u8-uctomb.c: Likewise.
65793         * lib/unitypes.h: Likewise.
65794         * lib/uniwidth.h: Likewise.
65795         * lib/uniwidth/cjk.h: Likewise.
65796         * lib/uniwidth/u16-strwidth.c: Likewise.
65797         * lib/uniwidth/u16-width.c: Likewise.
65798         * lib/uniwidth/u32-strwidth.c: Likewise.
65799         * lib/uniwidth/u32-width.c: Likewise.
65800         * lib/uniwidth/u8-strwidth.c: Likewise.
65801         * lib/uniwidth/u8-width.c: Likewise.
65802         * lib/uniwidth/width.c: Likewise.
65803
65804 2007-10-07  Bruno Haible  <bruno@clisp.org>
65805
65806         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65807         The file is still under LGPL (see modules/inttypes).
65808
65809 2007-10-06  Bruno Haible  <bruno@clisp.org>
65810
65811         * modules/trunc (Dependencies): Add 'extensions'.
65812         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65813         Reported by Ben Pfaff <blp@gnu.org>.
65814
65815 2007-10-06  Bruno Haible  <bruno@clisp.org>
65816
65817         * modules/freopen-tests: New file.
65818         * tests/test-freopen.c: New file.
65819
65820         * modules/fopen-tests: New file.
65821         * tests/test-fopen.c: New file.
65822
65823         * modules/fopen: New file.
65824         * lib/fopen.c: New file.
65825         * m4/fopen.m4: New file.
65826         * modules/freopen: New file.
65827         * lib/freopen.c: New file.
65828         * m4/freopen.m4: New file.
65829         * lib/stdio.in.h (fopen, freopen): New declarations.
65830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65831         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65832         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65833         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65834         * doc/functions/fopen.texi: Mention the 'fopen' module.
65835         * doc/functions/freopen.texi: Mention the 'freopen' module.
65836
65837 2007-10-06  Bruno Haible  <bruno@clisp.org>
65838
65839         * modules/open-tests: New file.
65840         * tests/test-open.c: New file.
65841
65842         * modules/open: New file.
65843         * lib/open.c: New file.
65844         * m4/open.m4: New file.
65845         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65846         lib/open.c does.
65847         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65848         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65849         macros.
65850         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65851         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65852         REPLACE_OPEN.
65853         * doc/functions/open.texi: Mention the 'open' module.
65854
65855 2007-10-04  Bruno Haible  <bruno@clisp.org>
65856
65857         * modules/ceill-tests: New file.
65858         * tests/test-ceill.c: New file.
65859
65860         * modules/ceill: New file.
65861         * lib/ceill.c: Replace entire file.
65862         * m4/ceill.m4: New file.
65863         * lib/math.in.h (ceill): Replace declaration.
65864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65865         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65866         * doc/functions/ceill.texi: Mention the 'ceill' module.
65867         * modules/mathl (Files): Remove lib/ceill.c.
65868         (Depends-on): Add ceill.
65869
65870 2007-10-04  Bruno Haible  <bruno@clisp.org>
65871
65872         * modules/ceilf-tests: New file.
65873         * tests/test-ceilf.c: New file.
65874
65875         * modules/ceilf: New file.
65876         * lib/ceil.c: New file.
65877         * lib/ceilf.c: New file.
65878         * m4/ceilf.m4: New file.
65879         * lib/math.in.h (ceilf): New declaration.
65880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65881         HAVE_DECL_CEILF.
65882         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65883         HAVE_DECL_CEILF.
65884         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65885
65886 2007-10-04  Bruno Haible  <bruno@clisp.org>
65887
65888         * modules/floorl-tests: New file.
65889         * tests/test-floorl.c: New file.
65890
65891         * modules/floorl: New file.
65892         * lib/floorl.c: Replace entire file.
65893         * m4/floorl.m4: New file.
65894         * lib/math.in.h (floorl): Replace declaration.
65895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65896         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65897         * doc/functions/floorl.texi: Mention the 'floorl' module.
65898         * modules/mathl (Files): Remove lib/floorl.c.
65899         (Depends-on): Add floorl.
65900
65901 2007-10-04  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/floorf-tests: New file.
65904         * tests/test-floorf.c: New file.
65905
65906         * modules/floorf: New file.
65907         * lib/floor.c: New file.
65908         * lib/floorf.c: New file.
65909         * m4/floorf.m4: New file.
65910         * lib/math.in.h (floorf): New declaration.
65911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65912         HAVE_DECL_FLOORF.
65913         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65914         HAVE_DECL_FLOORF.
65915         * doc/functions/floorf.texi: Mention the 'floorf' module.
65916
65917 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65918             Bruno Haible  <bruno@clisp.org>
65919
65920         Advertise for the Git server instead of the CVS server.
65921         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65922         repository instead of the CVS one.
65923         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65924         about all VCS systems generically.
65925         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65926
65927 2007-10-04  Bruno Haible  <bruno@clisp.org>
65928
65929         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65930         means.
65931         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65932
65933 2007-10-04  Bruno Haible  <bruno@clisp.org>
65934
65935         * modules/truncl-tests: New file.
65936         * tests/test-truncl.c: New file.
65937
65938         * modules/truncl: New file.
65939         * lib/truncl.c: New file.
65940         * m4/truncl.m4: New file.
65941         * lib/math.in.h (truncl): New declaration.
65942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65943         HAVE_DECL_TRUNCL.
65944         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65945         HAVE_DECL_TRUNCL.
65946         * doc/functions/truncl.texi: Mention the 'truncl' module.
65947
65948 2007-10-04  Bruno Haible  <bruno@clisp.org>
65949
65950         * modules/truncf-tests: New file.
65951         * tests/test-truncf.c: New file.
65952
65953         * modules/truncf: New file.
65954         * lib/trunc.c: Make paramerizable through USE_* macros.
65955         * lib/truncf.c: New file.
65956         * m4/truncf.m4: New file.
65957         * lib/math.in.h (truncf): New declaration.
65958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65959         HAVE_DECL_TRUNCF.
65960         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65961         HAVE_DECL_TRUNCF.
65962         * doc/functions/truncf.texi: Mention the 'truncf' module.
65963
65964 2007-10-03  Bruno Haible  <bruno@clisp.org>
65965
65966         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65967         augmentation also for tests modules.
65968         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65969         * modules/atexit-tests (Makefile.am): Likewise.
65970         * modules/binary-io-tests (Makefile.am): Likewise.
65971         * modules/c-strcase-tests (Makefile.am): Likewise.
65972         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65973         * modules/canonicalize-tests (Makefile.am): Likewise.
65974         * modules/closein-tests (Makefile.am): Likewise.
65975         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65976         * modules/freadahead-tests (Makefile.am): Likewise.
65977         * modules/fseek-tests (Makefile.am): Likewise.
65978         * modules/fseeko-tests (Makefile.am): Likewise.
65979         * modules/ftell-tests (Makefile.am): Likewise.
65980         * modules/ftello-tests (Makefile.am): Likewise.
65981         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65982         * modules/isnanl-tests (Makefile.am): Likewise.
65983         * modules/lseek-tests (Makefile.am): Likewise.
65984         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65985         * modules/mbscasestr-tests (Makefile.am): Likewise.
65986         * modules/mbschr-tests (Makefile.am): Likewise.
65987         * modules/mbscspn-tests (Makefile.am): Likewise.
65988         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65989         * modules/mbspbrk-tests (Makefile.am): Likewise.
65990         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65991         * modules/mbsrchr-tests (Makefile.am): Likewise.
65992         * modules/mbsspn-tests (Makefile.am): Likewise.
65993         * modules/mbsstr-tests (Makefile.am): Likewise.
65994         * modules/printf-posix-tests (Makefile.am): Likewise.
65995         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65996         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65997         * modules/tsearch-tests (Makefile.am): Likewise.
65998         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65999         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66000         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66001         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66002         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66003         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66004         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66005         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66006         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66007         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66008         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66009         * modules/xstrtol-tests (Makefile.am): Likewise.
66010         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66011         * modules/yesno-tests (Makefile.am): Likewise.
66012
66013 2007-10-03  Bruno Haible  <bruno@clisp.org>
66014
66015         * modules/trunc-tests: New file.
66016         * tests/test-trunc.c: New file.
66017
66018         * modules/trunc: New file.
66019         * lib/trunc.c: New file.
66020         * m4/trunc.m4: New file.
66021         * lib/math.in.h (trunc): New declaration.
66022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66023         HAVE_DECL_TRUNC.
66024         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66025         HAVE_DECL_TRUNC.
66026         * doc/functions/trunc.texi: Mention the 'trunc' module.
66027
66028 2007-10-03  Bruno Haible  <bruno@clisp.org>
66029
66030         * tests/test-fpending.c: New file, mostly copied
66031         from coreutils/lib/t-fpending.c.
66032         * modules/fpending-tests: New file.
66033
66034 2007-10-03  Bruno Haible  <bruno@clisp.org>
66035
66036         Port the stdio extensions to QNX (untested).
66037         * lib/fseterr.c (fseterr): Add support for QNX.
66038         * lib/fbufmode.c (fbufmode): Likewise.
66039         * lib/freadable.c (freadable): Likewise.
66040         * lib/fwritable.c (fwritable): Likewise.
66041         * lib/freading.c (freading): Likewise.
66042         * lib/fwriting.c (fwriting): Likewise.
66043         * lib/freadahead.c (freadahed): Likewise.
66044         * lib/fpurge.c (fpurge): Likewise.
66045         * lib/fseeko.c (rpl_fseeko): Likewise.
66046
66047 2007-10-03  Bruno Haible  <bruno@clisp.org>
66048             Jim Meyering  <jim@meyering.net>
66049             Eric Blake  <ebb9@byu.net>
66050
66051         * doc/relocatable.texi: Use @command instead of @program.
66052
66053 2007-10-02  Jim Meyering  <jim@meyering.net>
66054
66055         Perform one more "_.h" -> ".in.h" substitution.
66056         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66057         instead of unistd_.h here, too.
66058
66059 2007-10-01  Bruno Haible  <bruno@clisp.org>
66060
66061         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66062         Needed for the alloca-opt module.
66063
66064 2007-09-30  Bruno Haible  <bruno@clisp.org>
66065
66066         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66067         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66068         alloca_.h.
66069         * lib/argz.in.h: Renamed from lib/argz_.h.
66070         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66071         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66072         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66073         byteswap_.h.
66074         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66075         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66076         dirent_.h.
66077         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66078         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66079         fcntl_.h.
66080         * lib/float.in.h: Renamed from lib/float_.h.
66081         * modules/float (Files, Makefile.am): Use float.in.h instead of
66082         float_.h.
66083         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66084         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66085         fnmatch_.h.
66086         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66087         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66088         getopt_.h.
66089         * lib/glob.in.h: Renamed from lib/glob_.h.
66090         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66091         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66092         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66093         iconv_.h.
66094         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66095         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66096         inttypes_.h.
66097         * lib/locale.in.h: Renamed from lib/locale_.h.
66098         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66099         locale_.h.
66100         * lib/math.in.h: Renamed from lib/math_.h.
66101         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66102         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66103         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66104         of netinet_in_.h. Add dependency.
66105         * lib/poll.in.h: Renamed from lib/poll_.h.
66106         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66107         * lib/search.in.h: Renamed from lib/search_.h.
66108         * modules/search (Files, Makefile.am): Use search.in.h instead of
66109         search_.h.
66110         * lib/signal.in.h: Renamed from lib/signal_.h.
66111         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66112         _signal.h.
66113         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66114         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66115         stdbool_.h.
66116         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66117         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66118         stdint_.h.
66119         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66120         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66121         stdio_.h.
66122         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66123         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66124         stdlib_.h.
66125         * lib/string.in.h: Renamed from lib/string_.h.
66126         * modules/string (Files, Makefile.am): Use string.in.h instead of
66127         string_.h.
66128         * doc/gnulib-tool.texi (Initial import): Update.
66129         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66130         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66131         of sys_select_.h. Add dependency.
66132         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66133         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66134         of sys_socket_.h.
66135         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66136         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66137         sys_stat_.h.
66138         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66139         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66140         sys_time_.h.
66141         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66142         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66143         sysexits_.h.
66144         * lib/time.in.h: Renamed from lib/time_.h.
66145         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66146         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66147         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66148         unistd_.h.
66149         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66150         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66151         wchar_.h.
66152         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66153         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66154         wctype_.h.
66155         * build-aux/bootstrap (slurp): Update.
66156         * lib/.cppi-disable: Update.
66157
66158 2007-09-30  Bruno Haible  <bruno@clisp.org>
66159
66160         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66161         Needed on BeOS.
66162
66163 2007-09-30  Bruno Haible  <bruno@clisp.org>
66164
66165         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66166
66167 2007-09-29  Bruno Haible  <bruno@clisp.org>
66168
66169         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66170
66171 2007-09-29  Bruno Haible  <bruno@clisp.org>
66172
66173         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66174         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66175         * build-aux/install-reloc: Compile also areadlink.c.
66176         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66177
66178 2007-09-29  Bruno Haible  <bruno@clisp.org>
66179
66180         * gnulib-tool (func_emit_initmacro_done): Indentation.
66181
66182 2007-09-29  Bruno Haible  <bruno@clisp.org>
66183
66184         * README: Add CVS checkout update instructions.
66185         Info from Bob Proulx <bob@proulx.com>.
66186
66187 2007-09-28  Eric Blake  <ebb9@byu.net>
66188
66189         Provide move-if-change.
66190         * build-aux/move-if-change: New file, based on best practice
66191         rather than any canonical upstream location.
66192
66193 2007-09-28  Jim Meyering  <jim@meyering.net>
66194
66195         Fix canonicalize loop-detection corner case.
66196         Do not attempt to stat the symlink values stored via seen_triple.
66197         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66198         on linux-2.6.18, (but not 2.6.22).
66199         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66200         triple_compare.  The former compares dev,ino,filename, while the latter
66201         would actually stat dirname(filename) when dev and ino were equal.
66202         * lib/hash-triple.c: Install <string.h>.
66203         (STREQ): Define.
66204         (triple_compare_ino_str): New function.
66205         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66206
66207 2007-09-28  Eric Blake  <ebb9@byu.net>
66208
66209         Enforce that AC_REPLACE_FUNCS files exist.
66210         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66211         override check for typos.
66212
66213         Fix test-closein on Solaris 10.
66214         * tests/test-closein.c (main): Don't assume stdin can be inherited
66215         closed on all systems.
66216         * tests/test-closein.sh: Likewise.
66217         Reported by Piotr Tarnowski.
66218
66219 2007-09-28  Jim Meyering  <jim@meyering.net>
66220
66221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66222
66223 2007-09-27  Jim Meyering  <jim@meyering.net>
66224
66225         canonicalize: Avoid a false-positive cycle failure.
66226         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66227         Sort.  Remove cycle-check.
66228         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66229         not cycle-check.h.
66230         (seen_triple): New function.
66231         (canonicalize_filename_mode): Use it instead of cycle-check.
66232         * tests/test-canonicalize.c: Add a test for this bug.
66233         * tests/test-canonicalize.sh: Set up and run the test.
66234
66235         New module, file-set, from coreutils.
66236         * modules/file-set: Define it.
66237         * lib/file-set.c, lib/file-set.h: Implement.
66238
66239         New module, hash-triple, from coreutils.
66240         * modules/hash-triple: Define it.
66241         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66242
66243 2007-09-25  Eric Blake  <ebb9@byu.net>
66244
66245         Fix strerror on Interix.
66246         * lib/string_.h (strerror): Declare replacement.
66247         * doc/functions/strerror.texi (strerror): Document the Interix
66248         shortcoming.
66249         * modules/string (Makefile.am): Support new hooks.
66250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66251         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66252         gl_FUNC_STRERROR_SEPARATE.
66253         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66254         * lib/strerror.c (rpl_strerror): Provide replacement.
66255         * modules/strerror (Depends-on): Add string.
66256         (configure.ac): Detect use of module.
66257         * tests/test-strerror.c: New file.
66258         * modules/strerror-tests: New test module.
66259         * modules/argp (Depends-on): Add strerror.
66260         * modules/error (Depends-on): Likewise.
66261         Reported by Martin Koeppe.
66262
66263 2007-09-24  Bruno Haible  <bruno@clisp.org>
66264
66265         * README: Update git instructions.
66266
66267 2007-09-24  Eric Blake  <ebb9@byu.net>
66268
66269         Revert fpending breakage from 2007-09-08.
66270         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66271         __fpending.c.
66272
66273 2007-09-24  Jim Meyering  <jim@meyering.net>
66274
66275         filenamecat.c: Add a test.
66276         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66277         showing how the function works when DIR is the empty string.
66278
66279 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66280
66281         * tests/test-canonicalize.sh: Turn on executable bit.
66282
66283 2007-09-19  Eric Blake  <ebb9@byu.net>
66284
66285         * README: Update CVS instructions.
66286
66287 2007-09-18  Bruno Haible  <bruno@clisp.org>
66288
66289         * modules/areadlink: New file.
66290         * lib/areadlink.h (areadlink): New declaration.
66291         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66292
66293 2007-09-17  Jim Meyering  <jim@meyering.net>
66294
66295         * lib/savewd.c (ESTALE) [!defined]: Define.
66296         Reported to be required on Interix by Martin Koeppe.
66297
66298 2007-09-17  Bruno Haible  <bruno@clisp.org>
66299
66300         * gnulib-tool (func_version): Use $version.
66301
66302 2007-09-16  Bruno Haible  <bruno@clisp.org>
66303
66304         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66305         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66306         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66307         Reported by Greg Schafer <gschafer@zip.com.au>.
66308
66309 2007-09-15  Bruno Haible  <bruno@clisp.org>
66310
66311         * gnulib-tool (sed): Try a little harder to make bash understand the
66312         alias.
66313         Reported by Bruce Korb <bruce.korb@gmail.com>.
66314
66315 2007-09-13  Eric Blake  <ebb9@byu.net>
66316
66317         * ChangeLog: Remove conflict markers.
66318
66319 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66320
66321         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66322         Reported by Bruno Haible <bruno@clisp.org>.
66323
66324 2007-09-12  Bruno Haible  <bruno@clisp.org>
66325
66326         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66327         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66328         is not defined.
66329
66330 2007-09-12  Eric Blake  <ebb9@byu.net>
66331
66332         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66333         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66334         Autoconf definition.
66335         * modules/euidaccess (Depends-on): Add extensions, for
66336         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66337         * modules/fnmatch (Depends-on): Likewise.
66338         * modules/getaddrinfo (Depends-on): Likewise.
66339         * modules/getdelim (Depends-on): Likewise.
66340         * modules/getline (Depends-on): Likewise.
66341         * modules/getsubopt (Depends-on): Likewise.
66342         * modules/gettext (Depends-on): Likewise.
66343         * modules/group-member (Depends-on): Likewise.
66344         * modules/mbchar (Depends-on): Likewise.
66345         * modules/memmem (Depends-on): Likewise.
66346         * modules/mempcpy (Depends-on): Likewise.
66347         * modules/memrchr (Depends-on): Likewise.
66348         * modules/pagealign_alloc (Depends-on): Likewise.
66349         * modules/readutmp (Depends-on): Likewise.
66350         * modules/stpcpy (Depends-on): Likewise.
66351         * modules/stpncpy (Depends-on): Likewise.
66352         * modules/strchrnul (Depends-on): Likewise.
66353         * modules/strndup (Depends-on): Likewise.
66354         * modules/strsep (Depends-on): Likewise.
66355         * modules/strverscmp (Depends-on): Likewise.
66356         * modules/vasprintf (Depends-on): Likewise.
66357         * modules/wcwidth (Depends-on): Likewise.
66358         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66359         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66360         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66361         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66362         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66363         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66364         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66365         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66366         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66367         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66369         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66370         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66371         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66372         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66373         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66374         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66375         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66377         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66379         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66380         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66381         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66382         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66384         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66385         so that lock.m4 can be used in gettext without extensions module.
66386
66387 2007-09-11  Bruno Haible  <bruno@clisp.org>
66388
66389         * m4/isc-posix.m4: Remove file.
66390         Suggested by Eric Blake.
66391
66392 2007-09-11  Eric Blake  <ebb9@byu.net>
66393
66394         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66395
66396 2007-09-10  Bruno Haible  <bruno@clisp.org>
66397
66398         * posix-modules: Fix typo in error message.
66399         Reported by Matt <mkraai@beckman.com>.
66400
66401 2007-09-09  Bruno Haible  <bruno@clisp.org>
66402
66403         * doc/functions/getdelim.texi: Update list of platforms lacking the
66404         function.
66405         * doc/functions/getline.texi: Likewise.
66406
66407 2007-09-09  Jim Meyering  <jim@meyering.net>
66408
66409         * lib/hash.c (hash_initialize): Detect calloc failure.
66410         Reported by Bruno Haible.
66411
66412 2007-09-09  Bruno Haible  <bruno@clisp.org>
66413
66414         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66415         malloc or realloc fails.
66416
66417 2007-09-09  Bruno Haible  <bruno@clisp.org>
66418
66419         * modules/getcwd (Depends-on): Add malloc-posix.
66420         * modules/glob (Depends-on): Likewise.
66421         * modules/putenv (Depends-on): Likewise.
66422         * modules/strdup (Depends-on): Likewise.
66423         * modules/getdelim (Depends-on): Add realloc-posix.
66424         * modules/read-file (Depends-on): Likewise.
66425
66426 2007-09-09  Bruno Haible  <bruno@clisp.org>
66427
66428         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66429         (gl_FUNC_MALLOC_POSIX): Require it.
66430         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66431         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66432         * modules/realloc (Files): Add m4/malloc.m4.
66433         * modules/calloc (Files): Likewise.
66434
66435 2007-09-09  Bruno Haible  <bruno@clisp.org>
66436
66437         * modules/malloc-posix: New file.
66438         * modules/malloc (Depends-on): Add malloc-posix.
66439         * lib/malloc.c: Include errno.h.
66440         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66441         and a POSIX-compatible malloc into a single function. Set ENOMEM
66442         when returning NULL.
66443         * m4/malloc.m4: New file.
66444         * doc/functions/malloc.texi: Mention the malloc-posix module.
66445         * lib/stdlib_.h (malloc): New declaration.
66446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66447         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66448         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66449         and HAVE_MALLOC_POSIX.
66450
66451 2007-09-09  Bruno Haible  <bruno@clisp.org>
66452
66453         * modules/realloc-posix: New file.
66454         * modules/realloc (Depends-on): Add realloc-posix.
66455         * lib/realloc.c: Include errno.h.
66456         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66457         and a POSIX-compatible realloc into a single function. Set ENOMEM
66458         when returning NULL.
66459         * m4/realloc.m4: New file.
66460         * doc/functions/realloc.texi: Mention the realloc-posix module.
66461         * lib/stdlib_.h (realloc): New declaration.
66462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66463         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66464         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66465         and HAVE_REALLOC_POSIX.
66466
66467 2007-09-09  Bruno Haible  <bruno@clisp.org>
66468
66469         * modules/calloc-posix: New file.
66470         * modules/calloc (Depends-on): Add calloc-posix.
66471         * lib/calloc.c: Include errno.h.
66472         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66473         and a POSIX-compatible calloc into a single function. Set ENOMEM
66474         when returning NULL.
66475         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66476         * doc/functions/calloc.texi: Mention the calloc-posix module.
66477         * lib/stdlib_.h (calloc): New declaration.
66478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66479         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66480         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66481         and HAVE_CALLOC_POSIX.
66482
66483 2007-09-09  Bruno Haible  <bruno@clisp.org>
66484
66485         Allow for modules to show an arbitrary notice.
66486         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66487         * gnulib-tool: New option --extract-notice.
66488         (func_usage): Document it.
66489         (sed_extract_prog): Update.
66490         (func_get_notice): New function.
66491         (func_modules_notice): New function.
66492         (func_import, func_create_testdir): Invoke it.
66493         Suggested by Jim Meyering.
66494
66495 2007-09-09  Bruno Haible  <bruno@clisp.org>
66496
66497         * gnulib-tool: New options --verbose, --quiet.
66498         (func_usage): Document them.
66499         (verbose): New variable.
66500         (func_execute_command): New function.
66501         (func_import): Don't show the module list and the file list if
66502         $verbose < 0.
66503         (func_create_testdir): Likewise. Use func_execute_command.
66504         (func_create_megatestdir): Use func_execute_command.
66505
66506 2007-09-08  Bruno Haible  <bruno@clisp.org>
66507
66508         * gnulib-tool (func_import): Prefer rsync over wget when available,
66509         for fetching the PO files.
66510
66511 2007-09-08  Bruno Haible  <bruno@clisp.org>
66512
66513         * posix-modules: New file. Portions copied from gnulib-tool.
66514         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66515
66516 2007-09-08  Jim Meyering  <jim@meyering.net>
66517
66518         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66519         * lib/fpending.h: Rename from __fpending.h.
66520         * lib/fpending.c: Rename from __fpending.c.
66521         Include "fpending.h", not "__fpending.h".
66522         * lib/__fpending.h, lib/__fpending.c: Remove files.
66523         * modules/fpending (Files): Reflect new file names.
66524         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66525
66526 2007-09-08  Bruno Haible  <bruno@clisp.org>
66527
66528         * m4/inttypes-h.m4: Remove stub file.
66529
66530 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66531
66532         * doc/headers/stdint.texi: Discuss #include_next issue.
66533
66534 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66535
66536         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66537
66538 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66539
66540         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66541         in variable name.
66542
66543 2007-09-03  Jim Meyering  <jim@meyering.net>
66544
66545         New module: git-version-gen.
66546         * modules/git-version-gen: New file.
66547
66548         Import changes from coreutils for bootstrap script.
66549
66550         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66551
66552         bootstrap: uses rsync to download the .po files
66553         * build-aux/bootstrap (po_download_command_format): New global.
66554         (download_po_files): Use rsync.
66555         (update_po_files): Don't remove .po files after download,
66556         so future rsync runs can take advantage of the copies.
66557
66558         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66559
66560         Solve the unnecessary-.po-file-regeneration problem once and for all.
66561         * build-aux/bootstrap (download_po_files): New function, renamed from
66562         get_translations.  Now, downloads, but doesn't update LINGUAS.
66563         (update_po_files): New function.
66564
66565         bootstrap: Ignore more.
66566         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66567         uniwidth to e.g., lib/.gitignore.
66568         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66569
66570         * build-aux/bootstrap: New setting: vc_ignore.
66571         (insert_sorted_if_absent): Create $file if absent.
66572         Adapt to new, possibly empty, list: $vc_ignore.
66573
66574         bootstrap: generate more ignorable names
66575         * build-aux/bootstrap (slurp): When generating ignorable names,
66576         also map .sin to .sed, .gperf to .c, and .y to .c.
66577
66578 2007-09-03  Jim Meyering  <jim@meyering.net>
66579
66580         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66581         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66582
66583 2007-09-02  Bruno Haible  <bruno@clisp.org>
66584
66585         Fix mis-recognition of 'mcs' on QNX 6.
66586         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66587         output contains the string "Mono".
66588         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66589         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66590
66591 2007-09-01  Bruno Haible  <bruno@clisp.org>
66592
66593         Fix collision between uniwidth/* and linebreak modules.
66594         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66595         u32_width): Remove declarations.
66596         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66597         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66598         streq3, streq2, streq1, streq0): Remove functions.
66599         (STREQ): Remove macro.
66600         (is_cjk_encoding): Remove function.
66601         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66602         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66603         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66604         * NEWS: Document the change.
66605
66606 2007-09-01  Bruno Haible  <bruno@clisp.org>
66607
66608         * lib/streq.h: Add double-inclusion guard.
66609
66610 2007-09-01  Karl Berry  <karl@gnu.org>
66611
66612         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66613
66614 2007-08-28  Jim Meyering  <jim@meyering.net>
66615
66616         Rename mreadlink_with_size to areadlink_with_size.
66617         * NEWS: Document the change.
66618         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66619         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66620         * lib/mreadlink.h: Rename this to...
66621         * lib/areadlink.h: ...this.
66622         * modules/mreadlink-with-size: Rename this to...
66623         * modules/areadlink-with-size: ...this.
66624         * lib/canonicalize.c: Reflect the renaming.
66625         * modules/canonicalize: Likewise.
66626
66627 2007-08-26  Bruno Haible  <bruno@clisp.org>
66628
66629         * gnulib-tool (func_import): When deciding which files to remove,
66630         consider also dangling symbolic links.
66631         Reported by Eric Blake.
66632
66633 2007-08-26  Bruno Haible  <bruno@clisp.org>
66634
66635         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66636
66637 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66638
66639         * lib/readline.c: Don't include getline.h, the prototype is now
66640         found in stdio.h.
66641
66642 2007-08-23  Jim Meyering  <jim@meyering.net>
66643
66644         Getdelim touchup.
66645         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66646         around the funlockfile call, since funlockfile never sets errno.
66647         Don't set errno upon failed realloc.
66648
66649 2007-08-22  Eric Blake  <ebb9@byu.net>
66650
66651         Getline touchups.
66652         * lib/getdelim.c (getdelim): Revert regression that required *n to
66653         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66654         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66655         getdelim, rather than whether implementation is missing.
66656         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66657         * lib/stdio_.h (getline): Also declare if replacement is
66658         required.
66659         * doc/functions/getdelim.texi: New file.
66660         * doc/functions/getline.texi: Likewise.
66661         * doc/gnulib.texi (Function Substitutes): Add new files.
66662         Reported by Bruno Haible.
66663
66664 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66665
66666         * users.txt: Add Guile.
66667
66668 2007-08-22  Eric Blake  <ebb9@byu.net>
66669
66670         * tests/test-getdelim.c (main): Use remove, not unlink.
66671         * tests/test-getline.c (main): Likewise.
66672
66673         Move getline and getdelim into stdio.h, per POSIX 200x.
66674         * modules/getline (Files): Remove getline.h.
66675         (Depends-on): Add stdio.
66676         (configure.ac): Add module indicator.
66677         * modules/getdelim (Files): Remove getdelim.h.
66678         (Depends-on): Add stdio.
66679         (configure.ac): Add module indicator.
66680         * modules/stdio (Makefile.am): Work with new indicators.
66681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66682         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66683         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66684         * lib/getdelim.h: Delete.
66685         * lib/getline.h: Delete.
66686         * lib/stdio_.h (getdelim, getline): Declare.
66687         * modules/getdelim-tests: New module.
66688         * modules/getline-tests: Likewise.
66689         * tests/test-getdelim.c: New file.
66690         * tests/test-getline.c: Likewise.
66691         * NEWS: Document the change.
66692         * lib/getline.c: Update choice of header.
66693         * lib/csharpcomp.c: Likewise.
66694         * lib/getpass.c: Likewise.
66695         * lib/javacomp.c: Likewise.
66696         * lib/javaversion.c: Likewise.
66697         * lib/yesno.c: Likewise.
66698         * lib/getdelim.c: Likewise.
66699         (getdelim): Set errno on failure, and avoid memory leak.
66700
66701 2007-08-19  Bruno Haible  <bruno@clisp.org>
66702
66703         * modules/closein (Depends-on): Add freadahead.
66704         * lib/closein.c: Include freadahead.h.
66705         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66706         is zero.
66707
66708 2007-08-19  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/freadahead-tests: New file.
66711         * tests/test-freadahead.sh: New file.
66712         * tests/test-freadahead.c: New file.
66713
66714         * modules/freadahead: New file.
66715         * lib/freadahead.h: New file.
66716         * lib/freadahead.c: New file.
66717         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66718         fbufmode, fpurge, freadable, fwritable.
66719
66720 2007-08-19  Eric Blake  <ebb9@byu.net>
66721
66722         Test yesno in combination with closein.
66723         * lib/yesno.c (yesno): Document use of stdin.
66724         * modules/yesno-tests (Files): New module.
66725         * tests/test-yesno.c (main): New file.
66726         * tests/test-yesno.sh: Likewise.
66727
66728 2007-08-19  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66731         * lib/fseeko.c (rpl_fseeko): Likewise.
66732         * lib/fseterr.c (fseterr): Likewise.
66733
66734 2007-08-19  Bruno Haible  <bruno@clisp.org>
66735
66736         * tests/test-lseek.c (main): Disable a test for BeOS.
66737         * doc/functions/lseek.texi: Document the BeOS bug.
66738
66739 2007-08-19  Bruno Haible  <bruno@clisp.org>
66740             Eric Blake  <ebb9@byu.net>
66741
66742         * lib/lseek.c: Include <sys/stat.h>.
66743         (rpl_lseek): Add workaround code also for Unix platforms.
66744         Needed for BeOS.
66745         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66746         * doc/functions/lseek.texi: Document BeOS definiency.
66747
66748 2007-08-18  Bruno Haible  <bruno@clisp.org>
66749
66750         * modules/fstrcmp-tests: New file.
66751         * tests/test-fstrcmp.c: New file.
66752
66753 2007-08-18  Bruno Haible  <bruno@clisp.org>
66754
66755         * modules/fstrcmp: New file, from GNU gettext with modifications.
66756         * lib/fstrcmp.h: New file, from GNU gettext.
66757         * lib/fstrcmp.c: New file, from GNU gettext.
66758         * MODULES.html.sh (String handling): Add fstrcmp.
66759
66760 2007-08-18  Bruno Haible  <bruno@clisp.org>
66761
66762         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66763         'bool'.
66764         (diag, compareseq): Remove const from the ctxt argument.
66765         (USE_HEURISTIC): Undefine at the end.
66766
66767 2007-08-18  Jim Meyering  <jim@meyering.net>
66768
66769         New file: lib/idcache.h
66770         * NEWS: Mention the addition.
66771         * modules/idcache (Files): Add lib/idcache.h
66772         * lib/idcache.c: Include "idcache.h".
66773         Don't include <sys/types.h>.
66774         Add a FIXME comment.
66775         Move file-scoped "static" declarations to the top.
66776         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66777
66778 2007-08-17  Bruno Haible  <bruno@clisp.org>
66779         and Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * MODULES.html.sh: Add diffseq.
66782         * modules/diffseq: New file.
66783         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66784         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66785
66786 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66787
66788         Import changes from coreutils for bootstrap script.
66789
66790         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66791
66792         * build-aux/bootstrap (slurp): Work even in environments where
66793         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66794         current code does not slurp files whose names start with ".", and
66795         this looks like it might be a troublesome area.
66796
66797         2007-07-11  Jim Meyering  <jim@meyering.net>
66798
66799         If there's a GPL vN copyright comment, require that N == 3.
66800
66801         2007-07-08  Jim Meyering  <jim@meyering.net>
66802
66803         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66804         * build-aux/bootstrap (mam_template): Move definition out of loop.
66805
66806         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66807
66808         * build-aux/bootstrap (symlink_to_dir): Rename function from
66809         symlink_to_gnulib.  Add a directory parameter.  Update all
66810         callers.
66811         (cp_mark_as_generated): Also check for -- and link to -- files in
66812         gl/.
66813
66814         2007-07-08  Jim Meyering  <jim@meyering.net>
66815
66816         Adapt to deeper hierarchy in gnulib.
66817         * build-aux/bootstrap (symlink_to_dir): If the destination
66818         directory doesn't exist, create it. This is required at least for
66819         "lib/uniwidth/cjk.h".
66820
66821         2007-05-15  Jim Meyering  <jim@meyering.net>
66822
66823         * build-aux/bootstrap: Now that generated Makefile.am files
66824         are no longer under version control, they must be created at
66825         bootstrap time.
66826
66827 2007-08-14  Ben Pfaff  <blp@gnu.org>
66828
66829         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66830
66831 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66834         given the changes below.
66835         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66836         even on hosts that have padding bits beyond the supported 64.
66837
66838 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66839
66840         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66841         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66842         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66843         depends on it.
66844         (xstrtol_error): Remove.
66845         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66846         but with a different signature.
66847         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66848         * lib/xstrtol-error.c: Include exitfail.h.
66849         (xstrtol_fatal): New function, with a different signature from the
66850         old xstrtol_error, so that the caller need not worry about passing
66851         in an exit status, or about storage management of the option argument.
66852         (xstrtol_error): Now a static function.  Redo signature to
66853         implement xstrtol_fatal.  Output the correct number of hyphens in
66854         front of the option so that the caller need not worry about
66855         storage management.
66856         (N_): New macro.
66857         (_): Remove; not used now.
66858         * modules/xstrtol: Depend on getopt.
66859         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66860         of old STRTOL_FATAL_ERROR macro.
66861         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66862         of test program.
66863         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66864         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66865
66866 2007-08-08  Eric Blake  <ebb9@byu.net>
66867
66868         * lib/xstrtol-error.c: Add missing include.
66869
66870         Move xstrtol messages into gnulib domain, when --pobase is used.
66871         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66872         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66873         * modules/xstrtol (Files): Distribute new file.
66874         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66875         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66876         * tests/test-xstrtol.c: ...into new file.
66877         * tests/test-xstrtoul.c: Also test xstrtoul.
66878         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66879         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66880         * tests/test-xstrtol.sh: Drive the tests.
66881         * tests/test-xstrtoimax.sh: Likewise.
66882         * tests/test-xstrtoumax.sh: Likewise.
66883         * modules/xstrtol-tests: New module.
66884         * modules/xstrtoimax-tests: Likewise.
66885         * modules/xstrtoumax-tests: Likewise.
66886
66887 2007-08-08  Jim Meyering  <jim@meyering.net>
66888
66889         New function: mfile_name_concat.
66890         * lib/filenamecat.c (mfile_name_concat): New function, just like
66891         file_name_concat, but return NULL upon failure rather than exiting
66892         with a diagnostic.
66893         * lib/filenamecat.h: Declare it.
66894
66895 2007-08-07  Bruno Haible  <bruno@clisp.org>
66896
66897         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66898         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66899         warning from gcc.
66900         Reported by Eric Blake.
66901
66902 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66903
66904         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66905         * modules/crypto/arcfour (License): Likewise.
66906         * modules/crypto/des-tests (License): Likewise.
66907         * modules/crypto/gc-arctwo-tests (License): Likewise.
66908         * modules/crypto/gc-des-tests (License): Likewise.
66909         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66910         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66911         * modules/crypto/gc-md2-tests (License): Likewise.
66912         * modules/crypto/gc-md4-tests (License): Likewise.
66913         * modules/crypto/gc-md5-tests (License): Likewise.
66914         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66915         * modules/crypto/gc-rijndael-tests (License): Likewise.
66916         * modules/crypto/gc-sha1-tests (License): Likewise.
66917         * modules/crypto/gc-tests (License): Likewise.
66918         * modules/crypto/hmac-md5 (License): Likewise.
66919         * modules/crypto/hmac-sha1 (License): Likewise.
66920         * modules/crypto/md2-tests (License): Likewise.
66921         * modules/crypto/md4-tests (License): Likewise.
66922         * modules/crypto/md5 (License): Likewise.
66923         * modules/crypto/rijndael (License): Likewise.
66924         * modules/crypto/sha1 (License): Likewise.
66925         * modules/memxor (License): Likewise.
66926
66927 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66928         and Bruno Haible  <bruno@clisp.org>
66929
66930         * NEWS: Describe interface changes to human, xstrtol.
66931         * lib/human.h: Include <xstrtol.h>.
66932         (human_options): Return enum strtol_error, not int.  Remove
66933         bool arg; take int * instead.
66934         * lib/human.c: Don't include "gettext.h".
66935         (_): Remove; no longer used.
66936         Don't include <xstrtol.h>, since human.h does it.
66937         (human_options): Adjust to abovementioned interface changes.
66938         Do not report error to stderr; that's now the caller's
66939         responsibility.
66940         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66941         interface change.
66942         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66943         Str, Argument_type_string.  All uses changed.  Put " argument"
66944         in diagnostics to make them clearer.  Change wording of suffix
66945         message for clarity.
66946         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66947         Argument_type_string.
66948         (STRTOL_FATAL_WARN): Remove; no longer used.
66949         * modules/human (Depends-on): Remove gettext-h.
66950
66951 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66952
66953         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66954
66955 2007-07-31  Bruno Haible  <bruno@clisp.org>
66956
66957         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66958         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66959         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66960
66961 2007-07-31  Bruno Haible  <bruno@clisp.org>
66962
66963         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66964         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66965
66966 2007-07-30  Bruno Haible  <bruno@clisp.org>
66967
66968         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66969         * modules/c-ctype (License): Likewise.
66970         * modules/c-strcase (License): Likewise.
66971         * modules/check-version (License): Likewise.
66972         * modules/iconv (License): Likewise.
66973         * modules/iconv_open (License): Likewise.
66974         * modules/read-file (License): Likewise.
66975         * modules/striconv (License): Likewise.
66976         * modules/strverscmp (License): Likewise.
66977         * modules/vasprintf (License): Likewise.
66978         * modules/crypto/des (License): Likewise.
66979         * modules/crypto/gc (License): Likewise.
66980         * modules/crypto/gc-arcfour (License): Likewise.
66981         * modules/crypto/gc-arctwo (License): Likewise.
66982         * modules/crypto/gc-des (License): Likewise.
66983         * modules/crypto/gc-hmac-md5 (License): Likewise.
66984         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66985         * modules/crypto/gc-md2 (License): Likewise.
66986         * modules/crypto/gc-md4 (License): Likewise.
66987         * modules/crypto/gc-md5 (License): Likewise.
66988         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66989         * modules/crypto/gc-random (License): Likewise.
66990         * modules/crypto/gc-rijndael (License): Likewise.
66991         * modules/crypto/gc-sha1 (License): Likewise.
66992         * modules/crypto/md2 (License): Likewise.
66993         * modules/crypto/md4 (License): Likewise.
66994
66995 2007-07-30  Jim Meyering  <jim@meyering.net>
66996
66997         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66998         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66999         it has valid stat data.  This bug would cause du not to count the
67000         sizes of inaccessible directories.
67001         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67002         in <http://bugzilla.redhat.com/250077>.
67003
67004 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67005             Bruno Haible  <bruno@clisp.org>
67006
67007         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67008         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67009         #include_next, gives a diagnostic about it, but reports no error in
67010         the exit code.
67011         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67012
67013 2007-07-24  Ben Pfaff  <blp@gnu.org>
67014
67015         Improve name: "count-one-bits" is better than "popcount".
67016         * MODULES.html.sh: Update name.
67017         * lib/popcount.h: Renamed lib/count-one-bits.h.
67018         (popcount): Renamed count_one_bits.
67019         (popcountl): Renamed count_one_bits_l.
67020         (popcountll): Renamed count_one_bits_ll.
67021         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67022         * modules/popcount: Renamed module/count-one-bits.
67023         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67024         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67025
67026 2007-07-23  Ben Pfaff  <blp@gnu.org>
67027
67028         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67029         better code generation, and add U to large constants to avoid
67030         warnings, in non-GCC case.
67031         Suggested by Bruno Haible.
67032
67033 2007-07-23  Ben Pfaff  <blp@gnu.org>
67034
67035         * lib/popcount.h: Use verify_true instead of if...abort.
67036         * modules/popcount: Depend on verify module.
67037         Suggested by Jim Meyering.
67038
67039 2007-07-23  Bruno Haible  <bruno@clisp.org>
67040
67041         * gnulib-tool (func_import): Create a .cvsignore file also when the
67042         directory is not yet in CVS but the toplevel directory is. When
67043         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67044         Reported by Karl Berry.
67045
67046 2007-07-22  Ben Pfaff  <blp@gnu.org>
67047
67048         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67049         case.
67050         Suggested by Eric Blake.
67051
67052 2007-07-22  Ben Pfaff  <blp@gnu.org>
67053
67054         New module: popcount.
67055         * MODULES.html.sh: Add popcount.
67056         * modules/popcount: New file.
67057         * modules/popcount-tests: New file.
67058         * tests/test-popcount.c: New file.
67059         * lib/popcount.h: New file.
67060         * m4/popcount.m4: New file.
67061
67062 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67063
67064         * build-aux/announce-gen: Update to GPLv3.
67065
67066         * build-aux/config.guess: Update from config.
67067
67068 2007-07-21  Bruno Haible  <bruno@clisp.org>
67069
67070         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67071         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67072
67073 2007-07-20  Jim Meyering  <jim@meyering.net>
67074
67075         * check-module: Diagnose a self-dependency.
67076
67077 2007-07-19  Bruno Haible  <bruno@clisp.org>
67078
67079         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67080         empty.
67081         Reported by Eric Blake.
67082
67083 2007-07-18  Bruno Haible  <bruno@clisp.org>
67084
67085         * gnulib-tool: New options --po-base, --po-domain.
67086         (func_usage): Document them.
67087         (pobase, po_domain): New variables.
67088         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67089         DEFAULT_TEXT_DOMAIN.
67090         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67091         (func_import): Consider pobase and po_domain. Create a po/ directory.
67092         (func_create_testdir): Set pobase and po_domain to empty.
67093         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67094         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67095
67096 2007-07-18  Bruno Haible  <bruno@clisp.org>
67097
67098         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67099         EXTRA_DIST augmentation for files in build-aux/.
67100
67101 2007-07-16  Bruno Haible  <bruno@clisp.org>
67102
67103         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67104         * modules/getdelim (License): Likewise.
67105
67106 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67107
67108         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67109         * modules/d-type (License): Likewise.
67110         * modules/extensions (License): Likewise.
67111         * modules/fnmatch (License): Likewise.
67112         * modules/fseeko (License): Likewise.
67113         * modules/getaddrinfo (License): Likewise.
67114         * modules/getline (License): Likewise.
67115         * modules/getlogin_r (License): Likewise.
67116         * modules/getpass (License): Likewise.
67117         * modules/gettimeofday (License): Likewise.
67118         * modules/glob (License): Likewise.
67119         * modules/inet_ntop (License): Likewise.
67120         * modules/malloc (License): Likewise.
67121         * modules/malloca (License): Likewise.
67122         * modules/memmem (License): Likewise.
67123         * modules/mempcpy (License): Likewise.
67124         * modules/memset (License): Likewise.
67125         * modules/minmax (License): Likewise.
67126         * modules/mktime (License): Likewise.
67127         * modules/netinet_in (License): Likewise.
67128         * modules/pathmax (License): Likewise.
67129         * modules/poll (License): Likewise.
67130         * modules/regex (License): Likewise.
67131         * modules/snprintf (License): Likewise.
67132         * modules/stdbool (License): Likewise.
67133         * modules/stdint (License): Likewise.
67134         * modules/stdio (License): Likewise.
67135         * modules/strcase (License): Likewise.
67136         * modules/strcasestr (License): Likewise.
67137         * modules/strdup (License): Likewise.
67138         * modules/string (License): Likewise.
67139         * modules/strndup (License): Likewise.
67140         * modules/strnlen (License): Likewise.
67141         * modules/strpbrk (License): Likewise.
67142         * modules/strptime (License): Likewise.
67143         * modules/strsep (License): Likewise.
67144         * modules/sys_select (License): Likewise.
67145         * modules/sys_socket (License): Likewise.
67146         * modules/sys_stat (License): Likewise.
67147         * modules/sys_time (License): Likewise.
67148         * modules/time (License): Likewise.
67149         * modules/time_r (License): Likewise.
67150         * modules/timegm (License): Likewise.
67151         * modules/unistd (License): Likewise.
67152         * modules/vsnprintf (License): Likewise.
67153         * modules/wctype (License): Likewise.
67154
67155 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67156
67157         * modules/argz (License): LGPLv2+.
67158
67159 2007-07-15  Karl Berry  <karl@gnu.org>
67160
67161         * doc/gnulib.texi: revise node structure per new fdl.texi.
67162
67163 2007-07-14  Bruno Haible  <bruno@clisp.org>
67164
67165         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67166         the output file.
67167         * lib/uniname/uninames.h: Regenerated.
67168
67169 2007-07-14  Karl Berry  <karl@gnu.org>
67170
67171         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67172         omitting sectioning and index commands.
67173
67174 2007-07-13  Bruno Haible  <bruno@clisp.org>
67175
67176         New gnulib-tool option --more-symlinks.
67177         * gnulib-tool (func_usage): Document --more-symlinks.
67178         (do_copyrights): New variable.
67179         Recognize option --more-symlinks.
67180         (func_import): Don't add a copyright notice transform to
67181         sed_transform_lib_file if do_copyrights is empty.
67182
67183 2007-07-13  Bruno Haible  <bruno@clisp.org>
67184
67185         * lib/vasnprintf.c (decimal_point_char): Define also if
67186         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67187         && !NEED_PRINTF_DIRECTIVE_A.
67188         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67189         Gary V. Vaughan <gary@gnu.org>.
67190
67191 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67192
67193         * lib/inttypes_.h: Undo previous change, since it was fixed
67194         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67195
67196 2007-07-13  Bruno Haible  <bruno@clisp.org>
67197
67198         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67199         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67200
67201 2007-07-13  Jim Meyering  <jim@meyering.net>
67202
67203         df: Don't fail for Tru64's "file-on-file mount".
67204         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67205         so we fall through and use statfs instead.  Details here:
67206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67207         Reported by Albert Chin.
67208
67209 2007-07-13  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67212         * modules/configmake (License): Likewise.
67213         * modules/gettext (License): Likewise.
67214         * modules/gettext-h (License): Likewise.
67215         * modules/include_next (License): Likewise.
67216         * modules/link-warning (License): Likewise.
67217         * modules/localcharset (License): Likewise.
67218         * modules/localename (License): Likewise.
67219         * modules/lock (License): Likewise.
67220         * modules/relocatable-lib-lgpl (License): Likewise.
67221         * modules/size_max (License): Likewise.
67222         * modules/vasnprintf (License): Likewise.
67223         * modules/wchar (License): Likewise.
67224         * modules/xsize (License): Likewise.
67225
67226 2007-07-13  Bruno Haible  <bruno@clisp.org>
67227
67228         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67229         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67230
67231 2007-07-12  Bruno Haible  <bruno@clisp.org>
67232
67233         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67234         in the modules files.
67235
67236 2007-07-11  Karl Berry  <karl@gnu.org>
67237
67238         * MODULES.html.sh (func_module): use
67239          sed -e '\|^'"${includefile}"'$|d'
67240          instead of /.../d, to avoid errors on $includefile's containing /.
67241
67242 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67243
67244         * gnulib-tool (func_import): Avoid duplication of --avoid
67245         statements
67246         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67247         names to `_' in variable names.
67248
67249 2007-07-10  Eric Blake  <ebb9@byu.net>
67250
67251         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67252         * NEWS: Document this change.
67253
67254 2007-07-08  Bruno Haible  <bruno@clisp.org>
67255
67256         Update to Unicode 5.0.
67257         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67258         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67259         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67260         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67261         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67262         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67263         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67264         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67265         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67266         U+10A3F, U+1D242..U+1D244.
67267         (nonspacing_table_ind): Update.
67268         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67269         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67270
67271 2007-07-08  Bruno Haible  <bruno@clisp.org>
67272
67273         Update to Unicode 5.0.
67274         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67275         code transform. Extend the name index field of unicode_name_to_code and
67276         unicode_code_to_name from 16 to 24 bits.
67277         * lib/uniname/uniname.c (unicode_character_name,
67278         unicode_name_character): Add the range 0x12xxx to the code transform.
67279         * lib/uniname/uninames.h: Regenerated.
67280         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67281
67282 2007-07-07  Bruno Haible  <bruno@clisp.org>
67283
67284         * modules/wcwidth-tests: New file.
67285         * tests/test-wcwidth.c: New file.
67286
67287         Work around MacOS X wcwidth() bug.
67288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67289         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67290         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67291         original wcwidth in non-UTF-8 locales.
67292         * modules/wcwidth (Depends-on): Add localcharset, streq,
67293         uniwidth/width.
67294         * doc/functions/wcwidth.texi: Update.
67295
67296 2007-07-07  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67299         (wcwidth): New declaration.
67300         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67301         macros.
67302         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67303         here. Prepare for creating <wchar.h> unconditionally.
67304         * modules/wchar (Depends-on): Add link-warning.
67305         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67306         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67307         * lib/wcwidth.h: Remove file.
67308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67309         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67310         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67311         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67312         (Include): Replace wcwidth.h with <wchar.h>.
67313         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67314         * lib/mbchar.h: Don't include wcwidth.h.
67315         * lib/mbswidth.c: Likewise.
67316         * NEWS: Mention the change.
67317
67318 2007-07-07  Bruno Haible  <bruno@clisp.org>
67319
67320         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67321         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67322         definition with an external declaration.
67323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67324         defined as a function. Remove AC_C_INLINE requirement.
67325         * modules/wcwidth (Files): Add lib/wcwidth.c.
67326         (Makefile.am): Remove redundant statement.
67327
67328 2007-07-07  Bruno Haible  <bruno@clisp.org>
67329
67330         * MODULES.html.sh (Unicode string functions): Add the new modules.
67331
67332         * tests/uniwidth/test-u32-strwidth.c: New file.
67333         * modules/uniwidth/u32-strwidth-tests: New file.
67334
67335         * lib/uniwidth/u32-strwidth.c: New file.
67336         * modules/uniwidth/u32-strwidth: New file.
67337
67338         * tests/uniwidth/test-u16-strwidth.c: New file.
67339         * modules/uniwidth/u16-strwidth-tests: New file.
67340
67341         * lib/uniwidth/u16-strwidth.c: New file.
67342         * modules/uniwidth/u16-strwidth: New file.
67343
67344         * tests/uniwidth/test-u8-strwidth.c: New file.
67345         * modules/uniwidth/u8-strwidth-tests: New file.
67346
67347         * lib/uniwidth/u8-strwidth.c: New file.
67348         * modules/uniwidth/u8-strwidth: New file.
67349
67350         * tests/uniwidth/test-u32-width.c: New file.
67351         * modules/uniwidth/u32-width-tests: New file.
67352
67353         * lib/uniwidth/u32-width.c: New file.
67354         * modules/uniwidth/u32-width: New file.
67355
67356         * tests/uniwidth/test-u16-width.c: New file.
67357         * modules/uniwidth/u16-width-tests: New file.
67358
67359         * lib/uniwidth/u16-width.c: New file.
67360         * modules/uniwidth/u16-width: New file.
67361
67362         * tests/uniwidth/test-u8-width.c: New file.
67363         * modules/uniwidth/u8-width-tests: New file.
67364
67365         * lib/uniwidth/u8-width.c: New file.
67366         * modules/uniwidth/u8-width: New file.
67367
67368         * tests/uniwidth/test-uc_width.c: New file.
67369         * modules/uniwidth/width-tests: New file.
67370
67371         * lib/uniwidth/width.c: New file, from GNU libiconv.
67372         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67373         * modules/uniwidth/width: New file.
67374
67375         * lib/uniwidth.h: New file, from GNU libiconv.
67376         * modules/uniwidth/base: New file.
67377
67378 2007-07-07  Bruno Haible  <bruno@clisp.org>
67379
67380         * lib/uniname.h: New file, from GNU gettext.
67381         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67382         * lib/uniname/uninames.h: New file, from GNU gettext.
67383         * lib/uniname/uniname.c: New file, from GNU gettext.
67384         * tests/uniname/test-uninames.sh: New file.
67385         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67386         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67387         * modules/uniname/base: New file.
67388         * modules/uniname/uniname: New file.
67389         * modules/uniname/uniname-tests: New file.
67390         * MODULES.html.sh (Unicode string functions): Add the new modules.
67391
67392 2007-07-06  Bruno Haible  <bruno@clisp.org>
67393
67394         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67395
67396 2007-07-06  Bruno Haible  <bruno@clisp.org>
67397
67398         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67399         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67400         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67401         include <sys/time.h>.
67402         Reported by Eric Blake.
67403
67404 2007-07-06  Eric Blake  <ebb9@byu.net>
67405
67406         Fix testing canonicalize on cygwin.
67407         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67408         Revert patch from 2007-06-19.
67409         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67410         canonicalize module is also in use.
67411         * tests/test-canonicalize.c: New file.
67412         * tests/test-canonicalize.sh: Likewise.
67413         * modules/canonicalize-tests: Likewise.
67414
67415 2007-07-06  Jim Meyering  <jim@meyering.net>
67416
67417         * lib/getugroups.c (getugroups): Detect getgrent failure.
67418         Adjust comment to reflect reality: this function may return -1.
67419
67420 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67421
67422         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67423         the new TP address.
67424         (usage): Fix typo
67425         (gnulib_mk): New variable.
67426
67427 2007-07-05  Jim Meyering  <jim@meyering.net>
67428
67429         Don't let endgrent clobber errno, no matter how improbable.
67430         * lib/getugroups.c (getugroups): Save and restore errno around
67431         endgrent call.
67432
67433         Close the group DB even when failing with 2^31 or more members.
67434         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67435
67436 2007-07-04  Jim Meyering  <jim@meyering.net>
67437
67438         * lib/getugroups.h: New file.
67439         * lib/getugroups.c: Include "getugroups.h".
67440         Remove uses of "register" keyword.
67441         Move local variable, "cp", down into scope where used.
67442         Give "username" parameter the "const" attribute.
67443         * modules/getugroups (Files): Add lib/getugroups.h
67444
67445 2007-07-04  Karl Berry  <karl@gnu.org>
67446
67447         * MODULES.html.sh (func_all_modules): Complete rename of
67448         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67449
67450 2007-07-02  Bruno Haible  <bruno@clisp.org>
67451
67452         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67453         mode, when inttypes.h comes from gnulib.
67454         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67455
67456 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67457
67458         * NEWS: Mention lgpl module name change.
67459
67460         * modules/lgpl-2.1: Renamed from lgpl.
67461
67462         * NEWS: Mention gpl module name change.
67463
67464         * modules/gpl-3.0: New file, based on gpl-2.0.
67465
67466         * modules/gpl-2.0: Renamed from gpl.
67467
67468         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67469         doc/gpl-2.0.texi.
67470
67471 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67472
67473         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67474         #define __STDC_LIMIT_MACROS temporarily while including
67475         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67476         Problem reported by Joel E. Denny in
67477         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67478
67479 2007-07-01  Bruno Haible  <bruno@clisp.org>
67480
67481         * lib/unistdio.h: New file.
67482         * lib/unistdio/u-asnprintf.h: New file.
67483         * lib/unistdio/u-asprintf.h: New file.
67484         * lib/unistdio/u-printf-args.c: New file.
67485         * lib/unistdio/u-printf-args.h: New file.
67486         * lib/unistdio/u-printf-parse.h: New file.
67487         * lib/unistdio/u-snprintf.h: New file.
67488         * lib/unistdio/u-sprintf.h: New file.
67489         * lib/unistdio/u-vasprintf.h: New file.
67490         * lib/unistdio/u-vsnprintf.h: New file.
67491         * lib/unistdio/u-vsprintf.h: New file.
67492         * lib/unistdio/ulc-asnprintf.c: New file.
67493         * lib/unistdio/ulc-asprintf.c: New file.
67494         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67495         * lib/unistdio/ulc-printf-parse.c: New file.
67496         * lib/unistdio/ulc-snprintf.c: New file.
67497         * lib/unistdio/ulc-sprintf.c: New file.
67498         * lib/unistdio/ulc-vasnprintf.c: New file.
67499         * lib/unistdio/ulc-vasprintf.c: New file.
67500         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67501         * lib/unistdio/ulc-vsnprintf.c: New file.
67502         * lib/unistdio/ulc-vsprintf.c: New file.
67503         * lib/unistdio/u8-asnprintf.c: New file.
67504         * lib/unistdio/u8-asprintf.c: New file.
67505         * lib/unistdio/u8-printf-parse.c: New file.
67506         * lib/unistdio/u8-snprintf.c: New file.
67507         * lib/unistdio/u8-sprintf.c: New file.
67508         * lib/unistdio/u8-vasnprintf.c: New file.
67509         * lib/unistdio/u8-vasprintf.c: New file.
67510         * lib/unistdio/u8-vsnprintf.c: New file.
67511         * lib/unistdio/u8-vsprintf.c: New file.
67512         * lib/unistdio/u8-u8-asnprintf.c: New file.
67513         * lib/unistdio/u8-u8-asprintf.c: New file.
67514         * lib/unistdio/u8-u8-snprintf.c: New file.
67515         * lib/unistdio/u8-u8-sprintf.c: New file.
67516         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67517         * lib/unistdio/u8-u8-vasprintf.c: New file.
67518         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67519         * lib/unistdio/u8-u8-vsprintf.c: New file.
67520         * lib/unistdio/u16-asnprintf.c: New file.
67521         * lib/unistdio/u16-asprintf.c: New file.
67522         * lib/unistdio/u16-printf-parse.c: New file.
67523         * lib/unistdio/u16-snprintf.c: New file.
67524         * lib/unistdio/u16-sprintf.c: New file.
67525         * lib/unistdio/u16-vasnprintf.c: New file.
67526         * lib/unistdio/u16-vasprintf.c: New file.
67527         * lib/unistdio/u16-vsnprintf.c: New file.
67528         * lib/unistdio/u16-vsprintf.c: New file.
67529         * lib/unistdio/u16-u16-asnprintf.c: New file.
67530         * lib/unistdio/u16-u16-asprintf.c: New file.
67531         * lib/unistdio/u16-u16-snprintf.c: New file.
67532         * lib/unistdio/u16-u16-sprintf.c: New file.
67533         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67534         * lib/unistdio/u16-u16-vasprintf.c: New file.
67535         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67536         * lib/unistdio/u16-u16-vsprintf.c: New file.
67537         * lib/unistdio/u32-asnprintf.c: New file.
67538         * lib/unistdio/u32-asprintf.c: New file.
67539         * lib/unistdio/u32-printf-parse.c: New file.
67540         * lib/unistdio/u32-snprintf.c: New file.
67541         * lib/unistdio/u32-sprintf.c: New file.
67542         * lib/unistdio/u32-vasnprintf.c: New file.
67543         * lib/unistdio/u32-vasprintf.c: New file.
67544         * lib/unistdio/u32-vsnprintf.c: New file.
67545         * lib/unistdio/u32-vsprintf.c: New file.
67546         * lib/unistdio/u32-u32-asnprintf.c: New file.
67547         * lib/unistdio/u32-u32-asprintf.c: New file.
67548         * lib/unistdio/u32-u32-snprintf.c: New file.
67549         * lib/unistdio/u32-u32-sprintf.c: New file.
67550         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67551         * lib/unistdio/u32-u32-vasprintf.c: New file.
67552         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67553         * lib/unistdio/u32-u32-vsprintf.c: New file.
67554         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67555         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67556         * tests/unistdio/test-ulc-printf1.h: New file.
67557         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67558         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67559         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67560         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67561         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67562         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67563         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67564         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67565         * tests/unistdio/test-u8-asnprintf1.c: New file.
67566         * tests/unistdio/test-u8-asnprintf1.h: New file.
67567         * tests/unistdio/test-u8-printf1.h: New file.
67568         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67569         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67570         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67571         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67572         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67573         * tests/unistdio/test-u8-vasprintf1.c: New file.
67574         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67575         * tests/unistdio/test-u8-vsprintf1.c: New file.
67576         * tests/unistdio/test-u16-asnprintf1.c: New file.
67577         * tests/unistdio/test-u16-asnprintf1.h: New file.
67578         * tests/unistdio/test-u16-printf1.h: New file.
67579         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67580         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67581         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67582         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67583         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67584         * tests/unistdio/test-u16-vasprintf1.c: New file.
67585         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67586         * tests/unistdio/test-u16-vsprintf1.c: New file.
67587         * tests/unistdio/test-u32-asnprintf1.c: New file.
67588         * tests/unistdio/test-u32-asnprintf1.h: New file.
67589         * tests/unistdio/test-u32-printf1.h: New file.
67590         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67591         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67592         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67593         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67594         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67595         * tests/unistdio/test-u32-vasprintf1.c: New file.
67596         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67597         * tests/unistdio/test-u32-vsprintf1.c: New file.
67598         * modules/unistdio/base: New file.
67599         * modules/unistdio/u-printf-args: New file.
67600         * modules/unistdio/ulc-asnprintf: New file.
67601         * modules/unistdio/ulc-asprintf: New file.
67602         * modules/unistdio/ulc-fprintf: New file.
67603         * modules/unistdio/ulc-printf-parse: New file.
67604         * modules/unistdio/ulc-snprintf: New file.
67605         * modules/unistdio/ulc-sprintf: New file.
67606         * modules/unistdio/ulc-vasnprintf: New file.
67607         * modules/unistdio/ulc-vasprintf: New file.
67608         * modules/unistdio/ulc-vfprintf: New file.
67609         * modules/unistdio/ulc-vsnprintf: New file.
67610         * modules/unistdio/ulc-vsprintf: New file.
67611         * modules/unistdio/u8-asnprintf: New file.
67612         * modules/unistdio/u8-asprintf: New file.
67613         * modules/unistdio/u8-printf-parse: New file.
67614         * modules/unistdio/u8-snprintf: New file.
67615         * modules/unistdio/u8-sprintf: New file.
67616         * modules/unistdio/u8-vasnprintf: New file.
67617         * modules/unistdio/u8-vasprintf: New file.
67618         * modules/unistdio/u8-vsnprintf: New file.
67619         * modules/unistdio/u8-vsprintf: New file.
67620         * modules/unistdio/u8-u8-asnprintf: New file.
67621         * modules/unistdio/u8-u8-asprintf: New file.
67622         * modules/unistdio/u8-u8-snprintf: New file.
67623         * modules/unistdio/u8-u8-sprintf: New file.
67624         * modules/unistdio/u8-u8-vasnprintf: New file.
67625         * modules/unistdio/u8-u8-vasprintf: New file.
67626         * modules/unistdio/u8-u8-vsnprintf: New file.
67627         * modules/unistdio/u8-u8-vsprintf: New file.
67628         * modules/unistdio/u16-asnprintf: New file.
67629         * modules/unistdio/u16-asprintf: New file.
67630         * modules/unistdio/u16-printf-parse: New file.
67631         * modules/unistdio/u16-snprintf: New file.
67632         * modules/unistdio/u16-sprintf: New file.
67633         * modules/unistdio/u16-vasnprintf: New file.
67634         * modules/unistdio/u16-vasprintf: New file.
67635         * modules/unistdio/u16-vsnprintf: New file.
67636         * modules/unistdio/u16-vsprintf: New file.
67637         * modules/unistdio/u16-u16-asnprintf: New file.
67638         * modules/unistdio/u16-u16-asprintf: New file.
67639         * modules/unistdio/u16-u16-snprintf: New file.
67640         * modules/unistdio/u16-u16-sprintf: New file.
67641         * modules/unistdio/u16-u16-vasnprintf: New file.
67642         * modules/unistdio/u16-u16-vasprintf: New file.
67643         * modules/unistdio/u16-u16-vsnprintf: New file.
67644         * modules/unistdio/u16-u16-vsprintf: New file.
67645         * modules/unistdio/u32-asnprintf: New file.
67646         * modules/unistdio/u32-asprintf: New file.
67647         * modules/unistdio/u32-printf-parse: New file.
67648         * modules/unistdio/u32-snprintf: New file.
67649         * modules/unistdio/u32-sprintf: New file.
67650         * modules/unistdio/u32-vasnprintf: New file.
67651         * modules/unistdio/u32-vasprintf: New file.
67652         * modules/unistdio/u32-vsnprintf: New file.
67653         * modules/unistdio/u32-vsprintf: New file.
67654         * modules/unistdio/u32-u32-asnprintf: New file.
67655         * modules/unistdio/u32-u32-asprintf: New file.
67656         * modules/unistdio/u32-u32-snprintf: New file.
67657         * modules/unistdio/u32-u32-sprintf: New file.
67658         * modules/unistdio/u32-u32-vasnprintf: New file.
67659         * modules/unistdio/u32-u32-vasprintf: New file.
67660         * modules/unistdio/u32-u32-vsnprintf: New file.
67661         * modules/unistdio/u32-u32-vsprintf: New file.
67662         * modules/unistdio/ulc-asnprintf-tests: New file.
67663         * modules/unistdio/ulc-vasnprintf-tests: New file.
67664         * modules/unistdio/ulc-vasprintf-tests: New file.
67665         * modules/unistdio/ulc-vsnprintf-tests: New file.
67666         * modules/unistdio/ulc-vsprintf-tests: New file.
67667         * modules/unistdio/u8-asnprintf-tests: New file.
67668         * modules/unistdio/u8-vasnprintf-tests: New file.
67669         * modules/unistdio/u8-vasprintf-tests: New file.
67670         * modules/unistdio/u8-vsnprintf-tests: New file.
67671         * modules/unistdio/u8-vsprintf-tests: New file.
67672         * modules/unistdio/u16-asnprintf-tests: New file.
67673         * modules/unistdio/u16-vasnprintf-tests: New file.
67674         * modules/unistdio/u16-vasprintf-tests: New file.
67675         * modules/unistdio/u16-vsnprintf-tests: New file.
67676         * modules/unistdio/u16-vsprintf-tests: New file.
67677         * modules/unistdio/u32-asnprintf-tests: New file.
67678         * modules/unistdio/u32-vasnprintf-tests: New file.
67679         * modules/unistdio/u32-vasprintf-tests: New file.
67680         * modules/unistdio/u32-vsnprintf-tests: New file.
67681         * modules/unistdio/u32-vsprintf-tests: New file.
67682         * MODULES.html.sh (Unicode string functions): Add the new modules.
67683
67684 2007-07-01  Bruno Haible  <bruno@clisp.org>
67685
67686         * lib/sprintf.c (sprintf): Limit the available length estimation,
67687         to avoid address wraparound.
67688         * lib/vsprintf.c (vsprintf): Likewise.
67689         * modules/sprintf-posix (Dependencies): Add stdint.
67690         * modules/vsprintf-posix (Dependencies): Likewise.
67691
67692 2007-07-01  Bruno Haible  <bruno@clisp.org>
67693
67694         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67695         Windows PATH as well. Conservative double-quoting. Comments.
67696
67697 2007-07-01  Bruno Haible  <bruno@clisp.org>
67698             Eric Blake  <ebb9@byu.net>
67699             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67700
67701         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67702         empty components in $PATH, denoting '.'.
67703
67704 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67705
67706         * gnulib-tool: Fix indentation.
67707         (func_create_megatestdir): Likewise.
67708         Report by Bruno Haible.
67709
67710 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67711
67712         Sync from Automake.
67713         * build-aux/gnupload: Fix shell portability issues with for loops.
67714         Report by Karl Berry.
67715
67716 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67717
67718         * build-aux/maint.mk (POURL): Use translationproject.org.
67719
67720 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67721             Bruno Haible  <bruno@clisp.org>
67722
67723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67724         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67725         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67726         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67727         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67728
67729 2007-06-27  Bruno Haible  <bruno@clisp.org>
67730
67731         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67732         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67733
67734 2007-06-26  Karl Berry  <karl@gnu.org>
67735
67736         * MODULES.html.sh: remove xreadlink-with-size.
67737
67738 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67741         method that I hope also handles the double-include problem noted
67742         by Bruno Haible in
67743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67744
67745 2007-06-23  Bruno Haible  <bruno@clisp.org>
67746
67747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67748         Don't let the 'mostlyclean' target fail if the last subdirectory could
67749         not be removed.
67750         Reported by Karl Berry.
67751
67752 2007-06-23  Bruno Haible  <bruno@clisp.org>
67753
67754         * gnulib-tool (echo): Add a speedier workaround for ksh.
67755         * tests/test-echo.sh: Likewise.
67756
67757 2007-06-23  Bruno Haible  <bruno@clisp.org>
67758
67759         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67760         * tests/test-echo.sh: Likewise.
67761
67762 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67763
67764         * gnulib-tool (IFS): Initialize early, so we don't set it to
67765         empty later.
67766         (self_abspathname): Rewrite algorithm to set it, reindent.
67767         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67768         (func_create_megatestdir): Merge some sed scripts.
67769
67770 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67771
67772         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67773         exposed by Sun Studio 11 cc on Solaris 8.
67774
67775 2007-06-22  Bruno Haible  <bruno@clisp.org>
67776
67777         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67778         backslashes.
67779         * tests/test-echo.sh: New file.
67780
67781 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67782
67783         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67784         simplify `sed_replace_build_aux' scripts, they are portable but
67785         echoing them with `echo' is not.
67786         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67787
67788 2007-06-21  Karl Berry  <karl@gnu.org>
67789
67790         * config/srclist.txt: guess we can't handle the licenses via
67791         srclist at the moment.
67792
67793 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67794
67795         * MODULES.html.sh: Add include_next.
67796         * modules/include_next: New file.
67797
67798 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67799
67800         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67801         INCLUDE_NEXT.
67802         (gl_CHECK_NEXT_HEADERS): New macro.
67803         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67804         the obsolescent gl_ABSOLUTE_HEADER.
67805         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67806         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67807         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67808         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67809         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67810         * m4/math_h.m4 (gl_MATH_H): Likewise.
67811         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67812         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67813         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67814         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67815         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67816         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67817         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67818         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67819         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67820         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67821         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67822         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67823         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67824         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67825         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67826         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67827         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67828         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67829         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67830         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67831         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67832         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67833         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67834         * lib/float_.h: Likewise.
67835         * lib/inttypes_.h: Likewise.
67836         * lib/math_.h: Likewise.
67837         * lib/search_.h: Likewise.
67838         * lib/signal_.h: Likewise.
67839         * lib/stdint_.h: Likewise.
67840         * lib/stdio_.h: Likewise.
67841         * lib/stdlib_.h: Likewise.
67842         * lib/string_.h: Likewise.
67843         * lib/sys_stat_.h: Likewise.
67844         * lib/sys_time_.h: Likewise.
67845         * lib/time_.h: Likewise.
67846         * lib/unistd_.h: Likewise.
67847         * lib/wchar_.h: Likewise.
67848         * lib/wctype_.h: Likewise.
67849         * lib/dirent_.h: Likewise.
67850         * lib/iconv_.h: Likewise.
67851         * lib/locale_.h: Likewise.
67852         * lib/netinet_in_.h: Likewise.
67853         * lib/sys_select_.h: Likewise.
67854         * lib/sys_socket_.h: Likewise.
67855         * lib/sysexits_.h: Likewise.
67856         * modules/fcntl (Depends-on): Depend on include_next, not
67857         absolute_header.
67858         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67859         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67860         * modules/fchdir: Likewise.
67861         * modules/float: Likewise.
67862         * modules/iconv_open: Likewise.
67863         * modules/inttypes: Likewise.
67864         * modules/locale: Likewise.
67865         * modules/math: Likewise.
67866         * modules/netinet_in: Likewise.
67867         * modules/search: Likewise.
67868         * modules/signal: Likewise.
67869         * modules/stdint: Likewise.
67870         * modules/stdio: Likewise.
67871         * modules/stdlib: Likewise.
67872         * modules/string: Likewise.
67873         * modules/sys_select: Likewise.
67874         * modules/sys_socket: Likewise.
67875         * modules/sys_stat: Likewise.
67876         * modules/sys_time: Likewise.
67877         * modules/sysexits: Likewise.
67878         * modules/time: Likewise.
67879         * modules/unistd: Likewise.
67880         * modules/wchar: Likewise.
67881         * modules/wctype: Likewise.
67882         * modules/sys_stat: Change maintainer to "all".
67883         * modules/unistd: Likewise.
67884
67885 2007-06-20  Karl Berry  <karl@gnu.org>
67886
67887         * config/srclist.txt: track www changes in license files.
67888
67889 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67890
67891         * build-aux/bootstrap: Remove stray dot.
67892         Make sure build_aux settings are honored when linking
67893         gnulib_extra_files.
67894
67895 2007-06-19  Eric Blake  <ebb9@byu.net>
67896
67897         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67898         Allow compilation on cygwin.
67899
67900 2007-06-19  Jim Meyering  <jim@meyering.net>
67901
67902         xreadlink-with-size: Remove module.  No longer used.
67903         Ex-callers now use xreadlink or mreadlink-with-size.
67904         * modules/xreadlink-with-size: Remove module.
67905         * lib/xreadlink-with-size.c: Remove file.
67906         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67907         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67908         just before the function definition *is* accurate.
67909
67910         Eliminate one way canonicalize_filename_mode could exit.
67911         * lib/canonicalize.c (canonicalize_filename_mode):
67912         Use mreadlink_with_size, not xreadlink_with_size.
67913
67914 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67915
67916         Detect porting problems to FreeBSD/arm, which has time_t wider than
67917         long int.  Original problem reported for GNU diff by Xin Li in
67918         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67919         * modules/getdate (Depends-on): Add intprops, verify.
67920         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67921         is an integer type no wider than long int.
67922
67923 2007-06-18  Jim Meyering  <jim@meyering.net>
67924
67925         New module: mreadlink-with-size.
67926         * MODULES.html.sh: Add mreadlink-with-size.
67927         * modules/mreadlink-with-size: New module
67928         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67929         not xreadlink-with-size.
67930         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67931
67932 2007-06-16  Bruno Haible  <bruno@clisp.org>
67933
67934         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67935         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67936         Reported by Gary V. Vaughan <gary@gnu.org>.
67937
67938 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67939
67940         Revamp lchown so that it lives in unistd.h where it belongs.
67941         * lib/lchown.h: Remove.
67942         * lib/dirchownmod.c: Don't include lib/lchown.h.
67943         * lib/fchownat.c: Likewise.
67944         * lib/openat.c: Likewise.
67945         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67946         does not follow symlinks.
67947         (EOPNOTSUPP): Define if not defined.
67948         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67949         is defined to 0.
67950         (lchown): New decl.
67951         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67952         Do not check for lchown decl.
67953         Set REPLACE_LCHOWN.
67954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67955         REPLACE_LCHOWN.
67956         * modules/chown: Make it clear it follows symlinks.
67957         * modules/lchown: Make it clear it doesn't follow symlinks.
67958         (Files): Remove lib/lchown.h
67959         (Depends-on): Add unistd.
67960         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67961         (Include): Include <unistd.h>, not "lchown.h".
67962         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67963         REPLACE_LCHOWN.
67964
67965 2007-06-15  Jim Meyering  <jim@meyering.net>
67966
67967         Change license (GPL to LGPL) of fsusage and dependents.
67968         * modules/fsusage (License): Change to LGPL.
67969         * modules/full-read (License): Likewise.
67970         * modules/full-write (License): Likewise.
67971         * modules/safe-read (License): Likewise.
67972         * modules/safe-write (License): Likewise.
67973
67974 2007-06-14  Ben Pfaff  <blp@gnu.org>
67975
67976         Missing part of allocsa -> malloca transition.
67977         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67978         gl_MALLOCA.
67979
67980 2007-06-12  Bruno Haible  <bruno@clisp.org>
67981
67982         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67983         to ia64, x86_64, i386.
67984         Reported by Eric Blake.
67985
67986 2007-06-12  Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67989         cross-compiling to x86_64.
67990
67991 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67992
67993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67994         glitch reported by Ralf Wildenhues in
67995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67996
67997         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67998         Vin Shelton.
67999
68000 2007-06-11  Bruno Haible  <bruno@clisp.org>
68001
68002         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68003         replacement string.
68004         Reported by Eric Blake.
68005
68006 2007-06-10  Bruno Haible  <bruno@clisp.org>
68007
68008         Prepare vasnprintf code for use with Unicode strings.
68009         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68010         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68011         TYPE_U32_STRING.
68012         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68013         a_u32_string variants.
68014         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68015         * lib/printf-args.c: Don't include config.h and the specification
68016         header if PRINTF_FETCHARGS is already defined.
68017         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68018         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68019         TYPE_U16_STRING, TYPE_U32_STRING.
68020         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68021         u16_directive, u16_directives, u32_directive, u32_directives): New
68022         types.
68023         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68024         New declarations.
68025         * lib/printf-parse.c: Don't include config.h and the specification
68026         header if PRINTF_PARSE is already defined. Eliminate the set of
68027         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68028         them now. Include c-ctype.h.
68029         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68030         directive and CHAR_T_ONLY_ASCII.
68031         * lib/vasnprintf.c: Don't include config.h and the specification header
68032         if VASNPRINTF is already defined.
68033         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68034         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68035         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68036         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68037         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68038         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68039         code accordingly.
68040         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68041         pad_ourselves also in this case, with the 'c' and 's' directives, and
68042         with a different notion of "width".
68043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68044
68045 2007-06-10  Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/unistr/u32-mbsnlen: New file.
68048         * lib/unistr/u32-mbsnlen.c: New file.
68049
68050         * modules/unistr/u16-mbsnlen: New file.
68051         * lib/unistr/u16-mbsnlen.c: New file.
68052
68053         * modules/unistr/u8-mbsnlen: New file.
68054         * lib/unistr/u8-mbsnlen.c: New file.
68055
68056         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68057         declarations.
68058
68059 2007-06-10  Bruno Haible  <bruno@clisp.org>
68060
68061         * lib/string_.h (mbsnlen): New declaration.
68062         * lib/mbsnlen.c: New file.
68063         * m4/mbsnlen.m4: New file.
68064         * modules/mbsnlen: New file.
68065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68066         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68067         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68068
68069 2007-06-10  Bruno Haible  <bruno@clisp.org>
68070
68071         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68072
68073 2007-06-10  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68076         * lib/mbuiter.h: Likewise.
68077
68078 2007-06-10  Bruno Haible  <bruno@clisp.org>
68079
68080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68081         declaration.
68082
68083 2007-06-10  Karl Berry  <karl@gnu.org>
68084
68085         * config/srclist.txt: remove gettext entries, Bruno prefers
68086         to update individually.
68087
68088 2007-06-10  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68091         'maxlen'. Ensure only length + width bytes are allocated, not
68092         length + 1 + width.
68093
68094 2007-06-09  Bruno Haible  <bruno@clisp.org>
68095
68096         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68097         (CHAR_T): Remove macro.
68098         (VASNPRINTF): Update.
68099
68100 2007-06-09  Bruno Haible  <bruno@clisp.org>
68101
68102         * MODULES.html.sh (Unicode string functions): Add the new modules.
68103
68104         * modules/uniconv/u32-conv-to-enc: New file.
68105         * lib/uniconv/u32-conv-to-enc.c: New file.
68106         * modules/uniconv/u32-conv-to-enc-tests: New file.
68107         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68108
68109         * modules/uniconv/u16-conv-to-enc: New file.
68110         * lib/uniconv/u16-conv-to-enc.c: New file.
68111         * lib/uniconv/u-conv-to-enc.h: New file.
68112         * modules/uniconv/u16-conv-to-enc-tests: New file.
68113         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68114
68115         * modules/uniconv/u8-conv-to-enc: New file.
68116         * lib/uniconv/u8-conv-to-enc.c: New file.
68117         * modules/uniconv/u8-conv-to-enc-tests: New file.
68118         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68119
68120         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68121         u32_conv_to_encoding): New declarations.
68122
68123 2007-06-09  Bruno Haible  <bruno@clisp.org>
68124
68125         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68126
68127 2007-06-09  Bruno Haible  <bruno@clisp.org>
68128
68129         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68130         * modules/malloca: Renamed from modules/allocsa, updated.
68131         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68132         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68133         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68134         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68135         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68136         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68137         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68138         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68139         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68140         * modules/c-strcasestr (Depends-on): Update.
68141         * lib/c-strcasestr.c: Update.
68142         * modules/c-strstr (Depends-on): Update.
68143         * lib/c-strstr.c: Update.
68144         * modules/canonicalize-lgpl (Depends-on): Update.
68145         * lib/canonicalize-lgpl.c: Update.
68146         * modules/clean-temp (Depends-on): Update.
68147         * lib/clean-temp.c: Update.
68148         * modules/csharpcomp (Depends-on): Update.
68149         * lib/csharpcomp.c: Update.
68150         * modules/csharpexec (Depends-on): Update.
68151         * lib/csharpexec.c: Update.
68152         * modules/javacomp (Depends-on): Update.
68153         * lib/javacomp.c: Update.
68154         * modules/javaexec (Depends-on): Update.
68155         * lib/javaexec.c: Update.
68156         * modules/mbscasestr (Depends-on): Update.
68157         * lib/mbscasestr.c: Update.
68158         * modules/mbsstr (Depends-on): Update.
68159         * lib/mbsstr.c: Update.
68160         * modules/setenv (Depends-on): Update.
68161         * lib/setenv.c: Update.
68162         * modules/strcasestr (Depends-on): Update.
68163         * lib/strcasestr.c: Update.
68164         * modules/striconveha (Depends-on): Update.
68165         * lib/striconveha.c: Update.
68166         * modules/relocatable-prog-wrapper (Files): Update.
68167         * lib/relocwrapper.c: Update.
68168         * build-aux/install-reloc: Update.
68169         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68170
68171 2007-06-08  Bruno Haible  <bruno@clisp.org>
68172
68173         Port to uClibc.
68174         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68175         * lib/fpurge.c (fpurge): Likewise.
68176         * lib/freading.c (freading): Likewise.
68177         * lib/fseeko.c (rpl_fseeko): Likewise.
68178         * lib/fseterr.c (fseterr): Likewise.
68179         * lib/fwriting.c (fwriting): Likewise.
68180         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68181
68182 2007-06-08  Bruno Haible  <bruno@clisp.org>
68183
68184         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68185         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68186         * modules/gettext (Files): Add m4/intlmacosx.m4.
68187
68188 2007-06-07  Bruno Haible  <bruno@clisp.org>
68189
68190         * modules/localename-tests: New file.
68191         * tests/test-localename.c: New file.
68192
68193         New module 'localename'.
68194         * lib/localename.h: New file.
68195         * lib/localename.c: New file, from GNU gettext.
68196         * m4/localename.m4: New file.
68197         * modules/localename: New file.
68198
68199 2007-06-07  Bruno Haible  <bruno@clisp.org>
68200
68201         Work around the lack of <wchar.h> on some builds of uClibc.
68202         * doc/headers/wchar.texi: Update.
68203         * lib/wchar_.h: Include <wchar.h> only if it exists.
68204         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68205         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68206         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68207         doesn't exist.
68208         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68209         * modules/mbfile (Depends-on): Add wchar.
68210         * modules/mbiter (Depends-on): Likewise.
68211         * modules/mbuiter (Depends-on): Likewise.
68212         Reported by Simon Josefsson.
68213
68214 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68215
68216         Work around problem reported by Steven M. Schweda in
68217         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68218         Tru64 5.1B with the Compaq compiler environment installed declares
68219         an 'isblank' function but does not define it in the C library.
68220         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68221         * lib/regex_internal.h (isblank): Likewise.
68222         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68223         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68224
68225 2007-06-05  Bruno Haible  <bruno@clisp.org>
68226
68227         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68228         ia64.
68229         * modules/printf-safe: New file.
68230         * modules/fprintf-posix (Depends-on): Add printf-safe.
68231         * modules/printf-posix (Depends-on): Likewise.
68232         * modules/snprintf-posix (Depends-on): Likewise.
68233         * modules/sprintf-posix (Depends-on): Likewise.
68234         * modules/vasnprintf-posix (Depends-on): Likewise.
68235         * modules/vasprintf-posix (Depends-on): Likewise.
68236         * modules/vfprintf-posix (Depends-on): Likewise.
68237         * modules/vprintf-posix (Depends-on): Likewise.
68238         * modules/vsnprintf-posix (Depends-on): Likewise.
68239         * modules/vsprintf-posix (Depends-on): Likewise.
68240         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68241         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68242         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68243         "no" on i386, x86_64, ia64.
68244         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68245         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68246         on i386, x86_64, ia64.
68247         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68248         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68249         on i386, x86_64, ia64.
68250         * tests/test-vasnprintf-posix.c: Include float.h.
68251         (LDBL80_WORDS): New macro.
68252         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68253         on i386, x86_64, ia64.
68254         * tests/test-vasprintf-posix.c: Include float.h.
68255         (LDBL80_WORDS): New macro.
68256         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68257         on i386, x86_64, ia64.
68258         * tests/test-snprintf-posix.c: Include float.h.
68259         * tests/test-sprintf-posix.c: Likewise.
68260         * tests/test-vsnprintf-posix.c: Likewise.
68261         * tests/test-vsprintf-posix.c: Likewise.
68262
68263 2007-06-05  Bruno Haible  <bruno@clisp.org>
68264
68265         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68266         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68267         non-IEEE numbers on i386, x86_64, ia64.
68268         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68269         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68270         * tests/test-isnanl.h: Include float.h.
68271         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68272
68273 2007-06-05  Bruno Haible  <bruno@clisp.org>
68274
68275         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68276         also the %a / %A. Handle the %a / %A code before this extra handling.
68277
68278 2007-06-05  Bruno Haible  <bruno@clisp.org>
68279
68280         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68281         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68282
68283 2007-06-05  Bruno Haible  <bruno@clisp.org>
68284
68285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68286         typo in variable name.
68287
68288 2007-06-05  Eric Blake  <ebb9@byu.net>
68289
68290         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68291         Reported by Simon Josefsson.
68292
68293 2007-06-04  Bruno Haible  <bruno@clisp.org>
68294
68295         Avoid test failures on some PowerPC platforms.
68296         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68297         Define differently for PowerPC.
68298         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68299         Reported by Gary V. Vaughan <gary@gnu.org>.
68300
68301 2007-06-02  Bruno Haible  <bruno@clisp.org>
68302
68303         Fix test-stdint failure on FreeBSD/ia64.
68304         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68305         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68306         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68307         * doc/headers/stdint.texi: Update.
68308
68309 2007-06-01  Bruno Haible  <bruno@clisp.org>
68310
68311         * tests/test-binary-io.c (main): Pass a third argument to open().
68312         Reported by Gary V. Vaughan <gary@gnu.org>.
68313
68314 2007-06-01  Bruno Haible  <bruno@clisp.org>
68315
68316         * doc/functions/frexpl.texi: Update for mingw.
68317
68318 2007-06-01  Bruno Haible  <bruno@clisp.org>
68319
68320         * tests/test-lseek.c (main): Disable test of errno for invalid third
68321         argument.
68322         * doc/functions/lseek.texi: Update.
68323         Reported by Gary V. Vaughan <gary@gnu.org>.
68324
68325 2007-05-28  Bruno Haible  <bruno@clisp.org>
68326
68327         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68328
68329 2007-05-31  Eric Blake  <ebb9@byu.net>
68330
68331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68332         cross compiling.
68333
68334 2007-05-30  Eric Blake  <ebb9@byu.net>
68335         and Bruno Haible  <bruno@clisp.org>
68336
68337         Work around mingw test failures exposed by m4-1.4.9b.
68338         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68339         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68340         moment.
68341
68342 2007-05-30  Bruno Haible  <bruno@clisp.org>
68343
68344         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68345         assuming that they are closed. Needed on HP-UX 11.
68346
68347 2007-05-29  Bruno Haible  <bruno@clisp.org>
68348
68349         Fix a problem with #include_next.
68350         * lib/dirent_.h: Split the double-inclusion guard.
68351         * lib/fcntl_.h: Likewise.
68352         * lib/float_.h: Likewise.
68353         * lib/iconv_.h: Likewise.
68354         * lib/inttypes_.h: Likewise.
68355         * lib/locale_.h: Likewise.
68356         * lib/math_.h: Likewise.
68357         * lib/netinet_in_.h: Likewise.
68358         * lib/search_.h: Likewise.
68359         * lib/signal_.h: Likewise.
68360         * lib/stdint_.h: Likewise.
68361         * lib/stdio_.h: Likewise.
68362         * lib/stdlib_.h: Likewise.
68363         * lib/string_.h: Likewise.
68364         * lib/sys_select_.h: Likewise.
68365         * lib/sys_socket_.h: Likewise.
68366         * lib/sys_stat_.h: Likewise.
68367         * lib/sys_time_.h: Likewise.
68368         * lib/sysexits_.h: Likewise.
68369         * lib/time_.h: Likewise.
68370         * lib/unistd_.h: Likewise.
68371         * lib/wchar_.h: Likewise.
68372         * lib/wctype_.h: Likewise.
68373
68374 2007-05-29  Bruno Haible  <bruno@clisp.org>
68375
68376         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68377         for the moment.
68378
68379 2007-05-29  Bruno Haible  <bruno@clisp.org>
68380
68381         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68382         invocation.
68383         Reported by Eric Blake.
68384
68385 2007-05-29  Bruno Haible  <bruno@clisp.org>
68386
68387         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68388         compiling case.
68389
68390 2007-05-29  Eric Blake  <ebb9@byu.net>
68391             Bruno Haible  <bruno@clisp.org>
68392
68393         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68394         cross compiles.
68395
68396 2007-05-28  Eric Blake  <ebb9@byu.net>
68397
68398         * modules/closein-tests (test_closein_LDADD): Support test on
68399         cygwin with libtool.
68400
68401 2007-05-28  Bruno Haible  <bruno@clisp.org>
68402
68403         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68404         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68405         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68406         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68407         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68408         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68409         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68410         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68411         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68412
68413 2007-05-28  Eric Blake  <ebb9@byu.net>
68414
68415         Unconditionally include <config.h> in unit tests.
68416         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68417         * tests/test-allocsa.c, tests/test-arcfour.c,
68418         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68419         tests/test-array_list.c, tests/test-array_oset.c,
68420         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68421         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68422         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68423         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68424         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68425         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68426         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68427         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68428         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68429         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68430         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68431         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68432         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68433         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68434         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68435         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68436         test-md5.c, test-memmem.c, test-printf-posix.c,
68437         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68438         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68439         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68440         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68441         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68442         test-vasnprintf-posix2.c, test-vasnprintf.c,
68443         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68444         test-vfprintf-posix.c, test-vprintf-posix.c,
68445         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68446         test-xvasprintf.c: Likewise.
68447
68448 2007-05-28  Bruno Haible  <bruno@clisp.org>
68449
68450         * gnulib-tool (func_import): Remember the --with-tests command-line
68451         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68452         Reported by Eric Blake.
68453
68454 2007-05-28  Bruno Haible  <bruno@clisp.org>
68455
68456         * modules/ftell-tests: New file.
68457         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68458         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68459
68460         * lib/ftell.c: New file.
68461         * modules/ftell: New file.
68462         * m4/ftell.m4: New file.
68463         * doc/functions/ftell.texi: Update.
68464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68465         REPLACE_FTELL.
68466         * lib/stdio_.h (rpl_ftell): New declaration.
68467         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68468         REPLACE_FTELL.
68469
68470 2007-05-28  Eric Blake  <ebb9@byu.net>
68471
68472         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68473
68474 2007-05-28  Bruno Haible  <bruno@clisp.org>
68475
68476         * modules/fseek-tests: New file.
68477         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68478         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68479
68480         * lib/fseek.c: New file.
68481         * modules/fseek: New file.
68482         * m4/fseek.m4: New file.
68483         * doc/functions/fseek.texi: Update.
68484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68485         REPLACE_FSEEK.
68486         * lib/stdio_.h (rpl_fseek): New declaration.
68487         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68488         REPLACE_FSEEK.
68489
68490 2007-05-28  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/stdio_.h (fflush): More comments.
68493
68494 2007-05-28  Bruno Haible  <bruno@clisp.org>
68495
68496         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68497         runtime test.
68498
68499 2007-05-28  Eric Blake  <ebb9@byu.net>
68500
68501         Improve lseek module.
68502         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68503         * lib/unistd_.h (lseek): Scale back link warning message.
68504         * tests/test-lseek.c: Beef up test.
68505         * tests/test-lseek.sh: Exercise more facets of lseek.
68506         Reported by Bruno Haible.
68507
68508 2007-05-28  Bruno Haible  <bruno@clisp.org>
68509
68510         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68511         to define.
68512
68513 2007-05-27  Bruno Haible  <bruno@clisp.org>
68514
68515         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68516
68517 2007-05-27  Bruno Haible  <bruno@clisp.org>
68518
68519         * modules/openmp: New file.
68520         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68521         Noah Misch.
68522
68523 2007-05-26  Bruno Haible  <bruno@clisp.org>
68524
68525         * modules/chdir-long (Depends-on): Add fchdir.
68526         * modules/chdir-safer (Depends-on): Likewise.
68527         * modules/fts (Depends-on): Likewise.
68528         * modules/fts-lgpl (Depends-on): Likewise.
68529         * modules/openat (Depends-on): Likewise.
68530         * modules/savewd (Depends-on): Likewise.
68531
68532 2007-05-24  Eric Blake  <ebb9@byu.net>
68533
68534         Fix lseek on mingw.
68535         * modules/lseek: New module.
68536         * m4/lseek.m4: New file.
68537         * lib/lseek.c: New file.
68538         * modules/lseek-tests: New file.
68539         * tests/test-lseek.c: New file.
68540         * tests/test-lseek.sh: New file.
68541         * MODULES.html.sh: Document lseek module.
68542         * modules/fflush (Depends-on): Add lseek, fseeko.
68543         * modules/fseeko (Depends-on): Likewise.
68544         * modules/ftello (Depends-on): Likewise.
68545         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68546         broken.
68547         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68548         broken.
68549         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68550         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68551         * lib/ftello.c (rpl_ftello): Likewise.
68552         * tests/test-fseeko.c (main): Test this.
68553         * tests/test-fseeko.sh: Likewise.
68554         * tests/test-ftello.c (main): Likewise.
68555         * tests/test-ftello.sh: Likewise.
68556         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68557         implies replacing fseek.
68558         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68559         HAVE_FTELLO.
68560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68561         * modules/unistd (Makefile.am): Likewise.
68562         * lib/unistd_.h (lseek): Declare a replacement.
68563         * doc/functions/lseek.texi (lseek): Document this fix.
68564         * doc/functions/fseek.texi (fseek): Likewise.
68565         * doc/functions/ftell.texi (ftell): Likewise.
68566
68567 2007-05-24  Bruno Haible  <bruno@clisp.org>
68568
68569         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68570         in the printed representation of a NaN.
68571         * tests/test-vasprintf-posix.c (test_function): Likewise.
68572         * tests/test-snprintf-posix.h (test_function): Likewise.
68573         * tests/test-sprintf-posix.h (test_function): Likewise.
68574         Reported by Eric Blake.
68575
68576 2007-05-23  Eric Blake  <ebb9@byu.net>
68577
68578         Fix fseeko/ftello on cygwin 1.5.24.
68579         * doc/functions/fseeko.texi (fseeko): Document the fix.
68580         * doc/functions/ftello.texi (ftello): Document the fix.
68581         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68582         * doc/functions/stdout.text (stdout): New file.
68583         * doc/functions/stderr.text (stderr): New file.
68584         * doc/gnulib.texi (Function Substitutes): Use new files.
68585         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68586         prior to 1.7.0.
68587         * tests/test-ftello.c (main): Likewise for ftello.
68588         * tests/test-fseeko.sh: New file.
68589         * tests/test-ftello.sh: New file.
68590         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68591         with seekable stdin.
68592         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68593         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68594         (gl_REPLACE_FSEEKO): New macro.
68595         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68596         * modules/fseeko (Files): Distribute fseeko.c.
68597         * modules/ftello (Files): Distribute ftello.c.
68598         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68599         mode.
68600         * lib/ftello.c (rpl_ftello): New file.
68601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68602         fseeko, ftello.
68603         (gl_STDIN_LARGE_OFFSET): New macro.
68604         * modules/stdio (Makefile.am): Perform the replacement.
68605         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68606
68607 2007-05-23  Bruno Haible  <bruno@clisp.org>
68608
68609         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68610         GNULIB_POSIXCHECK is defined.
68611
68612 2007-05-21  Bruno Haible  <bruno@clisp.org>
68613
68614         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68615         Check also the output for NaN arguments. When cross-compiling, guess
68616         no on IRIX.
68617         * lib/vasnprintf.c: Update comments.
68618         * tests/test-vasnprintf-posix.c (strisnan): New function.
68619         (test_function): Use it.
68620         * tests/test-vasprintf-posix.c (strisnan): New function.
68621         (test_function): Use it.
68622         * tests/test-snprintf-posix.h (strisnan): New function.
68623         (test_function): Use it.
68624         * tests/test-sprintf-posix.h (strisnan): New function.
68625         (test_function): Use it.
68626         Reported by Eric Blake.
68627
68628 2007-05-20  Bruno Haible  <bruno@clisp.org>
68629
68630         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68631         numbers that fails on BeOS.
68632         * doc/functions/frexpl.texi: Update.
68633
68634 2007-05-20  Jim Meyering  <jim@meyering.net>
68635
68636         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68637         forced upon us by glibc-2.6.
68638
68639 2007-05-20  Bruno Haible  <bruno@clisp.org>
68640
68641         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68642         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68643         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68644         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68645         NEED_PRINTF_INFINITE.
68646         (is_infinitel): New function.
68647         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68649         gl_PREREQ_VASNPRINTF_INFINITE.
68650         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68651         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68652         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68653         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68654         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68655         gl_PREREQ_VASNPRINTF_INFINITE.
68656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68663         * doc/functions/fprintf.texi: Update.
68664         * doc/functions/printf.texi: Update.
68665         * doc/functions/snprintf.texi: Update.
68666         * doc/functions/sprintf.texi: Update.
68667         * doc/functions/vfprintf.texi: Update.
68668         * doc/functions/vprintf.texi: Update.
68669         * doc/functions/vsnprintf.texi: Update.
68670         * doc/functions/vsprintf.texi: Update.
68671
68672 2007-05-20  Bruno Haible  <bruno@clisp.org>
68673
68674         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68675         was not found in libc.
68676         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68677
68678 2007-05-20  Bruno Haible  <bruno@clisp.org>
68679
68680         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68681         printed as "-nan" instead of "nan".
68682         * tests/test-vasprintf-posix.c (test_function): Likewise.
68683         * tests/test-snprintf-posix.h (test_function): Likewise.
68684         * tests/test-sprintf-posix.h (test_function): Likewise.
68685         Needed for HP-UX 11.
68686
68687 2007-05-20  Jim Meyering  <jim@meyering.net>
68688
68689         Fix buggy test for the fchownat-deref bug.
68690         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68691         symlink required for the run-test.  Without it, this test would
68692         always declare that fchownat doesn't work, and client code would
68693         unnecessarily use the replacement function with fixed libc.
68694         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68695         Reported by Greg Schafer.
68696
68697 2007-05-19  Bruno Haible  <bruno@clisp.org>
68698
68699         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68700         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68701         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68702         Needed for IRIX 6.5 and Solaris 2.5.1.
68703
68704 2007-05-19  Bruno Haible  <bruno@clisp.org>
68705
68706         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68707         (test_function): Skip tests involving -0.0 on platforms where
68708         -0.0 = 0.0.
68709         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68710         (test_function): Skip tests involving -0.0 on platforms where
68711         -0.0 = 0.0.
68712         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68713         (test_function): Skip tests involving -0.0 on platforms where
68714         -0.0 = 0.0.
68715         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68716         (test_function): Skip tests involving -0.0 on platforms where
68717         -0.0 = 0.0.
68718         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68719         tests.
68720         * tests/test-printf-posix.h (test_function): Likewise.
68721         * tests/test-printf-posix.output: Remove all -0.0 related results.
68722         Needed for IRIX 6.5.
68723
68724 2007-05-19  Bruno Haible  <bruno@clisp.org>
68725
68726         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68727         printed as "nan0x7fffffff" instead of "nan".
68728         * tests/test-vasprintf-posix.c (test_function): Likewise.
68729         * tests/test-snprintf-posix.h (test_function): Likewise.
68730         * tests/test-sprintf-posix.h (test_function): Likewise.
68731         * tests/test-fprintf-posix.h (NaN): Remove macro.
68732         (test_function): Remove all NaN related tests.
68733         * tests/test-printf-posix.h (NaN): Remove macro.
68734         (test_function): Remove all NaN related tests.
68735         * tests/test-printf-posix.output: Remove all NaN related results.
68736         Needed for IRIX 6.5.
68737
68738 2007-05-19  Bruno Haible  <bruno@clisp.org>
68739
68740         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68741         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68742
68743 2007-05-19  Bruno Haible  <bruno@clisp.org>
68744
68745         * lib/float_.h: New file.
68746         * m4/float_h.m4: New file.
68747         * modules/float: New file.
68748         * modules/isnanl (Dependencies): Add float.
68749         * modules/isnanl-nolibm (Dependencies): Likewise.
68750         * modules/mathl (Dependencies): Likewise.
68751         * modules/printf-frexpl (Dependencies): Likewise.
68752         * modules/signbit (Dependencies): Likewise.
68753         * modules/vasnprintf (Dependencies): Likewise.
68754         * doc/headers/float.texi: Update.
68755
68756 2007-05-19  Jim Meyering  <jim@meyering.net>
68757
68758         * lib/utimens.c (gl_futimens): Rename from futimens,
68759         now that glibc-2.6 declares futimens.
68760         * lib/utimens.h: Likewise.
68761
68762 2007-05-19  Bruno Haible  <bruno@clisp.org>
68763
68764         Avoid test failures on mingw.
68765         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68766         * tests/test-printf-posix.sh: Likewise.
68767         * tests/test-vfprintf-posix.sh: Likewise.
68768         * tests/test-vprintf-posix.sh: Likewise.
68769
68770 2007-05-19  Bruno Haible  <bruno@clisp.org>
68771
68772         Fix *printf result for NaN, Inf, -0.0 on mingw.
68773         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68774         * lib/vasnprintf.c: Include math.h and isnan.h.
68775         (is_infinite_or_zero): New function.
68776         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68777         values in the %f, %F, %e, %E, %g, %G directives.
68778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68780         gl_PRINTF_INFINITE and test its result. Invoke
68781         gl_PREREQ_VASNPRINTF_INFINITE.
68782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68789         * doc/functions/fprintf.texi: Update.
68790         * doc/functions/printf.texi: Update.
68791         * doc/functions/snprintf.texi: Update.
68792         * doc/functions/sprintf.texi: Update.
68793         * doc/functions/vfprintf.texi: Update.
68794         * doc/functions/vprintf.texi: Update.
68795         * doc/functions/vsnprintf.texi: Update.
68796         * doc/functions/vsprintf.texi: Update.
68797
68798 2007-05-19  Bruno Haible  <bruno@clisp.org>
68799
68800         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68801         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68802         Instead of multiplying with 10^k, set extra_zeroes to k.
68803         (scale10_round_long_double): Remove function.
68804
68805 2007-05-18  Bruno Haible  <bruno@clisp.org>
68806
68807         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68808         introduced on 2007-05-06.
68809
68810 2007-05-18  Bruno Haible  <bruno@clisp.org>
68811
68812         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68813         %g directives.
68814         * tests/test-vasprintf-posix.c (test_function): Likewise.
68815         * tests/test-snprintf-posix.h (test_function): Likewise.
68816         * tests/test-sprintf-posix.h (test_function): Likewise.
68817
68818 2007-05-18  Bruno Haible  <bruno@clisp.org>
68819
68820         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68821         (strmatch): New function.
68822         (test_function): Test the %f directive on numbers of various exponents.
68823         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68824         (strmatch): New function.
68825         (test_function): Test the %f directive on numbers of various exponents.
68826         * tests/test-snprintf-posix.h (strmatch): New function.
68827         (test_function): Test the %f directive on numbers of various exponents.
68828         * tests/test-sprintf-posix.h (strmatch): New function.
68829         (test_function): Test the %f directive on numbers of various exponents.
68830         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68831         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68832         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68833         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68834
68835 2007-05-18  Bruno Haible  <bruno@clisp.org>
68836
68837         Add support for 'long double' number output.
68838         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68839         * lib/vasnprintf.c: Include math.h and float+.h.
68840         (mp_limb_t): New type.
68841         (GMP_LIMB_BITS): New macro.
68842         (mp_twolimb_t): New type.
68843         (GMP_TWOLIMB_BITS): New macro.
68844         (mpn_t): New type.
68845         (multiply, divide, convert_to_decimal, decode_long_double,
68846         scale10_round_long_double, scale10_round_decimal_long_double,
68847         floorlog10l): New functions.
68848         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68849         for the %f, %F, %e, %E, %g, %G directives.
68850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68852         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68853         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68854         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68855         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68856         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68857         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68858         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68860         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68861         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68862         * modules/snprintf-posix (Depends-on): Likewise.
68863         * modules/sprintf-posix (Depends-on): Likewise.
68864         * modules/vasnprintf-posix (Depends-on): Likewise.
68865         * modules/vasprintf-posix (Depends-on): Likewise.
68866         * modules/vfprintf-posix (Depends-on): Likewise.
68867         * modules/vsnprintf-posix (Depends-on): Likewise.
68868         * modules/vsprintf-posix (Depends-on): Likewise.
68869         * modules/vasnprintf (Files): Add lib/float+.h.
68870         * doc/functions/fprintf.texi: Update.
68871         * doc/functions/printf.texi: Update.
68872         * doc/functions/snprintf.texi: Update.
68873         * doc/functions/sprintf.texi: Update.
68874         * doc/functions/vfprintf.texi: Update.
68875         * doc/functions/vprintf.texi: Update.
68876         * doc/functions/vsnprintf.texi: Update.
68877         * doc/functions/vsprintf.texi: Update.
68878
68879 2007-05-18  Bruno Haible  <bruno@clisp.org>
68880
68881         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68882
68883 2007-05-18  Bruno Haible  <bruno@clisp.org>
68884
68885         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68886         for printing 64-bit integers. Needed for mingw.
68887
68888 2007-05-18  Bruno Haible  <bruno@clisp.org>
68889
68890         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68891         gl_FUNC_FREXPL_WORKS.
68892         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68893
68894 2007-05-18  Bruno Haible  <bruno@clisp.org>
68895
68896         * modules/frexpl-nolibm-tests: New file.
68897
68898         * modules/frexpl-nolibm: New file.
68899         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68900
68901 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68904         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68905         GCC 4.2, which otherwise issues a lot of warnings.
68906         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68907         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68908         Likewise.
68909         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68910         * modules/iconv_open (iconv.h): Likewise.
68911         * modules/locale (locale.h): Likewise.
68912         * modules/netinet_in (netinet/in.h): Likewise.
68913         * modules/sys_select (sys_select.h): Likewise.
68914         * modules/sys_socket (sys/socket.h): Likewise.
68915         * modules/sys_stat (sys/stat.h): Likewise.
68916         * modules/sysexits (sysexits.h): Likewise.
68917         * modules/unistd (unistd.h): Likewise.
68918
68919 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68920
68921         * modules/closein-tests (Makefile.am): Distribute
68922         `test-closein.sh'.
68923
68924 2007-05-17  Bruno Haible  <bruno@clisp.org>
68925
68926         * tests/test-printf-posix.output: Renamed from
68927         tests/test-fprintf-posix.out.
68928         * modules/fprintf-posix-tests: Update.
68929         * modules/printf-posix-tests: Update.
68930         * modules/vfprintf-posix-tests: Update.
68931         * modules/vprintf-posix-tests: Update.
68932         * tests/test-fprintf-posix.sh: Update.
68933         * tests/test-printf-posix.sh: Update.
68934         * tests/test-vfprintf-posix.sh: Update.
68935         * tests/test-vprintf-posix.sh: Update.
68936         Reported by Ralf Wildenhues.
68937
68938 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68939
68940         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68941         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68942         GCC 4.2, which otherwise issues a lot of warnings.
68943         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68944         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68945         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68946         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68947         it should no longer be needed.
68948         * lib/string_.h: Likewise.
68949         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68950         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68951         * modules/inttypes (inttypes.h): Likewise.
68952         * modules/math (math.h): Likewise.
68953         * modules/search (search.h): Likewise.
68954         * modules/signal (signal.h): Likewise.
68955         * modules/stdint (stdint.h): Likewise.
68956         * modules/stdio (stdio.h): Likewise.
68957         * modules/stdlib (stdlib.h): Likewise.
68958         * modules/string (string.h): Likewise.
68959         * modules/sys_time (sys/time.h): Likewise.
68960         * modules/time (time.h): Likewise.
68961         * modules/wchar (wchar.h): Likewise.
68962         * modules/wctype (wtype.h): Likewise.
68963
68964 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68965
68966         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68967
68968 2007-05-13  Bruno Haible  <bruno@clisp.org>
68969
68970         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68971         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68972         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68973         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68974         (gl_PREREQ_STRTOK_R): Don't require it here.
68975
68976 2007-05-13  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68979         when used in C++ mode.
68980
68981 2007-05-12  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/linebuffer.h: Tweak doc.
68984         * lib/linebuffer.c: Likewise.
68985
68986 2007-05-12  James Youngman  <jay@gnu.org>
68987
68988         * lib/linebuffer.c (readlinebuffer_delim): New function,
68989         like readlinebuffer, but use a caller-specified delimiter.
68990         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68991         as the delimiter.
68992         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68993
68994 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68995
68996         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68997         * modules/openat (Files): Remove openat-die.c.
68998         (Depends-on): Add openat-die.
68999         * modules/openat-die: New module.
69000
69001 2007-05-06  Bruno Haible  <bruno@clisp.org>
69002
69003         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69004         Update with info about Cygwin.
69005         * doc/functions/fprintf.texi: Update.
69006         * doc/functions/printf.texi: Update.
69007         * doc/functions/snprintf.texi: Update.
69008         * doc/functions/sprintf.texi: Update.
69009         * doc/functions/vfprintf.texi: Update.
69010         * doc/functions/vprintf.texi: Update.
69011         * doc/functions/vsnprintf.texi: Update.
69012         * doc/functions/vsprintf.texi: Update.
69013         Reported by Eric Blake.
69014
69015 2007-05-06  Bruno Haible  <bruno@clisp.org>
69016
69017         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69018         padding ourselves for the floating-point directives.
69019         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69022         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69023         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69024         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69028         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69029         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69030         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69031         * tests/test-snprintf-posix.h (test_function): Also check the width
69032         and some flags in the %f directive.
69033         * tests/test-sprintf-posix.h (test_function): Likewise.
69034         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69035         * tests/test-vasprintf-posix.c (test_function): Likewise.
69036         * doc/functions/fprintf.texi: Update.
69037         * doc/functions/printf.texi: Update.
69038         * doc/functions/snprintf.texi: Update.
69039         * doc/functions/sprintf.texi: Update.
69040         * doc/functions/vfprintf.texi: Update.
69041         * doc/functions/vprintf.texi: Update.
69042         * doc/functions/vsnprintf.texi: Update.
69043         * doc/functions/vsprintf.texi: Update.
69044
69045 2007-05-06  Bruno Haible  <bruno@clisp.org>
69046
69047         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69048         pass the ' flag character to sprintf or snprintf.
69049         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69052         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69053         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69055         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69057         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69058         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69060         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69061         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69062         flag.
69063         * tests/test-sprintf-posix.h (test_function): Likewise.
69064         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69065         * tests/test-vasprintf-posix.c (test_function): Likewise.
69066         * doc/functions/fprintf.texi: Update.
69067         * doc/functions/printf.texi: Update.
69068         * doc/functions/snprintf.texi: Update.
69069         * doc/functions/sprintf.texi: Update.
69070         * doc/functions/vfprintf.texi: Update.
69071         * doc/functions/vprintf.texi: Update.
69072         * doc/functions/vsnprintf.texi: Update.
69073         * doc/functions/vsprintf.texi: Update.
69074
69075 2007-05-01  Bruno Haible  <bruno@clisp.org>
69076
69077         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69078
69079 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69082         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69083
69084 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69085
69086         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69087         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69089
69090 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69091
69092         * lib/argp-help.c (struct hol_entry): New member `ord'.
69093         (HOL_ENTRY_PTRCMP): Use ord for comparison
69094         (hol_sort): Initialize ord.
69095
69096 2007-05-01  Bruno Haible  <bruno@clisp.org>
69097
69098         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69099         Reported by Eric Blake.
69100         * doc/gnulib.texi (Function Substitutes): Update.
69101
69102 2007-05-01  Bruno Haible  <bruno@clisp.org>
69103
69104         * doc/functions.texi: Remove file, now redundant through
69105         doc/functions/*.texi.
69106
69107 2007-05-01  Bruno Haible  <bruno@clisp.org>
69108
69109         * modules/argp (Depends-on): Add sleep.
69110
69111 2007-05-01  Bruno Haible  <bruno@clisp.org>
69112
69113         * modules/sleep-tests: New file.
69114         * tests/test-sleep.c: New file.
69115
69116         * modules/sleep: New file.
69117         * lib/sleep.c: New file.
69118         * m4/sleep.m4: New file.
69119         * lib/unistd_.h (sleep): New declaration.
69120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69121         HAVE_SLEEP.
69122         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69123         * doc/functions/sleep.texi: Document the sleep module.
69124
69125 2007-05-01  Bruno Haible  <bruno@clisp.org>
69126
69127         * lib/sigprocmask.h: Remove file.
69128         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69129         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69130         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69131         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69132         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69133         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69134         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69135         HAVE_SIGSET_T as a shell variable.
69136         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69137         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69138         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69139         (Depends-on): Add signal. Remove verify.
69140         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69141         (Include): Mention <signal.h> instead of sigprocmask.h.
69142         * NEWS: Mention the change.
69143         * lib/fatal-signal.c: Don't include sigprocmask.h.
69144
69145 2007-05-01  Bruno Haible  <bruno@clisp.org>
69146
69147         * modules/signal: New file.
69148         * lib/signal_.h: New file.
69149         * m4/signal_h.m4: New file.
69150
69151 2007-05-01  Bruno Haible  <bruno@clisp.org>
69152
69153         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69154         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69155         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69156         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69157
69158 2007-05-01  Bruno Haible  <bruno@clisp.org>
69159
69160         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69161         configure time.
69162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69163         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69164         * modules/sys_stat (Makefile.am): Substitute their values into
69165         sys/stat.h.
69166
69167 2007-05-01  Bruno Haible  <bruno@clisp.org>
69168
69169         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69170         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69171         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69172
69173 2007-05-01  Bruno Haible  <bruno@clisp.org>
69174
69175         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69176         'assert' module here.
69177
69178 2007-05-01  Bruno Haible  <bruno@clisp.org>
69179
69180         * doc/functions/*.texi: New files.
69181         * doc/functions/google-ranking.txt: New file.
69182         * doc/gnulib.texi (Function Substitutes): New chapter.
69183         (ctime, inet_ntoa): Remove sections.
69184         * doc/ctime.texi: Remove file.
69185         * doc/inet_ntoa.texi: Remove file.
69186         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69187         dependencies.
69188         (%.info): New rule, specifying a --reference-limit.
69189
69190 2007-05-01  Bruno Haible  <bruno@clisp.org>
69191
69192         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69193
69194 2007-05-01  Bruno Haible  <bruno@clisp.org>
69195
69196         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69197         the portability of 'mkdir' to mingw systems.
69198
69199 2007-05-01  Bruno Haible  <bruno@clisp.org>
69200
69201         * doc/headers/google-ranking.txt: New file.
69202
69203 2007-04-30  Eric Blake  <ebb9@byu.net>
69204
69205         Prefer fseeko to fseek.
69206         * modules/getpass (Depends-on): Add fseeko.
69207         * lib/getpass.c (getpass): Use fseeko, not fseek.
69208
69209 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69210
69211         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69212         assumes the sorting is stable, while most qsort implementations
69213         are not.  Use argument addresses to ensure they never compare as
69214         equal.
69215
69216         * tests/test-argp-2.sh (usage-indent test): Fix output
69217         (func_compare): Restore diff options
69218         * tests/test-argp.c: Restore #include "progname.h"
69219
69220 2007-04-29  Bruno Haible  <bruno@clisp.org>
69221
69222         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69224         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69226         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69227         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69228         (TESTS, check_PROGRAMS): Add test-snprintf.
69229         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69230         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69231         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69232         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69233         assertions that fail on HP-UX, OSF/1, or IRIX.
69234         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69235
69236 2007-04-29  Bruno Haible  <bruno@clisp.org>
69237
69238         * MODULES.html.sh (posix_functions): Remove 'contents'.
69239
69240 2007-04-29  Karl Berry  <karl@gnu.org>
69241
69242         * config/srclist.txt (gendocs_template_min): new entry.
69243
69244 2007-04-29  Bruno Haible  <bruno@clisp.org>
69245
69246         Work around fpurge bug on BSD systems.
69247         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69248         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69249         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69250         fpurge to rpl_fpurge if the system already has this function.
69251         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69252         the case where the system already has this function. Correct invariants
69253         on BSD systems.
69254         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69255         BSD systems.
69256
69257 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69258
69259         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69260         proposed by Sven Verdoolaege.
69261
69262         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69263         options.
69264         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69265         (usage and help tests): Update
69266
69267 2007-04-29  Bruno Haible  <bruno@clisp.org>
69268
69269         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69270         Print more information in case of failure. Disable a test on BeOS.
69271
69272 2007-04-29  Bruno Haible  <bruno@clisp.org>
69273
69274         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69275         This helps debugging on systems on which no gdb is available.
69276
69277 2007-04-29  Bruno Haible  <bruno@clisp.org>
69278
69279         * lib/freading.h: Improve comments.
69280         * lib/fwriting.h: Likewise.
69281         * tests/test-freading.c (main): Don't check freading immediately after
69282         repositioning. Needed for glibc.
69283
69284 2007-04-29  Bruno Haible  <bruno@clisp.org>
69285
69286         * lib/freading.c (freading): Trivial simplification.
69287
69288 2007-04-28  Bruno Haible  <bruno@clisp.org>
69289
69290         * tests/test-fwriting.c (main): Also test the interaction between
69291         fflush and fwriting.
69292         * modules/fwriting-tests (Depends-on): Add fflush.
69293
69294         * tests/test-freading.c (main): Also test the interaction between
69295         fflush and freading.
69296         * modules/freading-tests (Depends-on): Add fflush.
69297
69298 2007-04-28  Bruno Haible  <bruno@clisp.org>
69299
69300         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69301         fseeko and ftello.
69302         Suggested by Eric Blake.
69303
69304 2007-04-28  Jim Meyering  <jim@meyering.net>
69305
69306         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69307         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69308         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69309
69310 2007-04-27  Eric Blake  <ebb9@byu.net>
69311
69312         * doc/headers/assert.texi (assert.h): Document assert module use.
69313
69314 2007-04-27  Bruno Haible  <bruno@clisp.org>
69315
69316         * doc/headers/*.texi: New files.
69317         * doc/gnulib.texi (Header File Substitutes): New chapter.
69318         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69319         dependencies.
69320         (standards.info ,standards.html, standards.dvi): Update dependencies.
69321         (mostlyclean, clean): New targets.
69322
69323 2007-04-27  Bruno Haible  <bruno@clisp.org>
69324
69325         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69326         * modules/sysexits (Files, Makefile.am): Update.
69327
69328         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69329         * modules/sys_socket (Files, Makefile.am): Update.
69330
69331         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69332         * modules/sys_stat (Files, Makefile.am): Update.
69333
69334 2007-04-27  Eric Blake  <ebb9@byu.net>
69335
69336         * lib/freading.h: Improve comments.
69337         * lib/fwriting.h: Likewise.
69338         * lib/fflush.c: Likewise.
69339
69340         Fix closein for mingw.
69341         * modules/closein-tests: Add tests for closein.
69342         * tests/test-closein.c: New file.
69343         * tests/test-closein.sh: Likewise.
69344         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69345         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69346
69347 2007-04-27  Bruno Haible  <bruno@clisp.org>
69348
69349         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69350         version is < 6.
69351         * lib/math_.h [__DECC]: Likewise.
69352         * lib/stdio_.h [__DECC]: Likewise.
69353         * lib/stdlib_.h [__DECC]: Likewise.
69354         * lib/string_.h [__DECC]: Likewise.
69355         * lib/time_.h [__DECC]: Likewise.
69356         * lib/wchar_.h [__DECC]: Likewise.
69357         * lib/wctype_.h [__DECC]: Likewise.
69358
69359 2007-04-27  Bruno Haible  <bruno@clisp.org>
69360
69361         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69362
69363 2007-04-27  Bruno Haible  <bruno@clisp.org>
69364
69365         * lib/fflush.c: Add comments.
69366         * modules/fpurge-tests (Depends-on): Add fflush.
69367         * modules/freadable-tests (Depends-on): Likewise.
69368         * modules/fwritable-tests (Depends-on): Likewise.
69369
69370 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69371
69372         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69373         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69374         Report by Bruno Haible <bruno@clisp.org>.
69375
69376 2007-04-26  Eric Blake  <ebb9@byu.net>
69377
69378         Fix fflush on mingw.
69379         * modules/fflush (Depends-on): Add freading.
69380         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69381         but unread data.
69382
69383 2007-04-26  Eric Blake  <ebb9@byu.net>
69384         and Bruno Haible  <bruno@clisp.org>
69385
69386         Implement freading and fwriting.
69387         * lib/freading.c: New file.
69388         * lib/freading.h: Likewise.
69389         * m4/freading.m4: Likewise.
69390         * modules/freading: Likewise.
69391         * modules/freading-tests: Likewise.
69392         * tests/test-freading.c: Likewise.
69393         * lib/fwriting.c: New file.
69394         * lib/fwriting.h: Likewise.
69395         * m4/fwriting.m4: Likewise.
69396         * modules/fwriting: Likewise.
69397         * modules/fwriting-tests: Likewise.
69398         * tests/test-fwriting.c: Likewise.
69399         * MODULES.html.sh (File stream based Input/Output): Mention them.
69400
69401 2007-04-26  Bruno Haible  <bruno@clisp.org>
69402
69403         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69404         'long' when we assume it.
69405         Suggested by Eric Blake.
69406
69407 2007-04-26  Bruno Haible  <bruno@clisp.org>
69408
69409         Ensure fseeko, ftello are declared on glibc systems.
69410         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69411         * modules/fseeko (configure.ac-early): Likewise.
69412         * modules/ftello (configure.ac-early): Likewise.
69413         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69414         AC_FUNC_FSEEKO for this.
69415         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69416         (gl_CHECK_FSEEKO): Remove macro.
69417
69418 2007-04-26  Bruno Haible  <bruno@clisp.org>
69419
69420         * tests/test-fflush.c (main): Also check the ftell result after
69421         fflush and fseek/fseeko.
69422         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69423         file descriptor position cache in the stream.
69424         * lib/fseeko.c (rpl_fseeko): Likewise.
69425
69426 2007-04-26  Bruno Haible  <bruno@clisp.org>
69427
69428         * modules/fflush-tests (Depends-on): Add fseeko.
69429
69430 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69431             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69432
69433         * lib/argz_.h: ensure error_t definition is obtained in same
69434         mechanism system argz.h would have.
69435         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69436         argz facilities are known bad.  Err on the side of caution if
69437         cross-compiling.
69438
69439 2007-04-25  Eric Blake  <ebb9@byu.net>
69440
69441         * lib/fpurge.c (includes): Use stdlib.h for free.
69442         * tests/test-fflush.c (main): Also test fflush-fseeko.
69443
69444 2007-04-25  Bruno Haible  <bruno@clisp.org>
69445
69446         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69447         * lib/fseeko.c: New file.
69448         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69449         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69450         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69451         gl_FUNC_FSEEKO.
69452         (gl_FUNC_FSEEKO): Invoke it.
69453         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69454         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69455         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69456
69457 2007-04-25  Bruno Haible  <bruno@clisp.org>
69458
69459         * modules/fflush (Depends-on): Add ftello.
69460
69461 2007-04-25  Bruno Haible  <bruno@clisp.org>
69462
69463         * modules/ftello-tests: New file.
69464         * tests/test-ftello.c: New file.
69465
69466         * modules/ftello: New file.
69467         * m4/ftello.m4: New file.
69468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69469         HAVE_FTELLO.
69470         * lib/stdio_.h (ftello): New declaration.
69471         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69472         HAVE_FTELLO.
69473
69474 2007-04-25  Bruno Haible  <bruno@clisp.org>
69475
69476         * modules/fseeko-tests: New file.
69477         * tests/test-fseeko.c: New file.
69478
69479         * modules/fseeko: New file.
69480         * m4/fseeko.m4: New file.
69481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69482         HAVE_FSEEKO.
69483         * lib/stdio_.h (fseeko): New declaration.
69484         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69485         HAVE_FSEEKO.
69486
69487 2007-04-25  Bruno Haible  <bruno@clisp.org>
69488
69489         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69490
69491 2007-04-25  Bruno Haible  <bruno@clisp.org>
69492
69493         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69494         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69495         * tests/test-unistd.c: Likewise.
69496         * tests/test-fcntl.c: Likewise.
69497
69498 2007-04-23  Eric Blake  <ebb9@byu.net>
69499
69500         * lib/fflush.c: Fix missing include.
69501         Reported by Bruno Haible.
69502
69503 2007-04-23  Bruno Haible  <bruno@clisp.org>
69504
69505         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69506         Reported by Eric Blake.
69507
69508 2007-04-23  Bruno Haible  <bruno@clisp.org>
69509
69510         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69511
69512 2007-04-23  Bruno Haible  <bruno@clisp.org>
69513
69514         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69515
69516 2007-04-23  Bruno Haible  <bruno@clisp.org>
69517
69518         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69519         Needed on HP-UX 11.
69520
69521 2007-04-16  Eric Blake  <ebb9@byu.net>
69522
69523         Make fflush rely on fpurge.
69524         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69525         open coding all variants.
69526         * modules/fflush (Depends-on): Add fpurge and unistd.
69527         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69528         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69529
69530         Fix --with-tests compilation on cygwin.
69531         * modules/argmatch-tests (Makefile.am): List gnulib library first
69532         in LDADD.
69533         * modules/argp-tests (Makefile.am): Likewise.
69534         * modules/array-list-tests (Makefile.am): Likewise.
69535         * modules/array-oset-tests (Makefile.am): Likewise.
69536         * modules/avltree-list-tests (Makefile.am): Likewise.
69537         * modules/avltree-oset-tests (Makefile.am): Likewise.
69538         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69539         * modules/carray-list-tests (Makefile.am): Likewise.
69540         * modules/dirname-tests (Makefile.am): Likewise.
69541         * modules/frexp-tests (Makefile.am): Likewise.
69542         * modules/isnanl-tests (Makefile.am): Likewise.
69543         * modules/linked-list-tests (Makefile.am): Likewise.
69544         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69545         * modules/lock-tests (Makefile.am): Likewise.
69546         * modules/rbtree-list-tests (Makefile.am): Likewise.
69547         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69548         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69549         * modules/tls-tests (Makefile.am): Likewise.
69550         * modules/tsearch-tests (Makefile.am): Likewise.
69551         * modules/xvasprintf-tests (Makefile.am): Likewise.
69552
69553         Fix fpurge for cygwin.
69554         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69555         value.
69556         * modules/fpurge-tests (Depends-on): Clean up trash.
69557
69558 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69559
69560         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69561
69562         * m4/autobuild.m4: Re-indent.
69563
69564 2007-04-13  Bruno Haible  <bruno@clisp.org>
69565
69566         * modules/fpurge-tests: New file.
69567         * tests/test-fpurge.c: New file.
69568
69569         * modules/fpurge: New file.
69570         * lib/fpurge.h: New file.
69571         * lib/fpurge.c: New file.
69572         * m4/fpurge.m4: New file.
69573
69574 2007-04-13  Bruno Haible  <bruno@clisp.org>
69575
69576         * modules/fbufmode-tests: New file.
69577         * tests/test-fbufmode.c: New file.
69578
69579         * modules/fbufmode: New file.
69580         * lib/fbufmode.h: New file.
69581         * lib/fbufmode.c: New file.
69582         * m4/fbufmode.m4: New file.
69583
69584 2007-04-13  Bruno Haible  <bruno@clisp.org>
69585
69586         * modules/fwritable-tests: New file.
69587         * tests/test-fwritable.c: New file.
69588
69589         * modules/fwritable: New file.
69590         * lib/fwritable.h: New file.
69591         * lib/fwritable.c: New file.
69592         * m4/fwritable.m4: New file.
69593
69594 2007-04-13  Bruno Haible  <bruno@clisp.org>
69595
69596         * modules/freadable-tests: New file.
69597         * tests/test-freadable.c: New file.
69598
69599         * modules/freadable: New file.
69600         * lib/freadable.h: New file.
69601         * lib/freadable.c: New file.
69602         * m4/freadable.m4: New file.
69603
69604 2007-04-13  Bruno Haible  <bruno@clisp.org>
69605
69606         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69607         MOSTLYCLEANFILES.
69608
69609 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69610
69611         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69612         gzip bootstrap.conf to avoid dragging in i18n machinery.
69613         (gnulib_tool_option): Use it.
69614
69615 2007-04-13  Bruno Haible  <bruno@clisp.org>
69616
69617         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69618         %F directives.
69619         * tests/test-vasprintf-posix.c (test_function): Likewise.
69620         * tests/test-snprintf-posix.h (test_function): Likewise.
69621         * tests/test-sprintf-posix.h (test_function): Likewise.
69622         * tests/test-fprintf-posix.h (test_function): Likewise.
69623         * tests/test-printf-posix.h (test_function): Likewise.
69624         * tests/test-fprintf-posix.out: Likewise.
69625
69626 2007-04-13  Bruno Haible  <bruno@clisp.org>
69627
69628         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69629         * modules/tls-tests (configure.ac): Likewise.
69630         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69631
69632 2007-04-13  Bruno Haible  <bruno@clisp.org>
69633
69634         * lib/tls.c (glthread_tls_get): Fix return type.
69635         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69636
69637 2007-04-12  Eric Blake  <ebb9@byu.net>
69638
69639         * modules/gettime (Depends-on): Remove gettime.
69640         Reported by Dmitry V. Levin.
69641
69642 2007-04-12  Bruno Haible  <bruno@clisp.org>
69643
69644         * modules/fflush (Include): Mention <stdio.h>.
69645         * modules/strtoimax (Include): Mention <inttypes.h>.
69646         * modules/strtoumax (Include): Likewise.
69647
69648 2007-04-12  Eric Blake  <ebb9@byu.net>
69649
69650         * .cvsignore: New file.
69651         * .gitignore: Likewise.
69652
69653 2007-04-12  Bruno Haible  <bruno@clisp.org>
69654
69655         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69656         not before, since $(LDADD) often contains libgnu.a.
69657         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69658         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69659         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69660         Needed on Cygwin.
69661
69662 2007-04-12  Eric Blake  <ebb9@byu.net>
69663
69664         Work around glibc's failure to flush stdin on fclose.
69665         * lib/closein.c (close_stdin): Flush stdin before closing.
69666
69667         Work around glibc's failure to reset seekable stdin on exit.
69668         * modules/closein: New module.
69669         * lib/closein.c: New file.
69670         * lib/closein.h: Likewise.
69671         * m4/closein.m4: Likewise.
69672         * MODULES.html.sh (File stream based Input/Output): Document it.
69673
69674 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69675
69676         * gnulib-tool: Rename generated 'autobuild' script to
69677         'do-autobuild' in --create-megatestdir output.
69678
69679         * doc/gnulib.texi (Build robot for gnulib): Fix.
69680
69681 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69682
69683         * modules/sysexits (Depends-on): Add absolute-header.
69684
69685 2007-04-12  Eric Blake  <ebb9@byu.net>
69686
69687         No need to preserve errno on success.
69688         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69689         Reported by Bruno Haible.
69690
69691 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69692
69693         * MODULES.html.sh (Support for maintaining and releasing
69694         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69695
69696 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69697
69698         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69699
69700 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69701
69702         * modules/autobuild: New module.
69703
69704         * m4/autobuild.m4: New file.
69705
69706 2007-04-11  Bruno Haible  <bruno@clisp.org>
69707
69708         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69709         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69712         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69713         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69714         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69715         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69716         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69717         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69719         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69720         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69721         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69722         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69723         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69724         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69725         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69726         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69727         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69728         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69729         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69731         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69732         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69733         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69736         Reported by Eric Blake.
69737
69738 2007-04-11  Bruno Haible  <bruno@clisp.org>
69739
69740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69741
69742 2007-04-10  Bruno Haible  <bruno@clisp.org>
69743
69744         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69745         for NaN and Infinity. Needed on FreeBSD 6.1.
69746         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69747         regarding results for "%010a" of Infinity and NaN.
69748         * tests/test-vasprintf-posix.c (test_function): Likewise.
69749         * tests/test-snprintf-posix.h (test_function): Likewise.
69750         * tests/test-sprintf-posix.h (test_function): Likewise.
69751         * tests/test-fprintf-posix.h (test_function): Likewise.
69752         * tests/test-printf-posix.h (test_function): Likewise.
69753         * tests/test-fprintf-posix.out: Likewise.
69754
69755 2007-04-10  Bruno Haible  <bruno@clisp.org>
69756
69757         * modules/locale-tests: New file.
69758         * tests/test-locale.c: New file.
69759
69760         * modules/locale: New file.
69761         * lib/locale_.h: New file.
69762         * m4/locale_h.m4: New file.
69763
69764 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69765             Bruno Haible  <bruno@clisp.org>
69766
69767         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69768         be determined, test for availability of the copysignf, copysign,
69769         copysignl functions.
69770         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69771         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69772         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69773
69774 2007-04-09  Eric Blake  <ebb9@byu.net>
69775
69776         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69777         * modules/stdio (Makefile.am): Support fflush.
69778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69779         * modules/fflush: New file.
69780         * lib/fflush.c: Likewise.
69781         * m4/fflush.m4: Likewise.
69782         * modules/fflush-tests: New test.
69783         * tests/test-fflush.c: Likewise.
69784         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69785
69786 2007-04-06  Bruno Haible  <bruno@clisp.org>
69787
69788         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69789         (VASNPRINTF): Use signbit for faster determination whether to print a
69790         minus sign.
69791         * modules/vasnprintf (Files): Remove lib/float+.h.
69792         * modules/fprintf-posix (Depends-on): Add signbit.
69793         * modules/snprintf-posix (Depends-on): Likewise.
69794         * modules/sprintf-posix (Depends-on): Likewise.
69795         * modules/vasnprintf-posix (Depends-on): Likewise.
69796         * modules/vasprintf-posix (Depends-on): Likewise.
69797         * modules/vfprintf-posix (Depends-on): Likewise.
69798         * modules/vsnprintf-posix (Depends-on): Likewise.
69799         * modules/vsprintf-posix (Depends-on): Likewise.
69800
69801 2007-04-06  Bruno Haible  <bruno@clisp.org>
69802
69803         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69804         * tests/test-frexpl.c (main): Likewise.
69805         * tests/test-ldexpl.c (main): Likewise.
69806         * modules/frexp-tests (Depends-on): Add signbit.
69807         * modules/frexpl-tests (Depdends-on): Likewise.
69808         * modules/ldexpl-tests (Depdends-on): Likewise.
69809
69810 2007-04-06  Bruno Haible  <bruno@clisp.org>
69811
69812         * modules/signbit-tests: New file.
69813         * tests/test-signbit.c: New file.
69814
69815         * modules/signbit: New file.
69816         * lib/signbitf.c: New file.
69817         * lib/signbitd.c: New file.
69818         * lib/signbitl.c: New file.
69819         * m4/signbit.m4: New file.
69820         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69821         (signbit): New macro.
69822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69823         REPLACE_SIGNBIT.
69824         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69825         REPLACE_FREXPL into math.h.
69826
69827 2007-04-06  Bruno Haible  <bruno@clisp.org>
69828
69829         * modules/isnanf-nolibm-tests: New file.
69830         * tests/test-isnanf.c: New file.
69831
69832         * modules/isnanf-nolibm: New file.
69833         * lib/isnanf.h: New file.
69834         * lib/isnanf.c: New file.
69835         * lib/isnan.c: Consider the USE_FLOAT macro.
69836         * m4/isnanf.m4: New file.
69837
69838 2007-04-06  Bruno Haible  <bruno@clisp.org>
69839
69840         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69841         (Link): New section.
69842
69843         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69844
69845 2007-04-06  Bruno Haible  <bruno@clisp.org>
69846
69847         Assume the 'long double' type.
69848         * m4/longdouble.m4: Remove file.
69849         * config/srclist.txt: Don't mention longdouble.m4.
69850         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69851         * lib/float+.h: Likewise.
69852         * lib/frexp.c: Likewise.
69853         * lib/printf-args.h: Likewise.
69854         * lib/printf-args.c: Likewise.
69855         * lib/printf-frexp.c: Likewise.
69856         * lib/printf-parse.c: Likewise.
69857         * lib/vasnprintf.c: Likewise.
69858         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69859         * m4/intl.m4: Likewise.
69860         * m4/isnanl.m4: Likewise.
69861         * m4/printf.m4: Likewise.
69862         * m4/printf-frexpl.m4: Likewise.
69863         * m4/vasnprintf.m4: Likewise.
69864         * modules/allocsa (Files): Remove m4/longdouble.m4.
69865         * modules/gettext (Files): Likewise.
69866         * modules/relocatable-prog-wrapper (Files): Likewise.
69867         * modules/vasnprintf (Files): Likewise.
69868         * modules/isnanl (Files): Likewise.
69869         (Include): Simplify.
69870         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69871         (Include): Simplify.
69872         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69873         (Include): Simplify.
69874         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69876         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69877         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69878         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69879         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69880         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69881         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69882         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69883         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69884         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69885         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69886         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69887         * tests/test-isnanl.c: Likewise.
69888         * tests/test-snprintf-posix.h: Likewise.
69889         * tests/test-sprintf-posix.h: Likewise.
69890         * tests/test-vasnprintf-posix.c: Likewise.
69891         * tests/test-vasnprintf-posix2.c: Likewise.
69892         * tests/test-vasprintf-posix.c: Likewise.
69893
69894 2007-04-06  Bruno Haible  <bruno@clisp.org>
69895
69896         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69897         * lib/math_.h [__DECC]: Include the overridden include file through
69898         #include_next, outside the double-inclusion guard.
69899         * lib/stdio_.h [__DECC]: Likewise.
69900         * lib/stdlib_.h [__DECC]: Likewise.
69901         * lib/string_.h [__DECC]: Likewise.
69902         * lib/time_.h [__DECC]: Likewise.
69903         * lib/wchar_.h [__DECC]: Likewise.
69904         * lib/wctype_.h [__DECC]: Likewise.
69905         * lib/inttypes_.h [__DECC]: Likewise.
69906         Reported by Albert Chin <china@thewrittenword.com> in
69907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69908
69909 2007-04-04  Eric Blake  <ebb9@byu.net>
69910
69911         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69912         1.5.x.
69913
69914 2007-04-04  Bruno Haible  <bruno@clisp.org>
69915
69916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69917         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69918
69919 2007-04-04  Bruno Haible  <bruno@clisp.org>
69920
69921         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69922         results for "%010a" of Infinity and NaN.
69923         * tests/test-vasprintf-posix.c (test_function): Likewise.
69924         * tests/test-snprintf-posix.h (test_function): Likewise.
69925         * tests/test-sprintf-posix.h (test_function): Likewise.
69926         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69927         * tests/test-printf-posix.h (test_function): Likewise.
69928         * tests/test-fprintf-posix.out: Update.
69929         Needed for FreeBSD 6.1.
69930
69931 2007-04-04  Bruno Haible  <bruno@clisp.org>
69932
69933         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69934         directly used by the gnulib modules nor by gnulib-tool.
69935
69936 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         * DEPENDENCIES: Give overall description of version dependency
69939         desirability.  Use more-typical names for apps.
69940         Add shell, coreutils, diffutils, grep, tar, gzip.
69941
69942 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69943
69944         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69945
69946 2007-04-04  Karl Berry  <karl@gnu.org>
69947
69948         * MODULES.html.sh (func_module): missing '.
69949
69950 2007-04-03  Bruno Haible  <bruno@clisp.org>
69951
69952         * modules/argmatch-tests (Makefile.am): New variable
69953         test_argmatch_LDADD.
69954         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69955         * modules/array-list-tests (Makefile.am): New variable
69956         test_array_list_LDADD.
69957         * modules/array-oset-tests (Makefile.am): New variable
69958         test_array_oset_LDADD.
69959         * modules/avltree-list-tests (Makefile.am): New variable
69960         test_avltree_list_LDADD.
69961         * modules/avltree-oset-tests (Makefile.am): New variable
69962         test_avltree_oset_LDADD.
69963         * modules/avltreehash-list-tests (Makefile.am): New variable
69964         test_avltreehash_list_LDADD.
69965         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69966         test_canonicalize_lgpl_LDADD.
69967         * modules/carray-list-tests (Makefile.am): New variable
69968         test_carray_list_LDADD.
69969         * modules/dirname-tests (Makefile.am): New variable
69970         test_dirname_LDADD.
69971         * modules/linked-list-tests (Makefile.am): New variable
69972         test_linked_list_LDADD.
69973         * modules/linkedhash-list-tests (Makefile.am): New variable
69974         test_linkedhash_list_LDADD.
69975         * modules/rbtree-list-tests (Makefile.am): New variable
69976         test_rbtree_list_LDADD.
69977         * modules/rbtree-oset-tests (Makefile.am): New variable
69978         test_rbtree_oset_LDADD.
69979         * modules/rbtreehash-list-tests (Makefile.am): New variable
69980         test_rbtreehash_list_LDADD.
69981         * modules/xvasprintf-tests (Makefile.am): New variable
69982         test_xvasprintf_LDADD.
69983         Reported by Eric Blake.
69984
69985 2007-04-03  Eric Blake  <ebb9@byu.net>
69986
69987         * DEPENDENCIES: Weaken m4 requirements.
69988
69989 2007-04-03  Bruno Haible  <bruno@clisp.org>
69990
69991         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69992         * modules/isnanl-tests (configure.ac): Likewise.
69993
69994 2007-04-03  Ben Pfaff  <blp@gnu.org>
69995
69996         * modules/iconv_open: Add $(srcdir)/ to source directory
69997         references in Makefile fragments that call gperf, to fix VPATH
69998         builds.
69999
70000 2007-04-03  Bruno Haible  <bruno@clisp.org>
70001
70002         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70003         * lib/ldexpl.c: Undo last change.
70004
70005 2007-04-03  Bruno Haible  <bruno@clisp.org>
70006
70007         * modules/printf-frexpl (Depends-on): Undo last change.
70008         (Files): Add m4/ldexpl.m4.
70009
70010 2007-04-03  Bruno Haible  <bruno@clisp.org>
70011
70012         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70013         * modules/isnanl (Link): New section.
70014
70015         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70016         * modules/frexp (Link): New section.
70017
70018         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70019         * modules/frexpl (Link): New section.
70020
70021         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70022         * modules/ldexpl (Link): New section.
70023
70024 2007-04-03  Bruno Haible  <bruno@clisp.org>
70025
70026         * modules/TEMPLATE-EXTENDED: New file.
70027         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70028
70029 2007-04-03  Bruno Haible  <bruno@clisp.org>
70030
70031         * DEPENDENCIES: New file.
70032         Suggested by Simon Josefsson.
70033
70034 2007-04-03  Bruno Haible  <bruno@clisp.org>
70035
70036         * doc/gnulib.texi: Escape @.
70037
70038 2007-04-03  James Youngman  <jay@gnu.org>
70039         and Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70042         birthtime on all systems that have birthtime, not just those which
70043         use st_birthtimensec rather than st_birthtim.  Putting zero in
70044         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70045         that the birth time is not available for files on an NFS mount.
70046
70047 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70048
70049         * modules/memxor: Move back from crypto/, suggested by Bruno.
70050         * modules/crypto/hmac-sha1: Fix memxor dependency.
70051
70052         * modules/crypto/gc: Moved from ../.
70053
70054 2007-04-02  Eric Blake  <ebb9@byu.net>
70055
70056         * lib/ldexpl.c (includes): Avoid libm.
70057
70058         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70059
70060 2007-04-02  Bruno Haible  <bruno@clisp.org>
70061
70062         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70063         on IRIX.
70064
70065 2007-04-02  Bruno Haible  <bruno@clisp.org>
70066
70067         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70068         x86 or x86_64 platforms running MacOS X.
70069         Reported by Ryan Schmidt <@ryandesign.com>.
70070
70071 2007-04-02  Bruno Haible  <bruno@clisp.org>
70072
70073         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70074         i386.
70075
70076 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70077
70078         * modules/crypto/arcfour: Moved from ../.
70079         * modules/crypto/arcfour-tests: Moved from ../.
70080         * modules/crypto/arctwo: Moved from ../.
70081         * modules/crypto/arctwo-tests: Moved from ../.
70082         * modules/crypto/des: Moved from ../.
70083         * modules/crypto/des-tests: Moved from ../.
70084         * modules/crypto/gc-arcfour: Moved from ../.
70085         * modules/crypto/gc-arcfour-tests: Moved from ../.
70086         * modules/crypto/gc-arctwo: Moved from ../.
70087         * modules/crypto/gc-arctwo-tests: Moved from ../.
70088         * modules/crypto/gc-des: Moved from ../.
70089         * modules/crypto/gc-des-tests: Moved from ../.
70090         * modules/crypto/gc-hmac-md5: Moved from ../.
70091         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70092         * modules/crypto/gc-hmac-sha1: Moved from ../.
70093         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70094         * modules/crypto/gc-md2: Moved from ../.
70095         * modules/crypto/gc-md2-tests: Moved from ../.
70096         * modules/crypto/gc-md4: Moved from ../.
70097         * modules/crypto/gc-md4-tests: Moved from ../.
70098         * modules/crypto/gc-md5: Moved from ../.
70099         * modules/crypto/gc-md5-tests: Moved from ../.
70100         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70101         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70102         * modules/crypto/gc-random: Moved from ../.
70103         * modules/crypto/gc-rijndael: Moved from ../.
70104         * modules/crypto/gc-rijndael-tests: Moved from ../.
70105         * modules/crypto/gc-sha1: Moved from ../.
70106         * modules/crypto/gc-sha1-tests: Moved from ../.
70107         * modules/crypto/gc-tests: Moved from ../.
70108         * modules/crypto/hmac-md5: Moved from ../.
70109         * modules/crypto/hmac-md5-tests: Moved from ../.
70110         * modules/crypto/hmac-sha1: Moved from ../.
70111         * modules/crypto/hmac-sha1-tests: Moved from ../.
70112         * modules/crypto/md2: Moved from ../.
70113         * modules/crypto/md2-tests: Moved from ../.
70114         * modules/crypto/md4: Moved from ../.
70115         * modules/crypto/md4-tests: Moved from ../.
70116         * modules/crypto/md5: Moved from ../.
70117         * modules/crypto/md5-tests: Moved from ../.
70118         * modules/crypto/memxor: Moved from ../.
70119         * modules/crypto/rijndael: Moved from ../.
70120         * modules/crypto/rijndael-tests: Moved from ../.
70121         * modules/crypto/sha1: Moved from ../.
70122
70123 2007-03-30  James Youngman  <jay@gnu.org>
70124
70125         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70126         rename() to change the ctime of a file (because ctime is unaffected
70127         by rename on jfs2 on AIX 5.1).
70128         (main): Start by doing cleanup, in case a previous run failed leaving
70129         test files behind.
70130
70131 2007-03-31  Bruno Haible  <bruno@clisp.org>
70132
70133         Support old proprietary implementations of iconv.
70134         * modules/iconv_open: New file.
70135         * lib/iconv_.h: New file.
70136         * m4/iconv_h.m4: New file.
70137         * lib/iconv_open.c: New file.
70138         * lib/iconv_open-aix.gperf: New file.
70139         * lib/iconv_open-hpux.gperf: New file.
70140         * lib/iconv_open-irix.gperf: New file.
70141         * lib/iconv_open-osf.gperf: New file.
70142         * m4/iconv_open.m4: New file.
70143         * modules/linebreak (Depends-on): Add iconv_open.
70144         * modules/striconv (Depends-on): Likewise.
70145         * modules/striconveh (Depends-on): Likewise.
70146         * modules/unicodeio (Depends-on): Likewise.
70147         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70148         (iconv_t)(-1).
70149         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70150         conversion if cd is (iconv_t)(-1).
70151         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70152         is not possible.
70153
70154 2007-03-31  Bruno Haible  <bruno@clisp.org>
70155
70156         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70157         work on Solaris either. Protect also second use of "autodetect_jp".
70158
70159 2007-03-31  Bruno Haible  <bruno@clisp.org>
70160
70161         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70162         the function is not present.
70163
70164 2007-03-31  Bruno Haible  <bruno@clisp.org>
70165
70166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70167         the function is not present.
70168
70169 2007-03-31  Bruno Haible  <bruno@clisp.org>
70170
70171         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70172         a bug in HP-UX iconv_open().
70173
70174 2007-03-31  Bruno Haible  <bruno@clisp.org>
70175
70176         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70177         (Mathematics <math.h>): New section, add fpieee.
70178         (Input/output <stdio.h>): Add fseterr.
70179         (Mathematics <math.h>): New section, add printf-frexp.
70180         (Container data structures): Add sublist.
70181         (Core language properties): Add fpucw, inline.
70182         (Functions for greatest-width integer types <inttypes.h>): Add
70183         imaxabs, imaxdiv, inttypes.
70184         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70185         isnanl-nolibm, ldexp.
70186         (Mathematics <math.h>): New section, add printf-frexpl.
70187         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70188         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70189         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70190         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70191         (Unicode string functions): Add unistr/u*-mbtoucr.
70192         (Java): Add javacomp-script, javaexec-script.
70193         (C#): Add csharpcomp-script, csharpexec-script.
70194         (Support for building libraries and executables): Add havelib,
70195         relocatable-*.
70196         (Support for maintaining and releasing projects): Renamed from
70197         'Support for maintaining and release projects'. Add announce-gen.
70198
70199 2007-03-31  Bruno Haible  <bruno@clisp.org>
70200
70201         * README: Talk primarily about git.
70202         (git and CVS): Renamed from CVS.
70203         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70204         gnulib is available through git.
70205         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70206
70207 2007-03-30  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70210         * lib/poll_.h: Likewise.
70211         * lib/stat_.h: Likewise.
70212         * lib/sys_time_.h: Likewise.
70213         * lib/sysexit_.h: Likewise.
70214         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70215         * lib/stdbool_.h: Likewise.
70216         * lib/byteswap_.h: Add double-inclusion guard.
70217
70218 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70219
70220         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70221
70222 2007-03-30  Karl Berry  <karl@gnu.org>
70223
70224         * config/srclist-update: double space after USA in the license
70225         substitution, since that's how it's usually (?) written.
70226
70227 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70228
70229         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70230         reported by Bruno Haible.
70231
70232 2007-03-29  Bruno Haible  <bruno@clisp.org>
70233
70234         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70235         a bug in AIX iconv().
70236
70237 2007-03-29  Bruno Haible  <bruno@clisp.org>
70238
70239         * modules/ldexpl-tests: New file.
70240         * tests/test-ldexpl.c: New file.
70241
70242 2007-03-29  Bruno Haible  <bruno@clisp.org>
70243
70244         * lib/ldexpl.c: Include fpucw.h.
70245         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70246         multiplication.
70247         * modules/ldexpl (Depends-on): Add fpucw.
70248
70249 2007-03-29  Bruno Haible  <bruno@clisp.org>
70250
70251         * modules/ldexpl: New file.
70252         * m4/ldexpl.m4: New file.
70253         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70254         set.
70255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70256         REPLACE_LDEXPL.
70257         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70258         REPLACE_LDEXPL.
70259         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70260         gl_FUNC_LDEXPL_WORKS.
70261         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70262         * modules/mathl (Files): Remove lib/ldexpl.c.
70263         (Depends-on): Add ldexpl.
70264
70265 2007-03-29  Bruno Haible  <bruno@clisp.org>
70266
70267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70268
70269 2007-03-29  Bruno Haible  <bruno@clisp.org>
70270
70271         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70272         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70273         and possibly also HP-UX.
70274         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70275         work on AIX, IRIX, HP-UX, OSF/1.
70276         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70277         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70278         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70279         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70280         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70281         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70282
70283 2007-03-29  Bruno Haible  <bruno@clisp.org>
70284
70285         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70286
70287 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70288
70289         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70290         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70291
70292 2007-03-29  Eric Blake  <ebb9@byu.net>
70293
70294         * lib/acl-internal.h: Remove redundant include.
70295         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70296         Cygwin when a file is locked.
70297
70298 2007-03-29  Bruno Haible  <bruno@clisp.org>
70299
70300         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70301         file.
70302         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70303
70304 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70305
70306         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70307         try to remove a parent directory if the child couldn't be removed
70308         (except for the first rmdir, which could fail because the child
70309         doesn't exist).  Problem reported by Jeff Blaine in
70310         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70311
70312 2007-03-28  Bruno Haible  <bruno@clisp.org>
70313
70314         * lib/striconveh.c (utf8conv_carefully): New function.
70315         (mem_cd_iconveh_internal): Invoke it.
70316
70317 2007-03-28  Bruno Haible  <bruno@clisp.org>
70318
70319         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70320         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70321         input.
70322         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70323         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70324         unistr/u8-uctomb.
70325
70326 2007-03-28  Bruno Haible  <bruno@clisp.org>
70327
70328         * modules/unistr/u8-mbtoucr: New file.
70329         * lib/unistr/u8-mbtoucr.c: New file.
70330         * modules/unistr/u16-mbtoucr: New file.
70331         * lib/unistr/u16-mbtoucr.c: New file.
70332         * modules/unistr/u16-mbtoucr: New file.
70333         * lib/unistr/u16-mbtoucr.c: New file.
70334         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70335
70336 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70337             Bruno Haible  <bruno@clisp.org>
70338
70339         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70340         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70341         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70342
70343         * m4/stdio_h.m4: Add stubs for vasprintf too.
70344
70345         * modules/stdio: Support vasprintf in sed command.
70346
70347         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70348         vasprintf.h.  Add stdio module indicator.
70349
70350         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70351         vasprintf.h.
70352
70353         * lib/vasprintf.h: File removed.
70354
70355         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70356         * lib/vasprintf.c: Ditto.
70357         * lib/xvasprintf.c: Ditto.
70358         * tests/test-vasprintf-posix.c: Ditto.
70359         * tests/test-vasprintf.c: Ditto.
70360
70361 2007-03-27  Bruno Haible  <bruno@clisp.org>
70362
70363         Make vasnprintf multithread-safe.
70364         * lib/vasnprintf.c (decimal_point_char): New function.
70365         (VASNPRINTF): Use it.
70366         Suggested by Simon Josefsson.
70367
70368 2007-03-27  Eric Blake  <ebb9@byu.net>
70369
70370         Support sub-second birthtime on cygwin.
70371         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70372         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70373         (get_stat_birthtime): Also work with st_birthtim.
70374
70375 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70378         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70379         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70380         (get_stat_birthtime_ns): Simplify compile-time tests.
70381         (get_stat_birthtime): Change the API to look like
70382         get_stat_mtime etc., except return a negative tv_nsec on error.
70383         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70384         Don't check for "spare" fields.
70385         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70386         or for struct stat.st_birthtime, as these tests aren't used.
70387         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70388
70389 2007-03-27  Bruno Haible  <bruno@clisp.org>
70390
70391         * lib/stat-time.h: Include <sys/stat.h>.
70392
70393 2007-03-27  James Youngman  <jay@gnu.org>
70394
70395         * lib/stat-time.h (get_stat_birthtime): New function for
70396           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70397         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70398           and its variants.
70399         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70400         * modules/stat-time-test: New file.
70401         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70402
70403 2007-03-26  Bruno Haible  <bruno@clisp.org>
70404
70405         Better support of signalling NaNs.
70406         * lib/atanl.c: Include isnanl.h.
70407         (atanl): Perform test for NaN at the beginning of the function and
70408         through a call to isnanl.
70409         * lib/cosl.c: Include isnanl.h.
70410         (cosl): Perform test for NaN at the beginning of the function and
70411         through a call to isnanl.
70412         * lib/ldexpl.c: Include isnanl.h.
70413         (ldexpl): Perform test for NaN through a call to isnanl.
70414         * lib/logl.c: Include isnanl.h.
70415         (logl): Perform test for NaN at the beginning of the function and
70416         through a call to isnanl.
70417         * lib/sinl.c: Include isnanl.h.
70418         (sinl): Perform test for NaN at the beginning of the function and
70419         through a call to isnanl.
70420         * lib/sqrtl.c: Include isnanl.h.
70421         (sqrtl): Perform test for NaN at the beginning of the function and
70422         through a call to isnanl.
70423         * lib/tanl.c: Include isnanl.h.
70424         (tanl): Perform test for NaN at the beginning of the function and
70425         through a call to isnanl.
70426         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70427         * modules/mathl (Depends-on): Add isnanl.
70428
70429 2007-03-26  Eric Blake  <ebb9@byu.net>
70430
70431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70432         regression in logic sense of previous patch.
70433
70434 2007-03-26  Bruno Haible  <bruno@clisp.org>
70435
70436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70437         unportable shell command "if ! ...".
70438         Reported by Ralf Wildenhues.
70439
70440 2007-03-25  Bruno Haible  <bruno@clisp.org>
70441
70442         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70443         <sysexits.h> file, and only add EX_CONFIG.
70444         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70445         absolute file name and whether it is sufficient. Substitute also
70446         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70447         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70448         ABSOLUTE_SYSEXITS_H into sysexits.h.
70449
70450 2007-03-25  Bruno Haible  <bruno@clisp.org>
70451
70452         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70453         hints is NULL.
70454
70455 2007-03-25  Bruno Haible  <bruno@clisp.org>
70456
70457         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70458         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70459
70460 2007-03-25  Bruno Haible  <bruno@clisp.org>
70461
70462         * lib/vasnprintf.c: Include langinfo.h.
70463         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70464         multithread-safe.
70465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70466         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70468         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70473         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70474         Reported by Simon Josefsson.
70475
70476 2007-03-25  Bruno Haible  <bruno@clisp.org>
70477
70478         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70479         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70480         * modules/vasnprintf (Depends-on): Add stdint.
70481
70482 2007-03-25  Bruno Haible  <bruno@clisp.org>
70483
70484         * modules/fpieee: New file.
70485         * m4/fpieee.m4: New file.
70486         * modules/isnan-nolibm (Depends-on): Add fpieee.
70487         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70488         * modules/isnanl (Depends-on): Add fpieee.
70489
70490 2007-03-25  Bruno Haible  <bruno@clisp.org>
70491
70492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70493
70494 2007-03-25  Bruno Haible  <bruno@clisp.org>
70495
70496         Avoid test failures on IRIX 6.5.
70497         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70498         (main): Use it.
70499         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70500         macros.
70501         (main): Use them.
70502
70503 2007-03-25  Bruno Haible  <bruno@clisp.org>
70504
70505         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70506         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70507         exists but doesn't work.
70508         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70509         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70511         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70512         math.h.
70513
70514 2007-03-25  Bruno Haible  <bruno@clisp.org>
70515
70516         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70517         returns inf. Needed on IRIX 6.5.
70518
70519 2007-03-25  Bruno Haible  <bruno@clisp.org>
70520
70521         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70522         (main): Use isnanl instead of x != x idiom.
70523         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70524
70525         * tests/test-frexp.c: Include isnan.h.
70526         (main): Use isnan instead of x != x idiom.
70527         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70528
70529 2007-03-25  Bruno Haible  <bruno@clisp.org>
70530
70531         * tests/test-frexp.c (NaN): New function/macro.
70532         (main): Use it instead of 0.0 / 0.0.
70533         * tests/test-isnan.c (NaN): New function/macro.
70534         (main): Use it instead of 0.0 / 0.0.
70535         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70536         (test_function): Use it instead of 0.0 / 0.0.
70537         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70538         (test_function): Use it instead of 0.0 / 0.0.
70539         * tests/test-snprintf-posix.h (NaN): New function/macro.
70540         (test_function): Use it instead of 0.0 / 0.0.
70541         * tests/test-sprintf-posix.h (NaN): New function/macro.
70542         (test_function): Use it instead of 0.0 / 0.0.
70543         * tests/test-fprintf-posix.h (NaN): New function/macro.
70544         (test_function): Use it instead of 0.0 / 0.0.
70545         * tests/test-printf-posix.h (NaN): New function/macro.
70546         (test_function): Use it instead of 0.0 / 0.0.
70547
70548         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70549
70550 2007-03-25  Bruno Haible  <bruno@clisp.org>
70551
70552         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70553
70554 2007-03-25  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/regexec.c (merge_state_with_log): Make static.
70557
70558 2007-03-25  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/trigl.c (kernel_rem_pio2): Make static.
70561
70562 2007-03-25  Bruno Haible  <bruno@clisp.org>
70563
70564         * lib/sincosl.c (sincosl_table): Make static.
70565
70566 2007-03-25  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70569         if the compiler does not support C99.
70570
70571 2007-03-25  Bruno Haible  <bruno@clisp.org>
70572
70573         * modules/time (Makefile.am): Ensure all rule action lines start with a
70574         tab.
70575
70576 2007-03-24  Bruno Haible  <bruno@clisp.org>
70577
70578         * modules/tsearch-tests: New file.
70579         * tests/test-tsearch.sh: New file.
70580         * tests/test-tsearch.c: New file, mostly copied from glibc.
70581
70582         * modules/search-tests: New file.
70583         * tests/test-search.c: New file.
70584
70585         * modules/search: New file.
70586         * lib/search_.h: New file, incorporating lib/tsearch.h.
70587         * m4/search_h.m4: New file.
70588         * lib/tsearch.h: Remove file.
70589         * lib/tsearch.c: Include search.h instead of tsearch.h.
70590         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70591         HAVE_TSEARCH.
70592         * modules/tsearch (Files): Remove lib/tsearch.h.
70593         (Depends-on): Add search.
70594         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70595         (Include): Change tsearch.h into search.h.
70596
70597 2007-03-24  Bruno Haible  <bruno@clisp.org>
70598
70599         * modules/fpucw: New file.
70600         * lib/fpucw.h: New file.
70601         * lib/frexp.c: Include fpucw.h.
70602         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70603         (FUNC): Use them.
70604         * lib/printf-frexp.c: Include fpucw.h.
70605         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70606         (FUNC): Use them.
70607         * lib/vasnprintf.c: Include fpucw.h.
70608         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70609         'long double' calculations.
70610         * tests/test-frexpl.c: Include fpucw.h.
70611         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70612         * tests/test-printf-frexpl.c: Include fpucw.h.
70613         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70614         * modules/frexpl (Depends-on): Add fpucw.
70615         * modules/printf-frexpl (Depends-on): Likewise.
70616         * modules/fprintf-posix (Depends-on): Likewise.
70617         * modules/snprintf-posix (Depends-on): Likewise.
70618         * modules/sprintf-posix (Depends-on): Likewise.
70619         * modules/vasnprintf-posix (Depends-on): Likewise.
70620         * modules/vasprintf-posix (Depends-on): Likewise.
70621         * modules/vfprintf-posix (Depends-on): Likewise.
70622         * modules/vsnprintf-posix (Depends-on): Likewise.
70623         * modules/vsprintf-posix (Depends-on): Likewise.
70624         * modules/frexpl-tests (Depends-on): Likewise.
70625         * modules/printf-frexpl-tests (Depends-on): Likewise.
70626
70627 2007-03-24  Bruno Haible  <bruno@clisp.org>
70628
70629         * lib/float+.h: New file.
70630         * lib/isnan.c: Include float+.h.
70631         (SIZE): New macro.
70632         (FUNC): Compare only SIZE bytes of the value.
70633         * lib/vasnprintf.c: Include float+.h.
70634         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70635         SIZEOF_LDBL or SIZEOF_DBL bytes.
70636         * modules/isnan-nolibm (Files): Add lib/float+.h.
70637         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70638         * modules/isnanl (Files): Add lib/float+.h.
70639         * modules/vasnprintf (Files): Add lib/float+.h.
70640
70641 2007-03-24  Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70644         include isnanl-nolibm.h.
70645
70646 2007-03-24  Bruno Haible  <bruno@clisp.org>
70647
70648         * tests/test-read-file.c (main): Don't produce spurious output for
70649         expected situations. Make the test fail if it encountered unexpected
70650         results.
70651
70652 2007-03-24  Bruno Haible  <bruno@clisp.org>
70653
70654         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70655         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70656
70657 2007-03-24  Bruno Haible  <bruno@clisp.org>
70658
70659         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70660
70661 2007-03-24  Bruno Haible  <bruno@clisp.org>
70662
70663         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70664         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70665
70666         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70667         * modules/utf8-ucs4: Turn into a symbolic link to module
70668         unistr/u8-mbtouc.
70669
70670         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70671         utf8-ucs4-unsafe.
70672         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70673         unistr/u8-mbtouc-unsafe.
70674
70675         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70676         * modules/utf16-ucs4: Turn into a symbolic link to module
70677         unistr/u16-mbtouc.
70678
70679         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70680         utf16-ucs4-unsafe.
70681         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70682         unistr/u16-mbtouc-unsafe.
70683
70684         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70685         * modules/ucs4-utf8: Turn into a symbolic link to module
70686         unistr/u8-ubtomb.
70687
70688         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70689         * modules/ucs4-utf16: Turn into a symbolic link to module
70690         unistr/u16-ubtomb.
70691
70692 2007-03-24  Bruno Haible  <bruno@clisp.org>
70693
70694         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70695         Enable the function only if HAVE_INLINE.
70696         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70697         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70698         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70699         Enable the function only if HAVE_INLINE.
70700         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70701         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70702         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70703         Enable the function only if HAVE_INLINE.
70704         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70705         Enable the function only if HAVE_INLINE.
70706         * modules/utf8-ucs4: Update.
70707         * modules/utf8-ucs4-unsafe: Update.
70708         * modules/utf16-ucs4: Update.
70709         * modules/utf16-ucs4-unsafe: Update.
70710         * modules/ucs4-utf8: Update.
70711         * modules/ucs4-utf16: Update.
70712
70713 2007-03-24  Bruno Haible  <bruno@clisp.org>
70714
70715         * lib/utf8-ucs4.h: Remove file.
70716         * lib/utf8-ucs4-unsafe.h: Remove file.
70717         * lib/utf16-ucs4.h: Remove file.
70718         * lib/utf16-ucs4-unsafe.h: Remove file.
70719         * lib/ucs4-utf8.h: Remove file.
70720         * lib/ucs4-utf16.h: Remove file.
70721         * lib/unistr.h: Include their previous contents.
70722         * m4/utf-ucs4.m4: Remove file.
70723         * m4/ucs4-utf.m4: Remove file.
70724         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70725         (Depends-on): Add unistr/base.
70726         (configure.ac): Remove gl_UTF_UCS4.
70727         (Makefile.am): Update.
70728         (Include): Change to unistr.h.
70729         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70730         (Depends-on): Add unistr/base.
70731         (configure.ac): Remove gl_UTF_UCS4.
70732         (Makefile.am): Update.
70733         (Include): Change to unistr.h.
70734         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70735         (Depends-on): Add unistr/base.
70736         (configure.ac): Remove gl_UTF_UCS4.
70737         (Makefile.am): Update.
70738         (Include): Change to unistr.h.
70739         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70740         (Depends-on): Add unistr/base.
70741         (configure.ac): Remove gl_UTF_UCS4.
70742         (Makefile.am): Update.
70743         (Include): Change to unistr.h.
70744         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70745         (Depends-on): Add unistr/base.
70746         (configure.ac): Remove gl_UCS4_UTF.
70747         (Makefile.am): Update.
70748         (Include): Change to unistr.h.
70749         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70750         (Depends-on): Add unistr/base.
70751         (configure.ac): Remove gl_UCS4_UTF.
70752         (Makefile.am): Update.
70753         (Include): Change to unistr.h.
70754         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70755         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70756         utf8-ucs4-unsafe.h.
70757         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70758         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70759         utf16-ucs4-unsafe.h.
70760         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70761         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70762         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70763         * lib/unistr/u8-strchr.c: Likewise.
70764         * lib/unistr/u8-strrchr.c: Likewise.
70765         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70766         * lib/unistr/u16-strchr.c: Likewise.
70767         * lib/unistr/u16-strrchr.c: Likewise.
70768         * lib/striconveh.c: Update.
70769         * lib/linebreak.c: Update.
70770
70771 2007-03-24  Bruno Haible  <bruno@clisp.org>
70772
70773         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70774         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70775
70776 2007-03-22  Bruno Haible  <bruno@clisp.org>
70777
70778         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70779
70780 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * MODULES.html.sh (File system functions): New module write-any-file.
70783         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70784         * m4/write-any-file.m4: New files.
70785
70786 2007-03-23  Eric Blake  <ebb9@byu.net>
70787
70788         * gnulib-tool: Rearrange space-tab sequences, since some editors
70789         like to eat them.
70790
70791 2007-03-23  Eric Blake  <ebb9@byu.net>
70792
70793         * lib/version-etc.c (version_etc_va): Update license wording to
70794         be more concise.  Recommended by Richard Stallman.
70795
70796 2007-03-22  Bruno Haible  <bruno@clisp.org>
70797
70798         * lib/poll.c (MSG_PEEK): New fallback definition.
70799
70800 2007-03-22  Bruno Haible  <bruno@clisp.org>
70801
70802         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70803         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70804         (main): Update.
70805         Fixes a compilation error on BeOS.
70806
70807 2007-03-22  Bruno Haible  <bruno@clisp.org>
70808
70809         * modules/frexpl-tests: New file.
70810         * tests/test-frexpl.c: New file.
70811
70812         * modules/frexpl: New file.
70813         * m4/frexpl.m4: New file.
70814         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70815         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70817         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70818         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70819         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70820
70821 2007-03-22  Bruno Haible  <bruno@clisp.org>
70822
70823         * lib/frexpl.c: Share code with lib/frexp.c.
70824         * modules/mathl (Files): Add lib/frexp.c.
70825         (Depends-on): Add isnanl-nolibm.
70826
70827 2007-03-22  Bruno Haible  <bruno@clisp.org>
70828
70829         * modules/printf-frexp (Files): Add m4/frexp.m4.
70830         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70831         only if the found frexp function actually works.
70832
70833 2007-03-22  Bruno Haible  <bruno@clisp.org>
70834
70835         * lib/frexp.c: Remove older implementation that uses divisions.
70836
70837 2007-03-21  Bruno Haible  <bruno@clisp.org>
70838
70839         * modules/frexp-tests: New file.
70840         * tests/test-frexp.c: New file.
70841
70842         * modules/frexp: New file.
70843         * lib/frexp.c: New file.
70844         * m4/frexp.m4: New file.
70845         * lib/math_.h (frexp): New declaration.
70846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70847         REPLACE_FREXP.
70848         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70849
70850 2007-03-21  Bruno Haible  <bruno@clisp.org>
70851
70852         * modules/isnanl-tests: New file.
70853         * tests/test-isnanl.c: New file.
70854
70855         * modules/isnanl: New file.
70856         * lib/isnanl.h: New file.
70857         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70858         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70859         gl_FUNC_ISNANL_WORKS.
70860         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70861         New macros.
70862
70863 2007-03-21  Bruno Haible  <bruno@clisp.org>
70864
70865         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70866         lib/isnanl.h.
70867         (Include): Update.
70868         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70869         * lib/vasnprintf.c: Update.
70870         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70871         tests/test-isnanl.h, remove tests/test-isnanl.c.
70872         (Makefile.am): Update.
70873         * tests/test-isnanl-nolibm.c: New file.
70874         * tests/test-isnanl.h: New file.
70875         * tests/test-isnanl.c: Remove file.
70876
70877 2007-03-21  Jim Meyering  <jim@meyering.net>
70878
70879         When trying to open ".", treat ESTALE like EACCES.
70880         * lib/savewd.c (savewd_save): Resort to forking not just upon
70881         failure with EACCES, but also when errno is ESTALE.
70882
70883 2007-03-20  Bruno Haible  <bruno@clisp.org>
70884
70885         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70886         Needed on AIX 5.1. Reported by Matthew Woehlke.
70887
70888 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70889
70890         Suggestions by Bruno Haible:
70891         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70892         our own.
70893         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70894         * modules/acl (Depends-on): Add gettext.
70895
70896 2007-03-19  Bruno Haible  <bruno@clisp.org>
70897
70898         * modules/iconvme: Remove file.
70899         * lib/iconvme.h: Remove file.
70900         * lib/iconvme.c: Remove file.
70901         * m4/iconvme.m4: Remove file.
70902
70903 2007-03-19  Bruno Haible  <bruno@clisp.org>
70904
70905         * doc/relocatable-maint.texi: Break long shell script line.
70906         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70907
70908 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70909
70910         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70911         handle file_has_acl.
70912         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70913         * lib/acl.c: Move header inclusions and related macro defns into
70914         lib/acl-internal.h.
70915         (S_ISLNK): Remove defn, since that's now done for us.
70916         (file_has_acl): Move to lib/file-has-acl.c.
70917         Call acl_trivial if available.  This is the crucial part of the fix.
70918         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70919         shared within the library.  Rewrite a bit, partly to make it compatible
70920         with the GNU coding style.
70921         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70922         Remove unnecessary double-quotes.
70923         Don't test for acl_to_text; the build will catch that.
70924         Replace acl_entries if it doesn't exist and it is needed.
70925         Check for -lsec and acl_trivial (as used on Solaris 10).
70926         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70927         lib/file-has-acl.c.
70928         (Depends-on): Add sys_stat, for S_ISLNK.
70929
70930 2007-03-19  Ben Pfaff  <blp@gnu.org>
70931
70932         * doc/gnulib.texi: Fix typos.
70933         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70934
70935 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70938         If size is zero here, buf must be zero.
70939
70940 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70941
70942         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70943         <bruno@clisp.org>.
70944
70945 2007-03-18  Bruno Haible  <bruno@clisp.org>
70946
70947         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70948         Suggested by Eric Blake.
70949
70950 2007-03-18  Ben Pfaff  <blp@gnu.org>
70951
70952         * doc/relocatable.texi: Recommend using as prefix a directory
70953         that does not exist and will never be created.  Based on
70954         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70955         and others.
70956
70957 2007-03-17  Bruno Haible  <bruno@clisp.org>
70958
70959         * lib/fchownat.c: Include lchown.h.
70960
70961 2007-03-17  Bruno Haible  <bruno@clisp.org>
70962
70963         Fix endless loop when the given allocated size was > INT_MAX.
70964         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70965         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70966         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70967         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70968         * lib/sprintf.c (sprintf): Likewise.
70969
70970 2007-03-17  Bruno Haible  <bruno@clisp.org>
70971
70972         * tests/test-argp-2.sh (func_compare): Output a context diff.
70973
70974 2007-03-17  Bruno Haible  <bruno@clisp.org>
70975
70976         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70977         locale's decimal-point character.
70978
70979 2007-03-17  Bruno Haible  <bruno@clisp.org>
70980
70981         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70982         before comparing it. Needed because on some platforms (e.g. x86) a
70983         'long double' occupies less bytes than sizeof (long double).
70984
70985 2007-03-17  Bruno Haible  <bruno@clisp.org>
70986
70987         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70988         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70989         * tests/test-getaddrinfo.c (simple): Likewise.
70990         * tests/test-read-file.c (main): Likewise.
70991
70992 2007-03-17  Bruno Haible  <bruno@clisp.org>
70993
70994         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70995
70996 2007-03-17  Bruno Haible  <bruno@clisp.org>
70997
70998         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70999         unused variable.
71000
71001 2007-03-17  Bruno Haible  <bruno@clisp.org>
71002
71003         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71004         * tests/test-c-strncasecmp.c: Likewise.
71005
71006 2007-03-17  Bruno Haible  <bruno@clisp.org>
71007
71008         * modules/stdlib (Depends-on): Add unistd.
71009         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71010         Needed for MacOS X 10.3.
71011
71012 2007-03-17  Bruno Haible  <bruno@clisp.org>
71013
71014         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71015
71016 2007-03-17  Bruno Haible  <bruno@clisp.org>
71017
71018         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71019
71020 2007-03-17  Bruno Haible  <bruno@clisp.org>
71021
71022         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71023         to reflect files copied from gnulib (with or without modifications).
71024         Suggested by Jim Meyering.
71025
71026 2007-03-17  Eric Blake  <ebb9@byu.net>
71027
71028         * NEWS: Document stdlib change from 2007-02-18.
71029
71030 2007-03-17  Jim Meyering  <jim@meyering.net>
71031
71032         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71033         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71034         someone uses a name containing shell meta-characters.
71035         Reported by Alfred M. Szmidt.
71036
71037         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71038
71039 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71040
71041         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71042         and copy gettext configuration files only if configure.ac contains
71043         a use of AM_GNU_GETTEXT_VERSION.
71044
71045 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71046
71047         * build-aux/bootstrap (gnulib_name): New variable.
71048         (gnulib_tool_options): Use it.
71049
71050 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71051
71052         * tests/test-des.c: Use new namespace.
71053
71054 2007-03-15  Bruno Haible  <bruno@clisp.org>
71055
71056         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71057         Reported by James Youngman <jay@gnu.org>.
71058
71059 2007-03-15  Bruno Haible  <bruno@clisp.org>
71060
71061         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71062         declared prototype. Needed with cc on OSF/1 5.1.
71063
71064 2007-03-15  Bruno Haible  <bruno@clisp.org>
71065
71066         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71067         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71068         (struct gl_list_implementation): Add dispose_fn argument to the
71069         'create_empty', 'create' methods.
71070         (struct gl_list_impl_base): Add field 'dispose_fn'.
71071         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71072         argument.
71073         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71074         dispose_fn argument.
71075         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71076         dispose_fn on the dropped values.
71077         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71078         dispose_fn argument.
71079         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71080         dropped values.
71081         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71082         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71083         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71084         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71085         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71086         argument.
71087         (gl_tree_list_free): Call dispose_fn on the dropped values.
71088         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71089         the dropped values.
71090         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71091         Add dispose_fn argument.
71092         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71093         Call dispose_fn on the dropped values.
71094         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71095         Add dispose_fn argument.
71096         (gl_sublist_create): Initialize the 'dispose_fn' field.
71097         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71098         * tests/test-array_list.c (main): Update.
71099         * tests/test-carray_list.c (main): Update.
71100         * tests/test-avltree_list.c (main): Update.
71101         * tests/test-rbtree_list.c (main): Update.
71102         * tests/test-avltreehash_list.c (main): Update.
71103         * tests/test-rbtreehash_list.c (main): Update.
71104         * tests/test-linked_list.c (main): Update.
71105         * tests/test-linkedhash_list.c (main): Update.
71106         * tests/test-array_oset.c (main): Update.
71107
71108 2007-03-15  Bruno Haible  <bruno@clisp.org>
71109
71110         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71111         (gl_oset_create_empty): Add dispose_fn argument.
71112         (struct gl_oset_implementation): Add dispose_fn argument to
71113         'create_empty' method.
71114         (struct gl_oset_impl_base): Add dispose_fn field.
71115         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71116         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71117         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71118         values.
71119         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71120         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71121         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71122         dropped value.
71123         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71124         dropped value.
71125         * tests/test-array_oset.c (main): Update.
71126         * tests/test-avltree_oset.c (main): Update.
71127         * tests/test-rbtree_oset.c (main): Update.
71128         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71129
71130 2007-03-13  Bruno Haible  <bruno@clisp.org>
71131
71132         * tests/test-stdbool.c (i): Update after last patch.
71133
71134 2007-03-12  Bruno Haible  <bruno@clisp.org>
71135
71136         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71137         the iswprint macro. Needed on Solaris 2.5.1.
71138
71139 2007-03-12  Bruno Haible  <bruno@clisp.org>
71140
71141         * tests/test-printf-frexp.c (main): Declare x as volatile.
71142
71143 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71144
71145         * doc/gnulib.texi (Build robot for gnulib): New section.
71146
71147 2007-03-12  Jim Meyering  <jim@meyering.net>
71148
71149         * build-aux/bootstrap: New file.
71150         * build-aux/bootstrap.conf: New file, from coreutils.
71151
71152 2007-03-11  Bruno Haible  <bruno@clisp.org>
71153
71154         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71155
71156 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71157
71158         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71159         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71160         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71161
71162 2007-03-11  Bruno Haible  <bruno@clisp.org>
71163
71164         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71165         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71166
71167 2007-03-11  Bruno Haible  <bruno@clisp.org>
71168
71169         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71170         formula. Needed for SunPRO C 5.0.
71171
71172 2007-03-11  Bruno Haible  <bruno@clisp.org>
71173
71174         * modules/long-options (Depends-on): Add getopt.
71175
71176 2007-03-11  Bruno Haible  <bruno@clisp.org>
71177
71178         * modules/modechange (Depends-on): Add stdbool.
71179
71180 2007-03-11  Bruno Haible  <bruno@clisp.org>
71181
71182         * modules/i-ring (Depends-on): Add stdbool.
71183
71184 2007-03-11  Bruno Haible  <bruno@clisp.org>
71185
71186         * modules/gc-des (Depends-on): Add stdbool.
71187
71188 2007-03-11  Bruno Haible  <bruno@clisp.org>
71189
71190         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71191
71192 2007-03-11  Bruno Haible  <bruno@clisp.org>
71193
71194         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71195
71196 2007-03-11  Bruno Haible  <bruno@clisp.org>
71197
71198         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71199
71200 2007-03-11  Bruno Haible  <bruno@clisp.org>
71201
71202         * lib/vasnprintf.c (sprintf): Undefine.
71203
71204 2007-03-11  Bruno Haible  <bruno@clisp.org>
71205
71206         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71207         initializers in SunPRO C and Compaq C compilers.
71208
71209 2007-03-11  Bruno Haible  <bruno@clisp.org>
71210
71211         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71212         decrementing code ANSI C compliant.
71213
71214 2007-03-11  Bruno Haible  <bruno@clisp.org>
71215
71216         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71217         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71218
71219 2007-03-11  Bruno Haible  <bruno@clisp.org>
71220
71221         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71222         <stdbool.h> substitute doesn't pass.
71223
71224 2007-03-11  Bruno Haible  <bruno@clisp.org>
71225
71226         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71227
71228 2007-03-11  Bruno Haible  <bruno@clisp.org>
71229
71230         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71231         script, for submission to autobuild.josefsson.org.
71232
71233 2007-03-10  Bruno Haible  <bruno@clisp.org>
71234
71235         * modules/canonicalize-lgpl-tests: New file.
71236         * tests/test-canonicalize-lgpl.sh: New file.
71237         * tests/test-canonicalize-lgpl.c: New file.
71238
71239         * modules/c-strcase-tests: New file.
71240         * tests/test-c-strcase.sh: New file.
71241         * tests/test-c-strcasecmp.c: New file.
71242         * tests/test-c-strncasecmp.c: New file.
71243
71244         * modules/atexit-tests: New file.
71245         * tests/test-atexit.sh: New file.
71246         * tests/test-atexit.c: New file.
71247
71248 2007-03-10  Bruno Haible  <bruno@clisp.org>
71249
71250         * tests/test-binary-io.sh: Use temporary filenames that are not so
71251         likely to clash with those of other tests (in a parallel make).
71252         * tests/test-binary-io.c: Likewise.
71253
71254 2007-03-10  Bruno Haible  <bruno@clisp.org>
71255
71256         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71257         fallback; use #error instead.
71258         Suggested by Simon Josefsson.
71259
71260 2007-03-10  Bruno Haible  <bruno@clisp.org>
71261
71262         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71263         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71264         first and the last.
71265
71266 2007-03-10  Bruno Haible  <bruno@clisp.org>
71267
71268         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71269
71270 2007-03-10  Bruno Haible  <bruno@clisp.org>
71271
71272         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71273         "make distcheck".
71274         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71275         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71276         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71277
71278 2007-03-10  Bruno Haible  <bruno@clisp.org>
71279
71280         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71281         variable.
71282         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71283         variable.
71284
71285 2007-03-09  Eric Blake  <ebb9@byu.net>
71286         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71287
71288         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71289         types are not being provided by gnulib.
71290         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71291         types are supported.
71292
71293 2007-03-10  Bruno Haible  <bruno@clisp.org>
71294
71295         * lib/stdio_.h (__attribute__): New macro.
71296         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71297         vsprintf): Specify __attribute__ __format__ for GCC.
71298         Suggested by Eric Blake.
71299
71300 2007-03-09  Bruno Haible  <bruno@clisp.org>
71301
71302         * modules/printf-posix-tests: New file.
71303         * tests/test-printf-posix.sh: New file.
71304         * tests/test-printf-posix.c: New file.
71305
71306         * modules/printf-posix: New file.
71307         * lib/printf.c: New file.
71308         * m4/printf-posix-rpl.m4: New file.
71309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71310         REPLACE_PRINTF.
71311         * lib/stdio_.h (printf): New declaration.
71312         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71313         ____strfmon____): New macros.
71314         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71315         REPLACE_PRINTF.
71316
71317 2007-03-09  Bruno Haible  <bruno@clisp.org>
71318
71319         * tests/test-vasnprintf-posix2.sh: New file.
71320         * tests/test-vasnprintf-posix2.c: New file.
71321         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71322         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71323         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71324
71325         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71326         a locale dependent decimal point, rather than always '.'.
71327
71328 2007-03-09  Eric Blake  <ebb9@byu.net>
71329
71330         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71331         spite of platforms like Tandem/NSK that define it to -1.
71332
71333 2007-03-08  Bruno Haible  <bruno@clisp.org>
71334
71335         * modules/vprintf-posix-tests: New file.
71336         * tests/test-vprintf-posix.sh: New file.
71337         * tests/test-vprintf-posix.c: New file.
71338         * tests/test-printf-posix.h: New file.
71339
71340         * modules/vprintf-posix: New file.
71341         * lib/vprintf.c: New file.
71342         * m4/vprintf-posix.m4: New file.
71343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71344         REPLACE_VPRINTF.
71345         * lib/stdio_.h (vprintf): New declaration.
71346         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71347         REPLACE_VPRINTF.
71348
71349 2007-03-08  Bruno Haible  <bruno@clisp.org>
71350
71351         * modules/fprintf-posix-tests: New file.
71352         * tests/test-fprintf-posix.sh: New file.
71353         * tests/test-fprintf-posix.c: New file.
71354
71355         * modules/fprintf-posix: New file.
71356         * lib/fprintf.c: New file.
71357         * m4/fprintf-posix.m4: New file.
71358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71359         REPLACE_FPRINTF.
71360         * lib/stdio_.h (fprintf): New declaration.
71361         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71362         REPLACE_FPRINTF.
71363
71364 2007-03-08  Bruno Haible  <bruno@clisp.org>
71365
71366         * modules/vfprintf-posix-tests: New file.
71367         * tests/test-vfprintf-posix.sh: New file.
71368         * tests/test-vfprintf-posix.c: New file.
71369         * tests/test-fprintf-posix.h: New file.
71370         * tests/test-fprintf-posix.out: New file.
71371
71372         * modules/vfprintf-posix: New file.
71373         * lib/vfprintf.c: New file.
71374         * m4/vfprintf-posix.m4: New file.
71375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71376         REPLACE_VFPRINTF.
71377         * lib/stdio_.h (vfprintf): New declaration.
71378         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71379         REPLACE_VFPRINTF.
71380
71381 2007-03-08  Bruno Haible  <bruno@clisp.org>
71382
71383         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71384
71385 2007-03-08  Bruno Haible  <bruno@clisp.org>
71386
71387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71388         instead of 'expr' invocations.
71389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71391         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71394         Suggested by Paul Eggert.
71395
71396 2007-03-08  Bruno Haible  <bruno@clisp.org>
71397
71398         * modules/fseterr-tests: New file.
71399         * tests/test-fseterr.c: New file.
71400
71401         * modules/fseterr: New file.
71402         * lib/fseterr.h: New file.
71403         * lib/fseterr.c: New file.
71404
71405 2007-03-08  Bruno Haible  <bruno@clisp.org>
71406
71407         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71408         * lib/getopt_.h: Likewise.
71409         * lib/mbswidth.h: Likewise.
71410         * lib/setenv.h: Likewise.
71411         * lib/vasnprintf.h: Likewise.
71412         * lib/vasprintf.h: Likewise.
71413         * lib/verror.h: Likewise.
71414         * lib/xsetenv.h: Likewise.
71415         * lib/xvasprintf.h: Likewise.
71416
71417 2007-03-08  Jim Meyering  <jim@meyering.net>
71418
71419         * users.txt: Add parted.
71420
71421         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71422
71423 2007-03-07  Bruno Haible  <bruno@clisp.org>
71424
71425         * m4/printf.m4: Make the shell script snippets copy&pastable.
71426
71427 2007-03-02  Bruno Haible  <bruno@clisp.org>
71428
71429         * lib/netinet_in_.h: New file.
71430         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71431         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71432         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71433         (Depends-on): Add absolute-header.
71434         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71435         into netinet/in.h.
71436
71437 2007-03-03  Bruno Haible  <bruno@clisp.org>
71438
71439         * lib/sys_select_.h: New file.
71440         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71441         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71442         * modules/sys_select (Files): Add lib/sys_select_.h.
71443         (Depends-on): Add absolute-header.
71444         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71445         into sys/select.h.
71446
71447 2007-03-02  Bruno Haible  <bruno@clisp.org>
71448
71449         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71450         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71451         values.
71452         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71453         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71454         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71455         * modules/sys_socket (Depends-on): Add absolute-header.
71456         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71457         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71458         (Include): Remove requirement of inclusion of <sys/types.h>.
71459
71460 2007-03-02  Bruno Haible  <bruno@clisp.org>
71461
71462         * lib/byteswap_.h (bswap_32): Fix formula.
71463
71464 2007-03-06  Bruno Haible  <bruno@clisp.org>
71465
71466         * modules/sprintf-posix-tests: New file.
71467         * tests/test-sprintf-posix.c: New file.
71468
71469         * modules/sprintf-posix: New file.
71470         * lib/sprintf.c: New file.
71471         * m4/sprintf-posix.m4: New file.
71472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71473         REPLACE_SPRINTF.
71474         * lib/stdio_.h (sprintf): New declaration.
71475         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71476         REPLACE_SPRINTF.
71477
71478 2007-03-06  Bruno Haible  <bruno@clisp.org>
71479
71480         * modules/vsprintf-posix-tests: New file.
71481         * tests/test-vsprintf-posix.c: New file.
71482         * tests/test-sprintf-posix.h: New file.
71483
71484         * modules/vsprintf-posix: New file.
71485         * lib/vsprintf.c: New file.
71486         * m4/vsprintf-posix.m4: New file.
71487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71488         REPLACE_VSPRINTF.
71489         * lib/stdio_.h (vsprintf): New declaration.
71490         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71491         REPLACE_VSPRINTF.
71492
71493 2007-03-06  Bruno Haible  <bruno@clisp.org>
71494
71495         * modules/vsnprintf (Depend-on): Remove minmax.
71496
71497 2007-03-06  Bruno Haible  <bruno@clisp.org>
71498
71499         * modules/snprintf-posix-tests: New file.
71500         * tests/test-snprintf-posix.c: New file.
71501
71502         * modules/snprintf-posix: New file.
71503         * m4/snprintf-posix.m4: New file.
71504         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71505         gl_FUNC_SNPRINTF.
71506         (gl_FUNC_SNPRINTF): Invoke it.
71507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71508         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71509         is set.
71510         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71511
71512 2007-03-06  Bruno Haible  <bruno@clisp.org>
71513
71514         * modules/vsnprintf-posix-tests: New file.
71515         * tests/test-vsnprintf-posix.c: New file.
71516         * tests/test-snprintf-posix.h: New file.
71517
71518         * modules/vsnprintf-posix: New file.
71519         * m4/vsnprintf-posix.m4: New file.
71520         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71521         gl_FUNC_VSNPRINTF.
71522         (gl_FUNC_VSNPRINTF): Invoke it.
71523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71524         * lib/stdio_.h (vsnprintf): Define as a replacement if
71525         REPLACE_VSNPRINTF is set.
71526         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71527
71528 2007-03-06  Bruno Haible  <bruno@clisp.org>
71529
71530         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71532
71533 2007-03-06  Bruno Haible  <bruno@clisp.org>
71534
71535         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71536         (asinl): Declare also if HAVE_DECL_ASINL is set.
71537         (atanl): Declare also if HAVE_DECL_ATANL is set.
71538         (ceill): Declare also if HAVE_DECL_CEILL is set.
71539         (cosl): Declare also if HAVE_DECL_COSL is set.
71540         (expl): Declare also if HAVE_DECL_EXPL is set.
71541         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71542         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71543         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71544         (logl): Declare also if HAVE_DECL_LOGL is set.
71545         (sinl): Declare also if HAVE_DECL_SINL is set.
71546         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71547         (tanl): Declare also if HAVE_DECL_TANL is set.
71548         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71550         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71551         declaration of frexpl, ldexpl.
71552         * modules/printf-frexpl (Depends-on): Add math.
71553         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71554
71555 2007-03-05  Bruno Haible  <bruno@clisp.org>
71556
71557         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71558         frexpl and ldexpl are declared.
71559         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71560
71561 2007-03-05  Bruno Haible  <bruno@clisp.org>
71562
71563         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71564         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71565
71566 2007-03-05  Bruno Haible  <bruno@clisp.org>
71567
71568         * lib/stdio_.h: Include <stddef.h>.
71569
71570 2007-03-05  Bruno Haible  <bruno@clisp.org>
71571
71572         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71573
71574 2007-03-05  Bruno Haible  <bruno@clisp.org>
71575
71576         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71577         NetBSD 4, from Ralf Wildenhues.
71578
71579 2007-03-04  Bruno Haible  <bruno@clisp.org>
71580
71581         * lib/vasprintf.h: Update #if logic for the case when the functions
71582         exist but are overridden.
71583
71584 2007-03-04  Bruno Haible  <bruno@clisp.org>
71585
71586         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71587         implementations: glibc-2.4 and MacOS X 10.3.
71588         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71589         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71590         * tests/test-vasprintf-posix.c (test_function): Likewise.
71591
71592 2007-03-04  Bruno Haible  <bruno@clisp.org>
71593
71594         * modules/vasprintf-posix-tests: New file.
71595         * tests/test-vasprintf-posix.c: New file.
71596
71597         * modules/vasprintf-posix: New file.
71598         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71599         defined.
71600         * m4/vasprintf-posix.m4: New file.
71601         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71602         gl_FUNC_VASPRINTF.
71603         (gl_FUNC_VASPRINTF): Invoke it.
71604         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71605         here.
71606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71607
71608 2007-03-04  Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71611         REPLACE_GETTIMEOFDAY.
71612         * modules/sys_time (Makefile.am): Likewise.
71613         * m4/sys_time_h.m4: Likewise.
71614         * m4/gettimeofday.m4: Likewise.
71615
71616 2007-03-04  Bruno Haible  <bruno@clisp.org>
71617
71618         * modules/vasnprintf-posix-tests: New file.
71619         * tests/test-vasnprintf-posix.c: New file.
71620
71621         * modules/vasnprintf-posix: New file.
71622         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71623         printf-frexpl.h.
71624         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71625         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71626         REPLACE_VASNPRINTF is defined.
71627         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71628         gl_FUNC_VASNPRINTF.
71629         (gl_FUNC_VASNPRINTF): Invoke it.
71630         * m4/vasnprintf-posix.m4: New file.
71631         * m4/printf.m4: New file.
71632
71633 2007-03-04  Bruno Haible  <bruno@clisp.org>
71634
71635         Compile progreloc.c only if --enable-relocatable is specified.
71636         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71637         if --enable-relocatable was specified.
71638         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71639         lib_SOURCES.
71640
71641 2007-03-04  Jim Meyering  <jim@meyering.net>
71642
71643         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71644         Use it consistently, rather than enumerating errno constants.
71645
71646 2007-03-04  Bruno Haible  <bruno@clisp.org>
71647
71648         * modules/xvasprintf-tests: New file.
71649         * tests/test-xvasprintf.c: New file.
71650
71651         * modules/vasprintf-tests: New file.
71652         * tests/test-vasprintf.c: New file.
71653
71654         * modules/vasnprintf-tests: New file.
71655         * tests/test-vasnprintf.c: New file.
71656
71657         * modules/vsnprintf-tests: New file.
71658         * tests/test-vsnprintf.c: New file.
71659
71660         * modules/snprintf-tests: New file.
71661         * tests/test-snprintf.c: New file.
71662
71663 2007-03-04  Bruno Haible  <bruno@clisp.org>
71664
71665         Compile relocatable.c only if --enable-relocatable is specified.
71666         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71667         gl_RELOCATABLE_LIBRARY.
71668         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71669         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71670         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71671         gl_RELOCATABLE_LIBRARY.
71672         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71673         (Makefile.am): Remove lib_SOURCES.
71674         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71675         gl_RELOCATABLE_LIBRARY.
71676         (Makefile.am): Remove lib_SOURCES.
71677         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71678         always.
71679         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71680         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71681
71682 2007-03-04  Bruno Haible  <bruno@clisp.org>
71683
71684         * modules/argmatch-tests: New file.
71685         * tests/test-argmatch.c: New file.
71686
71687         * tests/test-allocsa.c (main): Halve the number of loop runs.
71688
71689         * modules/alloca-opt-tests: New file.
71690         * tests/test-alloca-opt.c: New file.
71691
71692 2007-03-04  Jim Meyering  <jim@meyering.net>
71693
71694         Work around difference between Linux ACLs and Solaris 10 ZFS.
71695         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71696         for EINVAL.
71697
71698 2007-03-03  Bruno Haible  <bruno@clisp.org>
71699
71700         * modules/relocatable-prog (Depends-on): Add back progreloc's
71701         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71702
71703 2007-03-03  Bruno Haible  <bruno@clisp.org>
71704
71705         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71706         * modules/relocatable-lib: New file.
71707
71708 2007-03-03  Bruno Haible  <bruno@clisp.org>
71709
71710         * modules/relocatable-prog: Renamed from modules/relocatable.
71711         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71712
71713 2007-03-03  Bruno Haible  <bruno@clisp.org>
71714
71715         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71716         m4/relocatable-lib.m4.
71717         (Depends-on): Remove 'relocatable'.
71718         (configure.ac): Add gl_RELOCATABLE_NOP.
71719
71720 2007-03-03  Bruno Haible  <bruno@clisp.org>
71721
71722         * modules/relocatable-prog-wrapper: New file.
71723         * modules/relocatable (Depends-on): Add it. Remove all other
71724         dependencies except progname.
71725         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71726
71727         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71728         (gl_FUNC_STRERROR): Nop.
71729         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71730
71731         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71732         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71733
71734         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71735         (gl_FUNC_READLINK): Update.
71736
71737         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71738
71739 2007-03-03  Bruno Haible  <bruno@clisp.org>
71740
71741         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71742         * modules/xreadlink (Depends-on): Add unistd.
71743         * modules/xreadlink-with-size (Depends-on): Likewise.
71744
71745 2007-03-03  Bruno Haible  <bruno@clisp.org>
71746
71747         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71748         extracted from gt_FUNC_SETENV.
71749         (gt_FUNC_SETENV): Remove macro.
71750         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71751         remove gt_FUNC_SETENV.
71752
71753 2007-03-03  Bruno Haible  <bruno@clisp.org>
71754
71755         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71756         ENABLE_RELOCATABLE here.
71757         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71758
71759 2007-03-03  Bruno Haible  <bruno@clisp.org>
71760
71761         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71762         * tests/test-rbtreehash_list.c: Include progname.h.
71763         (main): Call set_program_name.
71764
71765         * modules/rbtree-oset-tests (Depends-on): Add progname.
71766         * tests/test-rbtree_oset.c: Include progname.h.
71767         (main): Call set_program_name.
71768
71769         * modules/rbtree-list-tests (Depends-on): Add progname.
71770         * tests/test-rbtree_list.c: Include progname.h.
71771         (main): Call set_program_name.
71772
71773         * modules/linked-list-tests (Depends-on): Add progname.
71774         * tests/test-linked_list.c: Include progname.h.
71775         (main): Call set_program_name.
71776
71777 2007-03-03  Bruno Haible  <bruno@clisp.org>
71778
71779         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71780         All uses of __restrict changed to _Restrict_.
71781         * lib/glob_.h (__restrict): Remove macro.
71782
71783 2007-03-02  Bruno Haible  <bruno@clisp.org>
71784
71785         * modules/gettext (configure.ac): Require gettext infrastructure
71786         from version 0.16.1.
71787
71788 2007-03-02  Bruno Haible  <bruno@clisp.org>
71789
71790         * modules/linkedhash-list-tests (Depends-on): Add progname.
71791         * tests/test-linkedhash_list.c: Include progname.h.
71792         (main): Call set_program_name.
71793
71794         * modules/carray-list-tests (Depends-on): Add progname.
71795         * tests/test-carray_list.c: Include progname.h.
71796         (main): Call set_program_name.
71797
71798         * modules/avltreehash-list-tests (Depends-on): Add progname.
71799         * tests/test-avltreehash_list.c: Include progname.h.
71800         (main): Call set_program_name.
71801
71802         * modules/avltree-oset-tests (Depends-on): Add progname.
71803         * tests/test-avltree_oset.c: Include progname.h.
71804         (main): Call set_program_name.
71805
71806         * modules/avltree-list-tests (Depends-on): Add progname.
71807         * tests/test-avltree_list.c: Include progname.h.
71808         (main): Call set_program_name.
71809
71810         * modules/array-oset-tests (Depends-on): Add progname.
71811         * tests/test-array_oset.c: Include progname.h.
71812         (main): Call set_program_name.
71813
71814         * modules/array-list-tests (Depends-on): Add progname.
71815         * tests/test-array_list.c: Include progname.h.
71816         (main): Call set_program_name.
71817
71818         * modules/argp-tests (Depends-on): Add progname.
71819         * tests/test-argp.c: Include argp.h first. Include progname.h.
71820         (main): Call set_program_name.
71821
71822 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71823
71824         * doc/gnulib-tool.texi (Initial import): Reword description of
71825         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71826         limited effect even if defined after the first system include.
71827
71828 2007-03-01  Bruno Haible  <bruno@clisp.org>
71829
71830         * build-aux/config.libpath: Update to libtool-1.5.22.
71831         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71832
71833 2007-03-01  Bruno Haible  <bruno@clisp.org>
71834
71835         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71836         foo_CFLAGS.
71837         Reported by Ralf Wildenhues.
71838
71839 2007-03-01  Bruno Haible  <bruno@clisp.org>
71840
71841         * build-aux/install-reloc: Remove object files left over by some
71842         compilers.
71843         Reported by Ralf Wildenhues.
71844
71845 2007-03-01  Bruno Haible  <bruno@clisp.org>
71846
71847         * build-aux/install-reloc: Break long lines.
71848
71849 2007-03-01  Bruno Haible  <bruno@clisp.org>
71850
71851         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71852         Reported by Ralf Wildenhues.
71853
71854 2007-03-01  Bruno Haible  <bruno@clisp.org>
71855
71856         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71857         include ordering constraints.
71858
71859 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71860
71861         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71863         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71864         as another example.
71865         * lib/time_.h: Fix misspelling.
71866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71867         Require gl_HEADER_TIME_H_DEFAULTS.
71868         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71869         * m4/time_r.m4 (gl_TIME_R): Likewise.
71870         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71871
71872 2007-03-01  Bruno Haible  <bruno@clisp.org>
71873
71874         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71875         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71876
71877 2007-03-01  Jim Meyering  <jim@meyering.net>
71878
71879         * modules/xreadlink (Maintainer): Add my name.
71880         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71881
71882 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71883             Bruno Haible  <bruno@clisp.org>
71884
71885         * build-aux/install-reloc: Compile also c-ctype.c.
71886         * build-aux/relocatable.sh.in: New file.
71887         * doc/relocatable.texi: New file.
71888         * doc/relocatable-maint.texi: New file.
71889         * doc/gnulib.texi: Include relocatable-maint.texi.
71890         * lib/progreloc.c: Include unistd.h unconditionally.
71891         * lib/relocwrapper.c: Include unistd.h unconditionally.
71892         Include c-ctype.h.
71893         (add_dotbin): Use c_tolower.
71894         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71895         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71896         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71897         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71898         to m4/relocatable-lib.m4.
71899         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71900         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71901         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71902         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71903         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71904         * modules/relocatable: New file.
71905         * modules/relocatable-lib: New file.
71906         * modules/relocatable-script: New file.
71907
71908 2007-02-28  Bruno Haible  <bruno@clisp.org>
71909
71910         Import --enable-relocatable infrastructure.
71911         * build-aux/config.libpath: New file, from GNU gettext.
71912         * build-aux/install-reloc: New file, from GNU gettext.
71913         * build-aux/reloc-ldflags: New file, from GNU gettext.
71914         * lib/relocatable.h: New file, from GNU gettext.
71915         * lib/relocatable.c: New file, from GNU gettext.
71916         * lib/relocwrapper.c: New file, from GNU gettext.
71917         * m4/relocatable.m4: New file, from GNU gettext.
71918
71919 2007-02-28  Bruno Haible  <bruno@clisp.org>
71920
71921         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71922
71923         * modules/xreadlink: New file, from GNU gettext with modifications.
71924         * lib/xreadlink.c: New file, from GNU gettext.
71925         * lib/xreadlink.h: Add comments.
71926         (xreadlink): New declaration.
71927
71928         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71929         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71930         lib/xreadlink-with-size.c.
71931         (configure.ac): Remove gl_XREADLINK invocation.
71932         (Makefile.am): Augment lib_SOURCES.
71933         * m4/xreadlink.m4: Remove file.
71934         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71935         (xreadlink_with_size): Renamed from xreadink.
71936         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71937         * modules/canonicalize (Depends-on): Replace xreadlink with
71938         xreadlink-with-size.
71939         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71940
71941 2007-02-25  Jim Meyering  <jim@meyering.net>
71942
71943         * build-aux/announce-gen: When complaining about excess arguments,
71944         list them.
71945
71946 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * README: Document signed integer overflow situation more
71949         accurately.
71950
71951 2007-02-25  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71954         'a' or 'A' conversion.
71955
71956 2007-02-25  Bruno Haible  <bruno@clisp.org>
71957
71958         * modules/filename: Renamed from modules/pathname.
71959         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71960         lib/concatpath.c with lib/concat-filename.c.
71961         (Makefile.am): Update.
71962         (Include): Replace pathname.h with filename.h.
71963         * lib/filename.h: Renamed from lib/pathname.h.
71964         (concatenated_filename): Renamed from concatenated_pathname.
71965         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71966         (concatenated_filename): Renamed from concatenated_pathname.
71967         * lib/findprog.c: Include filename.h instead of pathname.h.
71968         (find_in_path): Update.
71969         * lib/javacomp.c: Include filename.h instead of pathname.h.
71970         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71971         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71972         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71973         is_oldgcj_14_13_usable, is_javac_usable): Update.
71974         * lib/javaexec.c: Include filename.h instead of pathname.h.
71975         (execute_java_class): Update.
71976         * modules/findprog: Update.
71977         * modules/javacomp: Update.
71978         * modules/javaexec: Update.
71979         * MODULES.html.sh (File system functions): Add 'filename', remove
71980         'pathname'.
71981
71982 2007-02-25  Bruno Haible  <bruno@clisp.org>
71983
71984         * modules/printf-frexpl-tests: New file.
71985         * tests/test-printf-frexpl.c: New file.
71986
71987         * modules/printf-frexpl: New file.
71988         * lib/printf-frexpl.h: New file.
71989         * lib/printf-frexpl.c: New file.
71990         * m4/printf-frexpl.m4: New file.
71991
71992 2007-02-25  Bruno Haible  <bruno@clisp.org>
71993
71994         * modules/printf-frexp-tests: New file.
71995         * tests/test-printf-frexp.c: New file.
71996
71997         * modules/printf-frexp: New file.
71998         * lib/printf-frexp.h: New file.
71999         * lib/printf-frexp.c: New file.
72000         * m4/printf-frexp.m4: New file.
72001
72002 2007-02-25  Bruno Haible  <bruno@clisp.org>
72003
72004         Assume automake >= 1.10 for the tests.
72005         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72006         * modules/arctwo-tests: Likewise.
72007         * modules/argp-tests: Likewise.
72008         * modules/avltree-list-tests: Likewise.
72009         * modules/avltree-oset-tests: Likewise.
72010         * modules/avltreehash-list-tests: Likewise.
72011         * modules/carray-list-tests: Likewise.
72012         * modules/crc-tests: Likewise.
72013         * modules/des-tests: Likewise.
72014         * modules/gc-arcfour-tests: Likewise.
72015         * modules/gc-arctwo-tests: Likewise.
72016         * modules/gc-des-tests: Likewise.
72017         * modules/gc-hmac-md5-tests: Likewise.
72018         * modules/gc-hmac-sha1-tests: Likewise.
72019         * modules/gc-md2-tests: Likewise.
72020         * modules/gc-md4-tests: Likewise.
72021         * modules/gc-md5-tests: Likewise.
72022         * modules/gc-pbkdf2-sha1-tests: Likewise.
72023         * modules/gc-rijndael-tests: Likewise.
72024         * modules/gc-sha1-tests: Likewise.
72025         * modules/gc-tests: Likewise.
72026         * modules/getaddrinfo-tests: Likewise.
72027         * modules/hmac-md5-tests: Likewise.
72028         * modules/hmac-sha1-tests: Likewise.
72029         * modules/linked-list-tests: Likewise.
72030         * modules/linkedhash-list-tests: Likewise.
72031         * modules/lock-tests: Likewise.
72032         * modules/md2-tests: Likewise.
72033         * modules/md4-tests: Likewise.
72034         * modules/md5-tests: Likewise.
72035         * modules/rbtree-list-tests: Likewise.
72036         * modules/rbtree-oset-tests: Likewise.
72037         * modules/rbtreehash-list-tests: Likewise.
72038         * modules/read-file-tests: Likewise.
72039         * modules/rijndael-tests: Likewise.
72040         * modules/stdint-tests: Likewise.
72041         * modules/tls-tests: Likewise.
72042
72043 2007-02-24  Bruno Haible  <bruno@clisp.org>
72044
72045         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72046         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72047         function; instead check whether isnan with a double argument links.
72048         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72049         function; instead check whether isnan with a 'long double' argument
72050         links.
72051         Reported by Eric Blake <ebb9@byu.net>.
72052
72053 2007-02-24  Bruno Haible  <bruno@clisp.org>
72054
72055         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72056         defined.
72057         * lib/isnanl.c: Remove all code. Just include isnan.c.
72058         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72059
72060 2007-02-25  Jim Meyering  <jim@meyering.net>
72061
72062         Avoid conflicting types for 'unsetenv' on FreeBSD.
72063         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72064         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72065         in stdlib.h.
72066
72067 2007-02-24  Bruno Haible  <bruno@clisp.org>
72068
72069         * modules/isnanl-nolibm-tests: New file.
72070         * tests/test-isnanl.c: New file.
72071
72072         * modules/isnanl-nolibm: New file.
72073         * lib/isnanl.h: New file.
72074         * lib/isnanl.c: New file.
72075         * m4/isnanl.m4: New file.
72076
72077 2007-02-24  Bruno Haible  <bruno@clisp.org>
72078
72079         * modules/isnan-nolibm-tests: New file.
72080         * tests/test-isnan.c: New file.
72081
72082         * modules/isnan-nolibm: New file.
72083         * lib/isnan.h: New file.
72084         * lib/isnan.c: New file.
72085         * m4/isnan.m4: New file.
72086
72087 2007-02-24  Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72090         assume that an exponent fits in 20 bits.
72091
72092 2007-02-24  Jim Meyering  <jim@meyering.net>
72093
72094         * m4/regex.m4: Update the description of the configure-time option,
72095         --without-included-regex, to state accurately what the defaults are,
72096         and perhaps to give people an idea why using this option is risky.
72097
72098 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72101         loops on small arguments.  This attempts to avoid the problem
72102         Bruno Haible reported for AIX 4.3.2 in
72103         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72104
72105 2007-02-23  Bruno Haible  <bruno@clisp.org>
72106
72107         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72108         Needed for help2man.
72109
72110 2007-02-23  Karl Berry  <karl@gnu.org>
72111
72112         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72113         exists, foo.h should be cvs-ignored, not committed.
72114
72115 2007-02-23  Eric Blake  <ebb9@byu.net>
72116
72117         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72118         * lib/stat-time.h (includes): Likewise.
72119         * lib/utimecmp.c (includes): Likewise.
72120         * lib/utimens.h (includes): Likewise.
72121         * lib/getdate.y (includes): Also include "timespec.h" for use
72122         internal to the module.
72123         * modules/utimens (Depends-on): Revert yesterday's patch.
72124         * modules/nanosleep (Depends-on): Add missing dependency.
72125
72126 2007-02-22  Bruno Haible  <bruno@clisp.org>
72127
72128         * lib/glob.c: Don't include getlogin_r.h.
72129
72130 2007-02-22  Jim Meyering  <jim@meyering.net>
72131
72132         * modules/utimens (Depends-on): Add timespec, required for
72133         utimens.h's inclusion of timespec.h.
72134
72135 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72136
72137         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72138         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72139         Schwab in
72140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72141         I'll try to think of a better way to fix the Solaris problem.
72142
72143         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72144         like glibc; on Solaris 10, it fails with errno == EINVAL.
72145         POSIX says the behavior is unspecified if the first argument is NULL,
72146         so play it safe and never pass NULL to the system getcwd.
72147
72148 2007-02-21  Jim Meyering  <jim@meyering.net>
72149
72150         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72151         of gettimeofday.  It would conflict with the one now always
72152         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72153         an IRIX 6.5 build failure.
72154
72155 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72156
72157         Minor fixups to port to Solaris 10 with Sun C 5.8.
72158         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72159         * modules/getcwd (Depends-on): Add dirfd.
72160         * lib/putenv.c (putenv): #undef it.
72161         (rpl_putenv): New decl.
72162         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72163
72164 2007-02-20  Bruno Haible  <bruno@clisp.org>
72165
72166         * modules/stdio-tests: New file.
72167         * tests/test-stdio.c: New file.
72168
72169         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72170         (Depends-on): Add stdio.
72171         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72172         (Include): Use <stdio.h> instead of vsnprintf.h.
72173         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72174         HAVE_DECL_VSNPRINTF.
72175         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72176
72177         * modules/snprintf (Files): Remove lib/snprintf.h.
72178         (Depends-on): Add stdio.
72179         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72180         (Include): Use <stdio.h> instead of snprintf.h.
72181         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72182         HAVE_DECL_SNPRINTF.
72183         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72184         * lib/getaddrinfo.c: Likewise.
72185
72186         * modules/stdio: New file.
72187         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72188         * lib/snprintf.h: Remove file.
72189         * lib/vsnprintf.h: Remove file.
72190         * lib/.cppi-disable: Remove snprintf.h.
72191         * m4/stdio_h.m4: New file.
72192         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72193
72194 2007-02-20  Jim Meyering  <jim@meyering.net>
72195
72196         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72197         used by e.g., mingw.  From Bruno Haible.
72198
72199 2007-02-19  Bruno Haible  <bruno@clisp.org>
72200
72201         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72202         warnings.
72203         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72204
72205 2007-02-19  Bruno Haible  <bruno@clisp.org>
72206
72207         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72208         from mingw users.
72209
72210 2007-02-19  Bruno Haible  <bruno@clisp.org>
72211
72212         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72213         warnings.
72214         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72215
72216 2007-02-19  Jim Meyering  <jim@meyering.net>
72217
72218         Don't use FD after a successful "fdopendir (fd)".
72219         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72220         Reset it by calling dirfd on the just-obtained DIR*.
72221
72222         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72223         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72224
72225 2007-02-18  Bruno Haible  <bruno@clisp.org>
72226
72227         * lib/readlink.c: Include <unistd.h>.
72228         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72229         HAVE_READLINK.
72230         * modules/readlink (Depends-on): Add unistd.
72231         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72232         (Include): Add <unistd.h>.
72233
72234         * lib/getlogin_r.h: Remove file.
72235         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72236         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72237         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72238         HAVE_DECL_GETLOGIN_R.
72239         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72241         (Include): Use <unistd.h> instead of getlogin_r.h.
72242
72243         * lib/getcwd.h: Remove file.
72244         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72245         * lib/xgetcwd.c: Likewise.
72246         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72247         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72248         * modules/getcwd (Files): Remove lib/getcwd.h.
72249         (Depends-on): Add unistd.
72250         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72251         (Include): Use <unistd.h> instad of getcwd.h.
72252
72253         * lib/ftruncate.c: Include <unistd.h> first.
72254         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72255         Set HAVE_FTRUNCATE.
72256         * modules/ftruncate (Depends-on): Add unistd.
72257         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72258
72259         * lib/fchdir.c: Include <unistd.h> first.
72260         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72262         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72263         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72264         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72265
72266         * lib/dup2.c: Include <unistd.h> first.
72267         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72268         HAVE_DUP2.
72269         * modules/dup2 (Depends-on): Add unistd.
72270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72271
72272         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72273         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72274         REPLACE_CHOWN. Don't define chown as a macro here.
72275         * modules/chown (Depends-on): Add unistd.
72276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72277
72278         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72279         Add definition for GL_LINK_WARNING.
72280         (chown, dup2): New declarations.
72281         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72282         link warning.
72283         (ftruncate): New declaration.
72284         (getcwd): New declaration, taken from old getcwd.h.
72285         (getlogin_r): New declaration, taken from old getlogin_r.h.
72286         (readlink): New declaration.
72287         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72288         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72289         (gl_PREREQ_UNISTD): Remove macro.
72290         (gl_UNISTD_MODULE_INDICATOR): New macro.
72291         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72292         many new variables. Don't set UNISTD_H.
72293         * modules/unistd (Description): Change.
72294         (Depends-on): Add link-warning.
72295         (configure.ac): Update.
72296         (Makefile.am): Create unistd.h always. Substitute many new variables
72297         into it.
72298
72299 2007-02-18  Bruno Haible  <bruno@clisp.org>
72300
72301         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72302         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72303         HAVE_GETSUBOPT.
72304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72305         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72306         * lib/getsubopt.h: Remove file.
72307         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72308         (Depends-on): Add stdlib.
72309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72310         (Includes): Use <stdlib.h> instead of getsubopt.h.
72311         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72312         Set HAVE_GETSUBOPT.
72313         * lib/getsubopt.c: Don't include getsubopt.h.
72314
72315 2007-02-18  Bruno Haible  <bruno@clisp.org>
72316
72317         * modules/fchdir (Depends-on): Add dup2.
72318
72319 2007-02-18  Bruno Haible  <bruno@clisp.org>
72320
72321         * lib/stdlib_.h: Handle glibc's special invocation convention
72322         specially.
72323
72324 2007-02-18  Bruno Haible  <bruno@clisp.org>
72325
72326         * modules/stdlib-tests: New file.
72327         * tests/test-stdlib.c: New file.
72328
72329         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72330         (Depends-on): Add stdlib.
72331         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72332         (Includes): Use <stdlib.h> instead of mkstemp.h.
72333         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72334         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72335         * lib/mkstemp.c: Don't include mkstemp.h.
72336         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72337         * lib/stdlib--.h: Don't include mkstemp.h.
72338
72339         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72340         (Depends-on): Add stdlib.
72341         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72342         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72343         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72344         HAVE_MKDTEMP.
72345         * lib/mkdtemp.c: Don't include mkdtemp.h.
72346         * lib/clean-temp.c: Don't include mkdtemp.h.
72347
72348         * modules/exit (Files): Remove lib/exit.h.
72349         (Depends-on): Add stdlib.
72350         (Makefile.am): Remove lib_SOURCES.
72351         (Include): Use <stdlib.h> instead of exit.h.
72352         * lib/argmatch.c: Don't include exit.h.
72353         * lib/execute.c: Likewise.
72354         * lib/pagealign_alloc.c: Likewise.
72355         * lib/pipe.c: Likewise.
72356         * lib/wait-process.c: Likewise.
72357         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72358         * lib/exitfail.c: Likewise.
72359         * lib/savewd.c: Likewise.
72360         * lib/xsetenv.c: Likewise.
72361
72362         * modules/stdlib: New file.
72363         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72364         and extra comments about mkstemp().
72365         * lib/exit.h: Remove file.
72366         * lib/mkdtemp.h: Remove file.
72367         * lib/mkstemp.h: Remove file.
72368         * m4/stdlib_h.m4: New file.
72369         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72370
72371 2007-02-18  Bruno Haible  <bruno@clisp.org>
72372
72373         * modules/math-tests: New file.
72374         * tests/test-math.c: New file.
72375
72376         * modules/math: New file.
72377         * modules/mathl (Files): Remove lib/mathl.h.
72378         (Depends-on): Add math.
72379         (Makefile.am): Don't mention mathl.h.
72380         (Include): Use <math.h> instead of mathl.h.
72381         * lib/math_.h: New file.
72382         * lib/mathl.h: Remove file.
72383         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72384         mathl.h.
72385         * lib/asinl.c: Likewise.
72386         * lib/atanl.c: Likewise.
72387         * lib/ceill.c: Likewise.
72388         * lib/cosl.c: Likewise.
72389         * lib/expl.c: Likewise.
72390         * lib/floorl.c: Likewise.
72391         * lib/frexpl.c: Likewise.
72392         * lib/ldexpl.c: Likewise.
72393         * lib/logl.c: Likewise.
72394         * lib/sincosl.c: Likewise.
72395         * lib/sinl.c: Likewise.
72396         * lib/sqrtl.c: Likewise.
72397         * lib/tanl.c: Likewise.
72398         * lib/trigl.c: Likewise.
72399         * m4/math_h.m4: New file.
72400         * MODULES.html.sh (Mathematics): Add math.
72401
72402 2007-02-17  Bruno Haible  <bruno@clisp.org>
72403
72404         * modules/wctype-tests: New file.
72405         * tests/test-wctype.c: New file.
72406
72407         * modules/wchar-tests: New file.
72408         * tests/test-wchar.c: New file.
72409
72410         * modules/unistd-tests: New file.
72411         * tests/test-unistd.c: New file.
72412
72413         * modules/time-tests: New file.
72414         * tests/test-time.c: New file.
72415
72416         * modules/sysexits-tests: New file.
72417         * tests/test-sysexits.c: New file.
72418
72419         * modules/sys_time-tests: New file.
72420         * tests/test-sys_time.c: New file.
72421
72422         * modules/sys_stat-tests: New file.
72423         * tests/test-sys_stat.c: New file.
72424
72425         * modules/sys_socket-tests: New file.
72426         * tests/test-sys_socket.c: New file.
72427
72428         * modules/sys_select-tests: New file.
72429         * tests/test-sys_select.c: New file.
72430
72431         * modules/string-tests: New file.
72432         * tests/test-string.c: New file.
72433
72434         * modules/stdbool-tests: New file.
72435         * tests/test-stdbool.c: New file.
72436
72437         * modules/netinet_in-tests: New file.
72438         * tests/test-netinet_in.c: New file.
72439
72440         * modules/inttypes-tests: New file.
72441         * tests/test-inttypes.c: New file.
72442
72443         * modules/fcntl-tests: New file.
72444         * tests/test-fcntl.c: New file.
72445
72446         * modules/byteswap-tests: New file.
72447         * tests/test-byteswap.c: New file.
72448
72449         * modules/arpa_inet-tests: New file.
72450         * tests/test-arpa_inet.c: New file.
72451
72452 2007-02-17  Bruno Haible  <bruno@clisp.org>
72453
72454         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72455         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72456         if the corresponding module is not enabled. Emit link warnings if
72457         the function is used nevertheless.
72458         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72459         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72460         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72461         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72462         * modules/inttypes (Depends-on): Add link-warning.
72463         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72464         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72465         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72466         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72467         * modules/imaxdiv (configure.ac): Likewise.
72468         * modules/strtoimax (configure.ac): Likewise.
72469         * modules/strtoumax (configure.ac): Likewise.
72470
72471 2007-02-17  Bruno Haible  <bruno@clisp.org>
72472
72473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72474         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72475         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72476         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72477
72478 2007-02-17  Bruno Haible  <bruno@clisp.org>
72479
72480         * modules/link-warning: New file.
72481         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72482         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72483         * modules/string (Depends-on): Add link-warning.
72484         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72485         string.h.
72486         * MODULES.html.sh (Support for building libraries and executables): Add
72487         link-warning.
72488
72489 2007-02-17  Bruno Haible  <bruno@clisp.org>
72490
72491         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72492         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72493         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72494         long lines.
72495
72496 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72497             Bruno Haible  <bruno@clisp.org>
72498
72499         * modules/tmpfile: New file.
72500         * lib/tmpfile.c: New file.
72501         * m4/tmpfile.m4: New file.
72502         * MODULES.html.sh (func_all_modules): New section "Input/output".
72503
72504 2007-02-15  Bruno Haible  <bruno@clisp.org>
72505
72506         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72507         (supports_delete_on_close): New function.
72508         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72509
72510 2007-02-14  Bruno Haible  <bruno@clisp.org>
72511
72512         * modules/mbspcasecmp-tests: New file.
72513         * tests/test-mbspcasecmp.sh: New file.
72514         * tests/test-mbspcasecmp.c: New file.
72515
72516         New module mbspcasecmp.
72517         * modules/mbspcasecmp: New file.
72518         * lib/mbspcasecmp.c: New file.
72519         * lib/string_.h (strncasecmp): Change warning message.
72520         (mbspcasecmp): New declaration.
72521         * m4/mbspcasecmp.m4: New file.
72522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72523         GNULIB_MBSPCASECMP.
72524         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72525         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72526
72527 2007-02-14  Bruno Haible  <bruno@clisp.org>
72528
72529         * modules/mbsncasecmp-tests: New file.
72530         * tests/test-mbsncasecmp.sh: New file.
72531         * tests/test-mbsncasecmp.c: New file.
72532
72533         New module mbsncasecmp.
72534         * modules/mbsncasecmp: New file.
72535         * lib/mbsncasecmp.c: New file.
72536         * lib/string_.h (mbsncasecmp): New declaration.
72537         * m4/mbsncasecmp.m4: New file.
72538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72539         GNULIB_MBSNCASECMP.
72540         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72541         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72542
72543 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72546         Verify that it doesn't overlap with our flags.
72547         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72548         do not have the desired effect in multibyte locales; instead, use
72549         mbscasecmp.
72550         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72551         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72552         we don't require GNU fnmatch ourselves (if our users require it, they
72553         should do so explicitly).
72554
72555         Fix regex code so it doesn't rely on strcasecmp.
72556         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72557         Otherwise, include gnulib's langinfo.h.
72558         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72559         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72560         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72561         * modules/regex (FILES): Remove m4/codeset.m4.
72562         (Depends-on): Add localcharset.  Remove strcase.
72563
72564 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72565
72566         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72567         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72568
72569 2007-02-13  Bruno Haible  <bruno@clisp.org>
72570
72571         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72572         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72573
72574 2007-02-12  Bruno Haible  <bruno@clisp.org>
72575
72576         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72577         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72578         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72579         time warning rather than a link error.
72580
72581 2007-02-12  Bruno Haible  <bruno@clisp.org>
72582
72583         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72584         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72586
72587 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72590         args, not 2.
72591
72592 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72593
72594         New module 'time', so that apps can include <time.h> as per
72595         POSIX and GNU instead of separate include files like time_r.h
72596         and timegm.h.  This implementation tries out a simpler approach
72597         for replacing decls in standard include files (as compared to
72598         the string module), somewhat as an experiment.
72599
72600         * config/srclist.txt: Comment out mktime.c for now.
72601         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72602         since it doesn't apply any more.  Use generic wording instead.
72603         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72604         'time'.
72605         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72606         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72607         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72608         Don't include <sys/types.h>; no longer needed since we assume C89.
72609         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72610         * lib/strftime.c: Likewise.
72611         * lib/time_r.c: Likewise.
72612         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72613         * lib/nanosleep.c: Include <time.h> first, to check interface.
72614         * lib/strptime.c: Likewise.
72615         * lib/time_r.c: Likewise.
72616         * lib/timegm.c: Likewise.
72617         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72618         needed.
72619         * lib/timegm.c: Don't include timegm.h; no longer needed.
72620         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72621         time.h now handles any problems in that area.
72622         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72623         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72624         that time.h defines struct timespec.
72625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72626         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72627         handles that.
72628         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72629         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72630         needed.  Set REPLACE_LOCALTIME.
72631         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72632         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72633         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72634         nanosleep; time_h.m4 now does that.  Don't require
72635         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72636         module handles this now.
72637         * modules/getdate (Depends-on): Remove timespec.  Add time.
72638         * modules/nanosleep (Depends-on): Likewise.
72639         * modules/stat-time (Depends-on): Likewise.
72640         * modules/nanosleep (Include): Include time.h, not timespec.h.
72641         * modules/strptime (Files): Remove lib/strptime.h.
72642         (Depends-on): Add extensions, time.
72643         (Include): Include time.h, not strptime.h.
72644         * modules/time_r (Files): Remove lib/time_r.h.
72645         (Depends-on): Add time.
72646         (Include): Include time.h, not time_r.h.
72647         * modules/timegm: Likewise.
72648         * modules/timespec (Description): Now does timespec-related decls
72649         of our own, instead of struct timespec itself.
72650         (Depends-on): Add time; remove extensions.
72651         (Maintainer): Add self.
72652         * modules/utimecmp (Depends-on): Add time; remove timespec.
72653         * modules/utimens (Depends-on): Likewise.
72654         * modules/xnanosleep (Depends-on): Likewise.
72655
72656 2007-02-11  Bruno Haible  <bruno@clisp.org>
72657
72658         * lib/c-strstr.c: Include allocsa.h.
72659         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72660         * lib/c-strcasestr.c: Include allocsa.h.
72661         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72662         * lib/strcasestr.c: Include allocsa.h.
72663         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72664         * lib/mbsstr.c: Include allocsa.h.
72665         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72666         allocsa/freesa instead of malloc/free.
72667         * lib/mbscasestr.c: Include allocsa.h.
72668         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72669         allocsa/freesa instead of malloc/free.
72670         * modules/c-strstr (Depends-on): Add allocsa.
72671         * modules/c-strcasestr (Depends-on): Likewise.
72672         * modules/strcasestr (Depends-on): Likewise.
72673         * modules/mbsstr (Depends-on): Likewise.
72674         * modules/mbscasestr (Depends-on): Likewise.
72675
72676 2007-02-11  Bruno Haible  <bruno@clisp.org>
72677
72678         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72679
72680         * modules/mbsspn-tests: New file.
72681         * tests/test-mbsspn.sh: New file.
72682         * tests/test-mbsspn.c: New file.
72683
72684 2007-02-11  Bruno Haible  <bruno@clisp.org>
72685
72686         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72687
72688         * modules/mbspbrk-tests: New file.
72689         * tests/test-mbspbrk.sh: New file.
72690         * tests/test-mbspbrk.c: New file.
72691
72692 2007-02-11  Bruno Haible  <bruno@clisp.org>
72693
72694         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72695         unneeded cast.
72696
72697         * modules/mbscspn-tests: New file.
72698         * tests/test-mbscspn.sh: New file.
72699         * tests/test-mbscspn.c: New file.
72700
72701 2007-02-11  Bruno Haible  <bruno@clisp.org>
72702
72703         * modules/mbscasecmp-tests: New file.
72704         * tests/test-mbscasecmp.sh: New file.
72705         * tests/test-mbscasecmp.c: New file.
72706
72707 2007-02-11  Bruno Haible  <bruno@clisp.org>
72708
72709         Ensure O(n) worst-case complexity of mbscasestr.
72710         * lib/mbscasestr.c: Include stdbool.h.
72711         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72712         functions.
72713         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72714         the bookkeeping indicates that it's worth it.
72715         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72716
72717         * modules/mbscasestr-tests: New file.
72718         * tests/test-mbscasestr1.c: New file.
72719         * tests/test-mbscasestr2.sh: New file.
72720         * tests/test-mbscasestr2.c: New file.
72721         * tests/test-mbscasestr3.sh: New file.
72722         * tests/test-mbscasestr3.c: New file.
72723         * tests/test-mbscasestr4.sh: New file.
72724         * tests/test-mbscasestr4.c: New file.
72725         * m4/locale-tr.m4: New file.
72726
72727 2007-02-11  Bruno Haible  <bruno@clisp.org>
72728
72729         Ensure O(n) worst-case complexity of mbsstr.
72730         * lib/mbsstr.c: Include stdbool.h.
72731         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72732         functions.
72733         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72734         bookkeeping indicates that it's worth it.
72735         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72736
72737         * modules/mbsstr-tests: New file.
72738         * tests/test-mbsstr1.c: New file.
72739         * tests/test-mbsstr2.sh: New file.
72740         * tests/test-mbsstr2.c: New file.
72741         * tests/test-mbsstr3.sh: New file.
72742         * tests/test-mbsstr3.c: New file.
72743         * m4/locale-fr.m4: New file.
72744
72745 2007-02-11  Bruno Haible  <bruno@clisp.org>
72746
72747         * lib/mbsrchr.c (mbsrchr): Fix bug.
72748
72749         * modules/mbsrchr-tests: New file.
72750         * tests/test-mbsrchr.sh: New file.
72751         * tests/test-mbsrchr.c: New file.
72752
72753 2007-02-11  Bruno Haible  <bruno@clisp.org>
72754
72755         * lib/mbschr.c (mbschr): Fix bug.
72756
72757         * modules/mbschr-tests: New file.
72758         * tests/test-mbschr.sh: New file.
72759         * tests/test-mbschr.c: New file.
72760         * m4/locale-zh.m4: New file.
72761
72762 2007-02-11  Bruno Haible  <bruno@clisp.org>
72763
72764         Support for copying multibyte string iterators.
72765         * lib/mbiter.h: Include <string.h>.
72766         (mbiter_multi_copy): New function.
72767         (mbi_copy): New macro.
72768         * lib/mbuiter.h: Include <string.h>.
72769         (mbuiter_multi_copy): New function.
72770         (mbui_copy): New macro.
72771
72772 2007-02-11  Bruno Haible  <bruno@clisp.org>
72773
72774         New module mbslen.
72775         * modules/mbslen: New file.
72776         * lib/mbslen.c: New file.
72777         * lib/string_.h (mbslen): New declaration.
72778         * m4/mbslen.m4: New file.
72779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72780         GNULIB_MBSLEN.
72781         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72782         * MODULES.html.sh (Internationalization functions): Add mbslen.
72783
72784 2007-02-11  Bruno Haible  <bruno@clisp.org>
72785
72786         Ensure O(n) worst-case complexity of strcasestr substitute.
72787         * lib/strcasestr.c: Include stdbool.h.
72788         (knuth_morris_pratt): New function.
72789         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72790         bookkeeping indicates that it's worth it.
72791         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72792
72793         * modules/strcasestr-tests: New file.
72794         * tests/test-strcasestr.c: New file.
72795
72796 2007-02-11  Bruno Haible  <bruno@clisp.org>
72797
72798         Ensure O(n) worst-case complexity of c_strcasestr.
72799         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72800         (knuth_morris_pratt): New function.
72801         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72802         the bookkeeping indicates that it's worth it.
72803         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72804
72805         * modules/c-strcasestr-tests: New file.
72806         * tests/test-c-strcasestr.c: New file.
72807
72808 2007-02-11  Bruno Haible  <bruno@clisp.org>
72809
72810         Ensure O(n) worst-case complexity of c_strstr.
72811         * lib/c-strstr.c: Include stdbool.h, string.h.
72812         (knuth_morris_pratt): New function.
72813         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72814         bookkeeping indicates that it's worth it.
72815         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72816
72817         * lib/c-strstr.c: Complete rewrite for maintainability.
72818
72819         * modules/c-strstr-tests: New file.
72820         * tests/test-c-strstr.c: New file.
72821
72822 2007-02-11  Bruno Haible  <bruno@clisp.org>
72823
72824         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72825         5.2.1 and earlier, whereby \055 was treated just like the range
72826         delimiter '-'.
72827         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72828
72829 2007-02-08  Bruno Haible  <bruno@clisp.org>
72830
72831         * modules/regex (Depends-on): Add stdbool.
72832         Reported by Dalibor Topic <robilad@kaffe.org>.
72833
72834 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72837         Prefer returning from main to exiting from it.
72838         Remove unnecessary parens after sizeof.
72839
72840 2007-02-05  Bruno Haible  <bruno@clisp.org>
72841
72842         New module mbssep.
72843         * modules/mbssep: New file.
72844         * lib/mbssep.c: New file.
72845         * lib/string_.h (strsep): Add a conditional link warning.
72846         (mbssep): New declaration.
72847         * m4/mbssep.m4: New file.
72848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72849         GNULIB_MBSSEP.
72850         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72851         * MODULES.html.sh (Internationalization functions): Add mbssep.
72852
72853 2007-02-05  Bruno Haible  <bruno@clisp.org>
72854
72855         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72856         Optimize search in case of 1 delimiter.
72857
72858 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72859
72860         * lib/acl.h: Include sys/types.h before sys/acl.h.
72861
72862 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72863
72864         Merge upstream fix for glibc bugzilla #3957:
72865
72866         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72867
72868         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72869         bit for RE_HAT_LISTS_NOT_NEWLINE.
72870         (build_charclass_op): Remove bogus comment.
72871
72872 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72873
72874         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72875
72876 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72879         * lib/memmem.c [!defined _LIBC]: Include config.h.
72880
72881 2007-02-04  Bruno Haible  <bruno@clisp.org>
72882
72883         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72884         warning message.
72885
72886 2007-02-04  Bruno Haible  <bruno@clisp.org>
72887
72888         New module mbstok_r.
72889         * modules/mbstok_r: New file.
72890         * lib/mbstok_r.c: New file.
72891         * lib/string_.h (strtok_r): Change argument names to match the
72892         comments. Add a conditional link warning.
72893         (mbstok_r): New declaration.
72894         * m4/mbstok_r.m4: New file.
72895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72896         GNULIB_MBSTOK_R.
72897         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72898         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72899
72900 2007-02-04  Bruno Haible  <bruno@clisp.org>
72901
72902         New module mbsspn.
72903         * modules/mbsspn: New file.
72904         * lib/mbsspn.c: New file.
72905         * lib/string_.h (strspn): Add a conditional link warning.
72906         (mbsspn): New declaration.
72907         * m4/mbsspn.m4: New file.
72908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72909         GNULIB_MBSSPN.
72910         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72911         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72912
72913 2007-02-04  Bruno Haible  <bruno@clisp.org>
72914
72915         New module mbspbrk.
72916         * modules/mbspbrk: New file.
72917         * lib/mbspbrk.c: New file.
72918         * lib/string_.h (strpbrk): Add a conditional link warning.
72919         (mbspbrk): New declaration.
72920         * m4/mbspbrk.m4: New file.
72921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72922         GNULIB_MBSPBRK.
72923         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72924         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72925
72926 2007-02-04  Bruno Haible  <bruno@clisp.org>
72927
72928         New module mbscspn.
72929         * modules/mbscspn: New file.
72930         * lib/mbscspn.c: New file.
72931         * lib/string_.h (strcspn): Add a conditional link warning.
72932         (mbscspn): New declaration.
72933         * m4/mbscspn.m4: New file.
72934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72935         GNULIB_MBSCSPN.
72936         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72937         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72938
72939 2007-02-04  Bruno Haible  <bruno@clisp.org>
72940
72941         New module mbscasestr, reduced goal of strcasestr.
72942         * modules/mbscasestr: New file.
72943         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72944         (mbscasestr): Renamed from strcasestr.
72945         * lib/strcasestr.c: Don't include mbuiter.h.
72946         (strcasestr): Remove support for multibyte locales.
72947         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72948         Change the conditional link warning.
72949         (mbscasestr): New declaration.
72950         * m4/mbscasestr.m4: New file.
72951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72952         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72953         REPLACE_STRCASESTR.
72954         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72956         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72957         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72958         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72959         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72960         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72961         (Depends-on): Remove mbuiter.
72962         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72963
72964 2007-02-04  Bruno Haible  <bruno@clisp.org>
72965
72966         Simplify handling of strncasecmp.
72967         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72968         the conditional link warning.
72969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72970         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72971         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72972         * modules/strcase (configure.ac): Don't invoke
72973         gl_STRING_MODULE_INDICATOR.
72974         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72975
72976 2007-02-04  Bruno Haible  <bruno@clisp.org>
72977
72978         New module mbscasecmp, reduced goal of strcasecmp.
72979         * modules/mbscasecmp: New file.
72980         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72981         (mbscasecmp): Renamed from strcasecmp.
72982         * lib/strcasecmp.c: Don't include mbuiter.h.
72983         (strcasecmp): Remove support for multibyte locales.
72984         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72985         Change the conditional link warning.
72986         (mbscasecmp): New declaration.
72987         * m4/mbscasecmp.m4: New file.
72988         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72989         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72990         REPLACE_STRCASECMP.
72991         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72992         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72993         GNULIB_MBSCASECMP.
72994         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72995         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72996         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72997         (Depends-on): Remove mbuiter.
72998         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72999
73000 2007-02-04  Bruno Haible  <bruno@clisp.org>
73001
73002         New module mbsstr. Remove module strstr.
73003         * modules/mbsstr: New file.
73004         * modules/strstr: Remove file.
73005         * lib/mbsstr.c: Renamed from lib/strstr.c.
73006         (mbsstr): Renamed from strstr.
73007         * lib/string_.h (strstr): Remove declaration. Change the conditional
73008         link warning.
73009         (mbsstr): New declaration.
73010         * m4/mbsstr.m4: New file.
73011         * m4/strstr.m4: Remove file.
73012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73013         REPLACE_STRSTR.
73014         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73015         Don't initialize GNULIB_STRSTR.
73016         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73017         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73018         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73019         (Support for systems lacking ANSI C 89): Remove strstr.
73020
73021 2007-02-04  Bruno Haible  <bruno@clisp.org>
73022
73023         New module mbsrchr.
73024         * modules/mbsrchr: New file.
73025         * lib/mbsrchr.c: New file.
73026         * lib/string_.h (strrchr): Add a conditional link warning.
73027         (mbsrchr): New declaration.
73028         * m4/mbsrchr.m4: New file.
73029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73030         GNULIB_MBSRCHR.
73031         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73032         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73033
73034 2007-02-04  Bruno Haible  <bruno@clisp.org>
73035
73036         New module mbschr.
73037         * modules/mbschr: New file.
73038         * lib/mbschr.c: New file.
73039         * lib/string_.h (strchr): Add a conditional link warning.
73040         (mbschr): New declaration.
73041         * m4/mbschr.m4: New file.
73042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73043         GNULIB_MBSCHR.
73044         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73045         * MODULES.html.sh (Internationalization functions): Add mbschr.
73046
73047 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73050
73051         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73052
73053 2007-02-04  Bruno Haible  <bruno@clisp.org>
73054
73055         New module description section 'configure.ac-early'.
73056         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73057         (func_get_autoconf_early_snippet): New function.
73058         (func_import, func_create_testdir): Use it. Remove special cases for
73059         modules 'extensions' and 'lock'.
73060         * modules/extensions (configure.ac-early): Require
73061         gl_USE_SYSTEM_EXTENSIONS.
73062         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73063
73064 2007-02-04  Bruno Haible  <bruno@clisp.org>
73065
73066         Make use of gcj-4.3's -fsource and -ftarget option.
73067         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73068         and if so try the options -fsource and -ftarget.
73069         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73070         source_version, ftarget_option, target_version arguments.
73071         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73072         (is_envjavac_oldgcj_14_14_usable): Renamed from
73073         is_envjavac_gcj_14_14_usable.
73074         (is_envjavac_oldgcj_14_13_usable): Renamed from
73075         is_envjavac_gcj_14_13_usable.
73076         (is_gcj_present): Update.
73077         (is_gcj_43, is_gcj43_usable): New functions.
73078         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73079         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73080         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73081         try the options -fsource and -ftarget.
73082
73083 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73084
73085         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73086         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73087         larger value.
73088
73089 2007-02-03  Jim Meyering  <jim@meyering.net>
73090
73091         Give tools a better chance to allocate space for very large buffers.
73092         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73093
73094         Make pwd and readlink work also when run with an unreadable parent dir
73095         on systems with openat support.
73096         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73097         provided getcwd function, even when we have openat support.
73098         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73099
73100 2007-02-02  Bruno Haible  <bruno@clisp.org>
73101
73102         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73103         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73104         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73105         portability problems if one of these functions is only used on specific
73106         platforms.
73107         Reported by Paul Eggert.
73108
73109 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73110
73111         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73112         is causing more trouble than it's curing.
73113         * lib/regex_internal.h (__mempcpy): Remove.
73114         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73115         (and make the code a tad smaller to boot).
73116         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73117
73118 2007-02-02  Jim Meyering  <jim@meyering.net>
73119
73120         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73121         section, not in the Makefile.am: one.
73122
73123 2007-02-02  Eric Blake  <ebb9@byu.net>
73124
73125         * lib/strchrnul.c: Always include config.h first.
73126
73127         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73128         gnulib strstr is not necessary here.
73129
73130 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73131
73132         * m4/socklen.m4: Fix typo.
73133
73134 2007-02-02  Eric Blake  <ebb9@byu.net>
73135
73136         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73137         * modules/netinet_in (Makefile.am): Likewise.
73138
73139 2007-02-01  Bruno Haible  <bruno@clisp.org>
73140
73141         * lib/string_.h (GL_LINK_WARNING): New macro.
73142         (strcasecmp, strstr, strcasestr): If provided by the system,
73143         conditionally define as a macro that leads to a warning instead of to
73144         an error.
73145         (strncasecmp): Conditionally define as a macro that leads to a warning.
73146
73147 2007-02-01  Karl Berry  <karl@gnu.org>
73148
73149         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73150
73151 2007-02-01  Bruno Haible  <bruno@clisp.org>
73152
73153         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73154         renamings.
73155
73156 2007-02-01  Eric Blake  <ebb9@byu.net>
73157
73158         * modules/regex (Depends-on): Revert dependence on mempcpy.
73159         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73160         module's definition of mempcpy.
73161         Reported by Paul Eggert.
73162
73163 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73164
73165         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73166         the symbol XYZ before redefining it.  This fixes a problem with
73167         programs that don't use XYZ, when compiled on systems that define
73168         XYZ to something else.
73169
73170 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73173         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73174         writeable to group or other and (2) is intended to have a special
73175         mode bit that is set or cleared.  In such a case, the directory
73176         should be neither group- nor other-writeable until the special
73177         mode bits are right.
73178
73179 2007-01-31  Eric Blake  <ebb9@byu.net>
73180
73181         * modules/mountlist (Depends-on): Add strstr.
73182
73183         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73184         bug.
73185         * modules/string (Makefile.am): Remove redundant replacement.
73186         * modules/regex (Depends-on): Add mempcpy.
73187
73188 2007-01-31  Bruno Haible  <bruno@clisp.org>
73189
73190         New module description field 'Link'.
73191         * gnulib-tool (func_usage): Document --extract-link-directive.
73192         (sed_extract_prog): Recognize 'Link' directive.
73193         (func_get_link_directive): New function.
73194         (func_import): Show summary of link directives.
73195         Handle --extract-link-directive option.
73196         * modules/acl (Link): New section.
73197         * modules/clock-time (Link): New section.
73198         * modules/euidaccess (Link): New section.
73199         * modules/gettext (Link): New section.
73200         * modules/iconv (Link): New section.
73201         * modules/lock (Link): New section.
73202         * modules/nanosleep (Link): New section.
73203         * modules/readline (Link): New section.
73204
73205 2007-01-27  Bruno Haible  <bruno@clisp.org>
73206
73207         Enforce the use of gnulib modules for unportable <string.h> functions.
73208         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73209         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73210         (gl_HEADER_STRING_H_BODY): Require it.
73211         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73212         the symbol XYZ to one that gives a link error.
73213         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73214         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73215         * modules/mempcpy (configure.ac): Likewise.
73216         * modules/memrchr (configure.ac): Likewise.
73217         * modules/stpcpy (configure.ac): Likewise.
73218         * modules/stpncpy (configure.ac): Likewise.
73219         * modules/strcase (configure.ac): Likewise.
73220         * modules/strcasestr (configure.ac): Likewise.
73221         * modules/strchrnul (configure.ac): Likewise.
73222         * modules/strdup (configure.ac): Likewise.
73223         * modules/strndup (configure.ac): Likewise.
73224         * modules/strnlen (configure.ac): Likewise.
73225         * modules/strpbrk (configure.ac): Likewise.
73226         * modules/strsep (configure.ac): Likewise.
73227         * modules/strstr (configure.ac): Likewise.
73228         * modules/strtok_r (configure.ac): Likewise.
73229
73230 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73231
73232         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73233
73234 2007-01-30  Jim Meyering  <jim@meyering.net>
73235
73236         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73237
73238 2007-01-29  Bruno Haible  <bruno@clisp.org>
73239
73240         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73241         * lib/execute.c: Likewise.
73242         * lib/pipe.c: Likewise.
73243         * lib/printf-args.h: Likewise.
73244         * lib/printf-args.c: Likewise.
73245         * lib/printf-parse.c: Likewise.
73246         * lib/vasnprintf.c: Likewise.
73247
73248 2007-01-29  Eric Blake  <ebb9@byu.net>
73249
73250         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73251         declaration.
73252
73253 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73254
73255         * lib/strptime.h (strptime): Use 'restrict' for args where
73256         POSIX requires this.
73257         * lib/strptime.c (strptime): Likewise.
73258         Change license notice from LGPL to GPL, since gnulib-tool will
73259         change this as needed.
73260         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73261         defined.
73262         Include "strptime.h" first, to check interface.
73263         Do not #undef _LIBC and _NL_CURRENT.
73264         Do not include <stdlib.h>; no longer needed.
73265         Include "time_r.h" and declare ptime_locale_status
73266         only if _LIBC is not defined.
73267         (__P): Remove unused macro.
73268         (match_string): Bring back glibc version, but use it only if _LIBC
73269         is defined.
73270         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73271         Remove unnecessary assertion and abort() call.
73272         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73273         * m4/strptime.m4: Fix serial number comment.
73274         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73275         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73276         (Depends-on): Add time_r.
73277
73278 2007-01-29  Bruno Haible  <bruno@clisp.org>
73279
73280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73281         strptime.
73282         * modules/strptime (Depends-on): Add stdbool.
73283         * lib/strptime.h: Include <time.h> always. Add comments.
73284
73285 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73286
73287         * modules/strptime: New file.
73288         * lib/strptime.h: New file.
73289         * lib/strptime.c: New file.
73290         * m4/strptime.m4: New file.
73291
73292 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73293
73294         * MODULES.html.sh: New module mpsort.
73295         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73296
73297         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73298         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73300         All uses changed.
73301         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73302         All uses changed.
73303         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73304         to _Restrict_.
73305         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73306         the parameter matches the prototype.
73307
73308 2007-01-28  Jim Meyering  <jim@meyering.net>
73309
73310         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73311         sys/time.h here, reverting that part of the previous patch:
73312         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73313
73314 2007-01-28  Bruno Haible  <bruno@clisp.org>
73315
73316         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73317         value of $(SYS_TIME_H).
73318         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73319         remove it conditionally, too. [added by Jim Meyering]
73320         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73321         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73322         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73323         GETTIMEOFDAY_REPLACEMENT to 1.
73324
73325 2007-01-28  Bruno Haible  <bruno@clisp.org>
73326
73327         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73328         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73330         Set UNISTD_H instead of UNISTD_H2.
73331         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73332
73333 2007-01-28  Bruno Haible  <bruno@clisp.org>
73334
73335         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73336         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73337
73338 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73339
73340         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73341         (func_create_testdir): Ensure C locale for `grep' and `tr'
73342         character ranges.
73343         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73344         ACLOCAL_AMFLAGS parsing state machine.
73345
73346 2007-01-27  Bruno Haible  <bruno@clisp.org>
73347
73348         * modules/unistr/base: Update.
73349
73350 2007-01-27  Bruno Haible  <bruno@clisp.org>
73351
73352         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73353         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73354         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73355         modules/unistr/u32-mbtouc.
73356         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73357         * lib/unistr.h: Update.
73358         * lib/linebreak.c: Update.
73359         * modules/unistr/u32-mbtouc: Renamed from
73360         modules/unistr/u32-mbtouc-safe.
73361         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73362         * lib/unistr.h: Update.
73363         * lib/unistr/u32-to-u8.c: Update.
73364         * lib/unistr/u32-to-u16.c: Update.
73365
73366 2007-01-27  Bruno Haible  <bruno@clisp.org>
73367
73368         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73369         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73370         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73371         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73372         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73373         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73374         modules/unistr/u16-mbtouc.
73375         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73376         * lib/unistr.h: Update.
73377         * lib/linebreak.c: Update.
73378         * modules/linebreak: Update.
73379         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73380         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73381         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73382         * modules/unistr/u16-mbtouc: Renamed from
73383         modules/unistr/u16-mbtouc-safe.
73384         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73385         * lib/unistr.h: Update.
73386         * lib/unistr/u16-to-u8.c: Update.
73387         * modules/unistr/u16-to-u8: Update.
73388         * lib/unistr/u16-to-u32.c: Update.
73389         * modules/unistr/u16-to-u32: Update.
73390
73391 2007-01-27  Bruno Haible  <bruno@clisp.org>
73392
73393         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73394         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73395         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73396         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73397         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73398         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73399         modules/unistr/u8-mbtouc.
73400         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73401         * lib/unistr.h: Update.
73402         * lib/striconveh.c: Update.
73403         * modules/striconveh: Update.
73404         * lib/linebreak.c: Update.
73405         * modules/linebreak: Update.
73406         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73407         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73408         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73409         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73410         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73411         * lib/unistr.h: Update.
73412         * lib/striconveh.c: Update.
73413         * modules/striconveh: Update.
73414         * lib/unistr/u8-to-u16.c: Update.
73415         * modules/unistr/u8-to-u16: Update.
73416         * lib/unistr/u8-to-u32.c: Update.
73417         * modules/unistr/u8-to-u32: Update.
73418
73419 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73420
73421         Sync from Libtool.
73422         * lib/argz.c: Do not include strings.h nor memory.h, include
73423         string.h unconditionally.  Patch by Simon Josefsson.
73424
73425 2007-01-27  Bruno Haible  <bruno@clisp.org>
73426
73427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73428         from gl_HEADER_STRING_H_BODY.
73429         (gl_HEADER_STRING_H_BODY): Require it.
73430         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73431         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73432         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73433         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73434         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73435         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73437         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73438         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73439         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73440         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73441         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73442         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73443         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73444         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73445
73446 2007-01-27  Bruno Haible  <bruno@clisp.org>
73447
73448         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73449         check_PROGRAMS into noinst_PROGRAMS.
73450         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73451         check_PROGRAMS in this case.
73452         (func_import): Set for_test to false.
73453         (func_create_testdir): Set for_test to true.
73454
73455 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73456             Bruno Haible  <bruno@clisp.org>
73457
73458         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73459         (Depends-on): Add string.
73460         (Includes): Use <string.h> instead of strcasestr.h.
73461         * modules/string (Makefile.am): Also substitute the value of
73462         REPLACE_STRCASESTR.
73463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73464         assume strcasestr is declared in <string.h> not <strings.h>. Also
73465         set REPLACE_STRCASESTR.
73466         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73467         REPLACE_STRCASESTR.
73468         * lib/strcasestr.h: Remove file.
73469         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73470         * lib/string_.h (strcasestr): New declaration.
73471
73472 2007-01-27  Bruno Haible  <bruno@clisp.org>
73473
73474         * lib/string_.h: Use 'extern'.
73475
73476 2007-01-27  Jim Meyering  <jim@meyering.net>
73477
73478         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73479         of set-but-not-used local, "q".
73480
73481         * lib/mempcpy.c: Include <config.h> before <string.h>.
73482         This fixes a compilation error on HP-UX, due to the system's
73483         "restrict"-using mempcpy prototype.
73484
73485 2007-01-26  Bruno Haible  <bruno@clisp.org>
73486
73487         Small optimization.
73488         * lib/javacomp.c: Include c-strstr.h.
73489          (is_envjavac_gcj): Use c_strstr instead of strstr.
73490         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73491
73492 2007-01-26  Bruno Haible  <bruno@clisp.org>
73493
73494         * MODULES.html.sh (Unicode string functions): Add the new modules.
73495
73496         * modules/uniconv/u32-strconv-to-locale: New file.
73497         * lib/uniconv/u32-strconv-to-locale.c: New file.
73498
73499         * modules/uniconv/u16-strconv-to-locale: New file.
73500         * lib/uniconv/u16-strconv-to-locale.c: New file.
73501
73502         * modules/uniconv/u8-strconv-to-locale: New file.
73503         * lib/uniconv/u8-strconv-to-locale.c: New file.
73504
73505         * modules/uniconv/u32-strconv-from-locale: New file.
73506         * lib/uniconv/u32-strconv-from-locale.c: New file.
73507
73508         * modules/uniconv/u16-strconv-from-locale: New file.
73509         * lib/uniconv/u16-strconv-from-locale.c: New file.
73510
73511         * modules/uniconv/u8-strconv-from-locale: New file.
73512         * lib/uniconv/u8-strconv-from-locale.c: New file.
73513
73514         * modules/uniconv/u32-strconv-to-enc: New file.
73515         * lib/uniconv/u32-strconv-to-enc.c: New file.
73516         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73517         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73518
73519         * modules/uniconv/u16-strconv-to-enc: New file.
73520         * lib/uniconv/u16-strconv-to-enc.c: New file.
73521         * lib/uniconv/u-strconv-to-enc.h: New file.
73522         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73523         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73524
73525         * modules/uniconv/u8-strconv-to-enc: New file.
73526         * lib/uniconv/u8-strconv-to-enc.c: New file.
73527         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73528         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73529
73530         * modules/uniconv/u32-strconv-from-enc: New file.
73531         * lib/uniconv/u32-strconv-from-enc.c: New file.
73532         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73533         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73534
73535         * modules/uniconv/u16-strconv-from-enc: New file.
73536         * lib/uniconv/u16-strconv-from-enc.c: New file.
73537         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73538         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73539
73540         * modules/uniconv/u8-strconv-from-enc: New file.
73541         * lib/uniconv/u8-strconv-from-enc.c: New file.
73542         * lib/uniconv/u-strconv-from-enc.h: New file.
73543         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73544         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73545
73546         * modules/uniconv/u32-conv-from-enc: New file.
73547         * lib/uniconv/u32-conv-from-enc.c: New file.
73548         * modules/uniconv/u32-conv-from-enc-tests: New file.
73549         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73550
73551         * modules/uniconv/u16-conv-from-enc: New file.
73552         * lib/uniconv/u16-conv-from-enc.c: New file.
73553         * lib/uniconv/u-conv-from-enc.h: New file.
73554         * modules/uniconv/u16-conv-from-enc-tests: New file.
73555         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73556
73557         * modules/uniconv/u8-conv-from-enc: New file.
73558         * lib/uniconv/u8-conv-from-enc.c: New file.
73559         * modules/uniconv/u8-conv-from-enc-tests: New file.
73560         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73561
73562         * modules/uniconv/base: New file.
73563         * lib/uniconv.h: New file.
73564
73565 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         * doc/gnulib-tool.texi (Initial import): Update to match current
73568         behavior with strdup module.
73569         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73570         * lib/memmem.h: Remove; all uses removed.  This is now done
73571         by <string.h>.
73572         * lib/mempcpy.h: Likewise.
73573         * lib/memrchr.h: Likewise.
73574         * lib/stpcpy.h: Likewise.
73575         * lib/stpncpy.h: Likewise.
73576         * lib/strcase.h: Likewise.
73577         * lib/strchrnul.h: Likewise.
73578         * lib/strdup.h: Likewise.
73579         * lib/strndup.h: Likewise.
73580         * lib/strnlen.h: Likewise.
73581         * lib/strpbrk.h: Likewise.
73582         * lib/strsep.h: Likewise.
73583         * lib/strstr.h: Likewise.
73584         * lib/strtok_r.h: Likewise.
73585         * lib/string_.h: New file.
73586         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73587         Rely on <string.h> instead.
73588         * lib/canon-host.c: Likewise.
73589         * lib/chdir-long.c: Likewise.
73590         * lib/concatpath.c: Likewise.
73591         * lib/exclude.c: Likewise.
73592         * lib/fchdir.c: Likewise.
73593         * lib/getaddrinfo.c: Likewise.
73594         * lib/getcwd.c: Likewise.
73595         * lib/getsubopt.c: Likewise.
73596         * lib/glob.c: Likewise.
73597         * lib/hard-locale.c: Likewise.
73598         * lib/iconvme.c: Likewise.
73599         * lib/javacomp.c: Likewise.
73600         * lib/mempcpy.c: Likewise.
73601         * lib/memrchr.c: Likewise.
73602         * lib/regex_internal.h: Likewise.
73603         * lib/stpncpy.c: Likewise.
73604         * lib/strcasecmp.c: Likewise.
73605         * lib/strchrnul.c: Likewise.
73606         * lib/strdup.c: Likewise.
73607         * lib/striconv.c: Likewise.
73608         * lib/striconveh.c: Likewise.
73609         * lib/striconveha.c: Likewise.
73610         * lib/strncasecmp.c: Likewise.
73611         * lib/strndup.c: Likewise.
73612         * lib/strnlen.c: Likewise.
73613         * lib/strsep.c: Likewise.
73614         * lib/strstr.c: Likewise.
73615         * lib/strtok_r.c: Likewise.
73616         * lib/userspec.c: Likewise.
73617         * lib/w32spawn.h: Likewise.
73618         * lib/xstrndup.c: Likewise.
73619         * lib/mountlist.c (strstr): Remove decl.
73620         * m4/string_h.m4: New file.
73621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73622         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73623         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73624         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73625         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73626         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73627         Set REPLACE_STRCASECMP if necessary.
73628         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73629         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73630         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73631         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73632         HAVE_DECL_STRDUP if necessary.
73633         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73634         since gl_FUNC_STRNDUP does that now.
73635         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73636         Check for decl here...
73637         (gl_PREREQ_STRNLEN): ... not here.
73638         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73639         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73640         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73642         necessary.
73643         * modules/string: New file.
73644         * modules/memmem (Files): Remove special-purpose include file.
73645         (Depends-on): Add string.
73646         (Include): Include <string.h>, not the removed file.
73647         * modules/mempcpy: Likewise.
73648         * modules/memrchr: Likewise.
73649         * modules/stpcpy: Likewise.
73650         * modules/stpncpy: Likewise.
73651         * modules/strcase: Likewise.
73652         * modules/strchrnul: Likewise.
73653         * modules/strdup: Likewise.
73654         * modules/strndup: Likewise.
73655         * modules/strnlen: Likewise.
73656         * modules/strpbrk: Likewise.
73657         * modules/strsep: Likewise.
73658         * modules/strstr: Likewise.
73659         * modules/strtok_r: Likewise.
73660         * tests/test-dirname.c: Don't include "strdup.h", since
73661         <string.h> now suffices.
73662         * tests/test-memmem.c: Don't include "memmem.h", since
73663         <string.h> now suffices.
73664
73665 2007-01-25  Bruno Haible  <bruno@clisp.org>
73666
73667         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73668         *resultp is 0.
73669
73670         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73671         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73672         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73673         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73674
73675         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73676         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73677         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73678         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73679         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73680         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73681
73682 2007-01-24  Bruno Haible  <bruno@clisp.org>
73683
73684         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73685         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73686         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73687         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73688         gl_FUNC_FTS_CORE.
73689         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73690         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73691         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73692         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73693         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73694         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73695         gl_FUNC_FCHOWNAT.
73696         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73697         gl_FUNC_STRFTIME.
73698         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73699         Reported by Ralf Wildenhues.
73700
73701 2007-01-24  Bruno Haible  <bruno@clisp.org>
73702
73703         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73704         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73705         gl_GETADDRINFO.
73706         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73707         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73708         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73709
73710 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73713         Don't use 'exit'; just return from 'main'.
73714         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73715
73716         * lib/fnmatch_.h: Readjust white space and comments to match
73717         glibc, to avoid spurious diffs.
73718
73719 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73720
73721         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73722         2004-12-01 change by Jakub Jelinek, since this code won't compile
73723         if !LIBC.  Problem reported by Bob Proulx.
73724
73725 2007-01-23  Bruno Haible  <bruno@clisp.org>
73726
73727         * lib/striconveh.c: Include c-strcaseeq.h.
73728         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73729         * modules/striconveh (Depends-on): Add c-strcaseeq.
73730
73731 2007-01-23  Bruno Haible  <bruno@clisp.org>
73732
73733         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73734
73735         * modules/c-strcaseeq: New file.
73736         * lib/c-strcaseeq.h: New file.
73737
73738         * modules/streq: New file.
73739         * lib/streq.h: New file.
73740
73741 2007-01-23  Bruno Haible  <bruno@clisp.org>
73742
73743         * modules/striconveha-tests: New file.
73744         * tests/test-striconveha.c: New file.
73745
73746         * lib/striconveha.h: Include <stdbool.h>.
73747         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73748         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73749         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73750         (mem_iconveha): New function.
73751         (str_iconveha_notranslit): Renamed from str_iconveha.
73752         (str_iconveha): New function.
73753         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73754         c-strcase.
73755
73756 2007-01-23  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73759         encodings without forgiving before trying any encoding with handler.
73760         (str_iconveha): Try all encodings without forgiving before trying any
73761         encoding with handler.
73762
73763 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         Import the following changes from libc.
73766
73767         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73768
73769         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73770
73771         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73772
73773         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73774         normal_bracket label.
73775
73776         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73777
73778         [BZ #361]
73779         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73780         to normal_bracket after fetching the next character.
73781
73782 2007-01-22  Bruno Haible  <bruno@clisp.org>
73783
73784         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73785         argument.
73786         * lib/striconveh.c (iconv_carefully_1): New function.
73787         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73788         argument.
73789         (str_cd_iconveh): Update.
73790         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73791         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73792         * tests/test-striconveh.c (MAGIC): New macro.
73793         (new_offsets): New function.
73794         (main): Test call with and without offsets.
73795
73796 2007-01-22  Bruno Haible  <bruno@clisp.org>
73797
73798         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73799         * modules/sys_select (Makefile.am): Likewise.
73800         * modules/sys_socket (Makefile.am): Likewise.
73801         * modules/sys_time (Makefile.am): Likewise.
73802
73803 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         * modules/gettimeofday (License): Change from GPL to LGPL, since
73806         gettimeofday is a library function.
73807
73808 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73809
73810         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73811
73812 2007-01-21  Bruno Haible  <bruno@clisp.org>
73813
73814         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73815
73816 2007-01-21  Bruno Haible  <bruno@clisp.org>
73817
73818         * modules/striconveha: New file.
73819         * lib/striconveha.h: New file.
73820         * lib/striconveha.c: New file.
73821         * MODULES.html.sh (Internationalization functions): Add striconveha.
73822         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73823         string.
73824         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73825
73826 2007-01-21  Bruno Haible  <bruno@clisp.org>
73827
73828         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73829         * lib/striconveh.c (str_iconveh): Likewise.
73830
73831 2007-01-21  Bruno Haible  <bruno@clisp.org>
73832
73833         * lib/striconveh.h (mem_iconveh): New declaration.
73834         * lib/striconveh.c (mem_iconveh): New function.
73835         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73836
73837 2007-01-21  Bruno Haible  <bruno@clisp.org>
73838
73839         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73840
73841         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73842         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73843         original result buffer.
73844         (str_cd_iconveh): Update.
73845         * tests/test-striconveh.c (main): Update.
73846
73847         * lib/striconv.h (mem_cd_iconv): Change specification.
73848         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73849         result buffer.
73850         (str_cd_iconv): Update.
73851         * tests/test-striconv.c (main): Update.
73852
73853 2007-01-21  Bruno Haible  <bruno@clisp.org>
73854
73855         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73856
73857 2007-01-20  Jim Meyering  <jim@meyering.net>
73858
73859         * lib/userspec.c (parse_with_separator): If a user or group string
73860         starts with "+", skip the corresponding name-to-ID look-up, since
73861         such a look-up must fail: user and group names may not include "+".
73862
73863 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73866         since we now assume the sys_time module.
73867         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73868         check for sys/time.h; no longer needed.
73869         * modules/poll (Depends-on): Depend on sys_time.
73870
73871 2007-01-18  Bruno Haible  <bruno@clisp.org>
73872
73873         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73874         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73875
73876         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73877         gettimeofday.
73878
73879         * tests/test-gettimeofday.c: Include <time.h>.
73880         (dummy): Remove variable.
73881
73882         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73883         gl_HEADER_SYS_TIME_H.
73884         (gl_HEADER_SYS_TIME_H): New macro.
73885
73886         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73887         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73889         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73890         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73891         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73892         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73893         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73894         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73895         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73896         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73897
73898         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73899         last change; it caused a compilation error when cross-compiling to
73900         Cygwin.
73901
73902 2007-01-18  Jim Meyering  <jim@meyering.net>
73903
73904         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73905         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73906         than the race-prone "test -d sys || mkdir sys".
73907         (configure.ac): Use AC_PROG_MKDIR_P.
73908         * modules/sys_select: Likewise.
73909         * modules/sys_socket: Likewise.
73910         * modules/sys_time: Likewise.
73911
73912 2007-01-18  Eric Blake  <ebb9@byu.net>
73913
73914         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73915         replace gettimeofday.
73916         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73917         name, to avoid infinite recursion.
73918
73919 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73922         module sys_time.
73923         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73924         assume timespec.h defines struct timeval.
73925         * lib/settime.c: Likewise.
73926         * lib/utimens.c: Likewise.
73927         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73928         since we now assume the gettimeofday module.
73929         * lib/tempname.c (__gen_tempname): Likewise.
73930         * lib/gettimeofday.h: Remove.
73931         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73932         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73933         Include <time.h>, for 'time()'.
73934         (localtime_buffer_addr): Also use this workaround if
73935         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73936         to simplify the uses.  All uses changed.
73937         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73938         that #undef is inside {}, and 'const' follows type name consistently.
73939         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73940         (gettimeofday): Do not use the maximum possible value for
73941         tv->tv_usec, since that might break usages other than ls.c.
73942         Instead, we'll leave ls.c alone.  This undoes today's patch
73943         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73944         we've never observed the problem but might as well keep the
73945         canary.
73946         * lib/nanosleep.c: Include timespec.h first, for interface check.
73947         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73948         now assume the sys_time module.
73949         * lib/tempname.c: Likewise.
73950         * lib/timespec.h: Likewise.
73951         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73952         needed.
73953         * lib/strftime.c: Likewise.
73954         * lib/timespec.h: Likewise.
73955         * lib/posixtm.c: Include posixtm.h first, for interface check.
73956         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73957         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73958         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73959         * lib/sys_time_.h: New file.
73960         * lib/timespec.h (struct timespec): Use long int, not long.
73961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73962         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73963         Remove obsolescent call to AC_HEADER_TIME.
73964         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73966         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73967         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73968         Likewise.
73969         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73970         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73972         into the sys_time module.  Check for gettimeofday just once.
73973         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73974         for gettimeofday signature to just check the signature.  Merely
73975         compile it, since linking doesn't test signature.  Improve test for
73976         whether gettimeofday.o is actually needed.
73977         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73978         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73979         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73980         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73981         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73982         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73983         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73984         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73985         than worrying about sys/time.h.
73986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73987         Don't bother worrying about TIME_WITH_SYS_TIME.
73988         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73989         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73990         * m4/sys_time_h.m4: New file.
73991         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73992         Don't include sys/time.h.  Return from main rather than exiting.
73993         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73994         all uses changed.
73995         * modules/gethrxtime (Depends-on): Add sys_time.
73996         * modules/gettime (Depends-on): Likewise.
73997         * modules/gettimeofday (Depends-on): Likewise.
73998         * modules/nanosleep (Depends-on): Likewise.
73999         * modules/settime (Depends-on): Likewise.
74000         * modules/tempname (Depends-on): Likewise.
74001         * modules/utimens (Depends-on): Likewise.
74002         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74003         (Include): Change back to <sys/time.h>.
74004         (Maintainer): Add self.
74005         * modules/sys_time: New file.
74006         * modules/tempname (Depends-on): Add gettimeofday.
74007         * tests/test-gettimeofday.c: Include <sys/time.h>
74008         rather than gettimeofday.h.
74009
74010 2007-01-17  Bruno Haible  <bruno@clisp.org>
74011
74012         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74013         the license default to GPL.
74014         (func_create_testdir): Don't complain if a module is LGPL and its
74015         tests module depends on GPLed modules.
74016
74017 2007-01-17  Bruno Haible  <bruno@clisp.org>
74018
74019         * lib/gettimeofday.c (gettimeofday): Add code for the case
74020         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74021         maximum possible value for tv->tv_usec, rather than the minimum one.
74022
74023 2005-10-08  Martin Lambers  <marlam@marlam.de>
74024 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74025 2007-01-16  Bruno Haible  <bruno@clisp.org>
74026
74027         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74028         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74029         gl_FUNC_GETTIMEOFDAY.
74030         (Include): Add gettimeofday.h.
74031         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74032         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74033         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74034         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74035         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74036         * lib/gettimeofday.h: New file.
74037         * lib/gettimeofday.c: Include <sys/timeb.h>.
74038         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74039         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74040         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74041         fall back on time().
74042
74043         * tests/test-gettimeofday.c: New file.
74044         * modules/gettimeofday-tests: New file.
74045
74046 2007-01-16  Eric Blake  <ebb9@byu.net>
74047
74048         * modules/fnmatch (Depends-on): Depend on wchar.
74049         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74050         * m4/fnmatch.m4: Likewise.
74051         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74052         * m4/mbchar.m4: Likewise.
74053         * modules/mbswidth (Depends-on): Depend on wchar.
74054         * lib/mbswidth.c: Assume <wchar.h>.
74055         * m4/mbswidth.m4: Likewise.
74056         * modules/quotearg (Depends-on): Depend on wchar.
74057         * lib/quotearg.c: Assume <wchar.h>.
74058         * m4/quotearg.m4: Likewise.
74059         * modules/regex (Depends-on): Depend on wchar.
74060         * lib/regex_internal.h: Assume <wchar.h>.
74061         * m4/regex.m4: Likewise.
74062         * modules/stdint (Depends-on): Depend on wchar.
74063         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74064         * m4/stdint.m4: Likewise.
74065         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74066         * modules/strftime (Depends-on): Depend on wchar.
74067         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74068         * modules/strtol (Depends-on): Depend on wchar.
74069         * lib/strtol.c: Assume <wchar.h>.
74070         * modules/wcwidth (Depends-on): Depend on wchar.
74071         * lib/wcwidth.h: Assume <wchar.h>.
74072         * m4/wcwidth.m4: Likewise.
74073
74074 2007-01-16  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/csharpexec-script: New, created from...
74077         * modules/csharpexec: ... this.
74078
74079 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74080
74081         * modules/javaexec-script: New, created from...
74082         * modules/javaexec: ... this.
74083
74084 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74085
74086         * modules/poll (Dependencies): Add sys_select.
74087
74088 2007-01-15  Jim Meyering  <jim@meyering.net>
74089
74090         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74091         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74092         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74093         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74094
74095 2007-01-15  Bruno Haible  <bruno@clisp.org>
74096
74097         * modules/striconveh: New file.
74098         * lib/striconveh.h: New file.
74099         * lib/striconveh.c: New file.
74100         * MODULES.html.sh (Internationalization functions): Add striconveh.
74101
74102         * modules/striconveh-tests: New file.
74103         * tests/test-striconveh.c: New file.
74104
74105 2007-01-15  Bruno Haible  <bruno@clisp.org>
74106
74107         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74108         not from GNU libiconv or GNU libc.
74109
74110 2007-01-15  Bruno Haible  <bruno@clisp.org>
74111
74112         * doc/gnulib-intro.texi (Copyright): Explain the different license
74113         terms for module descriptions, autoconf macros, tests, documentation.
74114
74115 2007-01-14  Bruno Haible  <bruno@clisp.org>
74116
74117         * modules/striconv-tests: New file.
74118         * tests/test-striconv.c: New file.
74119
74120 2007-01-14  Bruno Haible  <bruno@clisp.org>
74121
74122         * modules/iconv-tests: New file.
74123         * tests/test-iconv.c: New file.
74124
74125 2007-01-14  Bruno Haible  <bruno@clisp.org>
74126
74127         * gnulib-tool (func_get_license): For test modules, use the license of
74128         the main module.
74129
74130 2007-01-14  Bruno Haible  <bruno@clisp.org>
74131
74132         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74133         if iconv is found to exist.
74134
74135 2007-01-14  Bruno Haible  <bruno@clisp.org>
74136
74137         * modules/c-ctype-tests: New file.
74138         * tests/test-c-ctype.c: New file.
74139
74140 2007-01-14  Bruno Haible  <bruno@clisp.org>
74141
74142         * modules/binary-io-tests: New file.
74143         * tests/test-binary-io.sh: New file.
74144         * tests/test-binary-io.c: New file.
74145
74146 2007-01-14  Bruno Haible  <bruno@clisp.org>
74147
74148         * modules/array-oset-tests: New file.
74149         * tests/test-array_oset.c: New file.
74150
74151 2007-01-14  Bruno Haible  <bruno@clisp.org>
74152
74153         * modules/array-list-tests: New file.
74154         * tests/test-array_list.c: New file.
74155
74156 2007-01-14  Bruno Haible  <bruno@clisp.org>
74157
74158         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74159         and make.
74160         Reported by Simon Josefsson in
74161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74162
74163 2007-01-14  Bruno Haible  <bruno@clisp.org>
74164
74165         * modules/allocsa-tests: New file.
74166         * tests/test-allocsa.c: New file.
74167
74168 2007-01-14  Bruno Haible  <bruno@clisp.org>
74169
74170         * modules/fchdir (Depends-on): Add absolute-header.
74171         * modules/unistd (Depends-on): Likewise.
74172
74173 2006-12-30  Bruno Haible  <bruno@clisp.org>
74174
74175         * modules/fchdir: New file.
74176         * modules/unistd (Files): Add lib/unistd_.h.
74177         (Makefile.am): Generate unistd.h from unistd_.h.
74178         * lib/fchdir.c: New file.
74179         * lib/dirent_.h: New file.
74180         * lib/unistd_.h: New file.
74181         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74182         * m4/fchdir.m4: New file.
74183         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74184         (gl_HEADER_UNISTD): Invoke it.
74185         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74186         function.
74187         * lib/backupfile.c (opendir, closedir): Undefine.
74188         * lib/chown.c (open, close): Undefine.
74189         * lib/clean-temp.c (open, close): Undefine.
74190         * lib/copy-file.c (open, close): Undefine.
74191         * lib/execute.c (open, close): Undefine.
74192         * lib/fsusage.c (open, close): Undefine.
74193         * lib/gc-gnulib.c (open, close): Undefine.
74194         * lib/getcwd.c (opendir, closedir): Undefine.
74195         * lib/glob.c (opendir, closedir): Undefine.
74196         * lib/javacomp.c (open, close): Undefine.
74197         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74198         * lib/openat-proc.c (open, close): Undefine.
74199         * lib/pagealign_alloc.c (open, close): Undefine.
74200         * lib/pipe.c (open, close): Undefine.
74201         * lib/progreloc.c (open, close): Undefine.
74202         * lib/savedir.c (opendir, closedir): Undefine.
74203         * lib/utime.c (open, close): Undefine.
74204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74205
74206 2007-01-10  Bruno Haible  <bruno@clisp.org>
74207
74208         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74209
74210 2007-01-12  Eric Blake  <ebb9@byu.net>
74211
74212         Provide a robust <wchar.h>.  Further simplifications are now
74213         possible in other modules, but not included here.
74214         * modules/wchar: New module.
74215         * m4/wchar.m4: New file.
74216         * lib/wchar_.h: Likewise.
74217         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74218         of the new module.
74219         * MODULES.html.sh (Extended multibyte and wide character utilities):
74220         New section.
74221
74222 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74225         to a reasonable default for memory allocation.
74226         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74227         file system that reports garbage st_size values for symlinks.
74228         Problem reported by Liyang Hu.
74229
74230 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74231
74232         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74233         Emacs .#* auto-save files).
74234
74235 2007-01-11  Bruno Haible  <bruno@clisp.org>
74236
74237         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74238         directory.
74239
74240 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         Use @...@ consistently in lib/wctype_.h.
74243         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74244         on it being set to 1 or 0.
74245         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74246         go back to AC_SUBSTing it.
74247         * modules/wctype (Makefile.am): Undo previous change.
74248
74249 2007-01-10  Eric Blake  <ebb9@byu.net>
74250
74251         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74252         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74253         * modules/wctype (Makefile.am): Likewise.
74254         Reported by Chris McGuire.
74255
74256 2007-01-10  Jim Meyering  <jim@meyering.net>
74257
74258         fts.c: a small readability/maintainability improvement
74259         * lib/fts.c (fts_read): Make this code slightly more readable and
74260         maintainable by hoisting the "sp->fts_cur = p" assignments to
74261         immediately follow the statements that set P.  Derived from
74262         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74263
74264 2007-01-10  Eric Blake  <ebb9@byu.net>
74265
74266         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74267         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74269         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74270         Reported by Chris McGuire.
74271
74272 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74273
74274         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74275         in sed script.
74276
74277 2007-01-09  Bruno Haible  <bruno@clisp.org>
74278
74279         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74280         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74281         variables.
74282         (func_module): Use them.
74283
74284 2007-01-09  Bruno Haible  <bruno@clisp.org>
74285
74286         * modules/unistr/base: New file.
74287         * lib/unistr.h: New file.
74288
74289         * modules/unistr/u8-to-u16: New file.
74290         * lib/unistr/u8-to-u16.c: New file.
74291
74292         * modules/unistr/u8-to-u32: New file.
74293         * lib/unistr/u8-to-u32.c: New file.
74294
74295         * modules/unistr/u16-to-u8: New file.
74296         * lib/unistr/u16-to-u8.c: New file.
74297
74298         * modules/unistr/u16-to-u32: New file.
74299         * lib/unistr/u16-to-u32.c: New file.
74300
74301         * modules/unistr/u32-to-u8: New file.
74302         * lib/unistr/u32-to-u8.c: New file.
74303
74304         * modules/unistr/u32-to-u16: New file.
74305         * lib/unistr/u32-to-u16.c: New file.
74306
74307         * modules/unistr/u8-check: New file.
74308         * modules/unistr/u16-check: New file.
74309         * modules/unistr/u32-check: New file.
74310         * lib/unistr/u8-check.c: New file.
74311         * lib/unistr/u16-check.c: New file.
74312         * lib/unistr/u32-check.c: New file.
74313
74314         * modules/unistr/u8-chr: New file.
74315         * modules/unistr/u16-chr: New file.
74316         * modules/unistr/u32-chr: New file.
74317         * lib/unistr/u8-chr.c: New file.
74318         * lib/unistr/u16-chr.c: New file.
74319         * lib/unistr/u32-chr.c: New file.
74320
74321         * modules/unistr/u8-cmp: New file.
74322         * modules/unistr/u16-cmp: New file.
74323         * modules/unistr/u32-cmp: New file.
74324         * lib/unistr/u8-cmp.c: New file.
74325         * lib/unistr/u16-cmp.c: New file.
74326         * lib/unistr/u32-cmp.c: New file.
74327
74328         * modules/unistr/u8-cpy: New file.
74329         * modules/unistr/u16-cpy: New file.
74330         * modules/unistr/u32-cpy: New file.
74331         * lib/unistr/u8-cpy.c: New file.
74332         * lib/unistr/u16-cpy.c: New file.
74333         * lib/unistr/u32-cpy.c: New file.
74334         * lib/unistr/u-cpy.h: New file.
74335
74336         * modules/unistr/u8-cpy-alloc: New file.
74337         * modules/unistr/u16-cpy-alloc: New file.
74338         * modules/unistr/u32-cpy-alloc: New file.
74339         * lib/unistr/u8-cpy-alloc.c: New file.
74340         * lib/unistr/u16-cpy-alloc.c: New file.
74341         * lib/unistr/u32-cpy-alloc.c: New file.
74342         * lib/unistr/u-cpy-alloc.h: New file.
74343
74344         * modules/unistr/u8-endswith: New file.
74345         * modules/unistr/u16-endswith: New file.
74346         * modules/unistr/u32-endswith: New file.
74347         * lib/unistr/u8-endswith.c: New file.
74348         * lib/unistr/u16-endswith.c: New file.
74349         * lib/unistr/u32-endswith.c: New file.
74350         * lib/unistr/u-endswith.h: New file.
74351
74352         * modules/unistr/u8-mblen: New file.
74353         * modules/unistr/u16-mblen: New file.
74354         * modules/unistr/u32-mblen: New file.
74355         * lib/unistr/u8-mblen.c: New file.
74356         * lib/unistr/u16-mblen.c: New file.
74357         * lib/unistr/u32-mblen.c: New file.
74358
74359         * modules/unistr/u8-mbtouc: New file.
74360         * modules/unistr/u16-mbtouc: New file.
74361         * modules/unistr/u32-mbtouc: New file.
74362         * lib/unistr/u8-mbtouc.c: New file.
74363         * lib/unistr/u16-mbtouc.c: New file.
74364         * lib/unistr/u32-mbtouc.c: New file.
74365
74366         * modules/unistr/u8-mbtouc-safe: New file.
74367         * modules/unistr/u16-mbtouc-safe: New file.
74368         * modules/unistr/u32-mbtouc-safe: New file.
74369         * lib/unistr/u8-mbtouc-safe.c: New file.
74370         * lib/unistr/u16-mbtouc-safe.c: New file.
74371         * lib/unistr/u32-mbtouc-safe.c: New file.
74372
74373         * modules/unistr/u8-move: New file.
74374         * modules/unistr/u16-move: New file.
74375         * modules/unistr/u32-move: New file.
74376         * lib/unistr/u8-move.c: New file.
74377         * lib/unistr/u16-move.c: New file.
74378         * lib/unistr/u32-move.c: New file.
74379         * lib/unistr/u-move.h: New file.
74380
74381         * modules/unistr/u8-next: New file.
74382         * modules/unistr/u16-next: New file.
74383         * modules/unistr/u32-next: New file.
74384         * lib/unistr/u8-next.c: New file.
74385         * lib/unistr/u16-next.c: New file.
74386         * lib/unistr/u32-next.c: New file.
74387
74388         * modules/unistr/u8-prev: New file.
74389         * modules/unistr/u16-prev: New file.
74390         * modules/unistr/u32-prev: New file.
74391         * lib/unistr/u8-prev.c: New file.
74392         * lib/unistr/u16-prev.c: New file.
74393         * lib/unistr/u32-prev.c: New file.
74394
74395         * modules/unistr/u8-set: New file.
74396         * modules/unistr/u16-set: New file.
74397         * modules/unistr/u32-set: New file.
74398         * lib/unistr/u8-set.c: New file.
74399         * lib/unistr/u16-set.c: New file.
74400         * lib/unistr/u32-set.c: New file.
74401         * lib/unistr/u-set.h: New file.
74402
74403         * modules/unistr/u8-startswith: New file.
74404         * modules/unistr/u16-startswith: New file.
74405         * modules/unistr/u32-startswith: New file.
74406         * lib/unistr/u8-startswith.c: New file.
74407         * lib/unistr/u16-startswith.c: New file.
74408         * lib/unistr/u32-startswith.c: New file.
74409         * lib/unistr/u-startswith.h: New file.
74410
74411         * modules/unistr/u8-stpcpy: New file.
74412         * modules/unistr/u16-stpcpy: New file.
74413         * modules/unistr/u32-stpcpy: New file.
74414         * lib/unistr/u8-stpcpy.c: New file.
74415         * lib/unistr/u16-stpcpy.c: New file.
74416         * lib/unistr/u32-stpcpy.c: New file.
74417         * lib/unistr/u-stpcpy.h: New file.
74418
74419         * modules/unistr/u8-stpncpy: New file.
74420         * modules/unistr/u16-stpncpy: New file.
74421         * modules/unistr/u32-stpncpy: New file.
74422         * lib/unistr/u8-stpncpy.c: New file.
74423         * lib/unistr/u16-stpncpy.c: New file.
74424         * lib/unistr/u32-stpncpy.c: New file.
74425         * lib/unistr/u-stpncpy.h: New file.
74426
74427         * modules/unistr/u8-strcat: New file.
74428         * modules/unistr/u16-strcat: New file.
74429         * modules/unistr/u32-strcat: New file.
74430         * lib/unistr/u8-strcat.c: New file.
74431         * lib/unistr/u16-strcat.c: New file.
74432         * lib/unistr/u32-strcat.c: New file.
74433         * lib/unistr/u-strcat.h: New file.
74434
74435         * modules/unistr/u8-strchr: New file.
74436         * modules/unistr/u16-strchr: New file.
74437         * modules/unistr/u32-strchr: New file.
74438         * lib/unistr/u8-strchr.c: New file.
74439         * lib/unistr/u16-strchr.c: New file.
74440         * lib/unistr/u32-strchr.c: New file.
74441
74442         * modules/unistr/u8-strcmp: New file.
74443         * modules/unistr/u16-strcmp: New file.
74444         * modules/unistr/u32-strcmp: New file.
74445         * lib/unistr/u8-strcmp.c: New file.
74446         * lib/unistr/u16-strcmp.c: New file.
74447         * lib/unistr/u32-strcmp.c: New file.
74448
74449         * modules/unistr/u8-strcpy: New file.
74450         * modules/unistr/u16-strcpy: New file.
74451         * modules/unistr/u32-strcpy: New file.
74452         * lib/unistr/u8-strcpy.c: New file.
74453         * lib/unistr/u16-strcpy.c: New file.
74454         * lib/unistr/u32-strcpy.c: New file.
74455         * lib/unistr/u-strcpy.h: New file.
74456
74457         * modules/unistr/u8-strcspn: New file.
74458         * modules/unistr/u16-strcspn: New file.
74459         * modules/unistr/u32-strcspn: New file.
74460         * lib/unistr/u8-strcspn.c: New file.
74461         * lib/unistr/u16-strcspn.c: New file.
74462         * lib/unistr/u32-strcspn.c: New file.
74463         * lib/unistr/u-strcspn.h: New file.
74464
74465         * modules/unistr/u8-strdup: New file.
74466         * modules/unistr/u16-strdup: New file.
74467         * modules/unistr/u32-strdup: New file.
74468         * lib/unistr/u8-strdup.c: New file.
74469         * lib/unistr/u16-strdup.c: New file.
74470         * lib/unistr/u32-strdup.c: New file.
74471         * lib/unistr/u-strdup.h: New file.
74472
74473         * modules/unistr/u8-strlen: New file.
74474         * modules/unistr/u16-strlen: New file.
74475         * modules/unistr/u32-strlen: New file.
74476         * lib/unistr/u8-strlen.c: New file.
74477         * lib/unistr/u16-strlen.c: New file.
74478         * lib/unistr/u32-strlen.c: New file.
74479         * lib/unistr/u-strlen.h: New file.
74480
74481         * modules/unistr/u8-strmblen: New file.
74482         * modules/unistr/u16-strmblen: New file.
74483         * modules/unistr/u32-strmblen: New file.
74484         * lib/unistr/u8-strmblen.c: New file.
74485         * lib/unistr/u16-strmblen.c: New file.
74486         * lib/unistr/u32-strmblen.c: New file.
74487
74488         * modules/unistr/u8-strmbtouc: New file.
74489         * modules/unistr/u16-strmbtouc: New file.
74490         * modules/unistr/u32-strmbtouc: New file.
74491         * lib/unistr/u8-strmbtouc.c: New file.
74492         * lib/unistr/u16-strmbtouc.c: New file.
74493         * lib/unistr/u32-strmbtouc.c: New file.
74494
74495         * modules/unistr/u8-strncat: New file.
74496         * modules/unistr/u16-strncat: New file.
74497         * modules/unistr/u32-strncat: New file.
74498         * lib/unistr/u8-strncat.c: New file.
74499         * lib/unistr/u16-strncat.c: New file.
74500         * lib/unistr/u32-strncat.c: New file.
74501         * lib/unistr/u-strncat.h: New file.
74502
74503         * modules/unistr/u8-strncmp: New file.
74504         * modules/unistr/u16-strncmp: New file.
74505         * modules/unistr/u32-strncmp: New file.
74506         * lib/unistr/u8-strncmp.c: New file.
74507         * lib/unistr/u16-strncmp.c: New file.
74508         * lib/unistr/u32-strncmp.c: New file.
74509
74510         * modules/unistr/u8-strncpy: New file.
74511         * modules/unistr/u16-strncpy: New file.
74512         * modules/unistr/u32-strncpy: New file.
74513         * lib/unistr/u8-strncpy.c: New file.
74514         * lib/unistr/u16-strncpy.c: New file.
74515         * lib/unistr/u32-strncpy.c: New file.
74516         * lib/unistr/u-strncpy.h: New file.
74517
74518         * modules/unistr/u8-strnlen: New file.
74519         * modules/unistr/u16-strnlen: New file.
74520         * modules/unistr/u32-strnlen: New file.
74521         * lib/unistr/u8-strnlen.c: New file.
74522         * lib/unistr/u16-strnlen.c: New file.
74523         * lib/unistr/u32-strnlen.c: New file.
74524         * lib/unistr/u-strnlen.h: New file.
74525
74526         * modules/unistr/u8-strpbrk: New file.
74527         * modules/unistr/u16-strpbrk: New file.
74528         * modules/unistr/u32-strpbrk: New file.
74529         * lib/unistr/u8-strpbrk.c: New file.
74530         * lib/unistr/u16-strpbrk.c: New file.
74531         * lib/unistr/u32-strpbrk.c: New file.
74532         * lib/unistr/u-strpbrk.h: New file.
74533
74534         * modules/unistr/u8-strrchr: New file.
74535         * modules/unistr/u16-strrchr: New file.
74536         * modules/unistr/u32-strrchr: New file.
74537         * lib/unistr/u8-strrchr.c: New file.
74538         * lib/unistr/u16-strrchr.c: New file.
74539         * lib/unistr/u32-strrchr.c: New file.
74540
74541         * modules/unistr/u8-strspn: New file.
74542         * modules/unistr/u16-strspn: New file.
74543         * modules/unistr/u32-strspn: New file.
74544         * lib/unistr/u8-strspn.c: New file.
74545         * lib/unistr/u16-strspn.c: New file.
74546         * lib/unistr/u32-strspn.c: New file.
74547         * lib/unistr/u-strspn.h: New file.
74548
74549         * modules/unistr/u8-strstr: New file.
74550         * modules/unistr/u16-strstr: New file.
74551         * modules/unistr/u32-strstr: New file.
74552         * lib/unistr/u8-strstr.c: New file.
74553         * lib/unistr/u16-strstr.c: New file.
74554         * lib/unistr/u32-strstr.c: New file.
74555         * lib/unistr/u-strstr.h: New file.
74556
74557         * modules/unistr/u8-strtok: New file.
74558         * modules/unistr/u16-strtok: New file.
74559         * modules/unistr/u32-strtok: New file.
74560         * lib/unistr/u8-strtok.c: New file.
74561         * lib/unistr/u16-strtok.c: New file.
74562         * lib/unistr/u32-strtok.c: New file.
74563         * lib/unistr/u-strtok.h: New file.
74564
74565         * modules/unistr/u8-uctomb: New file.
74566         * modules/unistr/u16-uctomb: New file.
74567         * modules/unistr/u32-uctomb: New file.
74568         * lib/unistr/u8-uctomb.c: New file.
74569         * lib/unistr/u16-uctomb.c: New file.
74570         * lib/unistr/u32-uctomb.c: New file.
74571
74572         * MODULES.html.sh (Unicode string functions): Add the new modules.
74573
74574 2007-01-08  Bruno Haible  <bruno@clisp.org>
74575
74576         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74577         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74578         subdirectories.
74579
74580 2007-01-08  Karl Berry  <karl@gnu.org>
74581
74582         * doc/error.texi: mention that main() fns must set program_name
74583         when progname is used.
74584
74585 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74588         WCTYPE_H is empty, for the benefit of builds from non-distclean
74589         directories.  Problem reported by Eric Blake in
74590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74591
74592 2007-01-08  Bruno Haible  <bruno@clisp.org>
74593
74594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74595         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74596         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74597         PROVIDE_CANONICALIZE_FILENAME_MODE.
74598         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74599
74600 2007-01-08  Bruno Haible  <bruno@clisp.org>
74601
74602         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74603         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74604         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74605         * lib/fts.c: Likewise.
74606         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74607
74608 2006-12-25  Bruno Haible  <bruno@clisp.org>
74609
74610         * modules/utf8-ucs4-safe: New file.
74611         * lib/utf8-ucs4-safe.h: New file.
74612         * lib/unistr/utf8-ucs4-safe.c: New file.
74613
74614         * modules/utf16-ucs4-safe: New file.
74615         * lib/utf16-ucs4-safe.h: New file.
74616         * lib/unistr/utf16-ucs4-safe.c: New file.
74617
74618         * MODULES.html.sh (Unicode string functions): Add the new modules.
74619
74620 2007-01-08  Bruno Haible  <bruno@clisp.org>
74621
74622         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74623         (Depends-on): Add unitypes.
74624         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74625         (u8_mbtouc_aux): Move out to separate file.
74626         (u8_mbtouc): Use ucs4_t, uint8_t types.
74627         * lib/unistr/utf8-ucs4.c: New file.
74628
74629         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74630         (Depends-on): Add unitypes.
74631         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74632         (u16_mbtouc_aux): Move out to separate file.
74633         (u16_mbtouc): Use ucs4_t, uint16_t types.
74634         * lib/unistr/utf16-ucs4.c: New file.
74635
74636         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74637         (Depends-on): Add unitypes.
74638         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74639         (u8_uctomb_aux): Move out to separate file.
74640         (u8_uctomb): Use ucs4_t, uint8_t types.
74641         * lib/unistr/ucs4-utf8.c: New file.
74642
74643         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74644         (Depends-on): Add unitypes.
74645         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74646         (u16_uctomb_aux): Move out to separate file.
74647         (u16_uctomb): Use ucs4_t, uint16_t types.
74648         * lib/unistr/ucs4-utf16.c: New file.
74649
74650 2006-12-25  Bruno Haible  <bruno@clisp.org>
74651
74652         * modules/unitypes: New file.
74653         * lib/unitypes.h: New file.
74654         * MODULES.html.sh (func_all_modules): New section "Unicode string
74655         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74656         this section. Add unitypes.
74657
74658 2007-01-08  Bruno Haible  <bruno@clisp.org>
74659
74660         Avoid variable names that conflict with those from libtool.
74661         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74662         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74663         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74664         library_names_spec to acl_library_names_spec, hardcode_* to
74665         acl_hardcode_*.
74666         Reported by Ralf Wildenhues.
74667
74668 2007-01-08  Bruno Haible  <bruno@clisp.org>
74669
74670         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74671         definition.
74672         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74673         definition.
74674         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74675         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74676         definition.
74677         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74678         definition.
74679         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74680         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74681         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74682         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74683         definition.
74684         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74685         definition.
74686         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74687         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74688         GC_USE_<algorithm>.
74689         * lib/gc-libgcrypt.c: Likewise.
74690         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74691         * modules/gc-arctwo (configure.ac): Likewise.
74692         * modules/gc-des (configure.ac): Likewise.
74693         * modules/gc-hmac-md5 (configure.ac): Likewise.
74694         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74695         * modules/gc-md2 (configure.ac): Likewise.
74696         * modules/gc-md4 (configure.ac): Likewise.
74697         * modules/gc-md5 (configure.ac): Likewise.
74698         * modules/gc-random (configure.ac): Likewise.
74699         * modules/gc-rijndael (configure.ac): Likewise.
74700         * modules/gc-sha1 (configure.ac): Likewise.
74701
74702 2007-01-08  Bruno Haible  <bruno@clisp.org>
74703
74704         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74705         macro definition.
74706         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74707         definition.
74708         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74709         definition.
74710         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74711         * modules/fcntl-safer (configure.ac): Likewise.
74712         * modules/fopen-safer (configure.ac): Likewise.
74713         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74714         GNULIB_FWRITEERROR macro definition.
74715
74716 2007-01-08  Bruno Haible  <bruno@clisp.org>
74717
74718         * m4/gnulib-common.m4: New file.
74719         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74720         (func_get_filelist): Add m4/gnulib-common.m4.
74721
74722 2007-01-08  Bruno Haible  <bruno@clisp.org>
74723
74724         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74725         command.
74726
74727 2007-01-08  Jim Meyering  <jim@meyering.net>
74728
74729         Use a more robust test for a "can't happen" condition.
74730         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74731         narrowed the st_size value.  Presuming the "can't happen" condition
74732         is true, that narrowing could conceivably convert an invalid st_size
74733         value into a valid one.  Instead, use a change based on Matthew
74734         Woehlke's original patch.
74735
74736         Slight readability improvement: use an assert-like macro
74737         in place of literal "abort ()" uses.
74738         * lib/fts.c (fts_assert): Define.
74739         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74740         Use this macro instead of a bare 'abort'.
74741
74742 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74745         simply work around them.
74746         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74747         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74748         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74749         declaring.
74750         Don't bother to define as macros, since the standard doesn't require it.
74751         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74752         longer worry about IRIX 5.3.
74753         (HAVE_WCTYPE_CTMP_BUG): Remove.
74754
74755 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74758         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74759         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74760         Problems reported by Georg Schwarz for IRIX 5.3.
74761
74762         * gnulib-tool (autoconf_minversion): Take the maximum version number
74763         found, not the minimum.  Problem reported by James Youngman.
74764
74765 2007-01-03  Karl Berry  <karl@gnu.org>
74766
74767         * doc/error.texi: new file, explaining interaction with progname.
74768         * doc/gnulib.texi: include it.  Update copyright.
74769
74770 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74771
74772         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74773         AC_CANONICAL_HOST, to improve autobuild outputs.
74774
74775 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74776             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74777
74778         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74779         sockets, server sockets, and other file descriptors.  Count errors
74780         to compute the return value.  Reorder the code a bit to be easier
74781         to follow.  Don't set event bits that were not requested (except
74782         POLLERR and POLLHUP).
74783
74784 2007-01-01  Bruno Haible  <bruno@clisp.org>
74785
74786         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74787
74788 2007-01-03  Jim Meyering  <jim@meyering.net>
74789
74790         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74791
74792 2007-01-02  Bruno Haible  <bruno@clisp.org>
74793
74794         * modules/settime (Include): Require timespec.h.
74795         * modules/nanosleep (Include): Likewise.
74796
74797 2007-01-01  Bruno Haible  <bruno@clisp.org>
74798
74799         * gnulib-tool (func_emit_copyright_notice): Bump year.
74800         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74801
74802 2007-01-01  Bruno Haible  <bruno@clisp.org>
74803
74804         Improve support for OpenBSD.
74805         * build-aux/config.rpath (libname_spec): Export.
74806         (library_names_spec): New variable. Export.
74807         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74808         library_names_spec from the config.rpath output. Locate shared library
74809         through the name pattern in library_names_spec.
74810
74811 2007-01-01  Eric Blake  <ebb9@byu.net>
74812
74813         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74814
74815 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74818         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74819         assume the C locale, and avoid an "eval" that could cause trouble.
74820         Problem with SORT reported by Bob Proulx.
74821
74822         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74823         Define.  Trivial patch from Henning Nielsen Lund, originally
74824         sent to bug-grep@gnu.org today.
74825
74826 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74827
74828         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74829         struct stat.  Problem reported by Henning Nielsen Lund.
74830         * lib/acl.c: Include acl.h first, to check interface.  Don't
74831         bother to include sys/types.h and sys/stat.h again.
74832
74833 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         Import the following change from libc; problem reported by
74836         Sven Verdoolaege.
74837
74838         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74839
74840         [BZ #1373]
74841         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74842
74843 2006-12-28  Jim Meyering  <jim@meyering.net>
74844
74845         * build-aux/announce-gen: Do not assume that the package
74846         builds any of tar.gz, tar.bz2, and .xdelta files.
74847         Suggestion from Simon Josefsson.
74848
74849 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74850
74851         * modules/announce-gen: New file.
74852
74853 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74856         handles its gotchas now.
74857         * lib/mbswidth.c: Likewise.
74858         * lib/wcwidth.h: Likewise.
74859         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74860         and iswcntrl; the wctype module does this stuff now.
74861         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74863         * modules/mbchar (Depends-on): Add wctype.
74864         * modules/mbswidth (Depends-on): Likewise.
74865         * modules/wcwidth (Depends-on): Likewise.
74866
74867 2006-12-27  Eric Blake  <ebb9@byu.net>
74868
74869         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74870         module uses more than what <wctype.h> is required to provide.
74871
74872 2006-12-26  Eric Blake  <ebb9@byu.net>
74873
74874         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74875
74876 2006-12-26  Eric Blake  <ebb9@byu.net>
74877
74878         * modules/absolute-header: New module.
74879         * modules/fcntl (Depends-on): Depend on it.
74880         * modules/inttypes (Depends-on): Likewise.
74881         * modules/stdint (Depends-on): Likewise.
74882         * modules/sys_stat (Depends-on): Likewise.
74883         * modules/wctype (Depends-on): Likewise.
74884         * MODULES.html.sh (Support for building libraries and
74885         executables): Document it.
74886
74887 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * gnulib-tool (SED): Remove, undoing previous change.
74890         The problem was that it broke coreutils on Solaris, because
74891         "sed --posix" leaked into a makefile.
74892         (sed): New alias, if 'alias' and GNU sed.
74893
74894 2006-12-24  Jim Meyering  <jim@meyering.net>
74895
74896         Work around an fchownat bug in glibc-2.4:
74897         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74898         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74899         in spite of the -P option.
74900         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74901         New macros.
74902         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74903         * modules/openat (Files): Add lib/fchownat.c.
74904         * lib/openat.c (fchownat): Don't define here.  Move to...
74905         * lib/fchownat.c: ...this new file.
74906
74907 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         Fix bug reported by Bruno Haible in
74910         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74911         where quotearg.c didn't compile on Mac OS X 10.2 because it
74912         lacks <wchar.h> and wint_t.
74913         * lib/wctype_.h (__wctype_wint_t): New type.
74914         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74915         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74916         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74917         Arg is now of type __wctype_wint_t, not wint_t.
74918         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74919         substitute HAVE_WINT_T.
74920         * modules/wctype (Files): Add m4/wint_t.m4.
74921         (wctype.h): Substitute HAVE_WINT_T.
74922
74923 2006-12-23  Bruno Haible  <bruno@clisp.org>
74924
74925         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74926
74927 2006-12-23  Bruno Haible  <bruno@clisp.org>
74928
74929         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74930         S_ISLNK.
74931         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74932         mingw.
74933
74934 2006-12-22  Bruno Haible  <bruno@clisp.org>
74935
74936         * lib/copy-file.c: Include acl.h.
74937         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74938         Close the file descriptors only after being done with copy_acl.
74939         * modules/copy-file (Depends-on): Add acl.
74940
74941 2006-12-22  Bruno Haible  <bruno@clisp.org>
74942
74943         * gnulib-tool (SED): New variable.
74944         Use $SED instead of sed everywhere.
74945
74946 2006-12-22  Bruno Haible  <bruno@clisp.org>
74947
74948         * modules/no-c++: New file.
74949         * m4/no-c++.m4: New file.
74950         * MODULES.html.sh (Support for building libraries and executables):
74951         Add no-c++.
74952
74953 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74956         Include <limits.h>, and use its INT_MAX to rewrite the
74957         j loop so that it does not overflow 'int'.  Problem reported by
74958         Ralf Wildenhues in
74959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74960         Play it safe by shifting left by 1 rather than multiplying by 2,
74961         as GCC is less likely to optimize this away when the value
74962         is signed (when it assumes overflow leads to undefined behavior).
74963         Also, don't assume time_t uses two's complement.
74964
74965 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * MODULES.html.sh: New module wctype.
74968         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74969         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74970         <wctype.h>, since the new wctype module should fix this.
74971         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74972         the wctype module should arrange for it.
74973         * lib/regex_internal.h: Likewise.
74974         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74975         since the wctype module should handle this now.
74976         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74977         * modules/fnmatch (Depends-on): Add wctype.
74978         * modules/quotearg (Depends-on): Likewise.
74979         * modules/regex (Depends-on): Likewise.
74980
74981 2006-12-19  Bruno Haible  <bruno@clisp.org>
74982
74983         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74984         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74985
74986 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74987
74988         * modules/savewd (Depends-on): Fix dependency on fcntl.
74989
74990 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74991
74992         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74993         conforms to C99, rather than relying on the user's environment
74994         setting of STDINT_H.
74995
74996 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74997         and Eric Blake  <ebb9@byu.net>
74998
74999         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75000         This is more consistent with the other defines here.
75001         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75002         Port to z/OS.  Problem reported by Paul Gilmartin.
75003         Change local vars to use gl_ prefix rather than ac_.
75004         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75005         with other defines.
75006         * modules/double-slash-root: New module.
75007         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75008         (Depends-on): Add double-slash-root.
75009         * MODULES.html.sh (File system functions): Mention new module.
75010
75011 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75014         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75015         This is for the benefit of gzip, which doesn't do i18n.
75016
75017 2006-12-12  Jim Meyering  <jim@meyering.net>
75018
75019         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75020         Reported by Andreas Schwab <schwab@suse.de>.
75021
75022 2006-12-12  Bruno Haible  <bruno@clisp.org>
75023
75024         Merge these changes.
75025         2006-09-05  Bruno Haible  <bruno@clisp.org>
75026         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75027         iconv_alloc succeeded.
75028         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75029         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75030         test for " && dest " at the end - dest is always != NULL there. Call
75031         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75032         with 2xNULL arguments, also to flush the state storage. Handle the
75033         IRIX iconv behaviour. Realloc the final result, to throw away unused
75034         memory.
75035
75036 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75039         and fchmodat unconditionally, since glibc 2.4 has them.
75040         Problem reported by Arkadiusz Miskiewicz.
75041
75042 2006-12-10  Bruno Haible  <bruno@clisp.org>
75043
75044         * gnulib-tool (func_import): Show the include files only for those
75045         modules that are copied and specified.
75046         Reported by Karl Berry.
75047
75048 2006-12-08  Jim Meyering  <jim@meyering.net>
75049
75050         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75051         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75052
75053         * build-aux/announce-gen: Add two new options, both optional:
75054         --bootstrap-tools=TOOL_LIST
75055               a comma-separated list of tools, e.g.,
75056               autoconf,automake,bison,gnulib
75057         --gnulib-snapshot-date=DATE
75058               if gnulib is in the bootstrap tool list,
75059               then report this as the snapshot date.
75060               If not specified, use the current date/time.
75061               If you specify a date here, be sure it's UTC.
75062
75063 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75064
75065         * tests/test-argp-2.sh: Fix test to match actual output.
75066         (func_compare): Fix sed script to be portable.
75067
75068 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75071         workaround for this case.  It is not autoconfigured now; offhand
75072         it's hard to see how to autoconfigure it.
75073
75074 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75075
75076         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75077         a directory that is about to be chowned.  Such a directory's
75078         initial file permissions should permit the owner only and this
75079         should not be changed until after the chown, since the group and
75080         other bits would be incorrect if they granted permission before
75081         the chown.
75082
75083         Fix porting problem for iswctype reported by Georg Schwarz in:
75084         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75085         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75086         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75087         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75088         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75089
75090 2006-12-03  Jim Meyering  <jim@meyering.net>
75091
75092         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75093         p->fts_statp may not yet be defined.
75094         (fts_read): Instead, set it in the caller, once p->fts_statp is
75095         sure to be defined, and corresponds to a top-level directory.
75096         This bug made du -x fail.  Here's the coreutils test case:
75097         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75098         Reported by Mike Frysinger.
75099
75100 2006-12-01  Jim Meyering  <jim@meyering.net>
75101
75102         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75103         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75104         Reported by Simon Josefsson.
75105
75106 2006-11-30  Jim Meyering  <jim@meyering.net>
75107
75108         * m4/warning.m4: Use the all-permissive copyright notice
75109         recommended by RMS (rather than LGPL).
75110         * m4/vararrays.m4: Likewise.
75111         * m4/flexmember.m4: Likewise.
75112
75113 2006-11-29  Bruno Haible  <bruno@clisp.org>
75114
75115         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75116         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75117         using +=.
75118         Reported by Simon Josefsson <simon@josefsson.org>.
75119
75120 2006-11-28  James Youngman <jay@gnu.org>
75121
75122         * README: Advise users that they might find the bug-gnulib@gnu.org
75123         and autotools-announce@gnu.org mailing lists useful.
75124
75125 2006-11-28  Bruno Haible  <bruno@clisp.org>
75126
75127         * m4/ptrdiff_max.m4: Remove file.
75128
75129 2006-11-21  Bruno Haible  <bruno@clisp.org>
75130
75131         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75132         _AC_COMPUTE_INT.
75133         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75134         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75135         _AC_COMPUTE_INT.
75136         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75137         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75138         _AC_COMPUTE_INT.
75139         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75140
75141 2006-11-28  Jim Meyering  <jim@meyering.net>
75142
75143         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75144         warning from "gcc -Wshadow" about shadowing the builtin.
75145
75146 2006-11-27  Bruno Haible  <bruno@clisp.org>
75147
75148         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75149         _AC_COMPUTE_INT.
75150         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75151
75152 2006-11-27  Bruno Haible  <bruno@clisp.org>
75153             Paul Eggert  <eggert@cs.ucla.edu>
75154
75155         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75156
75157 2006-11-26  Bruno Haible  <bruno@clisp.org>
75158
75159         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75160         noinst_LTLIBRARIES.
75161
75162 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75163             Bruno Haible  <bruno@clisp.org>
75164
75165         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75166         if compiling with "gcc -ansi".
75167
75168 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         Fix some incompatibilities with gcc -ansi -pedantic.
75171         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75172         if compiling pedantically with GCC, unless it's C99 or later.
75173         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75174         it mishandles gcc -ansi -pedantic as well.
75175         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75176         if gcc -pedantic.
75177         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75178         initializers for struct if -pedantic, unless it's C99 or later.
75179
75180 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75181
75182         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75183         Don't close an fd more than once. Identical atimes indicate
75184         success, not failure.
75185
75186 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75187
75188         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75189
75190 2006-11-23  Jim Meyering  <jim@meyering.net>
75191
75192         * build-aux/announce-gen: New file.  From coreutils.
75193
75194 2006-11-22  Jim Meyering  <jim@meyering.net>
75195
75196         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75197         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75198         (fts_read): Use a temporary to narrow the overused st_size member
75199         before using it in a switch statement.  Reported by Matthew Woehlke.
75200
75201         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75202         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75203
75204 2006-11-20  Bruno Haible  <bruno@clisp.org>
75205
75206         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75207         changequote instead of pairs of brackets.
75208         Reported by Andreas Schwab <schwab@suse.de>.
75209
75210 2006-11-21  Jim Meyering  <jim@meyering.net>
75211
75212         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75213         so as to remain compatible with older compilers.
75214         Patch from Michael Deutschmann.
75215
75216 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75217
75218         * MODULES.html.sh (File system functions): Add openat.
75219
75220         * lib/openat.h (rpl_fstatat): New macro, if
75221         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75222         (fstatat): Define to rpl_fstatat under the same conditions,
75223         unless COMPILING_FSTATAT.
75224         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75225         seems to have the bug.
75226         * lib/fstatat.c: New file.
75227         * modules/openat (Files): Add it.
75228
75229 2006-11-20  Bruno Haible  <bruno@clisp.org>
75230
75231         * Makefile: New file.
75232
75233 2006-11-20  Jim Meyering  <jim@meyering.net>
75234
75235         The beginnings of syntax-related checks for gnulib.
75236         * lib/Makefile: New file.
75237         * lib/t-idcache: New script.  Ensure that the two halves of
75238         idcache.c stay in sync.
75239
75240         * lib/idcache.c: Adjust comments in user- and group- portions to
75241         be more accurate, and to be consistent with one another.
75242
75243 2006-11-20  Jim Meyering  <jim@meyering.net>
75244
75245         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75246         continue using the flexible array member (thus, this module performs
75247         half as many malloc calls), with the addition that...
75248         (getgroup, getuser): Consistently record a non-match via an empty
75249         "name" string, and map an empty string match to a NULL return value.
75250         * modules/idcache (Depends-on): Re-add flexmember.
75251
75252         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75253         (getuidbyname, getgroup, getgidbyname): Likewise.
75254
75255         Use cleaner syntax: NULL rather than 0.
75256         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75257
75258 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75259
75260         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75261         It mishandled the case where the group was missing.
75262         Problem reported by Greg Schafer.
75263         * modules/idcache: Likewise.
75264
75265 2006-11-18  Jim Meyering  <jim@meyering.net>
75266
75267         * check-module (%exempt_header): Add exception for some
75268         conditionally-included headers.
75269
75270         * modules/i-ring (Depends-on): Add verify.
75271         (License): Change to LGPL.
75272
75273 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75274
75275         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75276         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75277         and inttostr.h.  Use snprintf rather than uinttostr, so that
75278         LGPLed code doesn't depend on GPLed.
75279
75280 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * modules/inline (License): Change from GPL to LGPL.
75283
75284 2006-11-17  Jim Meyering  <jim@meyering.net>
75285
75286         * modules/d-type (License): Switch to LGPL.
75287
75288 2006-11-15  Bruno Haible  <bruno@clisp.org>
75289
75290         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75291
75292 2006-11-15  Eric Blake  <ebb9@byu.net>
75293
75294         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75295         the module dependency.
75296
75297 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75298             Bruno Haible  <bruno@clisp.org>
75299
75300         * gnulib-tool (func_create_testdir): Add license consistency check.
75301
75302 2006-11-15  Eric Blake  <ebb9@byu.net>
75303
75304         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75305         random "(cached)" in configure output.
75306
75307 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75308
75309         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75310         test for conforming inttypes.h is both announced and cached.
75311
75312         * MODULES.html.sh (seen_modules, seen_files): New variables.
75313         (func_module): Rewrite to use a few less gnulib-tool and sed
75314         invocations.  Avoid a couple of quadratic algorithms for ...
75315         (missed_modules, missed_files): ... these, with ...
75316         (func_append, func_tmpdir): ... these new functions, from
75317         gnulib-tool.  Analogously, install traps for cleanup.
75318
75319         * tests/test-gc.c (main): Remove unused variables.
75320         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75321
75322 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75323
75324         * modules/inttostr (License): Change to LGPL.
75325
75326 2006-11-14  Eric Blake  <ebb9@byu.net>
75327
75328         * modules/tempname (License): Change to LGPL.
75329
75330 2006-11-14  Eric Blake  <ebb9@byu.net>
75331
75332         * doc/functions.texi (Function Portability): *printf functions on
75333         Cygwin now understand all POSIX size specifiers.
75334
75335 2006-11-14  Bruno Haible  <bruno@clisp.org>
75336
75337         * modules/c-ctype (License): Change to LGPL.
75338
75339 2006-11-12  Bruno Haible  <bruno@clisp.org>
75340
75341         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75342         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75343         for GNOME libraries, for which the include files are installed in
75344         subdirectories of $prefix/include.
75345
75346 2006-11-12  Bruno Haible  <bruno@clisp.org>
75347
75348         * m4/lib-link.m4: Require at least autoconf-2.54.
75349         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75350         name to underscores for the --with option.
75351
75352 2006-11-13  Bruno Haible  <bruno@clisp.org>
75353
75354         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75355         the tests directory.
75356         Reported by Ralf Wildenhues.
75357
75358 2006-11-13  Bruno Haible  <bruno@clisp.org>
75359
75360         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75361         (func_emit_initmacro_end): Undo the override here.
75362         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75363         Works around the famous automake error in coreutils.
75364
75365 2006-11-13  Eric Blake  <ebb9@byu.net>
75366
75367         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75368         element, not its node.
75369
75370 2006-11-12  Bruno Haible  <bruno@clisp.org>
75371
75372         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75373         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75374
75375 2006-11-12  Bruno Haible  <bruno@clisp.org>
75376
75377         * gnulib-tool: New option --local-symlink.
75378         (func_usage): Document it.
75379         (lsymbolic): New variable.
75380         (func_import, func_create_testdir): If --symlink was not specified,
75381         test whether --local-symlink was specified and the file comes from
75382         the local_gnulib_dir.
75383
75384 2006-11-12  Bruno Haible  <bruno@clisp.org>
75385
75386         * gnulib-tool (func_ln): New function.
75387         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75388
75389 2006-11-12  Bruno Haible  <bruno@clisp.org>
75390
75391         Finish support for source files in subdirectories.
75392         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75393         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75394         AUTOMAKE_OPTIONS.
75395         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75396
75397 2006-11-12  Bruno Haible  <bruno@clisp.org>
75398
75399         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75400         EXTRA_lib_SOURCES augmentation.
75401         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75402
75403 2006-11-12  Jim Meyering  <jim@meyering.net>
75404
75405         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75406         file descriptors.  This also averts a failure on systems with
75407         native openat support when a traversed directory lacks "x" access.
75408         * lib/fts_.h: Include "i-ring.h"
75409         (struct FTS) [fts_fd_ring]: New member.
75410         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75411         (FCHDIR): Add parentheses.
75412         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75413         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75414         When descending, rather than simply closing the previous
75415         fts_cwd_fd value, push that file descriptor onto the ring.
75416         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75417         (fts_open): Initialize the new fd_ring member.
75418         (fts_close): Clear the ring.
75419         (fts_safe_changedir): When possible, use our new fd_ring to skip
75420         the diropen and fstat and dev/ino comparison that would normally
75421         accompany a virtual `chdir ("..")'.
75422
75423         * modules/fts (Depends-on): Add i-ring.
75424         * modules/i-ring: New module.
75425         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75426         * m4/i-ring.m4: New file.
75427
75428 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75429
75430         * gnulib-tool (func_create_testdir): Fix replacement of
75431         `build-aux' in configure.ac.  Run autotools in gltests
75432         subdirectory.
75433         (func_create_testdir, func_create_megatestdir, test): There is
75434         no need for '--force' in most autotool invocations in a new
75435         tree.  Actually fail the whole test if any of the tools, or the
75436         configure or make stages fail.
75437
75438         Sync from Automake.
75439         * build-aux/gnupload: Revert last change.  Add pointer to upload
75440         instructions of the GNU Maintenance Instructions.
75441         Suggestion by Karl Berry.
75442
75443 2006-11-10  Jim Meyering  <jim@meyering.net>
75444
75445         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75446
75447 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75450         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75451         (bind_textdomain_codeset) [! ENABLE_NLS]:
75452         Evaluate all the arguments.  That way, callers get compatible behavior
75453         if the arguments have side effects.  Also, it avoids some GCC
75454         diagnostics in some cases; Joel E. Denny reported problems when Bison
75455         was configured with --enable-gcc-warnigs.
75456
75457 2006-11-10  Jim Meyering  <jim@meyering.net>
75458
75459         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75460         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75461         account.
75462
75463 2006-11-10  Jim Meyering  <jim@meyering.net>
75464
75465         * modules/inline: New file/module.
75466         * modules/xalloc (Files): Remove m4/inline.m4.
75467         (Depends-on): Add inline, instead.
75468         * modules/oset: Likewise.
75469         * modules/list: Likewise.
75470
75471 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75472
75473         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75474         Problem reported by Matthew Woehlke.
75475
75476 2006-11-09  Bruno Haible  <bruno@clisp.org>
75477
75478         * lib/tempname.c (gen_tempname): Remove variant that invokes
75479         __gen_tempname.
75480         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75481         __gen_tempname.
75482
75483 2006-11-08  Bruno Haible  <bruno@clisp.org>
75484
75485         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75486         to 'yes' instead of 'cross-compiling'.
75487
75488 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75489
75490         * lib/quotearg.h (quotearg_free): New decl.
75491         * lib/quotearg.c (quotearg_free): New function.
75492         (slot0, nslots, slotvec0, slotvec):
75493         Now file-scope so that quotearg_free can get at them.
75494
75495 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75496
75497         Sync from Automake.
75498         * build-aux/gnupload: Add missing 'gnu' to example URL.
75499         Report by Karl Berry.
75500
75501 2006-11-08  Bruno Haible  <bruno@clisp.org>
75502
75503         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75504         Suggested by Paul Eggert.
75505
75506 2006-11-08  Jim Meyering  <jim@meyering.net>
75507
75508         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75509         It's already included if !_LIBC.
75510         (fts_safe_changedir): Add a comment.
75511
75512 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75513
75514         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75515         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75516         Matthew Woehlke.
75517
75518         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75519         definitions up, to avoid colliding with change below.
75520         (static_inline) [HAVE_INLINE]: New macro.
75521         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75522         Provide extern decls when !HAVE_INLINE.  Do not define unless
75523         static_inline is defined, either by us or by xmalloc.c.  Use
75524         static_inline rather than static inline.
75525         (XCALLOC): Optimize sizeof(T) = 1 case.
75526         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75527
75528 2006-11-07  Bruno Haible  <bruno@clisp.org>
75529
75530         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75531         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75532         AC_C_INLINE.
75533         * modules/xalloc (Files): Add m4/inline.m4.
75534
75535 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75536
75537         * README: Fix typo.
75538         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75539         (Miscellanous Notes): ...from this.
75540
75541 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75544         Mention that offsetof should be used instead of sizeof.
75545         From Bruno Haible.
75546
75547 2006-11-07  Bruno Haible  <bruno@clisp.org>
75548
75549         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75550
75551 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75552
75553         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75554         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75555         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75556         (gl_tree_add_before, gl_tree_add_after):
75557         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75558         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75559         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75560         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75561         (gl_linked_add_after, gl_linked_add_at): Likewise.
75562         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75563         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75564         (gl_tree_add_before, gl_tree_add_after): Likewise.
75565         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75566         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75567         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75568
75569 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75570
75571         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75572
75573 2006-11-06  Bruno Haible  <bruno@clisp.org>
75574
75575         * m4/inline.m4: New file.
75576         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75577         * modules/list (Files): Add m4/inline.m4.
75578         * modules/oset (Files): Likewise.
75579
75580 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         * lib/idcache.c: Include <stddef.h>, for offsetof.
75583         (struct userid.name): Change from char * to a flexible array member.
75584         All uses changed.
75585         * modules/idcache (Depends-on): Add flexmember.
75586
75587         * MODULES.html.sh (Core language properties): New module flexmember.
75588         * modules/flexmember, m4/flexmember.m4: New files.
75589
75590         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75591         inline functions that are identical with the old xnmalloc_inline,
75592         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75593         that we can avoid some unnecessary integer multiplications and
75594         divisions in the common case where the element size is known at
75595         compile time.
75596         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75597         needed.
75598         (xnboundedmalloc): Remove.
75599         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75600         arguments, for consistency with rest of this header.
75601         (xcharalloc): Rewrite using XNMALLOC.
75602         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75603         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75604         versions have been moved to lib/xalloc.h and renamed to be the
75605         non-*_inline versions.
75606         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75607         and xnrealloc functions, since those functions are now inline and
75608         now call us.
75609         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75610         renaming described above.
75611         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75612         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75613         captures the dependency in AC_C_INLINE.
75614
75615         New module canonicalize-lgpl, proposed by Charles Wilson in
75616         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75617         with a few small changes afterwards.
75618         * MODULES.html.sh (File system functions): New module
75619         canonicalize-lgpl.
75620         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75621         and canonicalize_file_name.
75622         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75623         * modules/canonicalize-lgpl: New files.
75624
75625 2006-11-05  Bruno Haible  <bruno@clisp.org>
75626
75627         * gnulib-tool (func_import, func_create_testdir): Create directories
75628         also for files in subdirectories of lib/.
75629
75630 2006-11-05  Bruno Haible  <bruno@clisp.org>
75631
75632         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75633         ANSI C compliant.
75634
75635 2006-11-03  Bruno Haible  <bruno@clisp.org>
75636
75637         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75638         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75639         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75640         (xnboundedmalloc): New inline function.
75641         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75642         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75643         xmalloc.
75644         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75645         xmalloc.
75646         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75647         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75648         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75649         xmalloc.
75650         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75651         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75652         xmalloc.
75653         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75654         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75655         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75656         xmalloc.
75657         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75658         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75659         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75660         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75661         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75662         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75663         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75664
75665 2006-11-03  Bruno Haible  <bruno@clisp.org>
75666
75667         * lib/c-ctype.h [C++]: Define functions without name mangling.
75668         * lib/fwriteerror.h [C++]: Likewise.
75669         * lib/gcd.h [C++]: Likewise.
75670         * lib/linebreak.h [C++]: Likewise.
75671
75672 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75673
75674         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75675         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75676         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75677         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75678         Check for functions and headers just once.
75679         Check for declaration of canonicalize_file_name.
75680         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75681
75682 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75683
75684         * gnulib-tool (func_import): Fix typo in actioncmd.
75685
75686 2006-11-02  Bruno Haible  <bruno@clisp.org>
75687
75688         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75689         newline sequence in the Makefile.am snippet as a space, like "make"
75690         does.
75691         Reported by Roger Persson <perrog@gmail.com>.
75692
75693 2006-11-01  Bruno Haible  <bruno@clisp.org>
75694
75695         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75696         already declared in <string.h>.
75697         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75698
75699 2006-11-01  Bruno Haible  <bruno@clisp.org>
75700
75701         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75702         * lib/strcase.h: Include <string.h>.
75703         (strcasecmp): Define to rpl_strcasecmp here.
75704
75705 2006-11-01  Bruno Haible  <bruno@clisp.org>
75706
75707         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75708
75709 2006-11-01  Eric Blake  <ebb9@byu.net>
75710
75711         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75712
75713         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75714
75715 2006-10-29  Bruno Haible  <bruno@clisp.org>
75716
75717         Make it compile in C++ mode.
75718         * lib/full-write.c (full_rw): Add a cast.
75719
75720 2006-11-01  Bruno Haible  <bruno@clisp.org>
75721
75722         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75723         be POSIX compliant.
75724         Reported by Roger Persson <perrog@gmail.com>.
75725
75726 2006-11-01  Eric Blake  <ebb9@byu.net>
75727
75728         * lib/getopt_.h: Fix comments.
75729
75730 2006-10-31  Eric Blake  <ebb9@byu.net>
75731
75732         * modules/tmpdir (Depends-on): Add sys_stat.
75733         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75734         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75735         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75736         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75737         tempname.
75738
75739 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75740
75741         Avoid some C++ diagnostics reported by Bruno Haible.
75742         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75743         xmalloc.
75744         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75745         (struct slotvec): Move to top level.
75746         (quotearg_n_options): Rewrite to avoid xmalloc.
75747         * lib/xalloc.h (xcharalloc): New function.
75748         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75749         [defined __cplusplus]: Add function template that provides result
75750         type propagation.  This part of the change is from Bruno Haible.
75751
75752 2006-10-29  Bruno Haible  <bruno@clisp.org>
75753
75754         Make it compile in C++ mode.
75755         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75756         * lib/strnlen1.c (strnlen1): Cast memchr result.
75757         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75758         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75759         (create_temp_dir): Rename local variable 'template'.
75760         (compile_csharp_using_sscli): Add cast.
75761         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75762         * lib/findprog.c (find_in_path): Likewise.
75763         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75764         * lib/wait-process.c (register_slave_subprocess): Likewise.
75765
75766 2006-10-22  Bruno Haible  <bruno@clisp.org>
75767
75768         * modules/tsearch: New file.
75769         * lib/tsearch.h: New file.
75770         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75771         * m4/tsearch.m4: New file.
75772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75773
75774 2006-10-29  Eric Blake  <ebb9@byu.net>
75775
75776         * lib/arcfour.c: Assume config.h.
75777         * lib/arctwo.c: Likewise.
75778         * lib/base64.c: Likewise.
75779         * lib/check-version.c: Likewise.
75780         * lib/crc.c: Likewise.
75781         * lib/des.c: Likewise.
75782         * lib/gc-gnulib.c: Likewise.
75783         * lib/gc-libgcrypt.c: Likewise.
75784         * lib/gc-pbkdf2-sha1.c: Likewise.
75785         * lib/getaddrinfo.c: Likewise.
75786         * lib/getdelim.c: Likewise.
75787         * lib/getline.c: Likewise.
75788         * lib/hmac-md5.c: Likewise.
75789         * lib/hmac-sha1.c: Likewise.
75790         * lib/iconvme.c: Likewise.
75791         * lib/md2.c: Likewise.
75792         * lib/md4.c: Likewise.
75793         * lib/memxor.c: Likewise.
75794         * lib/read-file.c: Likewise.
75795         * lib/readline.c: Likewise.
75796         * lib/rijndael-alg-fst.c: Likewise.
75797         * lib/rijndael-api-fst.c: Likewise.
75798         * lib/xgetdomainname.c: Likewise.
75799
75800 2006-10-28  Eric Blake  <ebb9@byu.net>
75801
75802         * lib/xstrndup.c: Assume config.h.
75803
75804 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75807         stat-macros.h is now for our own macros, whereas stat_h is for
75808         macros in the <sys/stat.h> name space.
75809         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75810         (STAT_MACROS_H): Remove.
75811         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75812         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75813         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75814         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75815         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75816         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75817         Move these macros to ...
75818         * lib/stat_.h: here.  Don't include stat-macros.h.
75819         * lib/canonicalize.c: Don't include stat-macros.h.
75820         * lib/chown.c: Likewise.
75821         * lib/euidaccess.c: Likewise.
75822         * lib/file-type.c: Likewise.
75823         * lib/filemode.c: Likewise.
75824         * lib/glob.c: Likewise.
75825         * lib/isapipe.c: Likewise.
75826         * lib/lchown.c: Likewise.
75827         * lib/lstat.c: Likewise.
75828         * lib/mkdir-p.c: Likewise.
75829         * lib/rmdir.c: Likewise.
75830         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75832         unless mkdir isn't declared, to speed up 'configure'.
75833         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75834         would define all the S_* symbols.
75835         * modules/canonicalize (Depends-on):
75836         Depend on sys_stat, not stat-macros.
75837         * modules/chown: Likewise.
75838         * modules/euidaccess: Likewise.
75839         * modules/filemode: Likewise.
75840         * modules/file-type: Likewise.
75841         * modules/glob: Likewise.
75842         * modules/isapipe: Likewise.
75843         * modules/lchown: Likewise.
75844         * modules/lstat: Likewise.
75845         * modules/mkancesdirs: Likewise.
75846         * modules/rmdir: Likewise.
75847         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75848         * modules/modechange: Likewise.
75849         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75850         (configure.ac): Remove gl_STAT_MACROS.
75851         * modules/sys_stat (Depends-on): Remove stat-macros.
75852
75853 2006-10-27  Bruno Haible  <bruno@clisp.org>
75854
75855         * m4/signed.m4: Remove file.
75856         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75857         invocation.
75858         * modules/vasnprintf (Files): Remove m4/signed.m4.
75859
75860 2006-10-27  Bruno Haible  <bruno@clisp.org>
75861
75862         Update to GNU gettext 0.16.
75863         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75864         m4/inttypes-h.m4, m4/signed.m4.
75865         * m4/gettext.m4: Update to GNU gettext 0.16.
75866         * m4/intl.m4: New file, from GNU gettext.
75867         * m4/intldir.m4: New file, from GNU gettext.
75868         * config/srclist.txt: Update
75869
75870 2006-10-27  Eric Blake  <ebb9@byu.net>
75871
75872         * MODULES.html.sh: Document tempname.
75873         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75874         dependencies.
75875         (Files): Move lib/tempname.c...
75876         * modules/tempname: ...to this new module.
75877         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75878         (gl_PREREQ_TEMPNAME): Move...
75879         * m4/tempname.m4: ...to this new file.
75880         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75881         * modules/sys_stat (Depends-on): Add stat-macros.
75882         * lib/stat_.h (includes): Pick up stat macros.
75883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75884         if stat macros are broken.
75885         * lib/tempname.c (includes): No need to include "stat-macros.h".
75886         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75887         (direxists, __path_search) [!_LIBC]: Don't compile these in
75888         gnulib; the tmpdir module covers that.
75889         * lib/tempname.h: New file.
75890
75891 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * COPYING: Explain how gnulib-tool converts licence headers.
75894         Almost all wording by Eric Blake.
75895
75896 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75897
75898         * lib/mbchar.h (is_basic_table): Make read-only.
75899         * lib/mbchar.c (is_basic_table): Likewise.
75900         Reported by John Darrington.
75901
75902 2006-10-25  Bruno Haible  <bruno@clisp.org>
75903
75904         * lib/progname.h (set_program_name): Undefine before defining.
75905
75906 2006-10-25  Bruno Haible  <bruno@clisp.org>
75907
75908         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75909         false for non-gcc C++ compilers.
75910         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75911
75912 2006-10-24  Bruno Haible  <bruno@clisp.org>
75913
75914         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75915         iconv implementations like Irix iconv.
75916
75917 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         * modules/vararrays: New file.
75920         * m4/vararrays.m4: New file, taken from diffutils.
75921         * MODULES.html.sh: New module vararrays.
75922
75923 2006-10-24  Karl Berry  <karl@gnu.org>
75924
75925         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75926         Don't call GNU Unix.
75927
75928 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75929
75930         * users.txt: Add Libtool.
75931
75932         Sync from Libtool:
75933
75934         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75937         to gnulib's policy of including config.h unconditionally.
75938
75939 2006-10-24  Bruno Haible  <bruno@clisp.org>
75940
75941         * modules/wcwidth (Files): Add m4/wint_t.m4.
75942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75943         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75944
75945 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75946
75947         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75948         to pacify GCC with some -W flags enabled.  Problem reported by
75949         Bruno Haible.
75950
75951 2006-10-24  Jim Meyering  <jim@meyering.net>
75952
75953         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75954         Reported by Karl Berry.
75955
75956 2006-10-23  Bruno Haible  <bruno@clisp.org>
75957
75958         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75959
75960 2006-10-24  Bruno Haible  <bruno@clisp.org>
75961
75962         * lib/gl_list.h: Use C comment style, not C++ comment style.
75963
75964 2006-10-23  Eric Blake  <ebb9@byu.net>
75965
75966         * lib/getaddrinfo.c (includes): Add missing include.
75967
75968 2006-10-23  Bruno Haible  <bruno@clisp.org>
75969             Paul Eggert  <eggert@cs.ucla.edu>
75970
75971         Ability to rename obstack_free.
75972         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75973         obstack_free.
75974         (obstack_free): Invoke the __obstack_free macro.
75975         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75976
75977 2006-10-23  Bruno Haible  <bruno@clisp.org>
75978             Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75981         __argc, __argv from the declaration. (They are defined as macros on
75982         mingw.)
75983
75984 2006-10-22  Bruno Haible  <bruno@clisp.org>
75985
75986         * doc/gnulib-intro.texi: New file.
75987         * doc/gnulib.texi: Include it.
75988
75989 2006-10-21  Bruno Haible  <bruno@clisp.org>
75990
75991         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75992         "Introduction", "Miscellanous Notes", "Particular Modules".
75993
75994 2006-10-21  Bruno Haible  <bruno@clisp.org>
75995
75996         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75997         Change mostlyclean-local rule to avoid sh syntax error from bash
75998         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75999
76000 2006-10-23  Jim Meyering  <jim@meyering.net>
76001
76002         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76003         in place of snprintf.
76004
76005         * modules/inttostr (Files): Add lib/uinttostr.c.
76006         * lib/uinttostr.c (inttostr): New file/function.
76007         * lib/inttostr.h (uinttostr): Declare.
76008         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76009         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76010         Add uinttostr.
76011         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76012
76013 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76014
76015         * lib/canonicalize.c (ELOOP): Define if not already defined.
76016         Problem reported by Bruno Haible in
76017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76018
76019 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76022         Problem reported by Perry Smith and Ville Laurikari.
76023
76024         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76025         uses.
76026
76027 2006-10-19  Bruno Haible  <bruno@clisp.org>
76028
76029         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76030         for mingw.
76031
76032 2006-10-19  Bruno Haible  <bruno@clisp.org>
76033
76034         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76035         Needed for mingw.
76036
76037 2006-10-19  Bruno Haible  <bruno@clisp.org>
76038
76039         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76040
76041 2006-10-19  Bruno Haible  <bruno@clisp.org>
76042
76043         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76044         it.
76045
76046 2006-10-19  Bruno Haible  <bruno@clisp.org>
76047
76048         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76049         invocation.
76050
76051 2006-10-19  Bruno Haible  <bruno@clisp.org>
76052
76053         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76054         mountlist by default.
76055
76056 2006-10-16  Bruno Haible  <bruno@clisp.org>
76057
76058         * lib/c-strstr.c: Include c-strstr.h.
76059
76060 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76061
76062         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76063         in a slash.
76064
76065 2006-10-18  Bruno Haible  <bruno@clisp.org>
76066
76067         * lib/lock.h [C++]: Wrap definitions in extern "C".
76068
76069 2006-10-18  Bruno Haible  <bruno@clisp.org>
76070
76071         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76072         gl_LIBOBJS list.
76073
76074 2006-10-18  Bruno Haible  <bruno@clisp.org>
76075
76076         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76077
76078 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * lib/xstrtol.h: Include gettext.h.
76081         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76082         Problem reported by Eric Blake.
76083         * modules/xstrtol (Depends-on): Add gettext-h.
76084
76085 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76086
76087         * lib/strftime.c (advance): New macro.
76088         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76089         incomplete type, so you can't add 0 to it.  Problem and patch
76090         reported by Eelco Dolstra for dietlibc.
76091
76092 2006-10-18  Jim Meyering  <jim@meyering.net>
76093
76094         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76095         type for a local, and rename it: s/up/user_proc/.
76096
76097 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76098
76099         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76100         READ_UTMP_USER_PROCESS.
76101         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76102
76103 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76106         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76107
76108 2006-10-17  Eric Blake  <ebb9@byu.net>
76109
76110         * lib/sigprocmask.c (sigprocmask): Fix typo.
76111
76112         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76113
76114         * modules/clean-temp (Makefile.am): Don't add to make output...
76115         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76116         config.h.
76117
76118 2006-10-17  Bruno Haible  <bruno@clisp.org>
76119
76120         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76121         differently if DEFAULT_TEXT_DOMAIN is set.
76122
76123 2006-10-16  Bruno Haible  <bruno@clisp.org>
76124
76125         * lib/clean-temp.c: Include fwriteerror.h.
76126
76127 2006-10-16  Bruno Haible  <bruno@clisp.org>
76128
76129         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76130
76131 2006-10-16  Bruno Haible  <bruno@clisp.org>
76132
76133         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76134         * lib/sigprocmask.h: Include <sys/types.h>.
76135         (sigset_t): Use the system's definition if present.
76136
76137 2006-10-17  Eric Blake  <ebb9@byu.net>
76138
76139         * lib/xvasprintf.c (includes): Assume config.h.
76140         * lib/xasprintf.c (includes): Likewise.
76141
76142 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76143
76144         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76145         at least as wide as intmax_t.
76146
76147 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76148
76149         (Imported from Automake.)
76150         * build-aux/gnupload: Update to version 1.1 of directive file.
76151
76152 2006-10-16  Eric Blake  <ebb9@byu.net>
76153
76154         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76155         match Automake 1.10a.
76156
76157 2006-10-14  Bruno Haible  <bruno@clisp.org>
76158
76159         * modules/sigprocmask: New file.
76160         * lib/sigprocmask.h: New file.
76161         * lib/sigprocmask.c: New file.
76162         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76163         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76164         request sigprocmask.o.
76165         (gl_PREREQ_SIGPROCMASK): New macro.
76166         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76167         (Depends-on): Add sigprocmask.
76168         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76169         gt_SIGNALBLOCKING. Test for 'raise' only once.
76170         * lib/fatal-signal.c: Include sigprocmask.h.
76171         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76172         unblock_fatal_signals): Define always.
76173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76174         sigprocmask.
76175
76176 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76177
76178         Sync from Automake.
76179         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76180         which incorrectly sets the mode of an existing destination
76181         directory.  In some cases the unpatched install-sh could do the
76182         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76183         system.  We hope this is rare in practice, but it's clearly worth
76184         fixing.  Problem reported by Alex Unleashed in
76185         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76186         Also, don't bother to check for -m bugs unless we're using -m;
76187         suggested by Stepan Kasal.
76188
76189 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76190
76191         Sync from Automake.
76192         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76193         `-c' flag, so they appear at the same position as in %FASTDEP%
76194         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76195         which ignores unknown options only after the first non-option.
76196         Bug report against M4 by Nelson H. F. Beebe.
76197
76198 2006-10-13  Jim Meyering  <jim@meyering.net>
76199
76200         Fix a bug in yesterday's change.
76201         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76202         p->fts_statp->st_dev would be used uninitialized.
76203         Ensures that we always call fts_stat on the very first entry.
76204         Miklos Szeredi reported that find -xdev stopped working.
76205
76206 2006-10-12  Bruno Haible  <bruno@clisp.org>
76207
76208         * gnulib-tool (func_get_automake_snippet): Append an automatically
76209         computed EXTRA_DIST augmentation.
76210         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76211         * modules/alloca-opt (Makefile.am): Likewise.
76212         * modules/allocsa (Makefile.am): Likewise.
76213         * modules/arcfour (Makefile.am): Likewise.
76214         * modules/arctwo (Makefile.am): Likewise.
76215         * modules/argmatch (Makefile.am): Likewise.
76216         * modules/argz (Makefile.am): Likewise.
76217         * modules/atexit (Makefile.am): Likewise.
76218         * modules/backupfile (Makefile.am): Likewise.
76219         * modules/byteswap (Makefile.am): Likewise.
76220         * modules/c-strtod (Makefile.am): Likewise.
76221         * modules/c-strtold (Makefile.am): Likewise.
76222         * modules/calloc (Makefile.am): Likewise.
76223         * modules/canon-host (Makefile.am): Likewise.
76224         * modules/canonicalize (Makefile.am): Likewise.
76225         * modules/chdir-long (Makefile.am): Likewise.
76226         * modules/chdir-safer (Makefile.am): Likewise.
76227         * modules/check-version (Makefile.am): Likewise.
76228         * modules/chown (Makefile.am): Likewise.
76229         * modules/cloexec (Makefile.am): Likewise.
76230         * modules/close-stream (Makefile.am): Likewise.
76231         * modules/closeout (Makefile.am): Likewise.
76232         * modules/crc (Makefile.am): Likewise.
76233         * modules/csharpexec (Makefile.am): Likewise.
76234         * modules/cycle-check (Makefile.am): Likewise.
76235         * modules/des (Makefile.am): Likewise.
76236         * modules/dev-ino (Makefile.am): Likewise.
76237         * modules/dirfd (Makefile.am): Likewise.
76238         * modules/dirname (Makefile.am): Likewise.
76239         * modules/dup2 (Makefile.am): Likewise.
76240         * modules/eealloc (Makefile.am): Likewise.
76241         * modules/error (Makefile.am): Likewise.
76242         * modules/euidaccess (Makefile.am): Likewise.
76243         * modules/exclude (Makefile.am): Likewise.
76244         * modules/exitfail (Makefile.am): Likewise.
76245         * modules/fcntl-safer (Makefile.am): Likewise.
76246         * modules/fcntl (Makefile.am): Likewise.
76247         * modules/file-type (Makefile.am): Likewise.
76248         * modules/fileblocks (Makefile.am): Likewise.
76249         * modules/filemode (Makefile.am): Likewise.
76250         * modules/filenamecat (Makefile.am): Likewise.
76251         * modules/fnmatch (Makefile.am): Likewise.
76252         * modules/fopen-safer (Makefile.am): Likewise.
76253         * modules/fpending (Makefile.am): Likewise.
76254         * modules/fprintftime (Makefile.am): Likewise.
76255         * modules/free (Makefile.am): Likewise.
76256         * modules/fsusage (Makefile.am): Likewise.
76257         * modules/ftruncate (Makefile.am): Likewise.
76258         * modules/fts (Makefile.am): Likewise.
76259         * modules/gc-arcfour (Makefile.am): Likewise.
76260         * modules/gc-des (Makefile.am): Likewise.
76261         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76262         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76263         * modules/gc-md4 (Makefile.am): Likewise.
76264         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76265         * modules/gc-sha1 (Makefile.am): Likewise.
76266         * modules/gc (Makefile.am): Likewise.
76267         * modules/getaddrinfo (Makefile.am): Likewise.
76268         * modules/getcwd (Makefile.am): Likewise.
76269         * modules/getdelim (Makefile.am): Likewise.
76270         * modules/getdomainname (Makefile.am): Likewise.
76271         * modules/getgroups (Makefile.am): Likewise.
76272         * modules/gethostname (Makefile.am): Likewise.
76273         * modules/gethrxtime (Makefile.am): Likewise.
76274         * modules/getline (Makefile.am): Likewise.
76275         * modules/getloadavg (Makefile.am): Likewise.
76276         * modules/getlogin_r (Makefile.am): Likewise.
76277         * modules/getndelim2 (Makefile.am): Likewise.
76278         * modules/getopt (Makefile.am): Likewise.
76279         * modules/getpagesize (Makefile.am): Likewise.
76280         * modules/getpass-gnu (Makefile.am): Likewise.
76281         * modules/getpass (Makefile.am): Likewise.
76282         * modules/getsubopt (Makefile.am): Likewise.
76283         * modules/gettime (Makefile.am): Likewise.
76284         * modules/gettimeofday (Makefile.am): Likewise.
76285         * modules/getugroups (Makefile.am): Likewise.
76286         * modules/getusershell (Makefile.am): Likewise.
76287         * modules/glob (Makefile.am): Likewise.
76288         * modules/group-member (Makefile.am): Likewise.
76289         * modules/hard-locale (Makefile.am): Likewise.
76290         * modules/hash (Makefile.am): Likewise.
76291         * modules/hmac-md5 (Makefile.am): Likewise.
76292         * modules/hmac-sha1 (Makefile.am): Likewise.
76293         * modules/human (Makefile.am): Likewise.
76294         * modules/idcache (Makefile.am): Likewise.
76295         * modules/imaxabs (Makefile.am): Likewise.
76296         * modules/imaxdiv (Makefile.am): Likewise.
76297         * modules/inet_ntop (Makefile.am): Likewise.
76298         * modules/inet_pton (Makefile.am): Likewise.
76299         * modules/intprops (Makefile.am): Likewise.
76300         * modules/inttostr (Makefile.am): Likewise.
76301         * modules/inttypes (Makefile.am): Likewise.
76302         * modules/isapipe (Makefile.am): Likewise.
76303         * modules/javaversion (Makefile.am): Likewise.
76304         * modules/lchmod (Makefile.am): Likewise.
76305         * modules/lchown (Makefile.am): Likewise.
76306         * modules/localcharset (Makefile.am): Likewise.
76307         * modules/long-options (Makefile.am): Likewise.
76308         * modules/lstat (Makefile.am): Likewise.
76309         * modules/malloc (Makefile.am): Likewise.
76310         * modules/mathl (Makefile.am): Likewise.
76311         * modules/mbchar (Makefile.am): Likewise.
76312         * modules/md2 (Makefile.am): Likewise.
76313         * modules/md4 (Makefile.am): Likewise.
76314         * modules/md5 (Makefile.am): Likewise.
76315         * modules/memcasecmp (Makefile.am): Likewise.
76316         * modules/memchr (Makefile.am): Likewise.
76317         * modules/memcmp (Makefile.am): Likewise.
76318         * modules/memcoll (Makefile.am): Likewise.
76319         * modules/memcpy (Makefile.am): Likewise.
76320         * modules/memmem (Makefile.am): Likewise.
76321         * modules/memmove (Makefile.am): Likewise.
76322         * modules/mempcpy (Makefile.am): Likewise.
76323         * modules/memrchr (Makefile.am): Likewise.
76324         * modules/memset (Makefile.am): Likewise.
76325         * modules/memxor (Makefile.am): Likewise.
76326         * modules/mkancesdirs (Makefile.am): Likewise.
76327         * modules/mkdir-p (Makefile.am): Likewise.
76328         * modules/mkdir (Makefile.am): Likewise.
76329         * modules/mkdtemp (Makefile.am): Likewise.
76330         * modules/mkstemp (Makefile.am): Likewise.
76331         * modules/mktime (Makefile.am): Likewise.
76332         * modules/modechange (Makefile.am): Likewise.
76333         * modules/mountlist (Makefile.am): Likewise.
76334         * modules/nanosleep (Makefile.am): Likewise.
76335         * modules/obstack (Makefile.am): Likewise.
76336         * modules/openat (Makefile.am): Likewise.
76337         * modules/pagealign_alloc (Makefile.am): Likewise.
76338         * modules/pathmax (Makefile.am): Likewise.
76339         * modules/physmem (Makefile.am): Likewise.
76340         * modules/poll (Makefile.am): Likewise.
76341         * modules/posixtm (Makefile.am): Likewise.
76342         * modules/posixver (Makefile.am): Likewise.
76343         * modules/putenv (Makefile.am): Likewise.
76344         * modules/quote (Makefile.am): Likewise.
76345         * modules/quotearg (Makefile.am): Likewise.
76346         * modules/raise (Makefile.am): Likewise.
76347         * modules/read-file (Makefile.am): Likewise.
76348         * modules/readline (Makefile.am): Likewise.
76349         * modules/readlink (Makefile.am): Likewise.
76350         * modules/readtokens (Makefile.am): Likewise.
76351         * modules/readutmp (Makefile.am): Likewise.
76352         * modules/realloc (Makefile.am): Likewise.
76353         * modules/regex (Makefile.am): Likewise.
76354         * modules/rename-dest-slash (Makefile.am): Likewise.
76355         * modules/rename (Makefile.am): Likewise.
76356         * modules/rijndael (Makefile.am): Likewise.
76357         * modules/rmdir (Makefile.am): Likewise.
76358         * modules/rpmatch (Makefile.am): Likewise.
76359         * modules/safe-read (Makefile.am): Likewise.
76360         * modules/safe-write (Makefile.am): Likewise.
76361         * modules/same-inode (Makefile.am): Likewise.
76362         * modules/same (Makefile.am): Likewise.
76363         * modules/save-cwd (Makefile.am): Likewise.
76364         * modules/savedir (Makefile.am): Likewise.
76365         * modules/setenv (Makefile.am): Likewise.
76366         * modules/settime (Makefile.am): Likewise.
76367         * modules/sha1 (Makefile.am): Likewise.
76368         * modules/sig2str (Makefile.am): Likewise.
76369         * modules/snprintf (Makefile.am): Likewise.
76370         * modules/stat-macros (Makefile.am): Likewise.
76371         * modules/stat-time (Makefile.am): Likewise.
76372         * modules/stdbool (Makefile.am): Likewise.
76373         * modules/stdint (Makefile.am): Likewise.
76374         * modules/stdlib-safer (Makefile.am): Likewise.
76375         * modules/stpcpy (Makefile.am): Likewise.
76376         * modules/stpncpy (Makefile.am): Likewise.
76377         * modules/strcase (Makefile.am): Likewise.
76378         * modules/strcasestr (Makefile.am): Likewise.
76379         * modules/strchrnul (Makefile.am): Likewise.
76380         * modules/strcspn (Makefile.am): Likewise.
76381         * modules/strdup (Makefile.am): Likewise.
76382         * modules/strerror (Makefile.am): Likewise.
76383         * modules/strftime (Makefile.am): Likewise.
76384         * modules/strndup (Makefile.am): Likewise.
76385         * modules/strnlen (Makefile.am): Likewise.
76386         * modules/strpbrk (Makefile.am): Likewise.
76387         * modules/strsep (Makefile.am): Likewise.
76388         * modules/strstr (Makefile.am): Likewise.
76389         * modules/strtod (Makefile.am): Likewise.
76390         * modules/strtoimax (Makefile.am): Likewise.
76391         * modules/strtok_r (Makefile.am): Likewise.
76392         * modules/strtol (Makefile.am): Likewise.
76393         * modules/strtoll (Makefile.am): Likewise.
76394         * modules/strtoul (Makefile.am): Likewise.
76395         * modules/strtoull (Makefile.am): Likewise.
76396         * modules/strtoumax (Makefile.am): Likewise.
76397         * modules/strverscmp (Makefile.am): Likewise.
76398         * modules/sys_socket (Makefile.am): Likewise.
76399         * modules/sys_stat (Makefile.am): Likewise.
76400         * modules/sysexits (Makefile.am): Likewise.
76401         * modules/time_r (Makefile.am): Likewise.
76402         * modules/timegm (Makefile.am): Likewise.
76403         * modules/timespec (Makefile.am): Likewise.
76404         * modules/tmpfile-safer (Makefile.am): Likewise.
76405         * modules/trim (Makefile.am): Likewise.
76406         * modules/unistd-safer (Makefile.am): Likewise.
76407         * modules/unlinkdir (Makefile.am): Likewise.
76408         * modules/unlocked-io (Makefile.am): Likewise.
76409         * modules/userspec (Makefile.am): Likewise.
76410         * modules/utime (Makefile.am): Likewise.
76411         * modules/utimecmp (Makefile.am): Likewise.
76412         * modules/utimens (Makefile.am): Likewise.
76413         * modules/vasnprintf (Makefile.am): Likewise.
76414         * modules/vasprintf (Makefile.am): Likewise.
76415         * modules/vsnprintf (Makefile.am): Likewise.
76416         * modules/xalloc (Makefile.am): Likewise.
76417         * modules/xgetcwd (Makefile.am): Likewise.
76418         * modules/xnanosleep (Makefile.am): Likewise.
76419         * modules/xreadlink (Makefile.am): Likewise.
76420         * modules/xstrtod (Makefile.am): Likewise.
76421         * modules/xstrtol (Makefile.am): Likewise.
76422         * modules/xstrtold (Makefile.am): Likewise.
76423         * modules/yesno (Makefile.am): Likewise.
76424         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76425
76426 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         * modules/error (Makefile.am): Distribute files through
76429         EXTRA_DIST, not lib_SOURCES.
76430
76431 2006-10-12  Eric Blake  <ebb9@byu.net>
76432
76433         * modules/error (Makefile.am): Distribute files in /lib.
76434         * modules/obstack (Makefile.am): Likewise.
76435
76436 2006-10-12  Bruno Haible  <bruno@clisp.org>
76437
76438         * modules/acl (Makefile.am): Distribute all files in lib/ through
76439         EXTRA_DIST.
76440         * modules/arcfour (Makefile.am): Likewise.
76441         * modules/arctwo (Makefile.am): Likewise.
76442         * modules/argmatch (Makefile.am): Likewise.
76443         * modules/argz (Makefile.am): Likewise.
76444         * modules/atexit (Makefile.am): Likewise.
76445         * modules/backupfile (Makefile.am): Likewise.
76446         * modules/c-strtod (Makefile.am): Likewise.
76447         * modules/c-strtold (Makefile.am): Likewise.
76448         * modules/calloc (Makefile.am): Likewise.
76449         * modules/canon-host (Makefile.am): Likewise.
76450         * modules/canonicalize (Makefile.am): Likewise.
76451         * modules/chdir-long (Makefile.am): Likewise.
76452         * modules/chdir-safer (Makefile.am): Likewise.
76453         * modules/check-version (Makefile.am): Likewise.
76454         * modules/chown (Makefile.am): Likewise.
76455         * modules/cloexec (Makefile.am): Likewise.
76456         * modules/close-stream (Makefile.am): Likewise.
76457         * modules/closeout (Makefile.am): Likewise.
76458         * modules/crc (Makefile.am): Likewise.
76459         * modules/cycle-check (Makefile.am): Likewise.
76460         * modules/des (Makefile.am): Likewise.
76461         * modules/dirfd (Makefile.am): Likewise.
76462         * modules/dirname (Makefile.am): Likewise.
76463         * modules/dup2 (Makefile.am): Likewise.
76464         * modules/euidaccess (Makefile.am): Likewise.
76465         * modules/exclude (Makefile.am): Likewise.
76466         * modules/exitfail (Makefile.am): Likewise.
76467         * modules/fcntl-safer (Makefile.am): Likewise.
76468         * modules/file-type (Makefile.am): Likewise.
76469         * modules/fileblocks (Makefile.am): Likewise.
76470         * modules/filemode (Makefile.am): Likewise.
76471         * modules/filenamecat (Makefile.am): Likewise.
76472         * modules/fnmatch (Makefile.am): Likewise.
76473         * modules/fopen-safer (Makefile.am): Likewise.
76474         * modules/fpending (Makefile.am): Likewise.
76475         * modules/fprintftime (Makefile.am): Likewise.
76476         * modules/free (Makefile.am): Likewise.
76477         * modules/fsusage (Makefile.am): Likewise.
76478         * modules/ftruncate (Makefile.am): Likewise.
76479         * modules/fts (Makefile.am): Likewise.
76480         * modules/gc (Makefile.am): Likewise.
76481         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76482         * modules/getaddrinfo (Makefile.am): Likewise.
76483         * modules/getcwd (Makefile.am): Likewise.
76484         * modules/getdelim (Makefile.am): Likewise.
76485         * modules/getdomainname (Makefile.am): Likewise.
76486         * modules/getgroups (Makefile.am): Likewise.
76487         * modules/gethostname (Makefile.am): Likewise.
76488         * modules/gethrxtime (Makefile.am): Likewise.
76489         * modules/getline (Makefile.am): Likewise.
76490         * modules/getloadavg (Makefile.am): Likewise.
76491         * modules/getlogin_r (Makefile.am): Likewise.
76492         * modules/getopt (Makefile.am): Likewise.
76493         * modules/getpass (Makefile.am): Likewise.
76494         * modules/getpass-gnu (Makefile.am): Likewise.
76495         * modules/getsubopt (Makefile.am): Likewise.
76496         * modules/gettime (Makefile.am): Likewise.
76497         * modules/gettimeofday (Makefile.am): Likewise.
76498         * modules/getugroups (Makefile.am): Likewise.
76499         * modules/getusershell (Makefile.am): Likewise.
76500         * modules/glob (Makefile.am): Likewise.
76501         * modules/group-member (Makefile.am): Likewise.
76502         * modules/hard-locale (Makefile.am): Likewise.
76503         * modules/hash (Makefile.am): Likewise.
76504         * modules/hmac-md5 (Makefile.am): Likewise.
76505         * modules/hmac-sha1 (Makefile.am): Likewise.
76506         * modules/human (Makefile.am): Likewise.
76507         * modules/idcache (Makefile.am): Likewise.
76508         * modules/imaxabs (Makefile.am): Likewise.
76509         * modules/imaxdiv (Makefile.am): Likewise.
76510         * modules/inet_ntop (Makefile.am): Likewise.
76511         * modules/inet_pton (Makefile.am): Likewise.
76512         * modules/inttostr (Makefile.am): Likewise.
76513         * modules/isapipe (Makefile.am): Likewise.
76514         * modules/lchown (Makefile.am): Likewise.
76515         * modules/long-options (Makefile.am): Likewise.
76516         * modules/lstat (Makefile.am): Likewise.
76517         * modules/malloc (Makefile.am): Likewise.
76518         * modules/mathl (Makefile.am): Likewise.
76519         * modules/mbchar (Makefile.am): Likewise.
76520         * modules/md2 (Makefile.am): Likewise.
76521         * modules/md4 (Makefile.am): Likewise.
76522         * modules/md5 (Makefile.am): Likewise.
76523         * modules/memcasecmp (Makefile.am): Likewise.
76524         * modules/memchr (Makefile.am): Likewise.
76525         * modules/memcmp (Makefile.am): Likewise.
76526         * modules/memcoll (Makefile.am): Likewise.
76527         * modules/memcpy (Makefile.am): Likewise.
76528         * modules/memmem (Makefile.am): Likewise.
76529         * modules/memmove (Makefile.am): Likewise.
76530         * modules/mempcpy (Makefile.am): Likewise.
76531         * modules/memrchr (Makefile.am): Likewise.
76532         * modules/memset (Makefile.am): Likewise.
76533         * modules/memxor (Makefile.am): Likewise.
76534         * modules/mkancesdirs (Makefile.am): Likewise.
76535         * modules/mkdir (Makefile.am): Likewise.
76536         * modules/mkdir-p (Makefile.am): Likewise.
76537         * modules/mkdtemp (Makefile.am): Likewise.
76538         * modules/mkstemp (Makefile.am): Likewise.
76539         * modules/mktime (Makefile.am): Likewise.
76540         * modules/modechange (Makefile.am): Likewise.
76541         * modules/mountlist (Makefile.am): Likewise.
76542         * modules/nanosleep (Makefile.am): Likewise.
76543         * modules/openat (Makefile.am): Likewise.
76544         * modules/pagealign_alloc (Makefile.am): Likewise.
76545         * modules/physmem (Makefile.am): Likewise.
76546         * modules/poll (Makefile.am): Likewise.
76547         * modules/posixtm (Makefile.am): Likewise.
76548         * modules/posixver (Makefile.am): Likewise.
76549         * modules/putenv (Makefile.am): Likewise.
76550         * modules/quote (Makefile.am): Likewise.
76551         * modules/quotearg (Makefile.am): Likewise.
76552         * modules/raise (Makefile.am): Likewise.
76553         * modules/read-file (Makefile.am): Likewise.
76554         * modules/readline (Makefile.am): Likewise.
76555         * modules/readlink (Makefile.am): Likewise.
76556         * modules/readtokens (Makefile.am): Likewise.
76557         * modules/readutmp (Makefile.am): Likewise.
76558         * modules/realloc (Makefile.am): Likewise.
76559         * modules/regex (Makefile.am): Likewise.
76560         * modules/rename (Makefile.am): Likewise.
76561         * modules/rename-dest-slash (Makefile.am): Likewise.
76562         * modules/rijndael (Makefile.am): Likewise.
76563         * modules/rmdir (Makefile.am): Likewise.
76564         * modules/rpmatch (Makefile.am): Likewise.
76565         * modules/safe-read (Makefile.am): Likewise.
76566         * modules/safe-write (Makefile.am): Likewise.
76567         * modules/same (Makefile.am): Likewise.
76568         * modules/save-cwd (Makefile.am): Likewise.
76569         * modules/savedir (Makefile.am): Likewise.
76570         * modules/setenv (Makefile.am): Likewise.
76571         * modules/settime (Makefile.am): Likewise.
76572         * modules/sha1 (Makefile.am): Likewise.
76573         * modules/sig2str (Makefile.am): Likewise.
76574         * modules/snprintf (Makefile.am): Likewise.
76575         * modules/stdlib-safer (Makefile.am): Likewise.
76576         * modules/stpcpy (Makefile.am): Likewise.
76577         * modules/stpncpy (Makefile.am): Likewise.
76578         * modules/strcase (Makefile.am): Likewise.
76579         * modules/strcasestr (Makefile.am): Likewise.
76580         * modules/strchrnul (Makefile.am): Likewise.
76581         * modules/strcspn (Makefile.am): Likewise.
76582         * modules/strdup (Makefile.am): Likewise.
76583         * modules/strerror (Makefile.am): Likewise.
76584         * modules/strftime (Makefile.am): Likewise.
76585         * modules/strndup (Makefile.am): Likewise.
76586         * modules/strnlen (Makefile.am): Likewise.
76587         * modules/strpbrk (Makefile.am): Likewise.
76588         * modules/strsep (Makefile.am): Likewise.
76589         * modules/strstr (Makefile.am): Likewise.
76590         * modules/strtod (Makefile.am): Likewise.
76591         * modules/strtoimax (Makefile.am): Likewise.
76592         * modules/strtok_r (Makefile.am): Likewise.
76593         * modules/strtol (Makefile.am): Likewise.
76594         * modules/strtoll (Makefile.am): Likewise.
76595         * modules/strtoul (Makefile.am): Likewise.
76596         * modules/strtoull (Makefile.am): Likewise.
76597         * modules/strtoumax (Makefile.am): Likewise.
76598         * modules/strverscmp (Makefile.am): Likewise.
76599         * modules/time_r (Makefile.am): Likewise.
76600         * modules/timegm (Makefile.am): Likewise.
76601         * modules/tmpfile-safer (Makefile.am): Likewise.
76602         * modules/unistd-safer (Makefile.am): Likewise.
76603         * modules/unlinkdir (Makefile.am): Likewise.
76604         * modules/userspec (Makefile.am): Likewise.
76605         * modules/utime (Makefile.am): Likewise.
76606         * modules/utimecmp (Makefile.am): Likewise.
76607         * modules/utimens (Makefile.am): Likewise.
76608         * modules/vasnprintf (Makefile.am): Likewise.
76609         * modules/vasprintf (Makefile.am): Likewise.
76610         * modules/vsnprintf (Makefile.am): Likewise.
76611         * modules/xalloc (Makefile.am): Likewise.
76612         * modules/xgetcwd (Makefile.am): Likewise.
76613         * modules/xnanosleep (Makefile.am): Likewise.
76614         * modules/xreadlink (Makefile.am): Likewise.
76615         * modules/xstrtod (Makefile.am): Likewise.
76616         * modules/xstrtol (Makefile.am): Likewise.
76617         * modules/xstrtold (Makefile.am): Likewise.
76618         * modules/yesno (Makefile.am): Likewise.
76619
76620 2006-10-12  Jim Meyering  <jim@meyering.net>
76621
76622         * m4/getloadavg.m4: Revert the change below.
76623
76624         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76625         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76626         fail with a symlink, which is what coreutils' ./bootstrap now
76627         creates by default.
76628
76629 2006-10-12  Bruno Haible  <bruno@clisp.org>
76630
76631         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76632         mingw.
76633         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76634         MSVC and mingw explicitly.
76635
76636 2006-10-11  Simon Josefsson  <jas@extundo.com>
76637             Bruno Haible  <bruno@clisp.org>
76638
76639         Add support for multiple gnulib-tool invocations in the scope of a
76640         single configure.ac file.
76641         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76642         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76643         with the same contents as the _LIBADD variable.
76644         (func_emit_initmacro_start, func_emit_initmacro_end,
76645         func_emit_initmacro_done): New functions.
76646         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76647         gl_LIBOBJS and gl_LTLIBOBJS.
76648
76649 2006-10-11  Bruno Haible  <bruno@clisp.org>
76650
76651         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76652         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76653         autoreconf. Instead, invoke autopoint explicitly but move back the
76654         *.m4 files from gnulib.
76655
76656 2006-10-11  Bruno Haible  <bruno@clisp.org>
76657
76658         * gnulib-tool (func_usage): Make module names after --create-testdir
76659         optional.
76660         (func_create_testdir): If no module was specified, use nearly all
76661         modules.
76662
76663 2006-10-12  Jim Meyering  <jim@meyering.net>
76664
76665         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76666         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76667         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76668         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76669         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76670         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76671         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76672         (fts_set_stat_required): New function.
76673         (fts_open): Defer the calls to fts_stat, if possible or requested.
76674         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76675         into fts_stat itself.
76676         (fts_read): Perform any required (deferred) fts_stat call.
76677         (fts_build): Likewise, for the directory we're about to open and read.
76678         In the readdir loop, carefully decide whether each entry will require
76679         an eventual call to fts_stat, using dirent.d_type info if available.
76680         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76681         a command line argument into this function.  Update all callers.
76682         Map a return value of FTS_DOT to FTS_D for a command line argument.
76683         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76684         Thanks to Miklos Szeredi for his tenacity and for the initial
76685         bug report about "find" failing on a FUSE-based file system.
76686
76687         * lib/fts.c (fts_open): Use consistent indentation.
76688
76689 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76690
76691         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76692         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76693         reported by Jim Meyering.  All uses of cache variables renamed
76694         to match Autoconf's.
76695         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76696         the other one.
76697
76698         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76699         Fix misspelling in diagnostic.
76700
76701 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76702
76703         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76704         defined.  Problem reported by Matthew Woehlke.
76705
76706         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76707         Add support for Tandem NonStop R series.
76708         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76709         Use new macro.
76710
76711         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76712         (has_trailing_slash): Omit size arg; all callers changed.
76713         Omit 'inline', since it doesn't help performance and we'd
76714         need to configure it.
76715         Don't count //, ///, etc. as having a trailing slash.
76716         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76717         (rpl_rename_dest_slash): On failure, use rename's errno rather
76718         than (in some cases) an incorrect or junk errno.
76719         Simplify code by removing need to compute length; this does
76720         cause it to make two passes instead of one over the file name,
76721         but it's worth it.
76722
76723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76724         change, since Autoconf's version may no longer be appropriate now
76725         that we are using CVS Autoconf's version.  Add support for Tandem.
76726
76727 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76728             Bruno Haible  <bruno@clisp.org>
76729
76730         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76731         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76732         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76733         gl_AC_TYPE_LONG_LONG.
76734
76735         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76736         instead of HAVE_LONG_LONG.
76737         * lib/printf-args.c (printf_fetchargs): Likewise.
76738         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76739         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76741         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76742         gl_AC_TYPE_LONG_LONG.
76743
76744 2006-10-11  Bruno Haible  <bruno@clisp.org>
76745
76746         * m4/longlong.m4: Add comments.
76747         * m4/ulonglong.m4: Likewise.
76748
76749 2006-10-10  Bruno Haible  <bruno@clisp.org>
76750
76751         Make it possible to #define stpcpy, strdup to aliases.
76752         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76753         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76754
76755 2006-10-10  Bruno Haible  <bruno@clisp.org>
76756
76757         Make it possible to #define gcd to an alias.
76758         * lib/gcd.c: Include config.h.
76759
76760 2006-10-10  Bruno Haible  <bruno@clisp.org>
76761
76762         Make it possible to #define c_isascii to an alias.
76763         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76764         defined. Undefine the macros before defining them, to avoid gcc
76765         warnings.
76766         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76767         define NO_C_CTYPE_MACROS early.
76768
76769 2006-10-10  Bruno Haible  <bruno@clisp.org>
76770
76771         Make it possible to #define set_program_name to an alias.
76772         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76773         ENABLE_RELOCATABLE early.
76774
76775 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76778         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76779         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76780         More generally, don't assume that 64-bit signed int is available
76781         if unsigned int is, and vice versa.
76782         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76783         unsigned symbols, not on their signed counterparts.
76784         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76785         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76786         (UINT64_C, UINTMAX_C):
76787         Likewise.
76788         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76789         unsigned counterparts.
76790         (Have_long_long, Unsigned): New macros.
76791         (Int): Renamed from INT.
76792         (strtoimax): Use the new macros.
76793         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76794         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76795         * modules/inttypes (inttypes.h): Substitute
76796         HAVE_UNSIGNED_LONG_LONG_INT.
76797         * modules/stdint (stdint.h): Likewise.
76798         (Files): Add m4/ulonglong.m4.
76799
76800 2006-10-10  Bruno Haible  <bruno@clisp.org>
76801
76802         Fix a gcc -Wshadow warning.
76803         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76804         to 'bucket'.
76805         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76806         gl_linked_indexof_from_to): Likewise.
76807         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76808         Likewise.
76809         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76810         Likewise.
76811         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76812         Reported by Eric Blake.
76813
76814 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76817         for NetBSD.  Problem reported by Bruno Haible.
76818
76819 2006-10-09  Jim Meyering  <jim@meyering.net>
76820
76821         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76822         Patch from Bruno Haible.
76823
76824 2006-10-09  Jim Meyering  <jim@meyering.net>
76825
76826         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76827         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76828         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76829
76830 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         Don't include <config.h> twice; this doesn't work in some cases,
76833         e.g., when config.h has "#define intmax_t long long int" and
76834         we include <config.h>, <inttypes.h>, <config.h> in that order.
76835         Problem reported by Matthew Woehlke in:
76836         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76837         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76838         * lib/fts-cycle.c: Don't include config.h.
76839         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76840         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76841         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76842         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76843         inttypes.h.
76844         * lib/xstrtoumax.c: Likewise.
76845         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76846         __strtol and the like, so that this module is more like its siblings.
76847         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76848         Remove; no longer needed now that we assume gnulib inttypes.h.
76849
76850 2006-10-08  Bruno Haible  <bruno@clisp.org>
76851
76852         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76853         option.
76854
76855 2006-10-07  Jim Meyering  <jim@meyering.net>
76856
76857         * modules/inttypes (inttypes.h): Revert what seems to have been
76858         an inadvertent part of today's change: use "|", not "/" in the
76859         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76860
76861 2006-10-07  Bruno Haible  <bruno@clisp.org>
76862
76863         * modules/sublist: New file.
76864
76865 2006-10-07  Bruno Haible  <bruno@clisp.org>
76866
76867         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76868         * modules/argz (argz.h): Likewise.
76869         * modules/arpa_inet (arpa/inet.h): Likewise.
76870         * modules/byteswap (byteswap.h): Likewise.
76871         * modules/configmake (configmake.h): Likewise.
76872         * modules/fcntl (fcntl.h): Likewise.
76873         * modules/fnmatch (fnmatch.h): Likewise.
76874         * modules/getopt (getopt.h): Likewise.
76875         * modules/glob (glob.h): Likewise.
76876         * modules/inttypes (inttypes.h): Likewise.
76877         * modules/netinet_in (netinet/in.h): Likewise.
76878         * modules/poll (poll.h): Likewise.
76879         * modules/stdbool (stdbool.h): Likewise.
76880         * modules/stdint (stdint.h): Likewise.
76881         * modules/sys_select (sys/select.h): Likewise.
76882         * modules/sys_socket (sys/socket.h): Likewise.
76883         * modules/sys_stat (sys/stat.h): Likewise.
76884         * modules/sysexits (sysexits.h): Likewise.
76885         * modules/unistd (unistd.h): Likewise.
76886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76887         Add a "DO NOT EDIT" comment to the generated file.
76888         (func_import): Likewise for gnulib-comp.m4.
76889
76890 2006-10-07  Bruno Haible  <bruno@clisp.org>
76891
76892         * lib/gl_sublist.h: New file.
76893         * lib/gl_sublist.c: New file.
76894
76895 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76898         name (relative to the original working directory) and the file
76899         name component (relative to the temporary working directory).  All
76900         callers changed.
76901         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76902         * lib/mkdir-p.c (make_dir_parents): Likewise.
76903         * lib/mkdir-p.h (make_dir_parents): Likewise.
76904
76905 2006-10-06  Eric Blake  <ebb9@byu.net>
76906
76907         Define several macros for use by the clean-temp module.
76908         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76909         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76910         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76911
76912         * lib/clean-temp.h (close_stream_temp): New declaration.
76913         * lib/clean-temp.c (includes): Pull in headers according to what
76914         other modules are in use.
76915         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76916
76917 2006-10-06  Bruno Haible  <bruno@clisp.org>
76918
76919         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76920         instead of fopen, fwriteerror.
76921
76922 2006-10-06  Bruno Haible  <bruno@clisp.org>
76923
76924         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76925         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76926         int.
76927         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76928         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76929         Return an error indicator.
76930         Suggested by Eric Blake.
76931
76932 2006-10-06  Bruno Haible  <bruno@clisp.org>
76933
76934         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76935         Reported by Eric Blake.
76936
76937 2006-10-06  Bruno Haible  <bruno@clisp.org>
76938
76939         * modules/closeout (Description): Mention stderr too.
76940
76941 2006-10-06  Bruno Haible  <bruno@clisp.org>
76942         and Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         * lib/closeout.c (close_stdout): Also close stderr.
76945         * lib/closeout.h: Update comment.
76946
76947 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76948
76949         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76950         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76951         * lib/dirchownmod.c: Include lchown.h.
76952         * lib/lchown.c: Don't include files that lchown.h now includes.
76953         Don't declare chown, since lchown.h now does that.
76954         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76955         (lchown): Define to rpl_chown if lchown is declared but
76956         does not exist.  Declare using a prototype if lchown is not
76957         declared.  Add a copyright notice.
76958         * lib/mkstemp.h: Include <unistd.h>.
76959         * lib/openat.c: Include lchown.h.
76960
76961         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76962         we now test for that separately.
76963         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76964         rather than O_NOFOLLOW, when testing whether it's possible to
76965         avoid a race condition reliably.
76966         * lib/savewd.c (savewd_chdir): Likewise.
76967
76968         Remove macros that are no longer needed now that stdint.h is
76969         reliable.
76970         * lib/fsusage.c (UINTMAX_MAX): Remove.
76971         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76972         * lib/utimecmp.c (SIZE_MAX): Remove.
76973
76974         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76975
76976         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76977         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76978         O_NOATIME works.
76979
76980 2006-10-05  Bruno Haible  <bruno@clisp.org>
76981
76982         * lib/gl_list.h (gl_sortedlist_search_from_to,
76983         gl_sortedlist_indexof_from_to): New declarations.
76984         (gl_list_implementation): New fields sortedlist_search_from_to,
76985         sortedlist_indexof_from_to.
76986         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76987         inline functions.
76988         * lib/gl_list.c (gl_sortedlist_search_from_to,
76989         gl_sortedlist_indexof_from_to): New functions.
76990         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76991         function.
76992         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76993         (gl_array_sortedlist_search_from_to): New function.
76994         (gl_array_list_implementation): Update.
76995         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76996         function.
76997         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76998         (gl_carray_sortedlist_search_from_to): New function.
76999         (gl_carray_list_implementation): Update.
77000         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77001         gl_linked_sortedlist_indexof_from_to): New functions.
77002         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77003         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77004         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77005         gl_tree_sortedlist_indexof_from_to): New functions.
77006         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77007         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77008         Update.
77009         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77010         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77011         Update.
77012
77013 2006-10-05  Bruno Haible  <bruno@clisp.org>
77014
77015         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77016         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77017         (struct gl_list_implementation): Add fields search_from_to,
77018         indexof_from_to. Remove fields search, indexof.
77019         (gl_list_search): Use the search_from_to method.
77020         (gl_list_search_from, gl_list_search_from_to): New functions.
77021         (gl_list_indexof): Use the indexof_from_to method.
77022         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77023         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77024         (gl_list_search_from, gl_list_search_from_to): New functions.
77025         (gl_list_indexof): Use the indexof_from_to method.
77026         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77027         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77028         gl_array_indexof. Add start_index, end_index arguments.
77029         (gl_array_search_from_to): Renamed from gl_array_search. Add
77030         start_index, end_index arguments.
77031         (gl_array_remove, gl_array_list_implementation): Update.
77032         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77033         gl_carray_indexof. Add start_index, end_index arguments.
77034         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77035         start_index, end_index arguments.
77036         (gl_carray_remove, gl_carray_list_implementation): Update.
77037         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77038         gl_linked_search. Add start_index, end_index arguments.
77039         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77040         start_index, end_index arguments.
77041         (gl_linked_remove): Update.
77042         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77043         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77044         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77045         field to 'size_t'.
77046         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77047         gl_tree_search. Add start_index, end_index arguments.
77048         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77049         start_index, end_index arguments.
77050         (gl_tree_remove): Update.
77051         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77052         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77053         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77054         function.
77055         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77056         gl_tree_search. Add start_index, end_index arguments.
77057         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77058         start_index, end_index arguments.
77059         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77060         Update.
77061         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77062
77063 2006-10-05  Bruno Haible  <bruno@clisp.org>
77064
77065         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77066
77067         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77068         fwriteerror_temp): New declarations.
77069         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77070         (descriptors): New variable.
77071         (cleanup): First, close the descriptors.
77072         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77073         fclose_temp, fwriteerror_temp): New functions.
77074
77075 2006-10-04  Jim Meyering  <jim@meyering.net>
77076
77077         * lib/fts.c (fts_open): Tiny comment change.
77078
77079 2006-10-04  Bruno Haible  <bruno@clisp.org>
77080
77081         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77082         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77083         gl_LOCK_BODY.
77084         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77085         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77086         gl_LOCK_EARLY_BODY.
77087         (gl_LOCK): Require gl_LOCK_BODY.
77088
77089 2006-10-04  Bruno Haible  <bruno@clisp.org>
77090
77091         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77092         (gl_oset_search_atleast): New declaration.
77093         (struct gl_oset_implementation): Add field 'search_atleast'.
77094         (gl_oset_search_atleast): New inline function.
77095         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77096         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77097         (gl_array_oset_implementation): Update.
77098         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77099         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77100         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77101
77102 2006-10-04  Bruno Haible  <bruno@clisp.org>
77103
77104         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77105
77106 2006-10-03  Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77109         from gl_avltreehash_list_implementation.
77110
77111 2006-10-03  Bruno Haible  <bruno@clisp.org>
77112
77113         * lib/gl_oset.c (gl_oset_add): Fix return type.
77114
77115 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77116
77117         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77118
77119 2006-10-02  Eric Blake  <ebb9@byu.net>
77120
77121         * modules/strnlen (Depends-on): Add extensions.
77122
77123 2006-10-02  Eric Blake  <ebb9@byu.net>
77124
77125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77126         definition in 2.60+.
77127
77128 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77129
77130         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77131         checks.
77132
77133 2006-10-02  Bruno Haible  <bruno@clisp.org>
77134
77135         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77136         to the AUTOMAKE_OPTIONS.
77137         Reported by Jim Meyering.
77138
77139 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         Work around bug in Solaris 10 /proc file system:
77142         /proc/self/fd/NNN/.. isn't the parent directory of
77143         the directory whose file descriptor is NNN.  This needs to
77144         be worked around at run time, not compile time, since a
77145         program might be built on Solaris 8, where things work, and
77146         run on Solaris 10.
77147         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77148         to use the following interface instead:
77149         (OPENAT_BUFFER_SIZE): New macro.
77150         (openat_proc_name): New function.
77151         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77152         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77153         Likewise.
77154         * lib/openat-proc.c: New file.
77155         * modules/openat (Files): Add lib/openat-proc.c.
77156         (Depends-on): Add same-inode, stdbool.
77157         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77158
77159 2006-09-29  Bruno Haible  <bruno@clisp.org>
77160
77161         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77162         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77163         argument. Set stdout_closed before testing for ferror, not after.
77164         (fwriteerror, fwriteerror_no_ebadf): New functions.
77165
77166 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77167
77168         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77169
77170 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77171
77172         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77173         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77174
77175 2006-09-28  Jim Meyering  <jim@meyering.net>
77176
77177         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77178         Include <unistd.h>.
77179
77180 2006-09-28  Bruno Haible  <bruno@clisp.org>
77181
77182         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77183         * modules/linkedhash-list (Depends-on): Likewise.
77184         * modules/rbtreehash-list (Depends-on): Likewise.
77185
77186 2006-09-28  Bruno Haible  <bruno@clisp.org>
77187
77188         * lib/strndup.h: Simplify the redefinition of strndup.
77189         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77190         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77191
77192 2006-09-28  Bruno Haible  <bruno@clisp.org>
77193
77194         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77195         * lib/gl_linkedhash_list.c: Likewise.
77196         * lib/gl_rbtreehash_list.c: Likewise.
77197
77198 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77201         getaddrinfo.
77202
77203         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77204         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77205         it causes <stdio_ext.h> to cause a compile-time error.
77206         Problem reported by Nelson H. F. Beebe.
77207         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77208         of HAVE_DECL___PENDING.
77209
77210         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77211         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77212         declaration.
77213
77214 2006-09-27  Jim Meyering  <jim@meyering.net>
77215
77216         This file could end up with a definition for a function
77217         named __strndup, rather than rpl_strndup on a system with
77218         incomplete weak_alias support.
77219         * lib/strndup.c (strndup): Rename from __strndup.
77220         Remove #defines that used to map __strndup to strndup.
77221         Don't use K&R prototypes.
77222         Remove LIBC-related code, since this file is not sync'd with glibc.
77223         * lib/strndup.h: Revamp, accordingly.
77224         * m4/strndup.m4: Modernize.
77225
77226 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77227
77228         * modules/savewd (Depends-on): Add 'raise'.
77229         * lib/savewd.c: Include <signal.h>, for 'raise'.
77230
77231 2006-09-26  Jim Meyering  <jim@meyering.net>
77232
77233         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77234         when we detect Darwin 8.7.0's acl_get_file bug.
77235         Rearrange to perform the new (below) run-test while $LIBS
77236         contains any acl-related library.  Set USE_ACL at the end.
77237         (gl_ACL_GET_FILE): New function.
77238
77239 2006-09-26  Eric Blake  <ebb9@byu.net>
77240
77241         * lib/verror.c: Include <config.h> unconditionally.
77242
77243 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77244
77245         * modules/clock-time (Maintainer): Add self.
77246         * modules/getlogin_r (Depends-on): Add extensions.
77247
77248 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77249
77250         * modules/clock-time: New module.
77251         * modules/nanosleep (Depends-on): Add clock-time.
77252         * modules/gethrxtime (Depends-on): Likewise.
77253         * modules/gettime (Depends-on): Likewise.
77254         * modules/settime (Depends-on): Likewise.
77255
77256         * modules/fts-lgpl: Depend on openat.
77257         * modules/mkancesdirs: Depend on savewd.
77258         * modules/mkdir-p: Likewise.
77259
77260 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77261
77262         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77263
77264         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77265         `gl_have_arbitrary_file_name_length_limit' to
77266         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77267         actually works between configure runs.
77268
77269 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77270             Bruno Haible  <bruno@clisp.org>
77271
77272         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77273
77274 2006-09-25  Jim Meyering  <jim@meyering.net>
77275
77276         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77277         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77278
77279 2006-09-25  Eric Blake  <ebb9@byu.net>
77280
77281         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77282         exec's in 2006-09-18 patch when shuffling fds.
77283
77284 2006-09-25  Bruno Haible  <bruno@clisp.org>
77285
77286         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77287         Reported by Jim Meyering.
77288
77289 2006-09-24  Jim Meyering  <jim@meyering.net>
77290
77291         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77292         compare a pointer against a literal "0".  That caused failures with
77293         at least HP-UX's hpcc.
77294
77295 2006-09-22  Simon Josefsson  <jas@extundo.com>
77296
77297         * modules/gc-sha1:
77298         * modules/gc-md4:
77299         * modules/gc-hmac-sha1:
77300         * modules/gc-hmac-md5:
77301         * modules/gc-des:
77302         * modules/gc-arcfour: Distribute more files.
77303
77304 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77305
77306         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77307         (gl_linked_iterator_from_to): Initialize struct completely.
77308         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77309         (gl_tree_iterator_from_to): Likewise
77310         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77311         * lib/gl_array_list.c [lint] (gl_array_iterator)
77312         (gl_array_iterator_from_to): Likewise.
77313         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77314         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77315         (gl_carray_iterator_from_to): Likewise.
77316
77317         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77318         * lib/md4.c (md4_process_block): Remove unused variable.
77319         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77320         parentheses for clarity.
77321
77322 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77323
77324         * modules/bison-i18n (Depends-on): Add gettext.
77325
77326 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77327
77328         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77330         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77331         also add missing comma that caused broken test.
77332         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77333         stdlib.h, for `abort'.
77334         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77335         variables.
77336         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77337         include unistd.h if present, for `rmdir'.
77338         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77339         variables.
77340         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77341         in the process include standard headers for prototypes.
77342         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77343         gets declared on GNU/Linux.
77344         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77345         unistd.h, for `rmdir'.
77346         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77347
77348         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77349         always true.
77350         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77351
77352         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77353
77354 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77355
77356         * gnulib-tool (func_version): Create output all at once.  This
77357         may help avoid triggering unnecessary SIGPIPEs, and at any
77358         rate it doesn't hurt.
77359
77360 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77361             Bruno Haible  <bruno@clisp.org>
77362
77363         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77364         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77365         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77366
77367         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77368         (gl_FUNC_VASPRINTF): Invoke it.
77369
77370 2006-09-22  Bruno Haible  <bruno@clisp.org>
77371
77372         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77373         getloadavg.c as first argument.
77374
77375 2006-09-22  Bruno Haible  <bruno@clisp.org>
77376
77377         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77378         at the beginning of the gl_INIT macro.
77379         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77380         gl_GETLOADAVG.
77381
77382 2006-09-22  Bruno Haible  <bruno@clisp.org>
77383
77384         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77385         module.
77386         Suggested by Ralf Wildenhues.
77387
77388 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77389
77390         Import this patch from libc:
77391
77392         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77393
77394         * lib/regex_internal.c (re_string_reconstruct): Handle
77395         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77396         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77397         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77398         re_string_context_at.
77399
77400         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77401         now requires it.
77402         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77403         gl_REGEX now does it for us.
77404         (gl_REGEX): Add test taken from
77405         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77406
77407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77408         Check that large offsets work.  Modernize Autoconf usages.
77409         Prefer "yes" to mean a good thing rather than a bad.
77410         Don't put "#define mkstemp" in config.h, as this might interfere
77411         with standard system headers that "#define mkstemp mkstemp64".
77412
77413         * modules/mkstemp (Depends-on): Add extensions, so that
77414         mkstemp is visible on some platforms.
77415         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77416         (Include): Change to "mkstemp.h" from <stdlib.h>.
77417         (Files): Add mkstemp.h.
77418
77419         * lib/mkstemp.h: New file, since some standard headers
77420         #define mkstemp.
77421         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77422         Include "mkstemp.h".
77423         Make the _LIBC code resemble glibc original more,
77424         e.g., use K&R style.
77425         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77426         (mkstemp): Remove, since mkstemp.h does this for us.
77427         * lib/stdlib--.h: Include mkstemp.h.
77428
77429         Import this patch from libc:
77430
77431         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77432
77433         * lib/tempname.c (__gen_tempname): Change attempts_min
77434         into a macro.  Use preprocessor to decide how to initialize
77435         attempts [Coverity CID 67].
77436
77437 2006-09-20  Bruno Haible  <bruno@clisp.org>
77438
77439         * lib/mkdtemp.c: Import from libc.
77440         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77441                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77442                 attempts_min into a macro.  Use preprocessor to decide how to
77443                 initialize attempts [Coverity CID 67].
77444         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77445                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77446                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77447
77448 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77449
77450         * gnulib-tool (func_exit): New function, to allow to pass the
77451         exit status portably through the trap.  Use everywhere.
77452         (--help, --version): Signal a write error.
77453         (trap): catch SIGPIPE, for write errors.
77454         Exit at the end of the trap, with the correct exit status.
77455
77456 2006-09-19  Karl Berry  <karl@gnu.org>
77457
77458         * doc/gnulib.texi: note about the license texinfo files.
77459
77460 2006-09-19  Eric Blake  <ebb9@byu.net>
77461
77462         * gnulib-tool: Avoid space-tab.
77463
77464 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77467         that prevented coreutils 6.1 from building.  Problem reported
77468         by Petter Reinholdtsen.
77469
77470 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77471
77472         * gnulib-tool (avoidlist): Fix typo that broke options like
77473         --avoid=lock that are used by coreutils bootstrap.
77474
77475 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77476
77477         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77478         more systematically.
77479
77480 2006-09-18  Jim Meyering  <jim@meyering.net>
77481
77482         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77483
77484 2006-09-18  Bruno Haible  <bruno@clisp.org>
77485
77486         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77487
77488 2006-09-18  Bruno Haible  <bruno@clisp.org>
77489
77490         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77491         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77492         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77493         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77494         * m4/gettext.m4: Require autoconf >= 2.52.
77495         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77496         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77497         of gl_cv_header_inttypes_h.
77498
77499 2006-09-18  Bruno Haible  <bruno@clisp.org>
77500
77501         * lib/javaversion.c: Include configmake.h.
77502
77503 2006-09-18  Bruno Haible  <bruno@clisp.org>
77504
77505         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77506         avoid that the while loops be executed in a subshell.
77507
77508 2006-09-18  Bruno Haible  <bruno@clisp.org>
77509
77510         * MODULES.html.sh (func_module): Break long lines.
77511         Suggested by Bruce Korb <bkorb@gnu.org>.
77512
77513 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77514
77515         Speed up by a factor of 1.12.
77516         * gnulib-tool (nl): New variable.
77517         (func_import): Rewrite include directive extraction to only read each
77518         directive once.
77519
77520 2006-09-17  Bruno Haible  <bruno@clisp.org>
77521
77522         * modules/javaversion (Makefile.am): Remove DEFS setting.
77523         (Depends-on): Add configmake, for PKGDATADIR definition.
77524
77525 2006-09-17  Bruno Haible  <bruno@clisp.org>
77526
77527         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77528
77529 2006-09-17  Bruno Haible  <bruno@clisp.org>
77530
77531         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77532         (func_modules_transitive_closure, func_modules_add_dummy,
77533         func_modules_to_filelist, func_import, func_create_testdir,
77534         func_create_megatestdir, ...): Use it wherever possible.
77535         Suggested by Ralf Wildenhues.
77536
77537 2006-09-16  Karl Berry  <karl@gnu.org>
77538
77539         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77540         to avoid sectioning errors.
77541         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77542         [ifinfo]: blank line after @center-ed titles.
77543         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77544         Spell FSF address consistently with others.
77545         (These changes approved by rms.)
77546
77547 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77548
77549         Speed up by a factor of 1.61.
77550         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77551         already checked module names again.
77552
77553 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77554
77555         Speed up by a factor of 1.13.
77556         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77557         for new_files, and the input to func_add_or_update.
77558
77559 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77560
77561         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77562         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77563
77564 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * modules/mkancesdirs (Depends-on): Add fcntl.
77567         * modules/savewd: New file.
77568         * MODULES.html.sh (File system functions): Add savewd.
77569
77570         * modules/configmake (Makefile.am): Add support for the
77571         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77572
77573 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * m4/savewd.m4: New file.
77576
77577 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77580         (dirchownmod): New arg FD.  All callers changed.
77581         Use FD rather than opening the directory ourself, as opening is
77582         now the caller's responsibility.
77583         * lib/dirchownmod.h: Likewise.
77584         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77585         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77586         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77587         (test_dir): Remove.
77588         (mkancesdirs): Return length of prefix of FILE that has already
77589         been made, or -2 if there is a child doing the work.  Redo
77590         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77591         ".", and treat ".." specially since it might stray back into
77592         already-created areas.  Use a subprocess if necessary.  New arg
77593         WD; all users changed.  MAKE_DIR function should now return 1
77594         if it creates a directory that is not readable.  Return -2 if
77595         a child process is spun off.
77596         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77597         Adjust signature to match code.
77598         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77599         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77600         all users changed.
77601         * lib/savewd.c, lib/savewd.h: New files.
77602
77603 2006-09-15  Jim Meyering  <jim@meyering.net>
77604
77605         * modules/rename-dest-slash: New module.
77606         * MODULES.html.sh (posix_compat): Add it here.
77607
77608         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77609
77610 2006-09-15  Jim Meyering  <jim@meyering.net>
77611
77612         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77613         file.
77614
77615         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77616
77617 2006-09-15  Jim Meyering  <jim@meyering.net>
77618
77619         * lib/rename-dest-slash.c (has_trailing_slash): Use
77620         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77621         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77622         test before testing whether SRC is a directory.
77623         Suggestions from Bruno Haible.
77624
77625         Avoid a warning about an unused variable.
77626         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77627         into the #ifdef block where it's used.
77628
77629         * lib/rename-dest-slash.c: New file.
77630
77631 2006-09-14  Bruno Haible  <bruno@clisp.org>
77632
77633         * lib/allocsa.c: Include <config.h> unconditionally.
77634         * lib/asnprintf.c: Likewise.
77635         * lib/asprintf.c: Likewise.
77636         * lib/c-strcasecmp.c: Likewise.
77637         * lib/c-strcasestr.c: Likewise.
77638         * lib/c-strncasecmp.c: Likewise.
77639         * lib/c-strstr.c: Likewise.
77640         * lib/classpath.c: Likewise.
77641         * lib/clean-temp.c: Likewise.
77642         * lib/concatpath.c: Likewise.
77643         * lib/copy-file.c: Likewise.
77644         * lib/csharpcomp.c: Likewise.
77645         * lib/csharpexec.c: Likewise.
77646         * lib/execute.c: Likewise.
77647         * lib/fatal-signal.c: Likewise.
77648         * lib/findprog.c: Likewise.
77649         * lib/fwriteerror.c: Likewise.
77650         * lib/gl_array_list.c: Likewise.
77651         * lib/gl_array_oset.c: Likewise.
77652         * lib/gl_avltree_list.c: Likewise.
77653         * lib/gl_avltree_oset.c: Likewise.
77654         * lib/gl_avltreehash_list.c: Likewise.
77655         * lib/gl_carray_list.c: Likewise.
77656         * lib/gl_linked_list.c: Likewise.
77657         * lib/gl_linkedhash_list.c: Likewise.
77658         * lib/gl_list.c: Likewise.
77659         * lib/gl_oset.c: Likewise.
77660         * lib/gl_rbtree_list.c: Likewise.
77661         * lib/gl_rbtree_oset.c: Likewise.
77662         * lib/gl_rbtreehash_list.c: Likewise.
77663         * lib/imaxabs.c: Likewise.
77664         * lib/imaxdiv.c: Likewise.
77665         * lib/javacomp.c: Likewise.
77666         * lib/javaexec.c: Likewise.
77667         * lib/javaversion.c: Likewise.
77668         * lib/linebreak.c: Likewise.
77669         * lib/localcharset.c: Likewise.
77670         * lib/lock.c: Likewise.
77671         * lib/mbchar.c: Likewise.
77672         * lib/mbswidth.c: Likewise.
77673         * lib/mkdtemp.c: Likewise.
77674         * lib/pipe.c: Likewise.
77675         * lib/printf-args.c: Likewise.
77676         * lib/printf-parse.c: Likewise.
77677         * lib/progname.c: Likewise.
77678         * lib/progreloc.c: Likewise.
77679         * lib/readlink.c: Likewise.
77680         * lib/sh-quote.c: Likewise.
77681         * lib/stpcpy.c: Likewise.
77682         * lib/stpncpy.c: Likewise.
77683         * lib/strcasecmp.c: Likewise.
77684         * lib/strcasestr.c: Likewise.
77685         * lib/strcspn.c: Likewise.
77686         * lib/striconv.c: Likewise.
77687         * lib/strncasecmp.c: Likewise.
77688         * lib/strnlen1.c: Likewise.
77689         * lib/strstr.c: Likewise.
77690         * lib/strtok_r.c: Likewise.
77691         * lib/tls.c: Likewise.
77692         * lib/tmpdir.c: Likewise.
77693         * lib/unicodeio.c: Likewise.
77694         * lib/unsetenv.c: Likewise.
77695         * lib/vasnprintf.c: Likewise.
77696         * lib/vasprintf.c: Likewise.
77697         * lib/wait-process.c: Likewise.
77698         * lib/xallocsa.c: Likewise.
77699         * lib/xsetenv.c: Likewise.
77700         * lib/xstriconv.c: Likewise.
77701
77702 2006-09-13  Simon Josefsson  <jas@extundo.com>
77703
77704         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77705         that internally, suggested by Ralf Wildenhues
77706         <Ralf.Wildenhues@gmx.de>.
77707
77708 2006-09-13  Simon Josefsson  <jas@extundo.com>
77709
77710         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77711         @LIBOBJS@.
77712         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77713
77714 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77717         longer worry about uses that don't define HAVE_CONFIG_H.
77718         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77719         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77720         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77721         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77722         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77723         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77724         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77725         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77726         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77727         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77728         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77729         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77730         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77731         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77732         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77733         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77734         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77735         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77736         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77737         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77738         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77739         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77740         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77741         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77742         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77743         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77744         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77745         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77746         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77747         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77748         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77749         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77750         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77751         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77752         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77753         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77754         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77755         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77756         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77757         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77758         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77759         Likewise.
77760
77761 2006-09-13  Eric Blake  <ebb9@byu.net>
77762
77763         * lib/getopt.c: Fix typo in last commit.
77764
77765 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77766
77767         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77768         dgettext.
77769
77770 2006-09-12  Jim Meyering  <jim@meyering.net>
77771
77772         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77773         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77774         Reported by Nelson H. F. Beebe.
77775
77776 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77777
77778         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77779         program_invocation_name and program_invocation_short_name are
77780         initialized.
77781         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77782         and program_invocation_short_name to argp.h, so they are visible
77783         to user programs.
77784         * lib/argp.h: Likewise
77785
77786 2006-09-10  Bruno Haible  <bruno@clisp.org>
77787
77788         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77789         m4/inttypes_h.m4, m4/uintmax_t.m4.
77790
77791 2006-09-10  Bruno Haible  <bruno@clisp.org>
77792
77793         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77794         gl_AC_TYPE_UINTMAX_T.
77795
77796 2006-09-10  Bruno Haible  <bruno@clisp.org>
77797
77798         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77799
77800 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77801
77802         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77803         convention.  Text proposed by Bruno Haible.
77804         (struct argp_option): Document the use of N_() wrappers.
77805
77806         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77807         '\v', and translate the two parts separately, instead of feeding
77808         the whole string to gettext.  This allows to exclude
77809         '\v' from the strings visible to the translator by writing doc
77810         strings as N_("..") "\v" N_("..").
77811
77812 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * config/srclist.txt: Undo latest change; the bug was fixed.
77815
77816 2006-09-09  Bruno Haible  <bruno@clisp.org>
77817
77818         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77819         assignments if building a library without libtool.
77820         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77821         in func_emit_lib_Makefile_am.
77822         (func_import): When building a static library libfoo.a, arrange to
77823         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77824         (func_create_testdir): Likewise.
77825         * modules/gc (configure.ac, Makefile.am): If building statically,
77826         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77827         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77828         * modules/striconv (configure.ac, Makefile.am): Likewise.
77829         Based on a suggestion by Ralf Wildenhues.
77830
77831 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77834         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77835         Also:
77836
77837         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77838         Add year_2050_test to catch glibc bug 2821
77839         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77840
77841         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77842         Prefer #ifdef to #if.
77843
77844         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77845         Return from 'main' instead of calling 'exit'.
77846
77847 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77850         returned the maximum time_t value rather than (time_t) -1.
77851         Problem originally reported by William Bardwell
77852         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77853
77854         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77855         Moved to here ...
77856         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77857         ... from here.
77858
77859 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77860
77861         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77862         2821 is fixed.
77863
77864 2006-09-08  Jim Meyering  <jim@meyering.net>
77865
77866         Don't make generated files read-only.  That would bother too many
77867         people.  However, do retain the ability to work when targets are
77868         read-only: remove the destination and temporary files before writing
77869         them (when generated via sed or echo), or by using the -f option for
77870         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77871         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77872         * modules/byteswap, modules/configmake, modules/fcntl:
77873         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77874         * modules/localcharset, modules/netinet_in, modules/poll:
77875         * modules/stdbool, modules/stdint, modules/sys_select:
77876         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77877
77878 2006-09-08  Jim Meyering  <jim@meyering.net>
77879
77880         Avoid new build failure on FreeBSD 6.0.
77881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77882         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77883         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77884
77885 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77886
77887         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77888
77889 2006-09-07  Jim Meyering  <jim@meyering.net>
77890
77891         Fix global typo in last change: use chmod u-w, not chmod u-x.
77892         Spotted by Paul Eggert and Bruce Korb.
77893         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77894         * modules/byteswap, modules/configmake, modules/fcntl:
77895         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77896         * modules/localcharset, modules/netinet_in, modules/poll:
77897         * modules/stdbool, modules/stdint, modules/sys_select:
77898         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77899
77900 2006-09-06  Jim Meyering  <jim@meyering.net>
77901
77902         Make generated files be read-only.
77903         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77904         Ensure that each generated file is now read-only.
77905         * modules/argz: Likewise.
77906         * modules/arpa_inet: Likewise.
77907         * modules/byteswap: Likewise.
77908         * modules/configmake: Likewise.
77909         * modules/fcntl: Likewise.
77910         * modules/fnmatch: Likewise.
77911         * modules/getopt: Likewise.
77912         * modules/glob: Likewise.
77913         * modules/inttypes: Likewise.
77914         * modules/netinet_in: Likewise.
77915         * modules/poll: Likewise.
77916         * modules/stdbool: Likewise.
77917         * modules/stdint: Likewise.
77918         * modules/sys_select: Likewise.
77919         * modules/sys_socket: Likewise.
77920         * modules/sys_stat: Likewise.
77921         * modules/sysexits: Likewise.
77922         * modules/localcharset: Same as above, but continue using temporary
77923         file named "t-$@" (why different?) rather than the "$@-t" used
77924         everywhere else.
77925
77926         * modules/sysexits (Makefile.am): Replace literal occurrences
77927         of "sysexit.h" more readable, and more consistent, "$@".
77928
77929 2006-09-06  Bruno Haible  <bruno@clisp.org>
77930
77931         * modules/striconv: New file.
77932         * modules/xstriconv: New file.
77933         * MODULES.html.sh (Internationalization functions): Add striconv,
77934         xstriconv.
77935
77936 2006-09-06  Bruno Haible  <bruno@clisp.org>
77937
77938         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77939         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77940         not using libtool correctly.
77941
77942 2006-09-06  Bruno Haible  <bruno@clisp.org>
77943
77944         * lib/striconv.h: New file.
77945         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77946         iconvstring.c.
77947         * lib/xstriconv.h: New file.
77948         * lib/xstriconv.c: New file.
77949
77950 2006-09-06  Bruno Haible  <bruno@clisp.org>
77951
77952         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77953         lib_..._LDFLAGS.
77954
77955 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77956
77957         * lib/argz_.h: Sync from Libtool.
77958
77959         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77960                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77961
77962         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77963
77964 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77965
77966         * modules/trim: New file.
77967
77968 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77969
77970         * lib/trim.h: New file.
77971         * lib/trim.c: New file.
77972
77973 2006-09-05  Bruno Haible  <bruno@clisp.org>
77974
77975         * MODULES.html.sh (String handling): Add trim.
77976
77977 2006-09-04  Karl Berry  <karl@gnu.org>
77978
77979         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77980         until next release.
77981
77982 2006-09-03  Bruno Haible  <bruno@clisp.org>
77983
77984         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77985         correctly.
77986
77987 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77988
77989         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77990         not gl_GETLOADAVG.  Omit unneeded semicolons.
77991         Problems reported by Ralf Wildenhues in
77992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77993         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77994         at the end, which is the usual gnulib style.
77995
77996         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77997         of doing all the work ourselves.
77998         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77999         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78000
78001 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78002
78003         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78004         Problem reported by Ralf Wildenhues in
78005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78006
78007         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78008         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78009
78010 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78011
78012         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78013         yesterday's patch by changing test -n to test -z.
78014
78015 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78016
78017         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78018         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78019         the former is now obsolescent.
78020
78021         * modules/chdir-long (Depends-on): Add fcntl.
78022
78023 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78026         obsolescent, and programs should use gnulib instead.
78027         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78028         but with prefixes changed.
78029
78030 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78033         or stdbool.h, because they might not exist while configuring.
78034
78035         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78036         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78037         does that for us.
78038         (O_DIRECTORY): Remove.
78039
78040 2006-08-31  Eric Blake  <ebb9@byu.net>
78041
78042         * gnulib-tool: Don't let emacs change spaces to TAB.
78043
78044 2006-08-31  Bruno Haible  <bruno@clisp.org>
78045
78046         * gnulib-tool: When calling func_import more than once, do it in a
78047         subshell.
78048         Reported by Eric Blake <ebb9@byu.net>.
78049
78050 2006-08-31  Bruno Haible  <bruno@clisp.org>
78051
78052         * gnulib-tool (nl): Remove variable.
78053         (sed_transform_lib_file): Use more robust test for config-h module.
78054         (func_import): Fix typo in 2006-08-25 patch.
78055
78056 2006-08-31  Bruno Haible  <bruno@clisp.org>
78057
78058         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78059         specified, augment Makefile.am variables instead of assigning them.
78060
78061 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         Work around a bug in both the Linux and SunOS 64-bit kernels:
78064         nanosleep mishandles sleeps for longer than 2**31 seconds.
78065         Problem reported by Frank v Waveren in
78066         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78068         Check for nanosleep bug.
78069         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78070
78071 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78072
78073         Work around a bug in both the Linux and SunOS 64-bit kernels:
78074         nanosleep mishandles sleeps for longer than 2**31 seconds.
78075         Problem reported by Frank v Waveren in
78076         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78077         * lib/nanosleep.c (BILLION): New constant.
78078         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78079         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78080         implementation.
78081
78082 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78083
78084         * modules/nanosleep (Depends-on): Add gettime.
78085
78086 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78087         and Simon Josefsson  <jas@extundo.com>
78088         and Oskar Liljeblad  <oskar@osk.mine.nu>
78089
78090         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78091         * gnulib-tool (func_import): New license type 'unmodifiable license
78092         text'.
78093         * modules/fdl: Use it.  Longer description.
78094         * module/gpl, module/lgpl: New files.
78095
78096 2006-08-30  Jim Meyering  <jim@meyering.net>
78097
78098         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78099         shadowing the parameter.
78100
78101 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78102
78103         Sync from Libtool:
78104
78105         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78106
78107         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78108         sharing with gnulib.  Report by Eric Blake.
78109
78110 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78111
78112         * modules/isapipe: New file.
78113         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78114
78115 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78116
78117         * modules/configmake (Makefile.am): Add a comment, and omit
78118         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78119         by Bruno Haible.
78120
78121 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * m4/isapipe.m4: New file.
78124
78125 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         * lib/isapipe.c, lib/isapipe.h: New files.
78128
78129 2006-08-29  Jim Meyering  <jim@meyering.net>
78130
78131         * modules/configmake (Makefile.am): Make configmake.h depend on
78132         Makefile.  Otherwise, a stale configmake.h could hang around.
78133
78134 2006-08-29  Eric Blake  <ebb9@byu.net>
78135
78136         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78137         resolution of upstream bug 3044.
78138
78139 2006-08-29  Bruno Haible  <bruno@clisp.org>
78140
78141         * modules/localcharset (Depends-on): Add configmake.
78142         (Makefile.am): Remove setting of LIBDIR through DEFS.
78143
78144 2006-08-29  Bruno Haible  <bruno@clisp.org>
78145
78146         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78147         defined.
78148
78149 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         * modules/fcntl: New file.
78152         * modules/chdir-safer (Depends-on): Add fcntl.
78153         * modules/fts: Likewise.
78154         * modules/mkdir-p: Likewise.
78155
78156         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78157         This undoes the most recent change, since we're now addressing the
78158         problem in a different way.
78159
78160         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78161         into output, since the output might be called Makefile.am even
78162         if $makefile_name is something different.
78163         (func_import): Use $makefile_am rather than
78164         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78165         empty.
78166
78167         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78168
78169 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78172         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78173         recent change to stdint.m4, since we're now addressing the problem in a
78174         different way.
78175
78176 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * m4/fcntl_h.m4: New file.
78179
78180 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         * lib/fcntl_.h: New file.
78183         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78184         the fcntl module.
78185         * lib/dirchownmod.c: Likewise.
78186         * lib/fts.c: Likewise.
78187
78188         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78189         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78190         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78191         just before including <inttypes.h>, to avoid circular inclusion.
78192
78193 2006-08-28  Jim Meyering  <jim@meyering.net>
78194
78195         * doc/visibility.texi: Actually read and correct the grammar of the
78196         sentence affected by yesterday's change.
78197
78198 2006-08-28  Eric Blake  <ebb9@byu.net>
78199
78200         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78201         needs wrapper.
78202
78203 2006-08-28  Eric Blake  <ebb9@byu.net>
78204
78205         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78206
78207 2006-08-28  Eric Blake  <ebb9@byu.net>
78208
78209         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78210
78211 2006-08-28  Bruno Haible  <bruno@clisp.org>
78212
78213         * modules/c-strstr: New file, from GNU gettext.
78214         * MODULES.html.sh (String handling): Add c-strstr.
78215
78216 2006-08-28  Bruno Haible  <bruno@clisp.org>
78217
78218         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78219         macros.
78220         Reported by Eric Blake.
78221
78222 2006-08-28  Bruno Haible  <bruno@clisp.org>
78223
78224         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78225         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78226         * lib/vasprintf.c: Include errno.h, limits.h.
78227         (EOVERFLOW): New fallback definition.
78228         (vasprintf): Test here whether the string length is > INT_MAX.
78229         * lib/vsnprintf.c: Include errno.h, limits.h.
78230         (EOVERFLOW): New fallback definition.
78231         (vsnprintf): Fix bug when generated string was too long for the buffer.
78232         Test here whether the string length is > INT_MAX.
78233
78234 2006-08-28  Bruno Haible  <bruno@clisp.org>
78235
78236         * lib/inttypes_.h (SCNX*): Remove definitions.
78237         Reported by Eric Blake.
78238
78239 2006-08-28  Bruno Haible  <bruno@clisp.org>
78240
78241         * lib/c-strstr.h: New file, from GNU gettext.
78242         * lib/c-strstr.c: New file, from GNU gettext.
78243
78244 2006-08-28  Bruno Haible  <bruno@clisp.org>
78245
78246         * gnulib-tool: Reorder some statements.
78247
78248 2006-08-28  Bruno Haible  <bruno@clisp.org>
78249
78250         * gnulib-tool: New option --makefile-name.
78251         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78252         $makefile_name.
78253         (func_import): Write $makefile_name to the cache file, and read it from
78254         there unless explicitly specified. Use $makefile_name as file name
78255         instead of Makefile.am. Adjust the recommendations accordingly.
78256
78257 2006-08-28  Bruno Haible  <bruno@clisp.org>
78258
78259         * gnulib-tool (func_verify_module): Check against misapplying patch.
78260
78261 2006-08-28  Bruno Haible  <bruno@clisp.org>
78262
78263         * gnulib-tool (func_relativize, func_relconcat): New functions.
78264         Give an error if --local-dir is given with --update.
78265         Remove trailing slashes from $local_gnulib_dir.
78266         (func_import): Store the relativized $local_gnulib_dir in
78267         gnulib-cache.m4, and read it from there if not specified explicitly.
78268
78269 2006-08-28  Bruno Haible  <bruno@clisp.org>
78270
78271         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78272         is the current directory. Respect also $local_gnulib_dir.
78273
78274 2006-08-28  Bruno Haible  <bruno@clisp.org>
78275             Simon Josefsson  <jas@extundo.com>
78276
78277         BeOS portability.
78278         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78279
78280 2006-08-27  Jim Meyering  <jim@meyering.net>
78281
78282         * doc/visibility.texi: Remove duplicate word: "pointer".
78283
78284 2006-08-26  Bruno Haible  <bruno@clisp.org>
78285
78286         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78287         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78288         (Makefile.am): Create inttypes.h from inttypes_.h.
78289         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78290
78291         * modules/imaxabs: New file.
78292
78293         * modules/imaxdiv: New file.
78294
78295 2006-08-26  Bruno Haible  <bruno@clisp.org>
78296
78297         * m4/inttypes.m4: New file.
78298         * m4/_inttypes_h.m4: Remove file.
78299         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78300         PRI_MACROS_BROKEN.
78301         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78302
78303         * m4/imaxabs.m4: New file.
78304
78305         * m4/imaxdiv.m4: New file.
78306
78307 2006-08-26  Bruno Haible  <bruno@clisp.org>
78308
78309         * lib/inttypes_.h: New file.
78310         * lib/inttypes.h: Remove file.
78311         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78312
78313         * lib/imaxabs.c: New file.
78314
78315         * lib/imaxdiv.c: New file.
78316
78317 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         New config-h module, so that "make" output needn't be cluttered
78320         by -DHAVE_CONFIG_H.
78321         * MODULES.html.sh (Support for building libraries and executables):
78322         Add config-h.
78323         * modules/config-h: New file.
78324         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78325         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78326         the config-h module is used.
78327
78328         New configmake module, so that "make" output needn't be cluttered
78329         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78330         * MODULES.html.sh (Support for building libraries and executables):
78331         Add configmake.
78332         * modules/configmake: New file.
78333
78334 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         * m4/config-h.m4: New file.
78337
78338 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78339
78340         * config/srclist.txt: Add elisp-comp.
78341
78342 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78343
78344         * MODULES.html.sh (Support for building libraries and executables):
78345         Add elisp-comp.
78346         * build-aux/elisp-comp: New file.
78347         * modules/elisp-comp: New file.
78348
78349 2006-08-24  Bruno Haible  <bruno@clisp.org>
78350
78351         * gnulib-tool (func_create_testdir): Use non-default values of
78352         sourcebase and m4base.
78353
78354 2006-08-24  Bruno Haible  <bruno@clisp.org>
78355
78356         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78357         HTML structure.
78358
78359 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         * modules/openat (Depends-on): Add lchown.
78362
78363 2006-08-23  Bruno Haible  <bruno@clisp.org>
78364
78365         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78366         of gl_LOCK_EARLY instead of gl_LOCK.
78367
78368 2006-08-23  Bruno Haible  <bruno@clisp.org>
78369
78370         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78371         on OSF/1 to no.
78372         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78373
78374 2006-08-23  Bruno Haible  <bruno@clisp.org>
78375
78376         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78377         as unusable.
78378
78379         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78380         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78381         (gl_LOCK): New macro.
78382
78383 2006-08-22  Simon Josefsson  <jas@extundo.com>
78384
78385         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78386         to md5 module.
78387
78388 2006-08-22  Simon Josefsson  <jas@extundo.com>
78389
78390         * MODULES.html.sh: Add "Support for maintaining and release
78391         projects".
78392
78393         * build-aux/gnupload: New file, from coreutils.
78394
78395 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         Avoid the need for AC_LIBSOURCES in m4 macros.
78398         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78399         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78400         * modules/check-version (EXTRA_DIST): Add check-version.h.
78401         * modules/crc (EXTRA_DIST): Add crc.h.
78402         * modules/des (EXTRA_DIST): Add des.h.
78403         * modules/gc (EXTRA_DIST): Add gc.h.
78404         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78405         * modules/getline (EXTRA_DIST): Add getline.h.
78406         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78407         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78408         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78409         * modules/md2 (EXTRA_DIST): Add md2.h.
78410         * modules/md4 (EXTRA_DIST): Add md4.h.
78411         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78412         * modules/read-file (EXTRA_DIST): Add read-file.h.
78413         * modules/readline (EXTRA_DIST): Add readline.h.
78414         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78415         rijndael-api-fst.h.
78416
78417 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * m4/rijndael.m4 (gl_ARCFOUR):
78420         * m4/arctwo.m4 (gl_ARCTWO):
78421         * m4/check-version.m4 (gl_CHECK_VERSION):
78422         * m4/crc.m4 (gl_CRC):
78423         * m4/des.m4 (gl_DES):
78424         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78425         * m4/gc.m4 (gl_GC):
78426         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78427         * m4/getline.m4 (gl_FUNC_GETLINE):
78428         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78429         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78430         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78431         * m4/md2.m4 (gl_MD2):
78432         * m4/md4.m4 (gl_MD4):
78433         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78434         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78435         * m4/readline.m4 (gl_FUNC_READLINE):
78436         * m4/rijndael.m4 (gl_RIJNDAEL):
78437         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78438         to get the necessary .h files and whatnot.
78439
78440 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78443         gnulib rather than the other way around.
78444         * config/srclistvars.sh (COREUTILS): Remove.
78445
78446 2006-08-22  Jim Meyering  <jim@meyering.net>
78447
78448         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78449
78450         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78451
78452 2006-08-22  Eric Blake  <ebb9@byu.net>
78453
78454         * modules/regexprops-generic: New file.
78455         * MODULES.html.sh (Support for building documentation): List it.
78456
78457 2006-08-22  Eric Blake  <ebb9@byu.net>
78458
78459         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78460         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78461         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78462         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78463
78464 2006-08-22  Bruno Haible  <bruno@clisp.org>
78465
78466         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78467         and lib_LTLIBRARIES like the other lib_* variables.
78468
78469 2006-08-22  Bruno Haible  <bruno@clisp.org>
78470
78471         * build-aux/x-to-1.in: New file, from GNU gettext.
78472
78473 2006-08-22  Bruno Haible  <bruno@clisp.org>
78474
78475         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78476         <utmpx.h> exists.
78477
78478 2006-08-22  Bruno Haible  <bruno@clisp.org>
78479
78480         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78481         <utmpx.h> exists.
78482
78483 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78484
78485         BeOS portability.
78486         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78487         exist.
78488         Problem reported by Bruno Haible.
78489
78490 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78491
78492         Avoid the need for AC_LIBSOURCES in m4 macros.
78493         * modules/acl (EXTRA_DIST): Add acl.h.
78494         * modules/argmatch (Files): Add m4/argmatch.m4.
78495         (configure.ac): Add gl_ARGMATCH.
78496         (EXTRA_DIST): Renamed from lib_SOURCES, for
78497         consistency with the other modules.  Remove argmatch.c.
78498         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78499         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78500         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78501         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78502         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78503         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78504         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78505         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78506         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78507         * modules/closeout (EXTRA_DIST): Add closeout.h.
78508         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78509         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78510         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78511         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78512         dirname.h; remove basename.c and stripslash.c.
78513         * modules/exclude (EXTRA_DIST): Add exclude.h.
78514         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78515         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78516         * modules/file-type (EXTRA_DIST): Add file-type.h.
78517         * modules/filemode (EXTRA_DIST): Add filemode.h.
78518         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78519         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78520         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78521         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78522         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78523         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78524         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78525         * modules/getdate (EXTRA_DIST): Add getdate.c.
78526         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78527         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78528         * modules/getpass (EXTRA_DIST): Add getpass.h.
78529         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78530         * modules/group-member (EXTRA_DIST): Add group-member.h.
78531         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78532         * modules/hash (EXTRA_DIST): Add hash.h.
78533         * modules/human (EXTRA_DIST): Add human.h.
78534         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78535         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78536         * modules/lchown (EXTRA_DIST): Add lchown.h.
78537         * modules/long-options (EXTRA_DIST): Add long-options.h.
78538         * modules/lstat (EXTRA_DIST): Add lstat.h.
78539         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78540         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78541         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78542         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78543         * modules/memxor (EXTRA_DIST): Add memxor.h.
78544         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78545         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78546         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78547         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78548         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78549         * modules/physmem (EXTRA_DIST): Add physmem.h.
78550         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78551         * modules/posixver (EXTRA_DIST): Add posixver.h.
78552         * modules/quote (EXTRA_DIST): Add quote.h.
78553         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78554         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78555         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78556         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78557         regex_internal.h regexec.c.
78558         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78559         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78560         * modules/same (EXTRA_DIST): Add same.h.
78561         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78562         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78563         * modules/savedir (EXTRA_DIST): Add savedir.h.
78564         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78565         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78566         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78567         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78568         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78569         * modules/strdup (EXTRA_DIST): Add strdup.h.
78570         * modules/strftime (EXTRA_DIST): Add strftime.h.
78571         * modules/strndup (EXTRA_DIST): Add strndup.h.
78572         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78573         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78574         * modules/time_r (EXTRA_DIST): Add time_r.h.
78575         * modules/timespec (EXTRA_DIST): Add timespec.h.
78576         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78577         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78578         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78579         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78580         * modules/userspec (EXTRA_DIST): Add userspec.h.
78581         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78582         * modules/utimens (EXTRA_DIST): Add utimens.h.
78583         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78584         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78585         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78586         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78587         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78588         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78589         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78590         * modules/yesno (EXTRA_DIST): Add yesno.h.
78591
78592 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78593
78594         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78595
78596         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78597         * m4/dev-ino.m4, same-inode.m4: Remove.
78598
78599         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78600         * m4/acl.m4 (AC_FUNC_ACL):
78601         * m4/backupfile.m4 (gl_BACKUPFILE):
78602         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78603         * m4/canon-host.m4 (gl_CANON_HOST):
78604         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78605         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78606         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78607         * m4/cloexec.m4 (gl_CLOEXEC):
78608         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78609         * m4/closeout.m4 (gl_CLOSEOUT):
78610         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78611         * m4/dirname.m4 (gl_DIRNAME):
78612         * m4/exclude.m4 (gl_EXCLUDE):
78613         * m4/exitfail.m4 (gl_EXITFAIL):
78614         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78615         * m4/file-type.m4 (gl_FILE_TYPE):
78616         * m4/filemode.m4 (gl_FILEMODE):
78617         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78618         * m4/fpending.m4 (gl_FUNC_FPENDING):
78619         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78620         * m4/fts.m4 (gl_FUNC_FTS):
78621         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78622         * m4/getdate.m4 (gl_GETDATE):
78623         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78624         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78625         * m4/getpass.m4 (gl_FUNC_GETPASS):
78626         * m4/gettime.m4 (gl_GETTIME):
78627         * m4/getugroups.m4 (gl_GETUGROUPS):
78628         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78629         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78630         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78631         * m4/hash.m4 (gl_HASH):
78632         * m4/idcache.m4 (gl_IDCACHE):
78633         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78634         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78635         * m4/long-options.m4 (gl_LONG_OPTIONS):
78636         * m4/lstat.m4 (gl_FUNC_LSTAT):
78637         * m4/md5.m4 (gl_MD5):
78638         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78639         * m4/memcoll.m4 (gl_MEMCOLL):
78640         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78641         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78642         * m4/memxor.m4 (gl_MEMXOR):
78643         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78644         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78645         * m4/modechange.m4 (gl_MODECHANGE):
78646         * m4/mountlist.m4 (gl_MOUNTLIST):
78647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78648         * m4/openat.m4 (gl_FUNC_OPENAT):
78649         * m4/pathmax.m4 (gl_PATHMAX):
78650         * m4/physmem.m4 (gl_PHYSMEM):
78651         * m4/posixtm.m4 (gl_POSIXTM):
78652         * m4/posixver.m4 (gl_POSIXVER):
78653         * m4/quote.m4 (gl_QUOTE):
78654         * m4/quotearg.m4 (gl_QUOTEARG):
78655         * m4/readtokens.m4 (gl_READTOKENS):
78656         * m4/readutmp.m4 (gl_READUTMP):
78657         * m4/regex.m4 (gl_REGEX):
78658         * m4/safe-read.m4 (gl_SAFE_READ):
78659         * m4/safe-write.m4 (gl_SAFE_WRITE):
78660         * m4/same.m4 (gl_SAME):
78661         * m4/save-cwd.m4 (gl_SAVE_CWD):
78662         * m4/savedir.m4 (gl_SAVEDIR):
78663         * m4/settime.m4 (gl_SETTIME):
78664         * m4/sha1.m4 (gl_SHA1):
78665         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78666         * m4/stat-macros.m4 (gl_STAT_MACROS):
78667         * m4/stat-time.m4 (gl_STAT_TIME):
78668         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78669         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78670         * m4/strdup.m4 (gl_FUNC_STRDUP):
78671         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78672         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78673         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78674         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78675         * m4/time_r.m4 (gl_TIME_R):
78676         * m4/timespec.m4 (gl_TIMESPEC):
78677         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78678         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78679         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78680         * m4/userspec.m4 (gl_USERSPEC):
78681         * m4/utimecmp.m4 (gl_UTIMECMP):
78682         * m4/utimens.m4 (gl_UTIMENS):
78683         * m4/xalloc.m4 (gl_XALLOC):
78684         * m4/xgetcwd.m4 (gl_XGETCWD):
78685         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78686         * m4/xreadlink.m4 (gl_XREADLINK):
78687         * m4/xstrtod.m4 (gl_XSTRTOD):
78688         * m4/yesno.m4 (gl_YESNO):
78689         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78690         to get the necessary .h files and whatnot.
78691
78692 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78693             Bruno Haible  <bruno@clisp.org>
78694
78695         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78696         /bin/sh understanding of '!' conditional negation.
78697
78698 2006-08-21  Jim Meyering  <jim@meyering.net>
78699
78700         * modules/openat (Depends-on): Really alphabetize.
78701
78702         * modules/acl (Depends-on): Add error and quote.
78703
78704         * check-module (find_included_lib_files): Add at-func.c to the
78705         ok-to-include-more-than-once white list.
78706
78707         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78708
78709 2006-08-21  Bruno Haible  <bruno@clisp.org>
78710
78711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78712         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78713         Reported by Martin Lambers <marlam@marlam.de>.
78714
78715 2006-08-21  Bruno Haible  <bruno@clisp.org>
78716
78717         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78718         specify an installation location, don't emit a noinst_LIBRARIES or
78719         noinst_LTLIBRARIES assignment.
78720
78721 2006-08-21  Bruno Haible  <bruno@clisp.org>
78722
78723         BeOS portability.
78724         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78725         BeOS has mbrtowc() but no <wctype.h>.
78726
78727 2006-08-21  Bruno Haible  <bruno@clisp.org>
78728
78729         BeOS portability.
78730         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78731         exist.
78732
78733 2006-08-21  Bruno Haible  <bruno@clisp.org>
78734
78735         BeOS portability.
78736         * lib/mbchar.h: Include <wctype.h> only if it exists.
78737
78738 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         Remove files that are no longer needed by their respective modules.
78741         * m4/obstack.m4: Remove.
78742         * m4/strerror_r.m4: Remove.
78743         * m4/uint32_t.m4: Remove.
78744         * m4/uintptr_t.m4: Remove.
78745         * m4/ullong_max.m4: Remove.
78746         * m4/xstrtoimax.m4: Remove.
78747         * m4/xstrtoumax.m4: Remove.
78748
78749         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78750         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78751         dependencies now capture this.
78752
78753         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78754         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78755         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78756         * m4/human.m4 (gl_HUMAN): Likewise.
78757         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78758         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78759
78760         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78761
78762         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78763         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78764         stdint.
78765         * m4/human.m4 (gl_HUMAN): Likewise.
78766         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78767         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78768         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78769         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78770         * m4/xstrtol (gl_XSTRTOL): Likewise.
78771
78772         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78773         AC_TYPE_LONG_LONG_INT.
78774         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78775         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78776         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78777         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78778
78779         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78780         on stdbool.
78781
78782         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78783         (gl_PREREQ_XSTRTOUL): Remove.
78784
78785         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78786
78787         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78788         mode.
78789
78790 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78791
78792         Add and change modules to make it easier for coreutils to use
78793         gnulib-tool.
78794         * modules/backupfile (Files): Remove m4/d-ino.m4.
78795         (Depends-on): Add d-ino.
78796         * modules/cycle-check (Depends-on): Add stdint.
78797         (lib_SOURCES): Add cycle-check.h.
78798         * modules/d-ino: New module.
78799         * modules/d-type: New module.
78800         * modules/error (Files): Remove m4/strerror_r.m4.
78801         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78802         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78803         m4/inttypes_h.m4, m4/uintmax_t.m4.
78804         (Depends-on): Add stdint.
78805         (lib_SOURCES): Add fsusage.h.
78806         * modules/getcwd (Files): Remove d-ino.m4.
78807         (Depends-on): Add d-ino.
78808         * modules/getndelim2 (Depends-on): Add stdint.
78809         * modules/glob (Files): Remove m4/d-type.m4.
78810         (Depends-on): Add d-type.
78811         * modules/host-os: New module.
78812         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78813         m4/inttypes_h.m4, m4/uintmax_t.m4.
78814         * Depends-on: Add stdint.
78815         (lib_SOURCES): Add human.h.
78816         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78817         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78818         m4/uintmax_t.m4, m4/ulonglong.m4.
78819         (Depends-on): Add stdint.
78820         (EXTRA_DIST): Add inttostr.h.
78821         * modules/lchmod: New module.
78822         * modules/link-follow: New module.
78823         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78824         (Depends-on): Add lchmod.
78825         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78826         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78827         (Depends-on): Add stdint.
78828         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78829         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78830         (Depends-on): Add stdint.
78831         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78832         * modules/perl: New module.
78833         * modules/regex (Depends-on): Add stdint.
78834         * modules/rmdir-errno: New module.
78835         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78836         m4/intmax_t.m4.
78837         (Depends-on): Add stdint.
78838         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78839         m4/uintmax_t.m4.
78840         (Depends-on): Add stdint.
78841         * modules/unlink-busy: New module.
78842         * modules/utimecmp (Depends-on): Add stdint.
78843         * modules/uptime: New module.
78844         * modules/winsz-ioctl: New module.
78845         * modules/winsz-termios: New module.
78846         * modules/xnanosleep (Depends-on): Add nanosleep.
78847         * modules/ullong_max: Remove.
78848         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78849         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78850         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78851         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78852         (Depends-on): Add inttypes.
78853         (lib_SOURCES): Add xstrtol.h.
78854         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78855         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78856         * MODULES.html.sh: Move 'assert' into the assert section.
78857         Move 'dummy' into the linking section.
78858         Remove ullong_max.
78859         Add section for compatibility checks for POSIX:2001 functions,
78860         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78861         winsz-ioctl, and winsz-termios into it.
78862         Add lchmod.
78863         Add top-level Misc section and put host-os, perl, and uptime
78864         into it.
78865
78866 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78869         now assume the stdint module.  Do not include inttypes.h.
78870         * lib/fsusage.h: Likewise.
78871         * lib/getndelim2.c: Likewise.
78872         * lib/human.h: Likewise.
78873         * lib/inttostr.h: Likewise.
78874         * lib/obstack.c: Likewise.
78875         * lib/regex_internal.h: Likewise.
78876         * lib/tempname.c: Likewise.
78877         * lib/utimecmp.c: Likewise.
78878         * lib/xstrtol.h: Likewise.
78879
78880         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78881
78882         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78883         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78884         * lib/xtime.h: Likewise.
78885
78886 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78887
78888         * modules/openat (Files): Add lib/fchmodat.c.
78889         Fixes problem reported by Jay Youngman.
78890
78891 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78892
78893         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78894         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78895
78896 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78897             Bruno Haible  <bruno@clisp.org>
78898
78899         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78900         and is a script that invokes bison. Tighten the code. Add comments.
78901
78902 2006-08-18  Jim Meyering  <jim@meyering.net>
78903
78904         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78905         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78906         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78907         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78908
78909 2006-08-18  Bruno Haible  <bruno@clisp.org>
78910
78911         * modules/bison-i18n: New file.
78912         * MODULES.html.sh (Internationalization functions): Add it.
78913
78914 2006-08-18  Bruno Haible  <bruno@clisp.org>
78915
78916         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78917         sys/statvfs.h. When getmntinfo was found, check its declaration and
78918         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78919
78920 2006-08-18  Bruno Haible  <bruno@clisp.org>
78921
78922         * m4/bison-i18n.m4: New file, from bison.
78923
78924 2006-08-18  Bruno Haible  <bruno@clisp.org>
78925
78926         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78927         (ME_DUMMY): Treat "kernfs" as a dummy.
78928         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78929
78930 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         Update from coreutils.
78933
78934         2006-08-15  Jim Meyering  <jim@meyering.net>
78935
78936         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78937
78938         2006-01-17  Jim Meyering  <jim@meyering.net>
78939
78940         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78941
78942         2006-01-11  Jim Meyering  <jim@meyering.net>
78943
78944         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78945         Check for the lchmod function.
78946
78947 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         Update from coreutils.
78950
78951         * lib/__fpending.h: Add copyright notice.
78952         * lib/fprintftime.h: Likewise.
78953         * lib/savedir.c: Use (C) in copyright notice.
78954         * lib/savedir.h: Likewise.
78955
78956         2006-08-15  Jim Meyering  <jim@meyering.net>
78957
78958         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78959         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78960         in support of the EXPECTED_ERRNO macro.
78961         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78962         definitions.  Instead, define the appropriate symbols and include
78963         "at-func.c".
78964         * lib/mkdirat.c (mkdirat): Likewise.
78965         * lib/fchmodat.c (fchmodat): Likewise.
78966         (ENOSYS): Remove definition.
78967         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78968         it.  Don't include "unistd--.h" -- it wasn't ever used.
78969
78970         2006-01-17  Jim Meyering  <jim@meyering.net>
78971
78972         Rewrite fts.c not to change the current working directory,
78973         by using openat, fstatat, fdopendir, etc..
78974
78975         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78976         (HAVE_OPENAT_SUPPORT): Define.
78977         [_LIBC] (fchdir): Don't undef or define; no longer used.
78978         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78979         Now, this `function' always succeeds, and consumes its file descriptor
78980         parameter -- so callers must not close such FDs.  Update callers.
78981         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78982         (diropen): Add parameter, SP.  Adjust all callers.
78983         Implement using diropen_fd, rather than open.
78984         (fts_open): Initialize new member, fts_cwd_fd.
78985         Remove fts_rft-setting code.
78986         (fts_close): Close fts_cwd_fd, if necessary.
78987         (__opendir2): Define in terms of opendir or opendirat,
78988         depending on whether the FST_NOCHDIR flag is set.
78989         (fts_build): Since fts_safe_changedir consumes its FD, and since
78990         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78991         and close the dup'd file descriptor upon failure.
78992         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78993         (fts_safe_changedir): Tweak semantics to reflect that this function
78994         now calls cwd_advance_fd and hence consumes its FD argument.
78995         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78996         [struct FTS] (fts_rft): Remove now-unused member.
78997         [struct FTS] (fts_cycle.state): Improve comment.
78998
78999         * lib/openat.c (openat_needs_fchdir): New function.
79000         * lib/openat.h (openat_needs_fchdir): Declare it.
79001
79002 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79003
79004         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79005         Problem and fix reported by Pádraig Brady in
79006         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79007
79008 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79009
79010         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79011
79012 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * lib/memcoll.c (memcoll): Optimize for the common case where the
79015         arguments are bytewise equal.
79016
79017 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79018
79019         * doc/regexprops-generic.texi: Add a copyright notice.
79020
79021 2006-08-15  Bruno Haible  <bruno@clisp.org>
79022
79023         * modules/tmpdir (License): Change to LGPL.
79024
79025 2006-08-15  Bruno Haible  <bruno@clisp.org>
79026
79027         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79028         module.
79029
79030 2006-08-14  Simon Josefsson  <jas@extundo.com>
79031
79032         * config/srclist.txt: Add gnupload.
79033
79034 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79035
79036         Change copyright notice from LGPL 2 to GPL 2, since that's the
79037         standard form used in the gnulib repository.
79038         * tests/test-lock.c: Likewise.
79039         * tests/test-stdint.c: Likewise.
79040         * tests/test-tls.c: Likewise.
79041
79042         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79043         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79044         Add copyright notice.
79045
79046         * check-module: Add copyright notice.  Output a copyright
79047         notice if "--version" is specified.
79048         * modules/COPYING: New file.
79049         * tests/test-getaddrinfo.c: Add copyright notice.
79050         * tests/test-verify.c: Likewise.
79051
79052 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         Change copyright notice from LGPL 2 to GPL 2, since that's the
79055         standard form used in the gnulib repository.
79056         * lib/lock.c: LGPL -> GPL.
79057         * lib/lock.h: Likewise.
79058         * lib/strnlen1.c: Likewise.
79059         * lib/strnlen1.h: Likewise.
79060         * lib/tls.c: Likewise.
79061         * lib/tls.h: Likewise.
79062         * lib/tmpdir.c: Likewise.
79063
79064         * lib/TODO: Remove; this belongs only in coreutils.
79065
79066 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79067
79068         Add copyright notices to long-enough files that lack them, since
79069         otherwise the files aren't clearly free.  Use the same notice that
79070         getdate.texi already uses.
79071         * doc/alloca-opt.texi: Add copyright notice.
79072         * doc/alloca.texi: Likewise.
79073         * doc/ctime.texi: Likewise.
79074         * doc/functions.texi: Likewise.
79075         * doc/gcd.texi: Likewise.
79076         * doc/gnulib-tool.texi: Likewise.
79077         * doc/inet_ntoa.texi: Likewise.
79078         * doc/visibility.texi: Likewise.
79079
79080         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79081         * doc/quote.texi: Add copyright notice.
79082
79083         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79084         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79085         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79086         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79087         is now obsolete, and give a pointer to the Sun list.
79088         Add copyright notice.
79089
79090 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * config/srclistvars.sh: Add copyright notice.
79093
79094 2006-08-14  Eric Blake  <ebb9@byu.net>
79095
79096         Import the following change from libc:
79097
79098         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79099
79100         Upstream bug 2997.
79101         * lib/misc/error.c: Add space between program name and message if file
79102         name is missing.
79103
79104 2006-08-12  Karl Berry  <karl@gnu.org>
79105
79106         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79107         remove, these originate in gnulib now.
79108
79109 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79110
79111         * doc/Makefile (standards.info standards.html standards.dvi):
79112         Also depend on make-stds.texi.
79113
79114 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79117         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79118
79119         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79120         in wchar_t.  Problem reported by Eric Blake.
79121
79122         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79123         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79124         Also, help the compiler to keep LEN in a register.
79125
79126 2006-08-11  Eric Blake  <ebb9@byu.net>
79127
79128         * users.txt: Sort.  Add tar.
79129
79130 2006-08-11  Bruno Haible  <bruno@clisp.org>
79131
79132         * users.txt: New file.
79133
79134 2006-08-11  Bruno Haible  <bruno@clisp.org>
79135
79136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79137         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79138
79139 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * modules/snprintf (Depends-on): Remove minmax.
79142         (Maintainer): Add self and Bruno.
79143
79144 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79145
79146         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79147         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79148         (EOVERFLOW): Define if the system does not.
79149         Do not include "minmax.h"; it wasn't used.
79150         (snprintf): Don't assume size_t promotes to an unsigned type.
79151         Fix bug when generated string was too long for the buffer: the
79152         buffer's contents are supposed to be the initial prefix of the
79153         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79154         exceeds INT_MAX; do the check ourselves.
79155
79156         Import the following changes from libc:
79157
79158         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79159
79160         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79161         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79162         set wc to the byte which couldn't be converted.
79163         (re_string_reconstruct): Don't clear valid_raw_len before calling
79164         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79165         tip_context using re_string_context_at.
79166
79167         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79168
79169         * lib/posix/regex.h: g++ still cannot handled [restrict].
79170
79171         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79172
79173         * lib/posix/regex.h: Remove special handling for VMS.
79174
79175 2006-08-10  Jim Meyering  <jim@meyering.net>
79176
79177         * modules/same-inode: New module.
79178         * modules/dev-ino: New module.
79179         * modules/cycle-check: Depend on these modules, rather than simply
79180         including their .h files.
79181         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79182         required via m4/cycle-check.m4.
79183         * modules/same: Depend on new same-inode module, rather than
79184         including same-inode.h.
79185         * modules/chdir-safer: New file.
79186
79187         * modules/chown (Depends-on): Add stat-macros.
79188
79189 2006-08-10  Jim Meyering  <jim@meyering.net>
79190
79191         * m4/cycle-check.m4: New file.
79192         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79193         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79194
79195 2006-08-10  Eric Blake  <ebb9@byu.net>
79196
79197         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79198         in from original proposal.
79199
79200 2006-08-10  Eric Blake  <ebb9@byu.net>
79201         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79202
79203         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79204         namespace.
79205
79206 2006-08-10  Bruno Haible  <bruno@clisp.org>
79207
79208         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79209         as well.
79210
79211 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79212
79213         Sync from coreutils.
79214
79215         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79216
79217         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79218         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79219
79220 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79221
79222         * modules/restrict: Remove; no longer needed now that we assume
79223         Autoconf 2.59 or later.
79224         * MODULES.html.sh: Remove 'restrict'.
79225         * modules/argp (Depends-on): Remove 'restrict'.
79226         * modules/base64 (Depends-on): Likewise.
79227         * modules/gc (Depends-on): Likewise.
79228         * modules/getaddrinfo (Depends-on): Likewise.
79229         * modules/glob (Depends-on): Likewise.
79230         * modules/inet_ntop (Depends-on): Likewise.
79231         * modules/inet_pton (Depends-on): Likewise.
79232         * modules/memxor (Depends-on): Likewise.
79233         * modules/regex (Depends-on): Likewise.
79234         * modules/strtok_r (Depends-on): Likewise.
79235         * modules/time_r (Depends-on): Likewise.
79236
79237 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79238
79239         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79240         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79241         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79242         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79243         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79244         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79245         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79246         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79247
79248         Merge from coreutils.
79249         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79250         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79251         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79252         * m4/time_r.m4 (gl_TIME_R): Likewise.
79253
79254 2006-08-09  Karl Berry  <karl@gnu.org>
79255
79256         * config/srclist.txt: no more gettext-tools, per Bruno.
79257
79258 2006-08-08  Eric Blake  <ebb9@byu.net>
79259
79260         * modules/verror: New module.
79261         * MODULES.html.sh: Document it.
79262
79263 2006-08-08  Eric Blake  <ebb9@byu.net>
79264
79265         * lib/verror.h, lib/verror.c: New files.
79266
79267 2006-08-08  Eric Blake  <ebb9@byu.net>
79268
79269         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79270         verror_at_line output complies with GNU Coding Standards even when
79271         file is NULL.
79272
79273 2006-08-07  Bruno Haible  <bruno@clisp.org>
79274
79275         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79276         versions of AIX.
79277         Reported by Ralf Wildenhues.
79278
79279 2006-08-07  Bruno Haible  <bruno@clisp.org>
79280
79281         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79282         in an AC_DEFUN. Needed so that the autoconf snippets can use
79283         AC_REQUIRE.
79284
79285 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79286
79287         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79288         Initialize pkgdata_DATA.
79289         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79290         overriding it.
79291
79292 2006-08-06  Eric Blake  <ebb9@byu.net>
79293
79294         * lib/error.h: Fold in some upstream changes from glibc.
79295         * lib/error.c: Likewise.
79296
79297 2006-08-04  Bruno Haible  <bruno@clisp.org>
79298
79299         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79300         Make the mostlyclean-local rule depend on mostlyclean-generic.
79301         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79302
79303 2006-07-31  Bruno Haible  <bruno@clisp.org>
79304
79305         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79306         <stdlib.h>, <string.h>.
79307
79308 2006-07-30  Bruno Haible  <bruno@clisp.org>
79309
79310         * modules/readlink (License): Change to LGPL.
79311
79312 2006-07-30  Bruno Haible  <bruno@clisp.org>
79313
79314         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79315         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79316         set PKGDATADIR to point to it.
79317
79318 2006-07-30  Bruno Haible  <bruno@clisp.org>
79319
79320         * modules/csharpexec (configure.ac): Comment out macro invocation.
79321         * modules/javaexec (configure.ac): Likewise.
79322         * modules/javacomp-script (configure.ac): Likewise.
79323
79324         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79325
79326 2006-07-30  Bruno Haible  <bruno@clisp.org>
79327
79328         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79329         linked-list.
79330
79331 2006-07-30  Bruno Haible  <bruno@clisp.org>
79332
79333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79334
79335 2006-07-30  Bruno Haible  <bruno@clisp.org>
79336
79337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79338         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79339         get removed.
79340
79341 2006-07-29  Bruno Haible  <bruno@clisp.org>
79342
79343         Make it possible for gnulib-tool to work with locally modified or
79344         augmented gnulib repositories.
79345         * gnulib-tool (func_usage): Document --local-dir option.
79346         (local_gnulib_dir): New variable.
79347         Handle --local-dir option.
79348         (func_lookup_file): New function.
79349         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79350         (func_get_description, func_get_filelist, func_get_description,
79351         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79352         func_get_automake_snippet, func_get_include_directive,
79353         func_get_license, func_get_maintainer): Use func_lookup_file.
79354         (func_import, func_create_testdir): Use func_lookup_file.
79355
79356 2006-07-29  Bruno Haible  <bruno@clisp.org>
79357
79358         * modules/setenv (Depends-on): Add unistd.
79359
79360 2006-07-29  Bruno Haible  <bruno@clisp.org>
79361
79362         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79363
79364 2006-07-29  Bruno Haible  <bruno@clisp.org>
79365
79366         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79367
79368 2006-07-29  Bruno Haible  <bruno@clisp.org>
79369
79370         * gnulib-tool (import, update): If there is no Makefile.am, look at
79371         aclocal.m4, instead of bailing out.
79372
79373 2006-07-29  Bruno Haible  <bruno@clisp.org>
79374
79375         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79376         Categorize the options by when they are useful.
79377
79378 2006-07-29  Bruno Haible  <bruno@clisp.org>
79379
79380         * gnulib-tool (func_usage): Document option --no-libtool.
79381         Handle option --no-libtool.
79382         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79383         for changed semantics of $libtool variable.
79384         (func_import): Likewise. If libtool is not used, show this through
79385         an option --no-libtool.
79386         (func_create_testdir): Update.
79387
79388 2006-07-29  Bruno Haible  <bruno@clisp.org>
79389
79390         * gnulib-tool (func_import): Extend error message about missing
79391         --doc-base.
79392
79393 2006-07-29  Bruno Haible  <bruno@clisp.org>
79394
79395         * gnulib-tool (func_import): Don't create the $docbase directory if
79396         there is no file to store there.
79397
79398 2006-07-29  Bruno Haible  <bruno@clisp.org>
79399
79400         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79401         relevant, look for configure.ac there, not in the current directory.
79402         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79403
79404 2006-07-29  Bruno Haible  <bruno@clisp.org>
79405
79406         * gnulib-tool (SORT): New variable.
79407         (func_usage): Undocument --assume-autoconf option.
79408         Remove --assume-autoconf option handling.
79409         (autoconf_minversion): Determine from the contents of configure.ac.
79410         (func_import): Remove autoconf_minversion handling.
79411         Suggested by Eric Blake.
79412
79413 2006-07-29  Bruno Haible  <bruno@clisp.org>
79414
79415         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79416
79417 2006-07-29  Bruno Haible  <bruno@clisp.org>
79418
79419         * config/srclist.txt (*setenv.[ch]): Remove rules.
79420
79421 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79422
79423         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79424
79425 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79426
79427         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79428         arpa/inet.h.
79429
79430 2006-07-28  Simon Josefsson  <jas@extundo.com>
79431
79432         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79433         * modules/inet_pton (Depends-on): Likewise.
79434
79435 2006-07-28  Simon Josefsson  <jas@extundo.com>
79436
79437         * m4/netinet_in_h.m4: New file.
79438
79439 2006-07-28  Simon Josefsson  <jas@extundo.com>
79440
79441         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79442         #include's.
79443
79444 2006-07-28  Simon Josefsson  <jas@extundo.com>
79445
79446         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79447         #include's.
79448
79449 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79450
79451         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79452         setgid on directories only if they set these bits.
79453         * lib/modechange.h: Remove obsolete comment about masks.
79454
79455 2006-07-28  Eric Blake  <ebb9@byu.net>
79456
79457         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79458         macro expansion.
79459
79460 2006-07-28  Bruno Haible  <bruno@clisp.org>
79461
79462         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79463
79464 2006-07-28  Bruno Haible  <bruno@clisp.org>
79465
79466         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79467
79468 2006-07-28  Bruno Haible  <bruno@clisp.org>
79469
79470         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79471         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79472         Define fallbacks.
79473         Avoids link error on FreeBSD 4.x.
79474         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79475
79476         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79477         encoding.
79478         * lib/mbswidth.c (iswcntrl): Likewise.
79479
79480 2006-07-27  Bruno Haible  <bruno@clisp.org>
79481
79482         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79483         test.
79484
79485 2006-07-27  Bruno Haible  <bruno@clisp.org>
79486
79487         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79488         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79489         defined.
79490
79491 2006-07-26  Eric Blake  <ebb9@byu.net>
79492
79493         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79494
79495 2006-07-26  Eric Blake  <ebb9@byu.net>
79496
79497         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79498         like mingw that lack mkstemp.
79499         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79500         avoid compilation warning on mingw.
79501
79502 2006-07-26  Bruno Haible  <bruno@clisp.org>
79503
79504         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79505         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79506         INT_FAST*_MIN, INTPTR_MIN.
79507
79508 2006-07-25  Bruno Haible  <bruno@clisp.org>
79509
79510         * modules/version-etc (Depends-on): Add stdarg.
79511
79512 2006-07-25  Bruno Haible  <bruno@clisp.org>
79513
79514         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79515         complex commands.
79516
79517 2006-07-25  Bruno Haible  <bruno@clisp.org>
79518
79519         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79520         defined in <stdarg.h> or config.h.
79521
79522 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79525         (gl_STDIO_SAFER): Remove.
79526
79527 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79528
79529         * MODULES.html.sh (File stream based Input/Output):
79530         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79531         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79532         * modules/fopen-safer, modules/tmpfile-safer: New files.
79533         * modules/stdio-safer: Remove.
79534
79535 2006-07-24  Bruno Haible  <bruno@clisp.org>
79536
79537         * modules/tmpdir: New file.
79538         * MODULES.html.sh (File system functions): Add it.
79539
79540 2006-07-24  Bruno Haible  <bruno@clisp.org>
79541
79542         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79543         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79544
79545 2006-07-24  Bruno Haible  <bruno@clisp.org>
79546
79547         * modules/clean-temp: New file.
79548
79549 2006-07-24  Bruno Haible  <bruno@clisp.org>
79550
79551         * m4/tmpdir.m4: New file, from GNU gettext.
79552
79553 2006-07-24  Bruno Haible  <bruno@clisp.org>
79554
79555         * lib/tmpdir.h: New file, from GNU gettext.
79556         * lib/tmpdir.c: New file, from GNU gettext.
79557
79558 2006-07-24  Bruno Haible  <bruno@clisp.org>
79559
79560         * lib/clean-temp.h: New file, from GNU gettext.
79561         * lib/clean-temp.c: New file, from GNU gettext.
79562
79563 2006-07-23  Eric Blake  <ebb9@byu.net>
79564
79565         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79566         (Depends-on): Add binary-io.
79567
79568 2006-07-23  Eric Blake  <ebb9@byu.net>
79569
79570         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79571
79572 2006-07-23  Eric Blake  <ebb9@byu.net>
79573
79574         * lib/tmpfile-safer.c: New file.
79575         * lib/stdio-safer.h (fopen_safer): Add prototype.
79576         * lib/stdio--.h (tmpfile): Make safer.
79577
79578 2006-07-23  Bruno Haible  <bruno@clisp.org>
79579
79580         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79581         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79582         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79583         gl_linked_remove_at): Use it.
79584
79585 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79586         and Simon Josefsson <jas@extundo.com>
79587
79588         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79589
79590         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79591
79592 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79593
79594         * modules/close-stream: New file.
79595         * modules/closeout (Description): Make it clear that it exits
79596         with a diagnostic on error.
79597         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79598         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79599
79600 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79601
79602         * m4/close-stream.m4: New file.
79603
79604 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * lib/close-stream.c, lib/close-stream.h: New files.
79607
79608 2006-07-22  Bruno Haible  <bruno@clisp.org>
79609
79610         Merge from GNU gettext 0.15.
79611
79612         2006-05-01  Bruno Haible  <bruno@clisp.org>
79613
79614                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79615
79616         2006-07-22  Bruno Haible  <bruno@clisp.org>
79617
79618                 * modules/javaversion: New file.
79619                 * MODULES.html.sh (Java): Add javaversion.
79620
79621         2006-03-12  Bruno Haible  <bruno@clisp.org>
79622
79623                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79624
79625         2005-12-04  Bruno Haible  <bruno@clisp.org>
79626
79627                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79628                 (untested).
79629
79630         2006-06-21  Bruno Haible  <bruno@clisp.org>
79631
79632                 Avoid warnings from recent versions of mcs.
79633                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79634                 -o, -L, -r any more. Use options documented since mcs-1.0
79635                 instead. Similarly for -g.
79636
79637         2005-12-04  Bruno Haible  <bruno@clisp.org>
79638
79639                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79640                 .resources, not .resource.
79641
79642         2005-07-09  Bruno Haible  <bruno@clisp.org>
79643
79644                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79645                 add a .dll suffix.
79646                 Reported by Mark Junker <mjscod@gmx.de>.
79647
79648         2006-07-22  Bruno Haible  <bruno@clisp.org>
79649
79650                 * modules/gettext: Upgrade to gettext-0.15.
79651                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79652                 m4/visibility.m4.
79653                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79654
79655 2006-07-22  Bruno Haible  <bruno@clisp.org>
79656
79657         Merge from GNU gettext 0.15.
79658
79659         2006-03-25  Bruno Haible  <bruno@clisp.org>
79660
79661                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79662
79663         2006-07-21  Bruno Haible  <bruno@clisp.org>
79664
79665                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79666                 "1.1".
79667
79668         2006-05-09  Bruno Haible  <bruno@clisp.org>
79669
79670                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79671                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79672                 for the conftestver execution.
79673
79674         2006-05-01  Bruno Haible  <bruno@clisp.org>
79675
79676                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79677                 optional target-version argument. Verify that the compiler
79678                 groks source of the specified source-version, or add -source
79679                 option as necessary. Verify that the compiler produces
79680                 bytecode in the specified target-version, or add -target and
79681                 -source options as necessary. Make the result of the test
79682                 available as variable CONF_JAVAC. Also log error output in
79683                 config.log.
79684
79685         2006-03-11  Bruno Haible  <bruno@clisp.org>
79686
79687                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79688
79689         2006-05-09  Bruno Haible  <bruno@clisp.org>
79690
79691                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79692                 CLASSPATH_SEPARATOR to a semicolon.
79693
79694         2006-03-12  Bruno Haible  <bruno@clisp.org>
79695
79696                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79697                 available as variable CONF_JAVA, for subsequent autoconf
79698                 tests. Also log error output in config.log.
79699
79700         2006-07-19  Bruno Haible  <bruno@clisp.org>
79701
79702                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79703                 that getline works on glibc2 systems. Needed to avoid trouble
79704                 in relocatable.c.
79705                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79706
79707         2005-12-04  Bruno Haible  <bruno@clisp.org>
79708
79709                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79710                 launcher (untested).
79711
79712         2005-12-04  Bruno Haible  <bruno@clisp.org>
79713
79714                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79715
79716         2006-07-22  Bruno Haible  <bruno@clisp.org>
79717
79718                 * gettext.m4: Update from GNU gettext-0.15.
79719                 * nls.m4: Likewise.
79720                 * po.m4: Likewise.
79721                 * inttypes-pri.m4: Likewise.
79722                 * inttypes-h.m4: Renamed from inttypes.m4.
79723                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79724
79725 2006-07-22  Bruno Haible  <bruno@clisp.org>
79726
79727         Merge from GNU gettext 0.15.
79728
79729         2005-07-05  Bruno Haible  <bruno@clisp.org>
79730
79731                 * printf-args.c (printf_fetchargs): Work around broken
79732                 definition of wint_t on mingw.
79733
79734         2005-02-12  Bruno Haible  <bruno@clisp.org>
79735
79736                 * xallocsa.h: Add extern "C" for C++.
79737
79738         2006-05-17  Bruno Haible  <bruno@clisp.org>
79739
79740                 Cygwin portability.
79741                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79742
79743         2006-04-30  Bruno Haible  <bruno@clisp.org>
79744
79745                 * progreloc.c: Include <mach-o/dyld.h> if available.
79746                 (find_executable): Use _NSGetExecutablePath when possible.
79747
79748         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79749
79750                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79751                 function.
79752
79753         2005-12-29  Bruno Haible  <bruno@clisp.org>
79754
79755                 * progreloc.c (set_program_name_and_installdir): Fix
79756                 compilation error.
79757
79758         2005-12-04  Bruno Haible  <bruno@clisp.org>
79759
79760                 Cygwin portability.
79761                 * progreloc.c: Include <windows.h> also on Cygwin.
79762                 (find_executable): Add support for Cygwin.
79763                 (set_program_name_and_installdir): Handle also platforms with
79764                 nonempty EXEEXT.
79765
79766         2006-07-11  Bruno Haible  <bruno@clisp.org>
79767
79768                 * javacomp.c: Fix a comment.
79769                 Reported by Jim Meyering.
79770
79771         2006-04-30  Bruno Haible  <bruno@clisp.org>
79772
79773                 * javacomp.h (compile_java_class): Add source_version,
79774                 target_version arguments.
79775                 * javacomp.c: Rewritten to choose only a compiler that
79776                 respects the specified source_version and target_version.
79777
79778         2006-06-27  Bruno Haible  <bruno@clisp.org>
79779
79780                 Assume correct S_ISDIR macro.
79781                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79782
79783         2006-07-22  Bruno Haible  <bruno@clisp.org>
79784
79785                 * javaversion.h: New file, from GNU gettext.
79786                 * javaversion.c: New file, from GNU gettext.
79787                 * javaversion.java: New file, from GNU gettext.
79788                 * javaversion.class: New file, from GNU gettext.
79789
79790         2006-05-17  Bruno Haible  <bruno@clisp.org>
79791
79792                 Cygwin portability.
79793                 * javaexec.c (execute_java_class): Test for jview program
79794                 also on Cygwin.
79795
79796         2006-04-09  Bruno Haible  <bruno@clisp.org>
79797
79798                 * fatal-signal.c: Don't include string.h.
79799                 (at_fatal_signal): Use a copying loop instead of memcpy.
79800
79801         2005-12-04  Bruno Haible  <bruno@clisp.org>
79802
79803                 * csharpexec.c: Add support for 'clix' launcher (untested).
79804                 (execute_csharp_using_sscli): New function.
79805                 (execute_csharp_program): Call it.
79806
79807         2006-06-21  Bruno Haible  <bruno@clisp.org>
79808
79809                 Avoid warnings from recent versions of mcs.
79810                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79811                 -o, -L, -r any more. Use options documented since mcs-1.0
79812                 instead. Similarly for -g.
79813
79814         2005-07-09  Bruno Haible  <bruno@clisp.org>
79815
79816                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79817                 add a .dll suffix.
79818                 Reported by Mark Junker <mjscod@gmx.de>.
79819
79820         2006-06-17  Bruno Haible  <bruno@clisp.org>
79821
79822                 * config.charset: Update for NetBSD 3.0.
79823
79824         2006-05-17  Bruno Haible  <bruno@clisp.org>
79825
79826                 Cygwin portability.
79827                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79828
79829         2006-05-16  Bruno Haible  <bruno@clisp.org>
79830
79831                 * localcharset.c [CYGWIN]: Include <windows.h>.
79832                 (get_charset_aliases): For Cygwin, return the same CPxxx
79833                 aliases list as under WIN32.
79834                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79835                 the environment variables. Fall back to GetACP().
79836
79837         2006-04-05  Bruno Haible  <bruno@clisp.org>
79838
79839                 * config.charset: Update Juan Manuel Guerrero's address.
79840
79841         2005-02-12  Bruno Haible  <bruno@clisp.org>
79842
79843                 * allocsa.h: Add extern "C" for C++.
79844
79845         2005-02-10  Bruno Haible  <bruno@clisp.org>
79846
79847                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79848                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79849
79850         2006-07-22  Bruno Haible  <bruno@clisp.org>
79851
79852                 * gettext.h: Update to GNU gettext-0.15.
79853
79854 2006-07-22  Bruno Haible  <bruno@clisp.org>
79855
79856         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79857         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79858         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79859
79860 2006-07-21  Eric Blake  <ebb9@byu.net>
79861
79862         * modules/stdlib-safer: New file.
79863         * MODULES.html.sh (File stream based Input/Output): Add
79864         stdlib-safer.
79865
79866 2006-07-21  Eric Blake  <ebb9@byu.net>
79867
79868         * lib/stdlib-safer.h: New file from coreutils, required by
79869         stdlib--.h.
79870
79871 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79872
79873         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79874
79875 2006-07-20  Bruno Haible  <bruno@clisp.org>
79876
79877         * gnulib-tool: Recognize new option --assume-autoconf.
79878         (autoconf_minversion): New variable.
79879         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79880
79881 2006-07-20  Bruno Haible  <bruno@clisp.org>
79882
79883         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79884
79885 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79886
79887         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79888         Reindent and repaginate.
79889
79890 2006-07-19  Derek Price  <derek@ximbiot.com>
79891
79892         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79893         Correct grammar.
79894
79895 2006-07-17  Bruno Haible  <bruno@clisp.org>
79896
79897         * modules/list: New file.
79898         * modules/array-list: New file.
79899         * modules/carray-list, modules/carray-list-tests: New files.
79900         * modules/linked-list, modules/linked-list-tests: New files.
79901         * modules/avltree-list, modules/avltree-list-tests: New files.
79902         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79903         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79904         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79905         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79906         * modules/oset: New file.
79907         * modules/array-oset: New file.
79908         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79909         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79910         * tests/test-carray_list.c: New file.
79911         * tests/test-linked_list.c: New file.
79912         * tests/test-avltree_list.c: New file.
79913         * tests/test-rbtree_list.c: New file.
79914         * tests/test-linkedhash_list.c: New file.
79915         * tests/test-avltreehash_list.c: New file.
79916         * tests/test-rbtreehash_list.c: New file.
79917         * tests/test-avltree_oset.c: New file.
79918         * tests/test-rbtree_oset.c: New file.
79919         * MODULES.html.sh (Container data structures): New section.
79920
79921 2006-07-17  Bruno Haible  <bruno@clisp.org>
79922
79923         * m4/gl_list.m4: New file.
79924
79925 2006-07-17  Bruno Haible  <bruno@clisp.org>
79926
79927         * lib/gl_list.h: New file.
79928         * lib/gl_list.c: New file.
79929         * lib/gl_array_list.h: New file.
79930         * lib/gl_array_list.c: New file.
79931         * lib/gl_carray_list.h: New file.
79932         * lib/gl_carray_list.c: New file.
79933         * lib/gl_linked_list.h: New file.
79934         * lib/gl_linked_list.c: New file.
79935         * lib/gl_anylinked_list1.h: New file.
79936         * lib/gl_anylinked_list2.h: New file.
79937         * lib/gl_avltree_list.h: New file.
79938         * lib/gl_avltree_list.c: New file.
79939         * lib/gl_anyavltree_list1.h: New file.
79940         * lib/gl_anyavltree_list2.h: New file.
79941         * lib/gl_rbtree_list.h: New file.
79942         * lib/gl_rbtree_list.c: New file.
79943         * lib/gl_anyrbtree_list1.h: New file.
79944         * lib/gl_anyrbtree_list2.h: New file.
79945         * lib/gl_anytree_list1.h: New file.
79946         * lib/gl_anytree_list2.h: New file.
79947         * lib/gl_linkedhash_list.h: New file.
79948         * lib/gl_linkedhash_list.c: New file.
79949         * lib/gl_anyhash_list1.h: New file.
79950         * lib/gl_anyhash_list2.h: New file.
79951         * lib/gl_avltreehash_list.h: New file.
79952         * lib/gl_avltreehash_list.c: New file.
79953         * lib/gl_rbtreehash_list.h: New file.
79954         * lib/gl_rbtreehash_list.c: New file.
79955         * lib/gl_anytreehash_list1.h: New file.
79956         * lib/gl_anytreehash_list2.h: New file.
79957
79958         * lib/gl_oset.h: New file.
79959         * lib/gl_oset.c: New file.
79960         * lib/gl_array_oset.h: New file.
79961         * lib/gl_array_oset.c: New file.
79962         * lib/gl_avltree_oset.h: New file.
79963         * lib/gl_avltree_oset.c: New file.
79964         * lib/gl_rbtree_oset.h: New file.
79965         * lib/gl_rbtree_oset.c: New file.
79966         * lib/gl_anytree_oset.h: New file.
79967
79968 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         * m4/mkancesdirs.m4: New file.
79971         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79972         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79973         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79974         it.
79975
79976 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79979         * lib/mkancesdirs.h: New files.
79980         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79981         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79982         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79983         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79984         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79985         callers changed.  Revamp internals significantly, by not
79986         attempting to create directories that are temporarily more
79987         permissive than the final results.  Do not attempt to use
79988         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79989         This removes some race conditions, fixes some bugs, and simplifies
79990         things.  Use new dirchownmod function to do owner and mode changes.
79991         * lib/mkdir-p.h: Likewise.
79992         * lib/modechange.c (octal_to_mode): New function.
79993         (struct mode_change): New member mentioned.
79994         (make_node_op_equals): New arg mentioned.  All callers changed.
79995         (mode_compile): Keep track of which mode bits the user has explicitly
79996         mentioned.
79997         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79998         New arg PMODE_BITS, to keep track of which mode bits the user
79999         mentioned; it treats S_ISUID and S_ISGID speciall.
80000         All callers changed.
80001         * lib/modechange.h: Likewise.
80002
80003 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * MODULES.html.sh: Add mkancestors.
80006         * modules/mkancesdirs: New module.
80007         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80008         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80009         The chdir-safer and afs files are now orphans; I'll remove them
80010         unless someone speaks up.
80011         Add lib/dirchownmod.c, lib/dirchownmod.h.
80012         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80013         Add lchown, mkancesdirs.
80014         (Maintainer): Add self.
80015
80016 2006-07-15  Karl Berry  <karl@gnu.org>
80017
80018         * gnulib-tool: help message wording/arrangement.
80019
80020 2006-07-14  Simon Josefsson  <jas@extundo.com>
80021
80022         * doc/gnulib.texi (Libtool and Windows): New section.
80023
80024 2006-07-12  Simon Josefsson  <jas@extundo.com>
80025
80026         * modules/gendocs (License): Fix license, approved by Karl.
80027
80028 2006-07-12  Eric Blake  <ebb9@byu.net>
80029
80030         * MODULES.html.sh: Add gendocs.
80031
80032 2006-07-11  Eric Blake  <ebb9@byu.net>
80033
80034         * modules/fdl: New module, to install doc/fdl.texi.
80035         * MODULES.html.sh: Add new section for documentation modules.
80036         * gnulib-tool: Avoid space-tab.
80037         (--doc-base): New option, to manage files from doc.
80038
80039 2006-07-11  Eric Blake  <ebb9@byu.net>
80040
80041         * m4/absolute-header.m4: Fix comments to match recent change.
80042
80043 2006-07-11  Eric Blake  <ebb9@byu.net>
80044
80045         * gnulib-tool: List --doc-base before --tests-base.
80046
80047 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80048
80049         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80050
80051 2006-07-11  Bruno Haible  <bruno@clisp.org>
80052
80053         * README: Mention where to put documentation.
80054
80055 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80056
80057         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80058
80059 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80062         to stdint.m4.
80063
80064 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80067         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80068         "no/such/file/stdint.h" when there is no such file, so that
80069         the resulting C code can be parsed by dodgy compilers.
80070         Problems reported by Bob Proulx.
80071
80072 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80073
80074         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80075         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80076         macros into the GNU _D_EXACT_NAMLEN.
80077         * lib/savedir.c:  Likewise.
80078         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80079
80080 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80081         and Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80084         * m4/savedir.m4:
80085         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80086         macros into the GNU _D_EXACT_NAMLEN.
80087
80088 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80089
80090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80091         around the absolute name, to work around a problem with the HP-UX
80092         11.23 native C compiler, reported by Bob Proulx.
80093
80094 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80095
80096         * doc/maintain.texi, make-stds.texi: Sync from
80097         <http://savannah.gnu.org/projects/gnustandards>.
80098
80099 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80102
80103 2006-07-09  Jim Meyering  <jim@meyering.net>
80104
80105         * m4/glob.m4: Remove a doubled word in a comment.
80106
80107 2006-07-09  Jim Meyering  <jim@meyering.net>
80108
80109         * lib/argp-pv.c: Remove a doubled word in a comment.
80110         * lib/check-version.c (check_version): Likewise.
80111         * lib/javacomp.c (compile_java_class): Likewise.
80112
80113 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80116         for the benefit of people using Autoconf 2.60.  If you want to
80117         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80118         (or m4/onceonly.m4, if pre-2.57) manually.
80119
80120 2006-07-08  Jim Meyering  <jim@meyering.net>
80121
80122         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80123         comment.
80124         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80125         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80126         comment.
80127
80128 2006-07-08  Jim Meyering  <jim@meyering.net>
80129
80130         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80131
80132 2006-07-07  Simon Josefsson  <jas@extundo.com>
80133
80134         * tests/test-crc.c: Change expected crc value, the test vector
80135         were probably computed using the old broken crc.c?
80136
80137 2006-07-06  Simon Josefsson  <jas@extundo.com>
80138
80139         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80140         now the canonical place for the M4 file).
80141
80142         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80143         from the sys_socket dependency now.
80144
80145         * modules/inet_pton (Files): Ditto.
80146
80147         * modules/inet_ntop (Files): Ditto.
80148
80149 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80150
80151         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80152         not gl_PREREQ_GETUSERSHELL.
80153
80154 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80155
80156         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80157         with only one argument, for Autoconf 2.60.
80158         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80159         expand to nothing, so add a shell command to avoid syntax error.
80160         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80161
80162 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80163
80164         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80165
80166 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80169         no longer needed.  Check for isblank decl.
80170         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80171         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80172         of existence.
80173
80174 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80175
80176         * lib/getloadavg.c: Use __VMS, not VMS.
80177         * lib/getopt.c: Likewise.
80178         * lib/getpagesize.h: Likewise.
80179         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80180         and probably does not work.
80181
80182 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80183
80184         * lib/.cppi-disable: Add wcwidth.
80185         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80186         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80187         (ISGRAPH): Remove.  All uses changed to isgraph.
80188         (FOLD) [!defined _LIBC]: Remove special case.
80189         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80190         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80191         HAVE_ISBLANK.
80192         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80193         case.
80194
80195 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80196
80197         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80198         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80199         brackets.  Other minor changes to suppress some compiler
80200         warnings.
80201
80202 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80203         and Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80206         of invoking obsolescent AC_HEADER_DIRENT macro.
80207         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80208         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80209         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80210         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80211         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80212         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80213         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80214         * m4/readdir.m4: Remove; no longer needed.
80215
80216 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80217         and Paul Eggert  <eggert@cs.ucla.edu>
80218
80219         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80220         Don't worry about this obsolete case any more.
80221         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80222         directories.
80223         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80224         worry about this obsolete case any more.
80225         * lib/fts.c: Likewise.
80226         * lib/getcwd.c: Likewise.
80227         * lib/glob.h: Likewise.
80228         * lib/savedir.c: Likewise.
80229
80230 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80231
80232         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80233         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80234         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80235         needed.
80236         All uses removed.
80237         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80238         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80239         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80240         needed.
80241         * m4/getdate.m4 (gl_GETDATE): Likewise.
80242         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80243         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80244         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80245         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80246         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80248         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80249         needed.
80250
80251 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80252
80253         * lib/memcasecmp.c: Include <limits.h>.
80254         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80255         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80256         Don't assume isdigit succeeds only on '0' through '9'.
80257
80258 2006-07-05  Eric Blake  <ebb9@byu.net>
80259
80260         * modules/getaddrinfo (Depends-on): Add snprintf.
80261
80262 2006-07-05  Eric Blake  <ebb9@byu.net>
80263
80264         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80265         to avoid 'header present but could not be compiled' on cygwin.
80266
80267 2006-07-05  Eric Blake  <ebb9@byu.net>
80268
80269         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80270         missing from netdb.h.
80271         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80272
80273 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80274
80275         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80276         no longer needed.
80277         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80278         * m4/getdate.m4 (gl_GETDATE): Likewise.
80279         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80280         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80281         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80282         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80283         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80284
80285 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80286
80287         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80288         All uses of is_space replaced by isspace.
80289         * lib/exit.h: Don't talk about STDC_HEADERS.
80290         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80291         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80292         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80293         replaced by isprint etc.
80294         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80295         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80296         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80297         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80298         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80299         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80300
80301 2006-07-05  Bruno Haible  <bruno@clisp.org>
80302
80303         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80304         the function exists, before testing against AIX.
80305         Reported by Martin Lambers <marlam@marlam.de>.
80306
80307 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80308
80309         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80310         From Mark D. Baushke.
80311
80312 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80313
80314         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80315         to the absolute name, not just one, to bypass Sun C 5.8's
80316         "warning: #include of /usr/include/... may be non-portable".
80317
80318 2006-07-04  Eric Blake  <ebb9@byu.net>
80319
80320         * modules/dirname-tests: New test module.
80321         * tests/test-dirname.c: New file, replacing dirname.c
80322         TEST_DIRNAME section that was recently deleted.
80323
80324 2006-07-04  Bruno Haible  <bruno@clisp.org>
80325
80326         Assume ANSI C header files and <ctype.h> functions.
80327         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80328         (mbsnwidth): Use isprint, iscntrl instead.
80329
80330 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         Merge from coreutils.
80333         * MODULES.html.sh: Add xstrtold.
80334         * modules/xstrtold: New file.
80335         * modules/cycle-check (Files): Add lib/same-inode.h.
80336         * modules/dirname (Files): Add m4/double-slash-root.m4.
80337         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80338         * modules/mkdir-p (Files): Add lib/same-inode.h.
80339         * modules/same (Files): Add lib/same-inode.h.
80340
80341 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80342
80343         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80344         This is to keep the terminology clean; POSIX talks about
80345         "absolute pathnames", not "full pathnames", but the GNU
80346         Coding Standards say to use "path" for something else;
80347         so use "absolute" to keep both sides happy.
80348         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80349         Set gl_absolute_header, not gl_full_header_path.
80350         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80351         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80352         All uses changed.
80353
80354         Merge from coreutils.
80355
80356         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80357
80358         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80359         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80360         want to require the building of c-strtod.o.
80361         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80362         needs -lm directly.
80363         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80364
80365         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80366
80367         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80368         --as-needed option if available.  Problem reported by Albert Chin in
80369         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80370         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80371         cc merely issues a bunch of annoying warnings for --as-needed
80372         (this problem was reported by Bob Proulx).  Also, try linking with
80373         -lm to detect a bug in binutils 2.16 (this problem was reported
80374         by Ralf Wildenhues).
80375
80376         2006-06-18  Jim Meyering  <jim@meyering.net>
80377
80378         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80379         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80380         macro.
80381         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80382         also check for glibc-2.4's abort-inducing bug.
80383
80384         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80385         Low-probability clean-up should be to use rmdir to get rid of
80386         the just-created directory, not unlink.
80387
80388         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80389         configure fail, and request a bug report to inform us about it.
80390         Add a comment that, barring reports to the contrary, in 2007 we'll
80391         assume ftruncate is universally available.
80392
80393         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80394
80395         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80396
80397         2006-03-12  Jim Meyering  <jim@meyering.net>
80398
80399         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80400         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80401         * m4/same.m4 (gl_SAME): Likewise.
80402         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80403
80404         2006-03-11  Eric Blake  <ebb9@byu.net>
80405
80406         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80407         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80408         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80409         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80410
80411 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80412
80413         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80414         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80415         reported by Mark D. Baushke, one in
80416         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80417
80418         Merge from coreutils.
80419
80420         * lib/.cppi-disable: Add stdint_.h.
80421         * lib/.cvsignore: Add stdint.h.
80422
80423         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80424
80425         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80426         both double and long double versions.
80427         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80428         * lib/xstrtold.c: New file.
80429         * lib/xstrtod.h (xstrtold): New decl.
80430
80431         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         * lib/filemode.c (setst): Remove.
80434         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80435         (arguably) clearer, and the generated code is a bit smaller on my
80436         Debian GNU/Linux stable x86 host.
80437
80438         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80439
80440         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80441         Assume that filemode.h includes sys/types.h and sys/stat.h.
80442         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80443         (ftypelet): Reorder to put common cases first, for efficiency.
80444         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80445         to do 'M'.
80446         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80447         of 10, for compatibility with FreeBSD.  All callers changed.
80448         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80449         types that can't be deduced solely from st_mode.  First arg is now a
80450         const pointer.
80451         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80452         (strmode): Renamed from mode_string.
80453         (filemodestring): New decl.
80454         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80455         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80456         needed.
80457         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80458
80459         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80460
80461         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80462         fsusage.h now does that.  Include fsusage.h first, to test interface.
80463         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80464         at most one method (the old code could have generated decls that
80465         didn't conform to C89, not that this was ever exercised).
80466         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80467
80468         2006-03-19  Jim Meyering  <jim@meyering.net>
80469
80470         Work even in a chroot where d_ino values for entries in "/"
80471         don't match the stat.st_ino values for the same names.
80472         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80473         number, iterate through all entries again, using lstat instead.
80474         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80475         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80476
80477         * lib/getcwd.c (__getcwd): Clarify a comment.
80478         Use memcpy in place of a call to strcpy.
80479
80480         2006-03-12  Jim Meyering  <jim@meyering.net>
80481
80482         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80483         matches that of the current directory (which we're about to chdir ".."
80484         out of), then save the dev-ino of the parent, instead.
80485
80486         * lib/same-inode.h (SAME_INODE): New file/macro.
80487         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80488         Include "same-inode.h", instead.
80489         * lib/same.c: Likewise.
80490         * lib/cycle-check.h: Include "same-inode.h".
80491         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80492         * lib/cycle-check.c (SAME_INODE): Remove definition.
80493         * lib/root-dev-ino.h: Include "same-inode.h".
80494
80495         2006-03-11  Eric Blake  <ebb9@byu.net>
80496
80497         * lib/same.c (same_name): s/base_name/last_component/
80498         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80499         * lib/filenamecat.c (file_name_concat): Likewise.
80500
80501         2006-03-11  Eric Blake  <ebb9@byu.net>,
80502                     Paul Eggert  <eggert@cs.ucla.edu>
80503
80504         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80505         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80506         drive prefix.
80507         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80508         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80509         (last_component): New method.
80510         * lib/dirname.c (dir_len): Determine when drive letters need a
80511         subsequent slash.  Preserve // when it is special.
80512         (dir_name): Don't append dot when drive letter is absolute.
80513         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80514         * lib/basename.c (base_name): New semantics - malloc the result.
80515         Preserve // when it is special.  Preserve relative files that look
80516         like drive letters.
80517         (base_len): Preserve // when it is special.
80518         (last_component): New method, similar to old base_name semantics.
80519         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80520         base_name.  Strip redundant slashes from ///.
80521
80522 2006-07-03  Jim Meyering  <jim@meyering.net>
80523
80524         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80525         macro is used before the first cycle_check call.
80526
80527 2006-07-03  Eric Blake  <ebb9@byu.net>
80528
80529         * modules/dirname (Depends-on): Add xstrndup.
80530
80531 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80532
80533         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80534         test cases, so that config.log is a bit easier to follow.
80535
80536 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80539         both are 64 bits, since this seems to be the tradition, and this
80540         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80541         we ever run into a host that prefers long long to long in this
80542         case, we'll need another configure-time test.  Problem reported by
80543         Jim Meyering.
80544
80545 2006-07-02  Eric Blake  <ebb9@byu.net>
80546
80547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80548
80549 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * modules/inttypes (Depends-on): No longer depends on stdint.
80552         * modules/stdint (Description): Say more about assumptions.
80553         Say that the fast types might differ.  Say macros are used.
80554         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80555         (Makefile.am): Revise list of substituted symbols to match
80556         new stdint.m4.
80557         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80558         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80559         * tests/test-stdint.c (verify_same_types)
80560         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80561         the code conforms to C99/C89.
80562         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80563         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80564
80565 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80568         but fix a bug, by requiring at least 64 bits.
80569         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80570         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80571         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80572         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80573
80574         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80575         changes.  Make 2.59 a prerequisite.  Check and substitute for
80576         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80577         inttypes.h.  Do not use special include files; just use the
80578         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80579         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80580         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80581         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80582         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80583         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80584         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80585         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80586         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80587         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80588         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80589         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80590         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80591         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80592         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80593         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80594         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80595         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80596         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80597         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80598         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80599         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80600         not check for things that C99 does not require, e.g., int8_t.  If
80601         a test isn't needed unless <stdint.h> isn't working, and is
80602         unlikely to be needed for any other reason, then don't do it
80603         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80604         size_t, since we assume C89 freestanding at least.  Do not check
80605         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80606         the right thing even if the types are not defined.  Instead use:
80607         (gl_STDINT_TYPE_PROPERTIES): New macro.
80608         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80609         testing whether <sys/types.h> clashes, as Autoconf does this for
80610         us now.  All uses removed.
80611         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80612         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80613         (gl_CHECK_TYPE_SAME):
80614         Remove; no longer needed.
80615         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80616         exists, since we'll return 0 anyway in that case.
80617         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80618
80619 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80620
80621         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80622         possible collision with system files.
80623         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80624         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80625         WCHAR_MIN and WCHAR_MAX in this case.
80626         (<stddef.h>): Do not include; no longer needed.
80627         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80628         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80629         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80630         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80631         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80632         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80633         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80634         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80635         !defined(__c99))]: Include in this case too, since it's harmless
80636         now.
80637         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80638         dangerous to do so.
80639         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80640         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80641         (_STDINT_MIN, _STDINT_MAX): New macros.
80642         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80643         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80644         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80645         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80646         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80647         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80648         macros, not typedefs; this simplifies things quite a bit.
80649         Use long int for all types narrower than int64_t.
80650         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80651         Define in terms of long long int or int64_t or long int,
80652         not int64_t or int32_t.  This saves some compile-time testing.
80653         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80654         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80655         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80656         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80657         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80658         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80659         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80660         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80661         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80662         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80663         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80664         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80665         undef any previous version and define our own version, for
80666         simplicity and consistency with the new macros for types.
80667         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80668         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80669         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80670         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80671         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80672         @WINT_T_SUFFIX@ to keep things simple here.
80673         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80674         Simplify by assuming typical 8/16/32/64 host, since we're
80675         already doing that elsewhere anyway.
80676         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80677         and assume long long int is 64 bits if available.  This
80678         speeds up 'configure'.
80679
80680 2006-07-01  Eric Blake  <ebb9@byu.net>
80681
80682         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80683         Reported by Andreas Buening.
80684
80685 2006-07-01  Eric Blake  <ebb9@byu.net>
80686
80687         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80688
80689 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80690
80691         * lib/getaddrinfo.c: fixed typo
80692
80693 2006-06-29  Jim Meyering  <jim@meyering.net>
80694
80695         * modules/strftime (Maintainer): Add my name, since with the
80696         FPRINTFTIME changes strftime.c has forked from glibc.
80697
80698 2006-06-29  Eric Blake  <ebb9@byu.net>
80699
80700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80701
80702 2006-06-29  Eric Blake  <ebb9@byu.net>
80703
80704         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80705
80706 2006-06-29  Eric Blake  <ebb9@byu.net>
80707
80708         * lib/stat_.h: New file.
80709
80710 2006-06-29  Eric Blake  <ebb9@byu.net>
80711
80712         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80713         unused static function.
80714
80715 2006-06-29  Eric Blake  <ebb9@byu.net>
80716
80717         * doc/functions.texi (Function Portability): Document missing lstat
80718         on mingw.
80719
80720 2006-06-29  Eric Blake  <ebb9@byu.net>
80721
80722         * MODULES.html.sh: Add sys_stat.
80723         * modules/sys_stat: New module.
80724         * modules/mkstemp (Depends-on): Add sys_stat.
80725
80726 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80727
80728         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80729
80730 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80731
80732         * m4/c-bs-a.m4: Removed.
80733
80734 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80735
80736         * lib/strftime.c: Assume strftime() exists.
80737
80738 2006-06-29  Derek Price  <derek@ximbiot.com>
80739
80740         * modules/c-bs-a: Removed - \a is C89.
80741         * MODULES.html.sh: Remove c-bs-a.
80742
80743 2006-06-29  Bruno Haible  <bruno@clisp.org>
80744
80745         * modules/wcwidth (License): Change to LGPL.
80746
80747 2006-06-28  Simon Josefsson  <jas@extundo.com>
80748
80749         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80750         on _WIN32.
80751
80752         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80753         getnameinfo.
80754
80755 2006-06-28  Simon Josefsson  <jas@extundo.com>
80756
80757         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80758
80759 2006-06-28  Simon Josefsson  <jas@extundo.com>
80760
80761         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80762         functions there.  It will succeed on Windows XP, but on Windows
80763         2000 and (presumably) earlier, it will fail, and use the internal
80764         re-implementation.
80765         (use_win32_p): New function.
80766         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80767         Support AI_NUMERICSERV to disable getservbyname.
80768         (getnameinfo): New function, only supports
80769         NI_NUMERICHOST|NI_NUMERICSERV for now.
80770
80771         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80772         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80773         getnameinfo.
80774
80775 2006-06-28  Eric Blake  <ebb9@byu.net>
80776
80777         * modules/wcwidth: New file.
80778         * modules/mbchar (Depends-on): Add wcwidth.
80779         * modules/mbswidth (Depends-on): Add wcwidth.
80780         * MODULES.html.sh: Add wcwidth.
80781
80782 2006-06-28  Eric Blake  <ebb9@byu.net>
80783
80784         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80786
80787 2006-06-28  Eric Blake  <ebb9@byu.net>
80788
80789         * lib/xvasprintf.h: Fix comments.
80790
80791 2006-06-28  Eric Blake  <ebb9@byu.net>
80792
80793         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80794         * lib/mbswidth.c (wcwidth): Move from here...
80795         * lib/wcwidth.h: ...to this new file.
80796
80797 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80798
80799         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80800
80801         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80802         it's obsolete.
80803         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80804
80805 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80806
80807         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80808         Autoconf 2.60 says this stuff was obsolete.
80809
80810 2006-06-28  Bruno Haible  <bruno@clisp.org>
80811
80812         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80813
80814 2006-06-28  Bruno Haible  <bruno@clisp.org>
80815
80816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80817         gt_TYPE_WCHAR_T.
80818
80819 2006-06-28  Bruno Haible  <bruno@clisp.org>
80820
80821         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80822         declaration for wcwidth.
80823         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80824
80825 2006-06-28  Bruno Haible  <bruno@clisp.org>
80826
80827         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80828         (mkdir): Define using _mkdir.
80829
80830 2006-06-28  Bruno Haible  <bruno@clisp.org>
80831
80832         * lib/getaddrinfo.h: Fix POSIX URL.
80833         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80834         _WIN32.
80835         (use_win32_p): Make static.
80836         (getaddrinfo): Reject service name if it is empty or does not consist
80837         solely of decimal digits, or if its value is > 65535.
80838         (getnameinfo): Remove useless casts.
80839
80840 2006-06-27  Simon Josefsson  <jas@extundo.com>
80841
80842         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80843         Eggert and Martin Lambers.
80844
80845 2006-06-27  Simon Josefsson  <jas@extundo.com>
80846
80847         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80848         Eggert and Martin Lambers.
80849
80850 2006-06-27  Bruno Haible  <bruno@clisp.org>
80851
80852         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80853         result to 0, not to empty.
80854         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80855
80856 2006-06-27  Bruno Haible  <bruno@clisp.org>
80857
80858         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80859
80860 2006-06-26  Simon Josefsson  <jas@extundo.com>
80861
80862         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80863         present.
80864
80865 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80868         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80869         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80870
80871 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80872
80873         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80874
80875 2006-06-26  Bruno Haible  <bruno@clisp.org>
80876
80877         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80878
80879 2006-06-26  Bruno Haible  <bruno@clisp.org>
80880
80881         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80882
80883 2006-06-26  Bruno Haible  <bruno@clisp.org>
80884
80885         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80886         SGI C compiler in pre-C99 mode.
80887         Suggested by Mark D. Baushke and Larry Jones.
80888
80889 2006-06-26  Bruno Haible  <bruno@clisp.org>
80890
80891         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80892         WCHAR_MAX.
80893         Reported by Mark D. Baushke and Larry Jones.
80894
80895 2006-06-26  Bruno Haible  <bruno@clisp.org>
80896
80897         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80898         in pre-C99 mode.
80899         Suggested by Mark D. Baushke and Larry Jones.
80900
80901 2006-06-23  Simon Josefsson  <jas@extundo.com>
80902             Bruno Haible  <bruno@clisp.org>
80903
80904         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80905         Emit mostlyclean-local rule.
80906         (func_emit_tests_Makefile_am): Likewise.
80907         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80908
80909 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80910
80911         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80912
80913 2006-06-23  Bruno Haible  <bruno@clisp.org>
80914
80915         * tests/test-stdint.c: Update to match ISO C 99 Technical
80916         Corrigendum 1.
80917
80918 2006-06-23  Bruno Haible  <bruno@clisp.org>
80919
80920         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80921
80922 2006-06-23  Bruno Haible  <bruno@clisp.org>
80923
80924         * lib/stdint_.h: Treat IRIX like OpenBSD.
80925
80926 2006-06-23  Bruno Haible  <bruno@clisp.org>
80927
80928         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80929         ISO C 99 Technical Corrigendum 1.
80930
80931 2006-06-22  Simon Josefsson  <jas@extundo.com>
80932
80933         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80934         MinGW.
80935
80936 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80937
80938         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80939         needed.  Some compiler complained about some of them.  Problem reported
80940         by Larry Jones in
80941         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80942
80943 2006-06-21  Simon Josefsson  <jas@extundo.com>
80944
80945         * tests/test-getaddrinfo.c: New file.
80946
80947         * modules/getaddrinfo-tests: New file.
80948
80949         * MODULES.html.sh: Add inet_pton.
80950
80951         * modules/inet_pton: New file.
80952
80953 2006-06-21  Simon Josefsson  <jas@extundo.com>
80954
80955         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80956         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80957         of using the (limited) gnulib implementation on Windows XP.
80958
80959         * m4/inet_pton.m4: New file.
80960
80961 2006-06-21  Simon Josefsson  <jas@extundo.com>
80962
80963         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80964         variable.
80965
80966         * lib/socket_.h: Don't define WINVER.
80967
80968         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80969         slightly modified to work in gnulib.
80970
80971 2006-06-21  Simon Josefsson  <jas@extundo.com>
80972
80973         * doc/gnulib.texi (Windows sockets): Add.
80974
80975 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * lib/read-file.c (fread_file): Start with buffer allocation of
80978         0 bytes rather than 1 byte; this simplifies the code.
80979         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80980         code to free buffer and save/restore errno.
80981         (internal_read_file): Remove unused local.
80982
80983 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80984
80985         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80986         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80987         Problem reported by Denis Excoffier in
80988         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80989
80990 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80991
80992         * modules/sys_socket, modules/socklen: Include sys/types since
80993         FreeBSD 4.x's sys/socket.h needs it.
80994
80995 2006-06-19  Simon Josefsson  <jas@extundo.com>
80996
80997         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80998
80999 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81002
81003 2006-06-19  Bruno Haible  <bruno@clisp.org>
81004
81005         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81006         and FULL_PATH_INTTYPES_H in angle brackets.
81007         Reported by Mark D. Baushke <mdb@gnu.org>.
81008
81009 2006-06-17  Eric Blake  <ebb9@byu.net>
81010
81011         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81012         errno.
81013
81014 2006-06-17  Bruno Haible  <bruno@clisp.org>
81015
81016         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81017         <sys/inttypes.h>.
81018
81019 2006-06-17  Bruno Haible  <bruno@clisp.org>
81020
81021         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81022         whether errno is declared. Assume <errno.h> declares errno.
81023
81024 2006-06-17  Bruno Haible  <bruno@clisp.org>
81025
81026         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81027
81028 2006-06-17  Bruno Haible  <bruno@clisp.org>
81029
81030         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81031         problem on Solaris 2.5.1.
81032
81033 2006-06-16  Eric Blake  <ebb9@byu.net>
81034
81035         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81036         * lib/unicodeio.c [!defined errno]: Likewise.
81037         * lib/strtol.c [!defined errno]: Likewise.
81038         * lib/strtod.c [!defined errno]: Likewise.
81039
81040 2006-06-15  Eric Blake  <ebb9@byu.net>
81041
81042         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81043
81044 2006-06-15  Eric Blake  <ebb9@byu.net>
81045
81046         * config/srclist.txt (ssize_t.m4): Lose sync.
81047
81048 2006-06-15  Bruno Haible  <bruno@clisp.org>
81049
81050         * modules/stdint (Files): Include m4/full-header-path.m4,
81051         m4/size_max.m4, m4/wchar_t.m4.
81052         (Makefile.am): Many more substitutions.
81053         * modules/stdint-tests: New file.
81054         * tests/test-stdint.c: New file.
81055
81056 2006-06-15  Bruno Haible  <bruno@clisp.org>
81057
81058         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81059         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81060         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81061         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81062         gl_CHECK_TYPE_SAME): New macros.
81063
81064 2006-06-15  Bruno Haible  <bruno@clisp.org>
81065
81066         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81067
81068 2006-06-15  Bruno Haible  <bruno@clisp.org>
81069
81070         * lib/stdint_.h: Rewritten to be fully auto-configured.
81071         Fixes bug on HP-UX/IA64.
81072
81073 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81074
81075         * lib/getdate.y (__attribute__): Don't define if already defined.
81076         Problem reported by Larry Jones.
81077         * lib/utimens.c (__attribute__): Likewise.
81078
81079 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81080
81081         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81082         reported by Andreas Schwab.
81083
81084 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81085             Bruno Haible  <bruno@clisp.org>
81086
81087         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81088         check for the declaration of strnlen and a run test that exposes the
81089         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81090         rpl_strndup.
81091
81092 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81093             Bruno Haible  <bruno@clisp.org>
81094
81095         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81096
81097 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81098
81099         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81100         compile test, for Tru64 4.0D.
81101
81102 2006-05-28  Karl Berry  <karl@gnu.org>
81103
81104         * config/srclist.txt (printf-args.c): lose sync.
81105
81106 2006-05-26  Martin Lambers  <marlam@marlam.de>
81107
81108         * lib/getpass.c: Updates the test for the native W32 API, and adds
81109         missing includes, thus fixing compilation warnings.
81110
81111 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81112
81113         * lib/exclude.c (exclude_fnmatch): New function.
81114         (excluded_file_name): Call exclude_fnmatch.
81115         * lib/exclude.h (excluded_file_name): New prototype
81116
81117 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81118
81119         * lib/tempname.c (small_open, large_open): New macros.
81120         (__open, __open64) [!_LIBC]: Remove.
81121         (__gen_tempname): Use small_open and large_open instead of __open
81122         and __open64.  This fixes a portability bug on HP-UX 11.11i
81123         reported by Simon Wing-Tang in
81124         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81125
81126 2006-05-24  Bruno Haible  <bruno@clisp.org>
81127
81128         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81129         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81130         Reported by Thorsten Maerz <torte@netztorte.de> via
81131         Aaron Stone <aaron@serendipity.cx>.
81132
81133 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81134
81135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81136         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81137         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81138         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81139         not really conditional on the cache.
81140         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81141
81142 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81143
81144         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81145         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81146         (my_usleep): Don't mishandle maximum value.
81147
81148 2006-05-19  Jim Meyering  <jim@meyering.net>
81149
81150         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81151
81152 2006-05-17  Bruno Haible  <bruno@clisp.org>
81153
81154         Cygwin portability.
81155         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81156
81157 2006-05-17  Bruno Haible  <bruno@clisp.org>
81158
81159         * lib/stdint_.h: Fix recognition of Cygwin.
81160
81161 2006-05-15  Bruno Haible  <bruno@clisp.org>
81162
81163         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81164         on libtool patch by Ralf Wildenhues.
81165
81166 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81167
81168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81169         test for C99 conformance; (bool) 0.5 is an integer constant
81170         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81171         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81172
81173 2006-05-11  Simon Josefsson  <jas@extundo.com>
81174
81175         * m4/xvasprintf.m4: Fix obvious typo.
81176
81177 2006-05-11  Jim Meyering  <jim@meyering.net>
81178
81179         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81180         James Lemley.
81181
81182 2006-05-10  Simon Josefsson  <jas@extundo.com>
81183
81184         * lib/md4.c: Typo fix, update copyright years.
81185         (K1, K2): Don't use L because it turn computations into 64-bit on
81186         64-bit platforms.
81187
81188 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81189
81190         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81191         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81192         unwanted sign propagation, e.g., on hosts with 64-bit int.
81193         There still are some problems with reeelly weird theoretical hosts
81194         (e.g., 33-bit int) but it's not worth worrying about now.
81195         * lib/sha1.c (rol): Likewise.
81196         (K1, K2, K3, K4): Remove unnecessary L suffix.
81197
81198 2006-05-10  Bruno Haible  <bruno@clisp.org>
81199
81200         * lib/des.c: Cast to avoid warnings.
81201
81202 2006-05-09  Bruno Haible  <bruno@clisp.org>
81203
81204         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81205         (Depends-on): Depend also on xsize, stdarg.
81206         (configure.ac): Add gl_XVASPRINTF.
81207
81208 2006-05-09  Bruno Haible  <bruno@clisp.org>
81209
81210         * m4/xvasprintf.m4: New file.
81211
81212 2006-05-09  Bruno Haible  <bruno@clisp.org>
81213
81214         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81215         (EOVERFLOW): Define fallback value.
81216         (xstrcat): New function.
81217         (xvasprintf): Recognize the special case of a string concatenation.
81218
81219 2006-05-08  Eric Blake  <ebb9@byu.net>
81220
81221         * gnulib-tool (func_version): Base copyright year on CVS date.
81222         (func_emit_copyright_notice): New function.
81223         (func_emit_lib_Makefile_am): Use it.
81224         (func_emit_tests_Makefile_am): Likewise.
81225         (func_import): Likewise.
81226
81227 2006-05-08  Bruno Haible  <bruno@clisp.org>
81228
81229         * modules/stdarg: New file.
81230         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81231
81232 2006-05-08  Bruno Haible  <bruno@clisp.org>
81233
81234         * m4/stdarg.m4: New file, from GNU gettext.
81235
81236 2006-05-08  Bruno Haible  <bruno@clisp.org>
81237
81238         * config/srclist.txt (build-aux/config.rpath): different from latest
81239         release.
81240
81241 2006-05-08  Bruno Haible  <bruno@clisp.org>
81242
81243         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81244
81245 2006-05-05  Jim Meyering  <jim@meyering.net>
81246
81247         * m4/warning.m4: New file, derived from bison's file by the same name.
81248
81249 2006-05-03  Bruno Haible  <bruno@clisp.org>
81250
81251         * lib/stdint_.h: Shorter URL.
81252         * lib/inttypes.h: Likewise.
81253
81254 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81257
81258 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81259
81260         * lib/verify.h: Document the internals better.  Most of this change
81261         was written by Bruno Haible.
81262
81263 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81264
81265         * doc/verify.texi: New file, partly based on a proposal by
81266         Bruno Haible.
81267
81268 2006-05-02  Bruno Haible  <bruno@clisp.org>
81269
81270         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81271         test from here...
81272         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81273
81274 2006-04-29  Bruno Haible  <bruno@clisp.org>
81275
81276         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81277         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81278
81279 2006-04-29  Bruno Haible  <bruno@clisp.org>
81280
81281         * gnulib-tool: Make --update option actually work.
81282
81283 2006-04-29  Bruno Haible  <bruno@clisp.org>
81284
81285         * doc/gcd.texi: New file.
81286         * doc/gnulib.texi: Include it.
81287
81288 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81289
81290         * lib/getdate.y (get_date): When adding relative date, start with the
81291         initial time, not with the result of the first mktime call.
81292
81293 2006-04-25  Bruno Haible  <bruno@clisp.org>
81294
81295         * gnulib-tool (func_import): Output the include directives in three
81296         blocks, sorted separately.
81297         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81298
81299 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81300
81301         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81302         to define main with arguments, for C++.  Reported by Eric Blake.
81303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81304         Prefer 'int main ()' to 'int main (void)', for C++.
81305         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81306         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81307         for 'main', for C99 and C++.
81308
81309 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81312         Don't assume that exit status -1 is valid.
81313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81314         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81315         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81316         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81317         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81318         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81319         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81320         functions can be used without declaring them, or that you can
81321         exit with status -1.
81322         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81323
81324 2006-04-24  Karl Berry  <karl@gnu.org>
81325
81326         * config/srclist.txt (longdouble.m4): sync lost.
81327
81328 2006-04-24  Eric Blake  <ebb9@byu.net>
81329
81330         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81331
81332 2006-04-24  Bruno Haible  <bruno@clisp.org>
81333
81334         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81335         poll() implementation in AIX.
81336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81337
81338 2006-04-24  Bruno Haible  <bruno@clisp.org>
81339
81340         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81341         assigned exactly once.
81342
81343 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81344             Bruno Haible  <bruno@clisp.org>
81345
81346         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81347         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81348         for AM_CPPFLAGS.
81349
81350 2006-04-23  Bruno Haible  <bruno@clisp.org>
81351
81352         * modules/copy-file: Depend on unistd.
81353         * modules/execute: Likewise.
81354         * modules/fatal-signal: Likewise.
81355         * modules/findprog: Likewise.
81356         * modules/mkdtemp : Likewise.
81357         * modules/pipe: Likewise.
81358         * modules/wait-process: Likewise.
81359
81360 2006-04-23  Bruno Haible  <bruno@clisp.org>
81361
81362         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81363         condition was already detected.
81364         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81365
81366 2006-04-23  Bruno Haible  <bruno@clisp.org>
81367
81368         * lib/copy-file.c: Include <unistd.h> unconditionally.
81369         * lib/execute.c: Likewise.
81370         * lib/fatal-signal.c: Likewise.
81371         * lib/findprog.c: Likewise.
81372         * lib/mkdtemp.c: Likewise.
81373         * lib/pipe.h: Likewise.
81374         * lib/pipe.c: Likewise.
81375         * lib/wait-process.h: Likewise.
81376
81377 2006-04-23  Bruno Haible  <bruno@clisp.org>
81378
81379         * gnulib-tool (func_usage): Fix --import description. Document
81380         --update.
81381         (func_import): Create temporary file in a temporary directory, if
81382         --dry-run is specified. Silence errors from 'grep' when there are no
81383         m4 files in $m4dir.
81384         (func_create_testdir): Silence errors from 'grep' when there are no
81385         m4 files in $m4dir.
81386         Reported by Karl Berry <karl@freefriends.org>.
81387
81388 2006-04-20  Bruno Haible  <bruno@clisp.org>
81389
81390         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81391         one argument, so that the code will be portable to Autoconf 2.60.
81392         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81393         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81394         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81395
81396 2006-04-19  Derek Price  <derek@ximbiot.com>
81397             Eric Blake  <ebb9@byu.net>
81398
81399         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81400         rather than "/full/path.h".  Update comment to match.  Shorten &
81401         generalize m4_translit call via AS_TR_CPP.
81402
81403 2006-04-19  Derek Price  <derek@ximbiot.com>
81404             Eric Blake  <ebb9@byu.net>
81405
81406         * lib/inttypes.h: Correct grammar in comment.
81407
81408 2006-04-18  Derek Price  <derek@ximbiot.com>
81409             Paul Eggert  <eggert@cs.ucla.edu>
81410
81411         * modules/inttypes: New file.
81412         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81413
81414 2006-04-18  Derek Price  <derek@ximbiot.com>
81415             Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81418         New files.
81419
81420 2006-04-18  Derek Price  <derek@ximbiot.com>
81421             Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * lib/inttypes.h: New file.
81424         * lib/strtoimax.c: Assume <inttypes.h>.
81425
81426 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81427
81428         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81429         isn't mounted.  Problem reported by Kir Kolyshkin.
81430
81431 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81432
81433         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81434         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81435         Derek R. Price.
81436         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81437         implementation.
81438
81439 2006-04-12  Eric Blake  <ebb9@byu.net>
81440
81441         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81442         is now done automatically by the corresponding Autoconf macro.
81443
81444 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81445
81446         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81447         time_r.h.
81448
81449 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81450
81451         Merge regex changes from libc, removing some of our
81452         POSIX-conformance changes that were rejected and redoing them in a
81453         less-intrusive way.
81454
81455         * lib/regcomp.c (re_compile_internal, init_dfa):
81456         Length arg is now size_t, not Idx.  All uses changed.
81457         (peek_token): Forward decl now says internal_function.
81458         (__re_error_msgid, __re_error_msgid_idx):
81459         Now static rather than extern with attribute_hidden.
81460         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81461         For some reason libc prefers K&R style defns for external functions.
81462         (regerror) [!defined _LIBC]: Likewise.
81463         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81464         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81465         (build_range_exp, build_collating_symbol):
81466         Use K&R-style defn.
81467         (re_compile_fastmap): Use '\0' to memset, not 0.
81468         (utf8_sb_map): Make the calculations more obvious.
81469         (init_dfa, parse_bracket_exp, build_charclass_op):
81470         Call calloc and cast result, as glibc does.
81471         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81472         (build_range_exp, build_collating_symbol):
81473         Now internal functions.
81474
81475         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81476
81477         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81478         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81479         Don't depend on VMS; depend on __VMS instead, for POSIX
81480         namespace cleanness.
81481         (regoff_t): Define to ssize_t, not long int.
81482
81483         Remove the REG_ macros named below.  Instead, make the old names
81484         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81485         __USE_GNU_REGEX.
81486         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81487         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81488         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81489         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81490         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81491         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81492         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81493         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81494         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81495         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81496         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81497         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81498         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81499         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81500         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81501         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81502         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81503         (REG_NREGS):
81504         Remove.  All uses replaced by the old RE_* names.
81505         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81506         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81507         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81508         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81509         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81510         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81511         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81512         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81513         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81514         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81515         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81516         Don't bother having these macros be independent of each others'
81517         values, since they no longer exist in the POSIX name space.
81518
81519         Rename the following member names back to their old names,
81520         unless !__USE_GNU_REGEX.  All uses changed back.
81521         (buffer): Renamed from re_buffer.
81522         (allocated): Renamed from re_allocated.
81523         (used): Renamed from re_used.
81524         (syntax): Renamed from re_syntax.
81525         (fastmap): Renamed from re_fastmap.
81526         (translate): Renamed from re_translate.
81527         (can_be_null): Renamed from re_can_be_null.
81528         (regs_allocated): Renamed from re_regs_allocated.
81529         (fastmap_accurate): Renamed from re_fastmap_accurate.
81530         (no_sub): Renamed from re_no_sub.
81531         (not_bol): Renamed from re_not_bol.
81532         (not_eol): Renamed from re_not_eol.
81533         (newline_anchor): Renamed from re_newline_anchor.
81534         (num_regs): Renamed from rm_num_regs.
81535         (start): Renamed from rm_start.
81536         (end): Renamed from rm_end.
81537
81538         (free_state): Move up a bit.
81539
81540         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81541         #define to be empty.
81542         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81543         when that is what is intended.
81544         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81545         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81546         (MAX): New macro.
81547         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81548         All uses changed back to re_malloc, etc.  It's now the caller's
81549         responsibility to check for overflow; all callers changed.
81550         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81551         (re_x2nrealloc): Remove.
81552         (free_state): Remove decl.
81553
81554         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81555         (re_set_registers, re_exec):
81556         Use K&R-style defn.
81557
81558         2006-01-31  Roland McGrath  <roland@redhat.com>
81559
81560         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81561         Reported by Mike Frysinger <vapier@gentoo.org>.
81562
81563         2006-01-15  Andreas Jaeger  <aj@suse.de>
81564
81565         [BZ #1950]
81566         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81567         build_wcs_upper_buffer change.
81568         (build_wcs_upper_buffer): Change return type.
81569
81570         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81571
81572         * lib/regex_internal.h: Include <stdint.h> if available.
81573
81574         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81575
81576         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81577
81578         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81579
81580         * lib/regcomp.c: Adjust for changed secondary hash function.
81581
81582         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81583
81584         * lib/regex.h: Pretty printing.
81585         Clean up namespace a bit.
81586
81587         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81588
81589         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81590         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81591
81592         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81593                     Ulrich Drepper  <drepper@redhat.com>
81594
81595         [BZ #1302]
81596         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81597         changed.
81598         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81599
81600         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81601
81602         [BZ #281]
81603         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81604         * lib/regcomp.c: Remove unnecessary uses of
81605         unsigned RE_TRANSLATE_TYPE.
81606         * lib/regex_internal.h: Likewise.
81607         * lib/regex_internal.c: Likewise.
81608         * lib/regexec.c: Likewise.
81609         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81610
81611         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81612
81613         * lib/regexec.c (find_recover_state): Remove unnecessary
81614         initialization.
81615         (transit_state_bkref): Make DFA a const pointer.
81616         (get_subexp): Likewise.
81617         (check_arrival): Likewise.
81618         (update_cur_sifted_state): Likewise.
81619         (re_search_internal): Likewise.
81620         (prune_impossible_nodes): Likewise.
81621         (acquire_init_state_context): Likewise.
81622         (proceed_next_node): Likewise.
81623         (set_regs): Likewise.
81624         (free_fail_stack_return): Likewise.
81625         (check_arrival_expand_ecl): Mark DFA parameter as const.
81626         (check_arrival_expand_ecl_sub): Likewise.
81627         (check_subexp_limits): Likewise.
81628         (sub_epsilon_src_nodes):  Likewise.
81629         (add_epsilon_src_nodes):  Likewise.
81630         (merge_state_array): Likewise.
81631         (update_regs): Likewise.
81632         (build_trtable): Likewise.
81633         (sift_states_backward): Mark MCTX parameter as const.
81634         (build_sifted_states): Likewise.
81635         (update_cur_sifted_state): Likewise.
81636         (sift_states_mkref): Likewise.
81637         (check_arrival_expand_ecl): Mark eclosure as const.
81638         (check_dst_limits_calc_pos_1): Likewise.
81639         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81640         pointer.
81641
81642         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81643
81644         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81645         (transit_state_sb): Likewise.
81646         (transit_state_mb): Likewise.
81647         (sift_states_iter_mb): Likewise.
81648         (check_arrival_add_next_nodes): Likewise.
81649         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81650         [_LIBC] (re_search_2_stub): Use mempcpy.
81651
81652         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81653         mbrtowc for very simple UTF-8 case.
81654
81655         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81656         a pointer-to-const.
81657         (re_acquire_state_context): Likewise.
81658         * lib/regex_internal.h: Adjust prototypes.
81659
81660         * lib/regex.c: Prevent using C++ compilers.
81661
81662         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81663         (re_acquire_state_context): Likewise.
81664
81665 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81666
81667         * modules/regex (Depends-on): Add ssize_t.
81668
81669 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81670
81671         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81672         translation table.
81673
81674 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81675
81676         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81677
81678 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81679             Bruno Haible  <bruno@clisp.org>
81680
81681         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81682         <sys/types.h> and <inttypes.h>.
81683
81684 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81685
81686         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81687         `__error_t_defined', so argp.h will not typedef the former.
81688
81689 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81690
81691         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81692         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81693         glibc names.  Even if glibc is changed to conform to POSIX, the
81694         traditional names will be available anyway, since regex depends on
81695         the extensions module.  Also, fix a longstanding typo in the
81696         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81697         reported by Emanuele Giaquinta.  Also, change sense of cached
81698         variable, so that the message makes sense.
81699
81700 2006-03-24  Simon Josefsson  <jas@extundo.com>
81701
81702         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81703         including some doc fixes.
81704         (base64_encode_alloc): Fix +1 bug on allocation failures.
81705
81706 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81707
81708         * lib/base64.c (base64_encode): Do not read past end of array with
81709         unsanitized input on systems with CHAR_BIT > 8.
81710
81711 2006-03-24  Eric Blake  <ebb9@byu.net>
81712
81713         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81714
81715 2006-03-22  Karl Berry  <karl@gnu.org>
81716
81717         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81718         * config/srclistvars.sh (COREUTILS): new var.
81719
81720 2006-03-17  Jim Meyering  <jim@meyering.net>
81721
81722         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81723         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81724
81725 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81726
81727         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81728         no longer needs it.  Instead, check that regoff_t is as least
81729         as wide as ptrdiff_t.
81730
81731         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81732         so that our regex.h stays compatible with the installed regex.
81733         This is helpful for installers who configure --without-included-regex.
81734         Problem reported by Emanuele Giaquinta.
81735
81736 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81737
81738         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81739         Typedef to long int, not to off_, as POSIX will likely change
81740         in that direction.
81741
81742 2006-03-15  Eric Blake  <ebb9@byu.net>
81743
81744         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81745
81746 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81747
81748         * lib/argp-help.c (validate_uparams): Fix typo
81749         * lib/argp-parse.c (argp_default_options): Consistently begin help
81750         messages with a lowercase letter.
81751
81752 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81753
81754         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81755         overrun buffers and shouldn't be used (much as gets shouldn't be
81756         used).
81757         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81758
81759 2006-03-08  Simon Josefsson  <jas@extundo.com>
81760
81761         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81762         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81763
81764 2006-03-08  Simon Josefsson  <jas@extundo.com>
81765
81766         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81767         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81768
81769 2006-03-08  Simon Josefsson  <jas@extundo.com>
81770
81771         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81772         signal that configure disabled the device.
81773
81774 2006-03-08  Simon Josefsson  <jas@extundo.com>
81775
81776         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81777         languages.
81778
81779 2006-03-07  Simon Josefsson  <jas@extundo.com>
81780
81781         * modules/getopt (Depends-on): Add unistd.
81782
81783         * modules/unistd: New file.
81784
81785 2006-03-07  Simon Josefsson  <jas@extundo.com>
81786
81787         * modules/gc-random: New file.
81788
81789 2006-03-07  Simon Josefsson  <jas@extundo.com>
81790
81791         * m4/unistd_h.m4: New file.
81792
81793 2006-03-07  Simon Josefsson  <jas@extundo.com>
81794
81795         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81796         test to be side-effect free by storing the result in the cache
81797         variable gl_cv_lib_readline, and moving the assignment of
81798         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81799         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81800
81801 2006-03-07  Simon Josefsson  <jas@extundo.com>
81802
81803         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81804         error on missing devices (the functions will return an error).
81805
81806         * m4/gc.m4: Move random stuff to gc-random.m4
81807
81808 2006-03-07  Simon Josefsson  <jas@extundo.com>
81809
81810         * lib/unistd_.h: New file.
81811
81812 2006-03-07  Simon Josefsson  <jas@extundo.com>
81813
81814         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81815
81816 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81819         Problem reported by Juan Manuel Guerrero.
81820
81821 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81822
81823         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81824         the unistd module.
81825         * lib/getlogin_r.c: Likewise.
81826         * lib/getlogin_r.h: Likewise.
81827         * lib/glob.c: Likewise.
81828         * lib/pagealign_alloc.c: Likewise.
81829         * lib/unistd_.h: Remove; no longer needed.
81830
81831 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81832
81833         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81834         Add unistd.
81835         * modules/c-stack (Depends-on): Add unistd.
81836         * modules/getlogin_r: Likewise.
81837         * modules/glob: Likewise.
81838         * modules/pagealign_alloc: Likewise.
81839         * modules/unistd (Files): Remove lib/unistd_.h.
81840         (EXTRA_DIST): Remove.
81841         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81842         need unistd_.h.
81843         (MOSTLYCLEANFILES): Remove unistd.h-t.
81844
81845 2006-03-03  Simon Josefsson  <jas@extundo.com>
81846
81847         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81848
81849 2006-03-03  Simon Josefsson  <jas@extundo.com>
81850
81851         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81852         libidn and bison.
81853
81854 2006-03-03  Simon Josefsson  <jas@extundo.com>
81855
81856         * build-aux/maint.mk: Add indent target.
81857
81858 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81859
81860         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81861         our replacement poll.h in any case, to avoid a differing
81862         declaration from a system header.  Seen on AIX.
81863
81864 2006-03-01  Simon Josefsson  <jas@extundo.com>
81865
81866         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81867         <kasal@ucw.cz>.
81868
81869 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81870
81871         * modules/gettime (Depends-on): Add extensions module.
81872         * modules/nanosleep (Depends-on): Likewise.
81873         * modules/settime (Depends-on): Likewise.
81874
81875 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81876
81877         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81878         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81879         pedantically.
81880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81881         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81882
81883         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81884         not "==".  Reported by Ralf Wildenhues.
81885
81886 2006-03-01  Karl Berry  <karl@gnu.org>
81887
81888         * doc/Copyright/request-*: new files, synced from gnuorg.
81889
81890 2006-03-01  Karl Berry  <karl@gnu.org>
81891
81892         * config/srclist.txt (Copyright/*): new entries.
81893
81894 2006-02-28  Simon Josefsson  <jas@extundo.com>
81895
81896         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81897
81898 2006-02-27  Simon Josefsson  <jas@extundo.com>
81899
81900         * lib/base64.h: Indent #define's.  From Jim Meyering
81901         <jim@meyering.net>.
81902
81903 2006-02-27  Jim Meyering  <jim@meyering.net>
81904
81905         Revert the change of 2006-02-24, so these files can continue
81906         to be sync'd from gettext.
81907         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81908         of `config.h'.
81909
81910 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81911
81912         * modules/intprops: New file.
81913         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81914         Add intprops.
81915         * modules/getloadavg (Files): Remove lib/intprops.h.
81916         (Depends-on): Add intprops.
81917         * modules/human: Likewise.
81918         * modules/inttostr: Likewise.
81919         * modules/openat: Likewise.
81920         * modules/sig2str: Likewise.
81921         * modules/userspec: Likewise.
81922         * modules/utimecmp: Likewise.
81923         * modules/xnanosleep: Likewise.
81924         * modules/xstrtol: Likewise.
81925
81926 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81927
81928         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81929         * modules/lock-tests (TESTS): Use $(EXEEXT).
81930         * modules/tls-tests: Likewise.
81931         * modules/argp-tests: Likewise.
81932         (check_PROGRAMS): New var, replacing...
81933         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81934
81935 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81936
81937         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81938         `config.h'.
81939
81940 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81941
81942         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81943
81944 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81945
81946         Sync from coreutils.
81947         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81948         gl_CHDIR_SAFER.
81949
81950 2006-02-22  Jim Meyering  <jim@meyering.net>
81951
81952         Sync from coreutils.
81953         * m4/chdir-safer.m4: New file.
81954
81955 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81956
81957         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81958         AT_FDCWD exceeds INT_MAX.
81959         * lib/openat.h (AT_FDCWD): Likewise.
81960
81961 2006-02-17  Eric Blake  <address@hidden>
81962
81963         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81964
81965 2006-02-16  Simon Josefsson  <jas@extundo.com>
81966
81967         * modules/getaddrinfo (Depends-on): Add sys_socket.
81968
81969 2006-02-15  Simon Josefsson  <jas@extundo.com>
81970
81971         * build-aux/maint.mk: Add dsyntax-check rule.
81972
81973 2006-02-15  Eric Blake  <ebb9@byu.net>
81974
81975         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81976         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81977         'present but cannot compile' warnings on cygwin.
81978         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81979         use ws2tcpip.h if sys/socket.h works.
81980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81981         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81982
81983 2006-02-14  Simon Josefsson  <jas@extundo.com>
81984
81985         * modules/maintainer-makefile (Files): Rename.
81986
81987         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81988         and (the local) Makefile.cfg to maint-cfg.mk.
81989
81990         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81991         to the latter.
81992
81993         * modules/maintainer-makefile: New module.
81994
81995         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81996         severaly stripped to make it possible to build it up from scratch
81997         with reliable tests.
81998
81999         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82000         fixes to permit overriding the default actions when configure and
82001         makefile are not available.
82002
82003 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         Sync from coreutils.
82006         * modules/lstat (Depends-on): Don't depend on xalloc.
82007         (License): Change from GPL to LGPL, since this is now simply a
82008         replacement for a libc function.
82009
82010 2006-02-14  Jim Meyering  <jim@meyering.net>
82011
82012         Sync from coreutils.
82013
82014         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82015         failure on deficient systems, and simplify gnulib lgpl dependencies.
82016         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82017         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82018
82019         * lib/xalloc-die.c: Remove unused definition of N_.
82020
82021 2006-02-14  Jim Meyering  <jim@meyering.net>
82022
82023         Sync from coreutils.
82024         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82025         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82026         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82027         double-quote uses of that variable, to accommodate the rare case in
82028         which getmntent is available in none of the libraries checked.  This
82029         happens at least on FreeBSD 5.0.
82030
82031 2006-02-13  Simon Josefsson  <jas@extundo.com>
82032
82033         * gnulib-tool (Usage): Fix --import, from
82034         karl@freefriends.org (Karl Berry).
82035
82036 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82037
82038         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82039
82040 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82041
82042         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82043         "autoupdate" on 2005-12-12.
82044
82045 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82046
82047         * modules/closeout (Depends-on): Remove atexit.
82048
82049 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82050
82051         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82052         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82053
82054 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82055
82056         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82057         __EXTENSIONS__ if this causes compilation to fail.  Problem
82058         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82059         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82060
82061 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82062
82063         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82064         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82066         All uses changed.
82067
82068 2006-01-26  Simon Josefsson  <jas@extundo.com>
82069
82070         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82071         prototype is visible on mingw32.
82072
82073         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82074         for mingw32.
82075
82076         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82077         mingw32).
82078
82079 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82082         attempt to open for write; this always fails, at least on POSIX
82083         hosts.  This reinstates the 2006-01-09 change, which was
82084         inadvertently removed.
82085
82086 2006-01-26  Bruno Haible  <bruno@clisp.org>
82087
82088         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82089         Reported by Paul Eggert.
82090
82091 2006-01-26  Bruno Haible  <bruno@clisp.org>
82092             Paul Eggert  <eggert@cs.ucla.edu>
82093
82094         * lib/stdbool_.h (_Bool)
82095         [(! (defined __cplusplus || defined __BEOS__)
82096           && !defined __GNUC__
82097           && !(defined __HP_cc || defined __xlc__
82098                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82099                || defined __sgi))]:
82100         #define to signed char in these cases too; this simplifies
82101         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82102         etc., separately) and makes it more conservative.
82103
82104 2006-01-25  Simon Josefsson  <jas@extundo.com>
82105
82106         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82107         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82108         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82109
82110 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82111
82112         * lib/argp-namefrob.h: Bugfix. Remove stray #
82113
82114 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82115
82116         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82117         so that we test the test.
82118         Check for yet another HP-UX cc bug involving *bool |= bool.
82119
82120 2006-01-25  Karl Berry  <karl@gnu.org>
82121
82122         * config/srclist.txt (vasnprintf.c): sync lost.
82123
82124 2006-01-25  Jim Meyering  <jim@meyering.net>
82125
82126         Sync from the stable (b5) branch of coreutils:
82127
82128         * lib/fts.c (fts_children): Don't let close() clobber errno from
82129         failed fchdir().
82130
82131         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82132         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82133         a dangling symlink.  That can also happen at least for ELOOP.
82134         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82135         FYI, this bug predates the inclusion of fts.c in coreutils.
82136
82137         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82138         in their own block, so pre-c99 compilers don't object.
82139
82140         Avoid the double-free (first in fts_read, second in fts_close) that
82141         would occur when an `active' directory is made inaccessible (e.g.,
82142         via chmod a-x) during a traversal.
82143         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82144         before returning.  Reproduce this failure by
82145         mkdir -p a/b; cd a; chmod a-x . b
82146         Reported by Stavros Passas.
82147
82148 2006-01-25  Jim Meyering  <jim@meyering.net>
82149
82150         * lib/fileblocks.c: Remove more useless parentheses.
82151         * lib/readutmp.h: Likewise.
82152
82153 2006-01-25  Bruno Haible  <bruno@clisp.org>
82154
82155         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82156         warnings.
82157         Reported by Paul Eggert.
82158
82159 2006-01-25  Bruno Haible  <bruno@clisp.org>
82160
82161         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82162         rid of a trap command. For Solaris sh.
82163         Reported by Mark D. Baushke <mdb@gnu.org>.
82164
82165 2006-01-24  Simon Josefsson  <jas@extundo.com>
82166
82167         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82168         Bruno.
82169
82170 2006-01-24  Karl Berry  <karl@gnu.org>
82171
82172         * config/srclist.txt (argp-namefrob.h): sync lost.
82173
82174 2006-01-24  Jim Meyering  <jim@meyering.net>
82175
82176         * modules/openat (Files): Add lib/intprops.h.
82177         From Mark D. Baushke.
82178
82179 2006-01-24  Jim Meyering  <jim@meyering.net>
82180
82181         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82182         Reported by Mark D. Baushke.
82183
82184 2006-01-24  Jim Meyering  <jim@meyering.net>
82185
82186         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82187
82188 2006-01-24  Bruno Haible  <bruno@clisp.org>
82189
82190         * modules/strnlen (Maintainer): Change from glibc to all.
82191
82192 2006-01-24  Bruno Haible  <bruno@clisp.org>
82193
82194         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82195         Patch by Paul Eggert.
82196
82197 2006-01-24  Bruno Haible  <bruno@clisp.org>
82198
82199         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82200         already has it.
82201         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82202         2005-11-26.
82203
82204         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82205         'signed char' to avoid problems with the built-in _Bool type.
82206         Reported by Paul Eggert on 2005-11-26.
82207
82208 2006-01-24  Bruno Haible  <bruno@clisp.org>
82209
82210         * gnulib-tool (func_import): Avoid constructing complicated sed
82211         expressions inside backquote.
82212         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82213
82214 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82215
82216         These changes imported from libc.
82217         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82218         test and two separate function calls.
82219         * lib/strndup.c (__strndup): Add libc_hidden_def.
82220
82221 2006-01-23  Simon Josefsson  <jas@extundo.com>
82222
82223         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82224         Remove the test_*_SOURCES variable: automake infers it by default.
82225         * modules/tls-tests: Likewise.
82226
82227 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         Work around porting bugs reported by Dieter in
82230         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82231         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82232         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82233         Include "getopt.h" first, to check interface.
82234         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82235         !HAVE_DECL_GETENV.
82236         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82237         (__strndup): Revert to K&R-style function dfns, the glibc style.
82238         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82239         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82240         Include strnlen.h first, to get prototype properly.
82241         (strnlen): Renamed from __strnlen.
82242         Remove weak alias.
82243
82244 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82247
82248 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82249
82250         * config/srclist.txt: Adjust to reflect glibc reorganization.
82251         This affects only comments.
82252
82253 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82254
82255          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82256          Reported by Bruce Korb <bkorb@gnu.org>.
82257
82258 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82259
82260         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82261         to pacify gcc -Wswitch-default.
82262
82263 2006-01-22  Bruno Haible  <bruno@clisp.org>
82264
82265         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82266         temporary buffer for sprintf, take into account the precision also
82267         for 'd', 'i', 'u', 'o', 'x', 'X'.
82268
82269 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82270
82271         * modules/argp-tests: New module
82272         * tests/test-argp.c: New file
82273         * tests/test-argp-2.sh: New file
82274
82275 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82276
82277         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82278         (__argp_base_name): Removed
82279         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82280         typo.
82281         (__argp_base_name): Provide macro definition or extern declaration
82282         depending on the configuration
82283
82284 2006-01-20  Simon Josefsson  <jas@extundo.com>
82285
82286         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82287
82288 2006-01-20  Simon Josefsson  <jas@extundo.com>
82289
82290         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82291
82292 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82293
82294         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82295         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82296         Suggested by Bruno Haible.
82297
82298 2006-01-20  Karl Berry  <karl@gnu.org>
82299
82300         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82301         until changes propagate, I guess.
82302
82303 2006-01-19  Simon Josefsson  <jas@extundo.com>
82304
82305         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82306
82307 2006-01-19  Simon Josefsson  <jas@extundo.com>
82308
82309         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82310
82311 2006-01-19  Simon Josefsson  <jas@extundo.com>
82312
82313         * gnulib-tool: Set check_PROGRAMS.
82314
82315         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82316         modules/des-tests, modules/gc-arcfour-tests,
82317         modules/gc-arctwo-tests, modules/gc-des-tests,
82318         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82319         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82320         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82321         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82322         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82323         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82324         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82325         test_*_SOURCES.
82326
82327 2006-01-18  Simon Josefsson  <jas@extundo.com>
82328
82329         * modules/socklen (Depends-on): Depend on sys_socket.
82330
82331 2006-01-18  Simon Josefsson  <jas@extundo.com>
82332
82333         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82334         modules/des-tests, modules/gc-arcfour-tests,
82335         modules/gc-arctwo-tests, modules/gc-des-tests,
82336         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82337         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82338         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82339         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82340         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82341         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82342         $(EXEEXT) to automake TESTS variable, for mingw32.
82343
82344 2006-01-17  Simon Josefsson  <jas@extundo.com>
82345
82346         * modules/socklen (Include): Need sys/socket.h.
82347
82348 2006-01-17  Bruno Haible  <bruno@clisp.org>
82349
82350         * modules/ssize_t (Include): Add <sys/types.h>.
82351
82352 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82355         it's not portable and it doesn't work with cross-compiles.
82356         Problem reported by Bruno Haible.  Fix missing-$ typo in
82357         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82358         -zignore from being used with Sun's C compiler.
82359
82360 2006-01-12  Simon Josefsson  <jas@extundo.com>
82361
82362         * lib/base64.c: Fix warning, reported by Bruno Haible
82363         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82364
82365 2006-01-12  Bruno Haible  <bruno@clisp.org>
82366
82367         * modules/ldd: New file.
82368         * build-aux/ldd.sh.in: New file.
82369         * MODULES.html.sh (Support for building libraries and executables): Add
82370         ldd.
82371
82372 2006-01-12  Bruno Haible  <bruno@clisp.org>
82373
82374         * m4/ldd.m4: New file.
82375
82376 2006-01-12  Bruno Haible  <bruno@clisp.org>
82377
82378         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82379         endless loop while replacing $auxdir with build-aux.
82380
82381 2006-01-11  Simon Josefsson  <jas@extundo.com>
82382
82383         * lib/stdint_.h (SIZE_MAX): Add missing (.
82384
82385 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82386
82387         Sync from coreutils.
82388         * lib/md5.c: Fix commentary typos.
82389         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82390         * lib/md5.h (__attribute__): Remove; unused.
82391         * lib/sha1.c: Fix commentary to match md5 better.
82392         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82393         so that we don't need to worry about alignment.  All uses changed.
82394         This merges the 2005-10-28 md5 change into sha1.
82395
82396 2006-01-11  Jim Meyering  <jim@meyering.net>
82397
82398         Sync from coreutils.
82399         * lib/md5.c (OP): Fix spacing.
82400
82401 2006-01-11  Bruno Haible  <bruno@clisp.org>
82402
82403         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82404         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82405         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82406
82407 2006-01-11  Bruno Haible  <bruno@clisp.org>
82408
82409         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82410         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82411         the "early" section as well.
82412
82413 2006-01-11  Bruno Haible  <bruno@clisp.org>
82414
82415         Avoid "ar: no archive members specified" error on MacOS X.
82416         * gnulib-tool (func_modules_add_dummy): New function.
82417         (func_import, func_create_testdir): Invoke it.
82418
82419 2006-01-11  Bruno Haible  <bruno@clisp.org>
82420
82421         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82422         with $auxdir in AC_CONFIG_FILES statements.
82423
82424 2006-01-11  Bruno Haible  <bruno@clisp.org>
82425
82426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82427         Initialize also noinst_HEADERS to empty.
82428
82429 2006-01-11  Bruno Haible  <bruno@clisp.org>
82430
82431         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82432         variables.
82433         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82434         autoreconf.
82435
82436 2006-01-11  Bruno Haible  <bruno@clisp.org>
82437
82438         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82439         overridable by the user.
82440         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82441
82442 2006-01-10  Simon Josefsson  <jas@extundo.com>
82443
82444         * modules/sys_socket: New file.
82445
82446 2006-01-10  Simon Josefsson  <jas@extundo.com>
82447
82448         * m4/sys_socket_h.m4: New file.
82449
82450 2006-01-10  Simon Josefsson  <jas@extundo.com>
82451
82452         * lib/socket_.h: New file.
82453
82454 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82455
82456         * modules/readutmp (Maintainer): Add myself.
82457
82458 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82459
82460         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82461         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82462         People who are still concerned with buggy memcmp implementations
82463         can invoke gl_FUNC_MEMCMP themselves.
82464
82465 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82466
82467         * lib/regex_internal.h (BITSET_WORD_BITS):
82468         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82469         preprocessor mishandles large unsigned values as if they were signed.
82470         Problem reported by Claudio Fontana in
82471         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82472
82473 2006-01-10  Jim Meyering  <jim@meyering.net>
82474
82475         Avoid the double-free (first in fts_read, second in fts_close) that
82476         would occur when an `active' directory is made inaccessible (e.g.,
82477         via chmod a-x) during a traversal.
82478         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82479         before returning.  Reproduce this failure by
82480         mkdir -p a/b; cd a; chmod a-x . b
82481         Reported by Stavros Passas.
82482
82483         Sync from coreutils.
82484         * lib/sha1.c: Tweak grammar in a comment.
82485
82486 2006-01-10  Jim Meyering  <jim@meyering.net>
82487
82488         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82489         Patch by Joerg Sonnenberger.
82490
82491 2006-01-10  Bruno Haible  <bruno@clisp.org>
82492
82493         * modules/readutmp: Depend on module free.
82494         * modules/strtok_r: Depend on module restrict.
82495
82496 2006-01-10  Bruno Haible  <bruno@clisp.org>
82497
82498         * modules/gettext (configure.ac): Add an invocation of
82499         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82500
82501 2006-01-10  Bruno Haible  <bruno@clisp.org>
82502
82503         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82504         Reported by Werner Lemberg <wl@gnu.org>.
82505
82506 2006-01-10  Bruno Haible  <bruno@clisp.org>
82507
82508         * lib/localcharset.c: Update from GNU gettext.
82509
82510 2006-01-10  Bruno Haible  <bruno@clisp.org>
82511
82512         * lib/argp.h (__const): Remove macro. Use const instead.
82513         * lib/argp-fmtstream.h (__const): Likewise.
82514         * lib/glob_.h (__const): Remove macro.
82515         * lib/glob-libc.h: Use const instead of __const.
82516
82517 2006-01-10  Bruno Haible  <bruno@clisp.org>
82518
82519         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82520         variable.
82521         Needed to avoid an automake error regarding the 'gettext' module.
82522
82523 2006-01-09  Simon Josefsson  <jas@extundo.com>
82524
82525         * modules/inet_ntop (Depends-on): Add restrict.
82526
82527 2006-01-09  Simon Josefsson  <jas@extundo.com>
82528
82529         * modules/gc-rijndael-tests (License): Put under LGPL.
82530
82531         * modules/gc-des-tests (License): Likewise.
82532
82533         * modules/gc-arcfour-tests (License): Likewise.
82534
82535         * modules/gc-arctwo-tests (License): Likewise.
82536
82537         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82538
82539         * modules/gc-hmac-sha1-tests (Files): Likewise.
82540
82541         * modules/gc-hmac-md5-tests (License): Likewise.
82542
82543         * modules/gc-sha1-tests (License): Likewise.
82544
82545         * modules/gc-md5-tests (License): Likewise.
82546
82547         * modules/gc-md4-tests (License): Likewise.
82548
82549         * modules/gc-md2-tests (License): Likewise.
82550
82551         * modules/gc-tests (License): Likewise.
82552
82553         * modules/des-tests (License): Likewise.
82554
82555         * modules/md4-tests (License): Likewise.
82556
82557         * modules/md2-tests (License): Likewise.
82558
82559 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82560
82561         Sync from coreutils:
82562
82563         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82564         * modules/lib-ignore: New file.
82565         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82566         chdir-safer.m4, lchmod.m4.
82567         * modules/openat: Add mkdirat.c, openat-priv.h.
82568
82569 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82570
82571         Sync from coreutils.
82572         * m4/lib-ignore.m4: New file.
82573         * m4/lchmod.m4: New file.
82574
82575 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82576
82577         Sync from coreutils.
82578         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82579         for write access: POSIX says that must fail.
82580         * lib/fts.c (diropen): Likewise.
82581         * lib/save-cwd.c (save_cwd): Likewise.
82582         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82583         well, for minor improvements on hosts that lack O_DIRECTORY.
82584         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82585         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82586         Fall back on chown if open failed with EACCES.
82587
82588         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82589         Report an error at compile-time if only a 1-second nominal clock
82590         resolution is found.
82591
82592         * lib/lchmod.h: New file.
82593         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82594         (make_dir_parents): Use lchown rather than chown, and
82595         lchmod rather than chmod.
82596
82597         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82598         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82599         "proc" reported by n0dalus.
82600
82601         * lib/mountlist.c: Include <limits.h>.
82602         (dev_from_mount_options)
82603         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82604         New function.  It no longer assumes "dev=" has the System V meaning
82605         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82606         (read_file_system_list)
82607         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82608         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82609         dev= in that case.
82610
82611         * lib/posixtm.h (PDS_PRE_2000): New macro.
82612         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82613         allow_century.  All usages changed.  Reject dates outside the range
82614         1969-1999 if PDS_PRE_2000 is used.
82615
82616 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         Sync from coreutils.
82619         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82620         (Time of day items): Mention the possibility of leap seconds.
82621         Problem reported by Dr. David Alan Gilbert.
82622
82623 2006-01-09  Jim Meyering  <jim@meyering.net>
82624
82625         Sync from coreutils.
82626
82627         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82628
82629         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82630
82631         * lib/modechange.c (mode_compile): Reject an invalid mode string
82632         that starts with an octal digit.  From Andreas Gruenbacher.
82633
82634         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82635         and dup to open_safer and dup_safer, respectively.
82636         (openat_permissive): Fix typo in comment.
82637
82638         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82639         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82640         (_): Remove; no longer needed.
82641         (openat): Renamed from rpl_openat; no need for rpl_openat
82642         since openat.h renames openat for us.
82643         Replace most of the body with a call to openat_permissive,
82644         to avoid duplicate code.
82645         Port to (probably hypothetical) environments were mode_t is
82646         wider than int.
82647         (openat_permissive): Require mode arg, so that we can check
82648         types better.  Put it just after flags.  Change cwd failure
82649         indicator from pointer-to-bool to pointer-to-errno-value.
82650         All callers changed.
82651         Invoke openat_save_fail and/or openat_restore_fail if
82652         cwd_errno is null, so that openat can call us.
82653         (openat_permissive, fdopendir, fstatat, unlinkat):
82654         Simplify errno handling to avoid some duplicate code,
82655         as it's OK to set errno on success.
82656         * lib/openat.h: Revamp code so that function macros depend on
82657         __OPENAT_PREFIX only, not also on AT_FDCWD.
82658         (openat_ro): Remove.  Caller changed to use openat_permissive.
82659         (openat_permissive): Now a macro, if not a function.
82660         (openat_restore_fail, openat_save_fail): Now always functions,
82661         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82662
82663         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82664         and openat.c.
82665         * lib/mkdirat.c: Include openat-priv.h.
82666         Remove definitions of macros defined therein.
82667         * lib/openat.c: Likewise.
82668
82669         * lib/mkdirat.c (mkdirat): New file and function.
82670         * lib/openat.h (mkdirat): Declare.
82671
82672         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82673
82674         * lib/openat.h (openat_permissive): Declare.
82675         (openat_ro): Define.
82676
82677         * lib/openat.c (EXPECTED_ERRNO): New macro.
82678         (openat_permissive): New function -- used in remove.c rewrite.
82679         (all functions): Set errno just before returning, only if there
82680         was an actual failure.
82681         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82682
82683         Emulate openat-family functions using Linux's procfs, if possible.
82684         Idea and some code based on Ulrich Drepper's glibc changes.
82685
82686         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82687         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82688         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82689         before falling back on save_cwd and restore_cwd.
82690         (fdopendir, fstatat, unlinkat): Likewise.
82691
82692         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82693         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82694
82695         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82696         as second argument to va_arg.  Otherwise, some versions of gcc
82697         warn that `if this code is reached, the program will abort'.
82698
82699 2006-01-09  Jim Meyering  <jim@meyering.net>
82700
82701         Sync from coreutils.
82702         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82703         Require openat-priv.h.
82704
82705 2006-01-09  Bruno Haible  <bruno@clisp.org>
82706
82707         * modules/strnlen (Include): Use strnlen.h.
82708
82709 2006-01-09  Bruno Haible  <bruno@clisp.org>
82710
82711         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82712
82713 2006-01-09  Bruno Haible  <bruno@clisp.org>
82714
82715         * lib/sysexit_.h (EX_OK): New macro.
82716         Suggested by Martin Lambers <marlam@marlam.de>.
82717
82718 2006-01-09  Bruno Haible  <bruno@clisp.org>
82719
82720         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82721         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82722
82723 2006-01-09  Bruno Haible  <bruno@clisp.org>
82724
82725         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82726         numbers.
82727
82728 2006-01-09  Bruno Haible  <bruno@clisp.org>
82729
82730         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82731         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82732         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82733         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82734
82735 2006-01-09  Bruno Haible  <bruno@clisp.org>
82736
82737         * build-aux/javacomp.sh.in: New file, moved from lib/.
82738         * modules/javacomp-script (Files): Update.
82739         (configure.ac): Add AC_CONFIG_FILES invocation.
82740         (EXTRA_DIST): Remove variable.
82741
82742         * build-aux/javaexec.sh.in: New file, moved from lib/.
82743         * modules/javaexec (Files): Update.
82744         (configure.ac): Add AC_CONFIG_FILES invocation.
82745         (EXTRA_DIST): Remove javaexec.sh.in.
82746
82747         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82748         * modules/csharpcomp-script (Files): Update.
82749         (configure.ac): Add AC_CONFIG_FILES invocation.
82750         (EXTRA_DIST): Remove variable.
82751
82752         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82753         * modules/csharpexec (Files): Update.
82754         (configure.ac): Add AC_CONFIG_FILES invocation.
82755         (EXTRA_DIST): Remove csharpexec.sh.in.
82756
82757 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82758
82759         Sync from coreutils.
82760
82761         Add POSIX ACL support
82762         * lib/acl.h (copy_acl, set_acl): Add declarations.
82763         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82764         systems other than Linux.
82765         (chmod_or_fchmod): New function: use fchmod when possible,
82766         and chmod otherwise.
82767         (file_has_acl): Add a POSIX ACL implementation, with a
82768         Linux-specific subcase.
82769         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82770         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82771         acls are unsupported.
82772         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82773         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82774         are unsupported.
82775
82776 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82777
82778         Sync from coreutils.
82779         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82780
82781 2006-01-07  Bruno Haible  <bruno@clisp.org>
82782
82783         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82784         gl_EARLY.
82785
82786 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82789         Problem reported for Mingw by Mark Junker.
82790
82791 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82792
82793         * README: Gnulib normally doesn't generate a tarball.
82794
82795 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82796
82797         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82798         long int, not int, for nanosecond counts, so that people who are
82799         used to POSIX struct timespec won't be surprised.  Reported by Jim
82800         Meyering.
82801
82802 2005-12-28  Bruno Haible  <bruno@clisp.org>
82803
82804         * build-aux/config.rpath: Update from GNU gettext.
82805
82806 2005-12-16  Jim Meyering  <jim@meyering.net>
82807
82808         * modules/fprintftime: New module.
82809         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82810
82811 2005-12-16  Jim Meyering  <jim@meyering.net>
82812
82813         * m4/fprintftime.m4: New file.
82814
82815 2005-12-16  Jim Meyering  <jim@meyering.net>
82816
82817         * lib/fprintftime.c, lib/fprintftime.h: New files.
82818
82819 2005-12-15  Simon Josefsson  <jas@extundo.com>
82820
82821         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82822         new m4/socklen.m4.
82823
82824 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82825
82826         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82827         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82828
82829 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82830
82831         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82832         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82833         struct uparams is valid. Fall back to the default values if it is
82834         not.
82835
82836 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82837
82838         * modules/argp (Files): Add argp-pin.c
82839         (Depends-on): dirname
82840         (lib_SOURCES): Add argp-pin.c
82841
82842 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82843
82844         * m4/argp.m4:  Check if program_invocation_name and
82845         program_invocation_short_name are declared and define appropriate
82846         macros if they are not.
82847
82848 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82849
82850         * lib/argp-help.c (__argp_base_name): New function
82851         (__argp_short_program_name): Rewrite using __argp_base_name
82852         * lib/argp-namefrob.h: Define program_invocation_name and
82853         program_invocation_short_name if requested
82854         (__argp_base_name): Add prototype
82855         * lib/argp-parse.c (argp_def): Use gettext wrappers
82856         (argp_default_parser): Use __argp_base_name
82857         * lib/argp-pin.c: New file. Defines program_invocation_name and
82858         program_invocation_short_name on systems that lack them.
82859
82860 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82861
82862         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82863         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82864         porting problem reported by Georg Schwarz in
82865         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82866
82867 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82868
82869         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82870         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82871         porting problem reported by Georg Schwarz in
82872         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82873
82874 2005-12-05  Bruno Haible  <bruno@clisp.org>
82875
82876         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82877         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82878         Reported by Mark Junker <mjscod@gmx.de>.
82879
82880 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82881
82882         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82883         Use implementation from Albert Chin, with some
82884         comments/corrections by Stepan Kasal and myself.
82885
82886 2005-12-02  Bruno Haible  <bruno@clisp.org>
82887
82888         * gnulib-tool (func_import): Accept GPLed build tool modules when
82889         --lgpl is given.
82890         * modules/csharpcomp-script: New file.
82891         * modules/csharpcomp: Depend on it.
82892         * modules/javacomp-script: New file.
82893         * modules/javacomp: Depend on it.
82894         Suggested by Simon Josefsson.
82895
82896 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82897
82898         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82899         statement, to work around an HP-UX 10.20 compiler bug reported by
82900         Peter O'Gorman.
82901
82902 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * modules/savedir (Depends-on): Add openat.
82905
82906 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82907
82908         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82909         (uintmax_t) [defined uintmax_t]: Do not declare.
82910         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82911         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82912         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82913         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82914         sake of portability to weird hosts that C allows (though we don't
82915         know of any practical examples).
82916
82917         * lib/savedir.h (fdsavedir): New decl.
82918         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82919         contains most of the former guts of savedir.
82920         (savedir): Use savedirstream.
82921         Include "openat.h".
82922
82923 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82924
82925         * modules/obstack (Files): Add m4/ulonglong.m4.
82926         Problem reported by Davide Angelocola.
82927
82928 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82929
82930         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82931         coreutils no longer futzes with rounding modes.
82932
82933 2005-11-14  Jim Meyering  <jim@meyering.net>
82934
82935         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82936         replacement of mkstemp.
82937
82938 2005-11-10  Simon Josefsson  <jas@extundo.com>
82939
82940         * lib/readline.c: Remove EOL.
82941
82942 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82943
82944         * modules/gethrxtime (Depends-on): Add gettime.
82945
82946 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82947
82948         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82949         or gettimeofday; no longer needed.
82950
82951 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82952
82953         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82954         time business.
82955         (gethrxtime) [! (HAVE_NANOUPTIME
82956         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82957         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82958         our own approximation.
82959
82960 2005-11-08  Eric Blake  <ebb9@byu.net>
82961
82962         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82963
82964 2005-11-08  Eric Blake  <ebb9@byu.net>
82965
82966         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82967
82968 2005-11-04  Bruno Haible  <bruno@clisp.org>
82969
82970         * gnulib-tool: Implement --update mode.
82971
82972 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82973
82974         Fix porting problem reported by Theodoros V. Kalamatianos.
82975         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82976         Don't assume that futimes failing means we must fail.
82977
82978 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82979
82980         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82981         variables to suggest the intended function of the PATH_MAX check.
82982
82983 2005-10-30  Kean Johnston  <jkj@sco.com>
82984
82985         Trivial changes to support SCO systems.
82986         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82987         as PATH_MAX.
82988         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82989         where __ptr is null when no I/O is pending.
82990
82991 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82992
82993         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82994         leave errno alone.  Problem reported by Dmitry V. Levin.
82995
82996 2005-10-28  Simon Josefsson  <jas@extundo.com>
82997
82998         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82999         Test more.
83000
83001         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83002
83003         * modules/md2, modules/md2-tests: New files.
83004
83005 2005-10-28  Simon Josefsson  <jas@extundo.com>
83006
83007         * m4/inet_ntop.m4: More tests.
83008
83009         * m4/gc-md2.m4, md2.m4: New file.
83010
83011 2005-10-28  Simon Josefsson  <jas@extundo.com>
83012
83013         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83014         "restrict" keywords, as per POSIX.  Protect the function
83015         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83016         Don't use K&R prototypes.  Check the sprintf return values.
83017         Re-define EAFNOSUPPORT if not present.  Indent.
83018
83019         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83020         suggested by Bruno Haible <bruno@clisp.org>.
83021
83022         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83023
83024         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83025
83026         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83027         libgcrypt).
83028
83029         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83030
83031         * lib/md2.h, lib/md2.c: New files.
83032
83033 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83034
83035         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83036         errno alone.  Problem reported by Frederic Jolliton.
83037
83038 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83039
83040         * modules/verify (License): Change from GPL to LGPL.  This is a
83041         tiny module and there are apparently near-equivalents that are
83042         under the BSD license.
83043
83044 2005-10-24  Simon Josefsson  <jas@extundo.com>
83045
83046         * modules/sha1: Relicense to LGPL.
83047
83048 2005-10-24  Simon Josefsson  <jas@extundo.com>
83049
83050         * lib/md4.h: Shrink buffer size, now that we changed the type.
83051
83052 2005-10-23  Simon Josefsson  <jas@extundo.com>
83053
83054         * gnulib-tool (func_import): Fix --tests-base.
83055
83056 2005-10-22  Simon Josefsson  <jas@extundo.com>
83057
83058         * modules/arcfour (Depends-on): Need stdint.
83059
83060 2005-10-22  Simon Josefsson  <jas@extundo.com>
83061
83062         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83063         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83064
83065 2005-10-22  Simon Josefsson  <jas@extundo.com>
83066
83067         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83068         suggested by Bruno Haible <bruno@clisp.org>.
83069
83070 2005-10-22  Simon Josefsson  <jas@extundo.com>
83071
83072         * lib/crc.h: Include stddef.h, for size_t.
83073
83074 2005-10-22  Simon Josefsson  <jas@extundo.com>
83075
83076         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83077         arcfour_context struct (simplify test vector testing in GNU
83078         Shishi).
83079
83080 2005-10-21  Simon Josefsson  <jas@extundo.com>
83081
83082         * modules/des, modules/des-tests: New files.
83083
83084         * modules/gc-des, modules/gc-des-tests: New files.
83085
83086         * tests/test-des.c, tests/test-gc-des.c: New file.
83087
83088 2005-10-21  Simon Josefsson  <jas@extundo.com>
83089
83090         * modules/arctwo, modules/arctwo-tests: New files.
83091
83092         * tests/test-arctwo.c: New file.
83093
83094         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83095
83096         * tests/test-gc-arctwo.c: New file.
83097
83098 2005-10-21  Simon Josefsson  <jas@extundo.com>
83099
83100         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83101         Bruno Haible <bruno@clisp.org>.
83102
83103         * m4/gc-des.m4: New file.
83104
83105 2005-10-21  Simon Josefsson  <jas@extundo.com>
83106
83107         * m4/arctwo.m4: New file.
83108
83109         * m4/gc-arctwo.m4: New file.
83110
83111 2005-10-21  Simon Josefsson  <jas@extundo.com>
83112
83113         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83114         block.
83115
83116 2005-10-21  Simon Josefsson  <jas@extundo.com>
83117
83118         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83119         <bruno@clisp.org>.
83120
83121         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83122
83123         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83124         Bruno Haible <bruno@clisp.org>.
83125
83126         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83127         <bruno@clisp.org>.
83128
83129 2005-10-21  Simon Josefsson  <jas@extundo.com>
83130
83131         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83132
83133 2005-10-21  Simon Josefsson  <jas@extundo.com>
83134
83135         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83136
83137 2005-10-21  Simon Josefsson  <jas@extundo.com>
83138
83139         * lib/des.h, lib/des.c: New files.
83140
83141         * lib/gc-gnulib.c: Support DES.c
83142
83143 2005-10-21  Simon Josefsson  <jas@extundo.com>
83144
83145         * lib/arctwo.h, lib/arctwo.c: New files.
83146
83147         * lib/gc-gnulib.c: Support ARCTWO.
83148
83149 2005-10-21  Simon Josefsson  <jas@extundo.com>
83150
83151         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83152         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83153
83154 2005-10-21  Simon Josefsson  <jas@extundo.com>
83155
83156         * gnulib-tool (func_import, func_create_testdir): Define automake
83157         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83158         Makefile.am snippet),
83159         suggested by Bruno Haible <bruno@clisp.org>.
83160
83161         * modules/gc (Makefile.am): Use it.
83162
83163 2005-10-21  Bruno Haible  <bruno@clisp.org>
83164
83165         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83166         patch.
83167
83168 2005-10-19  Simon Josefsson  <jas@extundo.com>
83169
83170         * tests/test-gc-rijndael.c: New file.
83171
83172         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83173
83174 2005-10-19  Simon Josefsson  <jas@extundo.com>
83175
83176         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83177         interface too.
83178
83179 2005-10-19  Simon Josefsson  <jas@extundo.com>
83180
83181         * tests/test-gc-arcfour.c: New file.
83182
83183         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83184
83185 2005-10-19  Simon Josefsson  <jas@extundo.com>
83186
83187         * modules/gc-md4, modules/gc-md4-tests: New file.
83188
83189         * tests/test-gc-md4.c: New file.
83190
83191 2005-10-19  Simon Josefsson  <jas@extundo.com>
83192
83193         * m4/gc-md4.m4: New file.
83194
83195 2005-10-19  Simon Josefsson  <jas@extundo.com>
83196
83197         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83198         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83199         <kasal@ucw.cz>.
83200
83201 2005-10-19  Simon Josefsson  <jas@extundo.com>
83202
83203         * m4/gc-arcfour.m4: New file.
83204
83205         * m4/gc-rijndael.m4: New file.
83206
83207 2005-10-19  Simon Josefsson  <jas@extundo.com>
83208
83209         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83210
83211 2005-10-19  Simon Josefsson  <jas@extundo.com>
83212
83213         * lib/gc-gnulib.c: Support ARCFOUR.
83214
83215 2005-10-19  Simon Josefsson  <jas@extundo.com>
83216
83217         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83218         support.
83219
83220         * lib/gc.h: Add ECB enum type.
83221
83222         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83223
83224 2005-10-18  Simon Josefsson  <jas@extundo.com>
83225
83226         * tests/test-md5.c: New file.
83227
83228         * modules/md5-tests: New file.
83229
83230 2005-10-18  Simon Josefsson  <jas@extundo.com>
83231
83232         * tests/test-md4.c: New file.
83233
83234         * modules/md4, modules/md4-tests: New files.
83235
83236 2005-10-18  Simon Josefsson  <jas@extundo.com>
83237
83238         * m4/md4.m4: New file.
83239
83240 2005-10-18  Simon Josefsson  <jas@extundo.com>
83241
83242         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83243
83244 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83245
83246         * gnulib-tool (func_create_testdir): Omit the second check whether
83247         BUILT_SOURCES in nonempty.
83248
83249 2005-10-17  Simon Josefsson  <jas@extundo.com>
83250
83251         * tests/test-rijndael.c: New file.
83252
83253 2005-10-17  Simon Josefsson  <jas@extundo.com>
83254
83255         * modules/sha1: Depend on stdint instead of md5.
83256
83257         * modules/md5: Depend on stdint, remove uint32_t.
83258
83259 2005-10-17  Simon Josefsson  <jas@extundo.com>
83260
83261         * modules/gc-sha1-tests: New file.
83262
83263         * tests/test-gc-sha1.c: New file.
83264
83265 2005-10-17  Simon Josefsson  <jas@extundo.com>
83266
83267         * m4/md5.m4: Remove call to uint32_t.m4.
83268
83269 2005-10-17  Simon Josefsson  <jas@extundo.com>
83270
83271         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83272
83273         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83274         md5.h.
83275
83276         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83277
83278         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83279
83280 2005-10-17  Simon Josefsson  <jas@extundo.com>
83281
83282         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83283
83284 2005-10-17  Simon Josefsson  <jas@extundo.com>
83285
83286         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83287
83288 2005-10-17  Simon Josefsson  <jas@extundo.com>
83289
83290         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83291
83292         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83293
83294 2005-10-17  Bruno Haible  <bruno@clisp.org>
83295
83296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83297         that it can also be used in a test.
83298
83299 2005-10-16  Bruno Haible  <bruno@clisp.org>
83300
83301         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83302         TESTS_ENVIRONMENT, so that individual tests can augment it.
83303
83304         * gnulib-tool (func_create_testdir): Use an intermediate target for
83305         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83306         macros, like $(ALLOCA_H), which cannot be passed through the command
83307         line.
83308
83309 2005-10-15  Simon Josefsson  <jas@extundo.com>
83310
83311         * modules/rijndael-tests: New file.
83312
83313         * modules/rijndael: New file.
83314
83315 2005-10-15  Simon Josefsson  <jas@extundo.com>
83316
83317         * m4/rijndael.m4: New file.
83318
83319 2005-10-15  Simon Josefsson  <jas@extundo.com>
83320
83321         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83322
83323         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83324
83325 2005-10-14  Simon Josefsson  <jas@extundo.com>
83326
83327         * tests/test-arcfour.c: New file.
83328
83329         * modules/arcfour, modules/arcfour-tests: New files.
83330
83331 2005-10-14  Simon Josefsson  <jas@extundo.com>
83332
83333         * m4/arcfour.m4: New file.
83334
83335 2005-10-14  Simon Josefsson  <jas@extundo.com>
83336
83337         * lib/arcfour.h, lib/arcfour.c: New files.
83338
83339 2005-10-14  Roland McGrath  <roland@redhat.com>
83340
83341         Import from libc.  [BZ #1331]
83342         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83343         macro argument.
83344         Reported by Matej Vela <vela@debian.org>.
83345
83346 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83347
83348         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83349         include <wchar.h>; no longer needed.
83350
83351 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83354
83355 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83356         and  Ulrich Drepper  <drepper@redhat.com>
83357
83358         Import from libc.
83359         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83360         instead of inline stream orientation test and two separate
83361         function calls.  Pay no attention to USE_IN_LIBIO.
83362
83363 2005-10-13  Simon Josefsson  <jas@extundo.com>
83364
83365         * modules/gc-hmac-md5-tests: New file.
83366
83367         * tests/test-gc-hmac-sha1.c: New file.
83368
83369         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83370
83371         * modules/gc-hmac-md5-tests: New file.
83372
83373         * tests/test-gc-md5.c: New file.
83374
83375         * modules/gc-md5-tests: New file.
83376
83377 2005-10-13  Simon Josefsson  <jas@extundo.com>
83378
83379         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83380         Move memory allocation outside of loop.
83381
83382 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83383
83384         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83385         intermediate directory is in a read-only file system.  Problem
83386         reported by Eric Blake.
83387
83388 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83389
83390         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83391
83392 2005-10-12  Simon Josefsson  <jas@extundo.com>
83393
83394         * tests/test-hmac-sha1.c: New file.
83395
83396         * modules/hmac-sha1-tests: New file.
83397
83398         * modules/hmac-sha1: New file.
83399
83400 2005-10-12  Simon Josefsson  <jas@extundo.com>
83401
83402         * modules/gc-sha1: New file.
83403
83404 2005-10-12  Simon Josefsson  <jas@extundo.com>
83405
83406         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83407
83408         * tests/test-gc-pbkdf2-sha1.c: New file.
83409
83410 2005-10-12  Simon Josefsson  <jas@extundo.com>
83411
83412         * modules/gc-md5, modules/gc-hmac-md5: New files.
83413
83414         * modules/gc (Files): Remove md5, memxor and hmac files.
83415
83416 2005-10-12  Simon Josefsson  <jas@extundo.com>
83417
83418         * m4/gc-pbkdf2-sha1.m4: New file.
83419
83420         * m4/gc-hmac-sha1.m4: New file.
83421
83422         * m4/gc-sha1: New file.
83423
83424         * m4/hmac-sha1.m4: New file.
83425
83426 2005-10-12  Simon Josefsson  <jas@extundo.com>
83427
83428         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83429
83430         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83431
83432 2005-10-12  Simon Josefsson  <jas@extundo.com>
83433
83434         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83435         suggested by Bruno Haible <bruno@clisp.org>.
83436
83437 2005-10-12  Simon Josefsson  <jas@extundo.com>
83438
83439         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83440
83441 2005-10-12  Simon Josefsson  <jas@extundo.com>
83442
83443         * lib/gc-pbkdf2-sha1.c: New file.
83444
83445         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83446
83447 2005-10-12  Simon Josefsson  <jas@extundo.com>
83448
83449         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83450
83451         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83452
83453 2005-10-12  Simon Josefsson  <jas@extundo.com>
83454
83455         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83456         GC_USE_HMAC_MD5, respectively.
83457
83458         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83459         (gc_md5): Fix typo.
83460
83461         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83462
83463         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83464
83465         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83466
83467 2005-10-12  Bruno Haible  <bruno@clisp.org>
83468
83469         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83470         Reported by Stepan Kasal <kasal@ucw.cz>.
83471
83472 2005-10-11  Simon Josefsson  <jas@extundo.com>
83473
83474         * tests/test-crc.c: New file.
83475
83476         * modules/crc, modules/crc-tests: New files.
83477
83478 2005-10-11  Simon Josefsson  <jas@extundo.com>
83479
83480         * m4/crc.m4: New file.
83481
83482 2005-10-11  Simon Josefsson  <jas@extundo.com>
83483
83484         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83485
83486         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83487
83488         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83489
83490 2005-10-11  Simon Josefsson  <jas@extundo.com>
83491
83492         * lib/crc.h, lib/crc.c: New files.
83493
83494         * lib/gc.h (gc_hash_buffer): Add doc.
83495
83496 2005-10-11  Bruno Haible  <bruno@clisp.org>
83497
83498         * modules/c-strcasestr: New file.
83499         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83500
83501 2005-10-11  Bruno Haible  <bruno@clisp.org>
83502
83503         * modules/c-strcase: New file.
83504         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83505
83506 2005-10-11  Bruno Haible  <bruno@clisp.org>
83507
83508         * lib/strcasecmp.c: Include limits.h.
83509         (strcasecmp): Avoid integer overflow on exotic platforms.
83510         * lib/strncasecmp.c: Include limits.h.
83511         (strncasecmp): Avoid integer overflow on exotic platforms.
83512         Reported by Paul Eggert.
83513
83514 2005-10-11  Bruno Haible  <bruno@clisp.org>
83515
83516         * lib/c-strcasestr.h: New file, from GNU gettext.
83517         * lib/c-strcasestr.c: New file, from GNU gettext.
83518
83519 2005-10-11  Bruno Haible  <bruno@clisp.org>
83520
83521         * lib/c-strcase.h: New file, from GNU gettext.
83522         * lib/c-strcasecmp.c: New file, from GNU gettext.
83523         * lib/c-strncasecmp.c: New file, from GNU gettext.
83524
83525 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83526
83527         * modules/mempcpy (License): GPL -> LGPL.
83528         * modules/strchrnul (License): Likewise.
83529         * modules/sysexits (License): Likewise.
83530
83531 2005-10-08  Simon Josefsson  <jas@extundo.com>
83532
83533         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83534
83535 2005-10-07  Simon Josefsson  <jas@extundo.com>
83536
83537         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83538
83539 2005-10-06  Simon Josefsson  <jas@extundo.com>
83540
83541         * tests/test-hmac-md5.c: New file.
83542
83543         * modules/hmac-md5-tests: New file.
83544
83545         * modules/hmac-md5: New file.
83546
83547 2005-10-06  Simon Josefsson  <jas@extundo.com>
83548
83549         * m4/hmac-md5.m4: New file.
83550
83551         * m4/memxor.m4: Require gl_C_RESTRICT.
83552
83553 2005-10-06  Simon Josefsson  <jas@extundo.com>
83554
83555         * lib/memxor.c (memxor): Avoid casts and warnings.
83556
83557 2005-10-06  Simon Josefsson  <jas@extundo.com>
83558
83559         * lib/hmac-md5.c: New file.
83560
83561         * lib/hmac.h: New file.
83562
83563 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83564
83565         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83566         promotes to int, not unsigned int, to catch the AIX 5.3
83567         compiler bug.
83568
83569 2005-10-05  Simon Josefsson  <jas@extundo.com>
83570
83571         * modules/memxor: New file.
83572
83573         * modules/iconv (Files): Move config.rpath to havelib, it is used
83574         there.
83575
83576         * modules/havelib (Files): Add config.rpath.
83577
83578 2005-10-05  Simon Josefsson  <jas@extundo.com>
83579
83580         * m4/memxor.m4: New file.
83581
83582 2005-10-05  Simon Josefsson  <jas@extundo.com>
83583
83584         * lib/memxor.c (memxor): Fix compiler error.
83585
83586         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83587         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83588
83589         * lib/memxor.h, lib/memxor.c: New files.
83590
83591         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83592         we assume all systems have it, suggested by Jim Meyering
83593         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83594         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83595         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83596         same reasons.
83597
83598 2005-10-05  Simon Josefsson  <jas@extundo.com>
83599
83600         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83601
83602 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83603
83604         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83605         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83606         needed, since the source code now assumes these .h files.
83607
83608 2005-10-05  Derek Price  <derek@ximbiot.com>
83609
83610         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83611
83612 2005-10-05  Bruno Haible  <bruno@clisp.org>
83613
83614         * modules/stdint (License): Change to LGPL.
83615
83616 2005-10-04  Simon Josefsson  <jas@extundo.com>
83617
83618         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83619         D. Baushke" <mdb@gnu.org>.
83620
83621 2005-10-04  Bruno Haible  <bruno@clisp.org>
83622
83623         * lib/verify.h (verify_true): Provide alternative definition for C++.
83624
83625 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83628         (SSIZE_MAX): New macro, if not already defined.
83629         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83630         than 2 GiB.
83631
83632 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83633
83634         Sync from coreutils.
83635         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83636         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83637         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83638         ULLONG_MAX doesn't work with 2.7.2.1.
83639
83640 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83641
83642         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83643         From Ben Pfaff.
83644
83645         * modules/exclude (Depends-on): Depend on verify.
83646         * modules/strtoimax (Depends-on): Likewise.
83647         * modules/utimecmp (Depends-on): Likewise.
83648
83649 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83650
83651         * lib/exclude.c: Include verify.h.
83652         (verify): Remove.  All callers changed to use verify.h's version.
83653         * lib/strtoimax.c: Likewise.
83654         * lib/utimecmp.c: Likewis.e
83655
83656         Sync from coreutils.
83657         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83658         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83659         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83660         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83661         bother returning ENOSYS if settimeofday or stime fails; just let
83662         them return whatever errno they want to return.
83663         * lib/utimens.c: Include unistd.h, for dup2.
83664         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83665         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83666
83667 2005-10-02  Jim Meyering  <jim@meyering.net>
83668
83669         Sync from coreutils.
83670         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83671         from glibc-2.2.5 that fails for read-only files.
83672
83673 2005-10-02  Jim Meyering  <jim@meyering.net>
83674
83675         Sync from coreutils.
83676         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83677         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83678         `#if HAVE_CONFIG_H'.
83679         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83680         Remove AT_FDCWD test.
83681         Do not consume the fd unless successful.
83682         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83683         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83684         block, so that we don't even try to compile it if settimeofday is
83685         available.  This works around a compilation failure on OSF1 V5.1,
83686         due to stime requiring a `long int*' while tv_sec is `int'.
83687
83688 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83689
83690         Sync from coreutils.
83691         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83692         against `yes', rather than just testing for nonempty.
83693
83694 2005-10-01  Simon Josefsson  <jas@extundo.com>
83695
83696         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83697         and Darwin.
83698
83699         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83700         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83701         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83702         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83703         Check if struct addrinfo is declared.
83704
83705 2005-10-01  Simon Josefsson  <jas@extundo.com>
83706
83707         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83708         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83709         AI_* and EAI_* definitions.  Protect function declarations.
83710
83711 2005-10-01  Jim Meyering  <jim@meyering.net>
83712
83713         Sync from coreutils.
83714
83715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83716         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83717         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83719         in the inet and nsl libraries.  Required on Solaris 5.7.
83720
83721 2005-10-01  Jim Meyering  <jim@meyering.net>
83722
83723         Sync from coreutils.
83724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83725         in the inet and nsl libraries.  Required on Solaris 5.7.
83726
83727 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83728
83729         * lib/getdelim.c (getdelim): Remove unused variables.
83730
83731 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83732
83733         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83734         so that the code works even with ancient cpp.  Portability problem
83735         with GCC 2.7.2.1 reported by Thomas M.Ott.
83736
83737 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83738
83739         * modules/regex (Depends-on): Add strcase.
83740
83741         * modules/gethostname (Licence): Change from GPL to LGPL, since
83742         gethostname.c is a trivial implementation of a standard library
83743         function.
83744         * modules/poll (License): Change from GPL to LGPL, since it's
83745         derived from LGPL code.
83746
83747 2005-09-27  Jim Meyering  <jim@meyering.net>
83748
83749         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83750         HAVE_CONFIG_H.
83751
83752         * lib/intprops.h (signed_type_or_expr__): Define.
83753         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83754         for unsigned types.
83755
83756 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         * lib/verify.h (verify_expr): Remove, replacing with:
83759         (verify_true): New macro that returns true instead of void.
83760         (verify_type__): Remove.
83761         (verify): Use verify_true rather than verify_type__.
83762
83763 2005-09-26  Bruno Haible  <bruno@clisp.org>
83764
83765         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83766         is necessary.
83767         (lib_SOURCES): Remove mbchar.c.
83768         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83769         (Files): Add m4/mbrtowc.m4.
83770         * modules/mbiter: Likewise.
83771         * modules/mbuiter: Likewise.
83772
83773 2005-09-26  Bruno Haible  <bruno@clisp.org>
83774
83775         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83776         compile mbchar.c if they are not both present.
83777         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83778         * m4/mbiter.m4 (gl_MBITER): Likewise.
83779         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83780         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83781         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83782
83783 2005-09-25  Jim Meyering  <jim@meyering.net>
83784
83785         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83786         also uses socklen_t.
83787
83788 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83789
83790         * lib/utimens.c (ENOSYS): Define if not already defined.
83791         (futimens): Support having a null PATH if the file descriptor
83792         is nonnegative.
83793
83794         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83795         Remove.
83796         (__attribute): Define to empty unless GCC 3.1 or later.
83797         This works around a core dump on OpenBSD 3.4, which has GCC
83798         2.95.3, which dumps core when given __attribute__(()).  It also
83799         simplifies other tests, since we really don't want to bother with
83800         worrying about which ancient version of GCC supported what.
83801         Original problem reported by Yoann Vandoorselaere, with part of
83802         the fix suggested by Derek Price.
83803
83804 2005-09-24  Jim Meyering  <jim@meyering.net>
83805
83806         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83807         so we can once again use a positive bitfield width of 1 -- now we
83808         don't have to explain why we were using a bitfield width of 2.
83809
83810 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83811
83812         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83813         and similarly for the other external symbols.  Problem reported
83814         by James Gallager.
83815
83816         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83817         bug reported by Jim Meyering.
83818
83819         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83821         not needed, since socklen is a prerequisite module.
83822
83823 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83824
83825         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83826         Problem reported by Eric Blake.
83827         (getaddrinfo): Initialize se so that it's not garbage.
83828         Redo internal storage allocation so that it doesn't make unportable
83829         assumptions about alignment.
83830         Fix a memory leak.
83831
83832         * lib/utimens.c (futimens): Use futimesat if available.
83833         Prefer it to futimes since it doesn't have the futimes bug.
83834
83835         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83836         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83837         Instead, declare a function that returns a pointer to an array,
83838         and use verify_type__ to declare the size of the array.
83839         Problem and germ of a solution reported by Bruno Haible.
83840         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83841         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83842
83843 2005-09-23  Jim Meyering  <jim@meyering.net>
83844
83845         Sync from coreutils.
83846         Correct build failure (socklen_t not defined) on at least
83847         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83848         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83849
83850 2005-09-23  Jim Meyering  <jim@meyering.net>
83851
83852         * modules/getaddrinfo (Depends-on): Add socklen.
83853
83854 2005-09-23  Bruno Haible  <bruno@clisp.org>
83855
83856         * tests/test-verify.c: New file.
83857
83858 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83859
83860         Sync from coreutils.
83861
83862         * modules/argmatch (Depends-on): Add verify.
83863         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83864         unistd-safer.
83865         * modules/save-cwd (Depends-on): Likewise.
83866
83867         * modules/openat (Files): Add lib/openat-die.c.
83868         (Depends-on): Remove error, exitfail.
83869         Add dirname.
83870
83871         * modules/verify: New file.
83872         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83873         with "verify" module.
83874
83875 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83876
83877         Sync from coreutils.
83878
83879         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83880         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83881         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83882         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83883         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83884         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83885         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83886         Don't bother checking for string.h, stdlib.h, unistd.h.
83887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83888         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83889         module's job.
83890         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83891         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83892
83893         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83894         (gl_GETDATE): Use it.
83895
83896         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83897
83898 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83899
83900         Sync from coreutils.
83901
83902         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83903         stat-time.h.
83904         * lib/argmatch.h: Include verify.h
83905         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83906         (ARGMATCH_ASSERT): Remove; unused.
83907         * lib/canonicalize.c: Assume STDC_HEADERS.
83908         * lib/exclude.c: Include "strcase.h".
83909         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83910         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83911         and stdio-safer.h.
83912         (getusershell): Call fopen, not fopen_safer.
83913         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83914         Do not include unistd-safer.h.
83915         (save_cwd): Don't call fd_safer; no longer needed
83916         now that we include fcntl--.h.
83917
83918         * lib/getdate.y (relative_time): New type.
83919         (RELATIVE_TIME_0): New constant.
83920         (parser_control): Use relative_time instead of doing it ourselves.
83921         (%union): Add new relative_time rel member.
83922         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83923         Now typeless.
83924         (relunit, relunit_snumber): Now of type rel.
83925         (zone, rel, relunit, get_date): Adjust to above changes.
83926
83927         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83928         Do not include unistd-safer.h.
83929         (getloadavg): Don't call fd_safer; no longer needed
83930         now that we include fcntl--.h.
83931
83932         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83933         (make_dir_parents): Treat ENOSYS like EEXIST.
83934
83935         Improve quality of diagnostics on restore_cwd failure.
83936         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83937         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83938         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83939         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83940         each time through the loop.  Do not diagnose restore_cwd failure;
83941         that is the caller's job (and perhaps the caller does not care).
83942
83943         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83944         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83945         If the file already exists but is not a directory, don't bother
83946         to try to make its parents.
83947         Close potential file descriptor leak if we can't chdir("/") (!).
83948         Don't always return true if chdir($PWD) fails; return true only
83949         if the requested action was done successfully (except for the
83950         chdir($PWD)).
83951         Don't log final directory unless we actually made it.
83952         Refactor to avoid duplicate code to fix up permissions.
83953         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83954
83955         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83956         to make it a bit faster and (I hope) clearer.
83957         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83958         Fix bug in formats like %2N.
83959
83960         * lib/verify.h: New file.
83961
83962 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         Sync from coreutils.
83965         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83966
83967 2005-09-22  Jim Meyering  <jim@meyering.net>
83968
83969         Sync from coreutils.
83970
83971         * m4/lstat.m4 (gl_FUNC_LSTAT):
83972         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83973         Remove obsolete comment.
83974         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83975         * m4/xstrtod.m4: Likewise.
83976
83977         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83978
83979 2005-09-22  Jim Meyering  <jim@meyering.net>
83980
83981         Sync from coreutils.
83982
83983         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83984
83985         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83986         the .tm_year member, since otherwise gcc-4.0 would now warn about
83987         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83988
83989         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83990         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83991
83992         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83993         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83994         when run in a time zone for which daylight savings time is in effect
83995         for the starting date.
83996
83997         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83998         stop us from restricting permissions of just-created absolute-named
83999         directories.
84000         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84001         to restore initial working directory.
84002         * lib/mkdir-p.c (make_dir_parents): New parameter:
84003         different_working_dir, to tell caller if/when we change the working
84004         directory and are unable to return to the initial one.
84005         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84006         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84007         `return false'.  This fixes a bug introduced on 2004-07-30.
84008
84009         * lib/openat.c (fdopendir): Be sure to close the supplied
84010         file descriptor before returning.  This makes our replacement
84011         implementation a little closer to Solaris's, where fdopendir
84012         ties the file descriptor to the returned DIR* pointer.
84013         * lib/openat.c (unlinkat): New function.
84014         * lib/openat.h (unlinkat): Add prototype.
84015         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84016         (openat_restore_fail): Rename from openat_restore_die.
84017         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84018
84019         Provide an alternative to exiting immediately upon save_cwd or
84020         restore_cwd failure.  Now, an application can arrange e.g.,
84021         to perform a longjump in that case.
84022         * lib/openat.c: Include dirname.h.
84023         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84024         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84025         and openat_restore_die rather than calling error directly.
84026         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84027
84028         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84029         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84030         define.
84031
84032         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84033         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84034                             int utc, int nanoseconds);
84035         Background:
84036         date should not have to allocate a megabyte of virtual memory to
84037         handle a format argument like +%1048575T.  When implemented with
84038         strftime, it must allocate such a buffer, use strftime to fill it
84039         in, print it, then free it.
84040         With fprintftime, it simply prints everything and exits.
84041         With no need for memory allocation, that's one fewer way to fail.
84042         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84043         optional field width, not before, so we accept %9:z, not %:9z.
84044         (my_strftime): Be sure to use L_('x') for literals.
84045
84046         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84047         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84048         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84049         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84050         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84051         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84052         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84053         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84054         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84055         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84056         * lib/xgethostname.c, lib/xreadlink.c:
84057         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84058
84059         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84060         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84061         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84062         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84063         and don't include <sys/file.h>).
84064
84065 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84066
84067         Sync from coreutils.
84068
84069         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84070         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84071         [!LDAV_DONE]: Avoid unused variable warning.
84072
84073 2005-09-21  Bruno Haible  <bruno@clisp.org>
84074
84075         * lib/unicodeio.h (unicode_to_mb): New declaration.
84076
84077 2005-09-20  Derek Price  <derek@ximbiot.com>
84078
84079         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84080         getaddrinfo.h.
84081
84082 2005-09-20  Bruno Haible  <bruno@clisp.org>
84083
84084         * gnulib-tool: Remove trailing slashes from the values specified for
84085         --source-base, --m4-base, --tests-base, --aux-dir.
84086         Suggested by Simon Josefsson <jas@extundo.com>.
84087
84088 2005-09-20  Bruno Haible  <bruno@clisp.org>
84089
84090         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84091         func_modules_to_filelist, func_import, func_create_testdir): Make all
84092         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84093         change when gnulib-tool is invoked in a different locale.
84094
84095 2005-09-19  Simon Josefsson  <jas@extundo.com>
84096
84097         * m4/socklen.m4: Fix typo.
84098
84099 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84100
84101         Use a consistent style for including <config.h>.
84102         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84103         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84104         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84105         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84106         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84107         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84108         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84109         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84110         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84111         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84112         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84113         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84114         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84115         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84116         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84117         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84118         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84119         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84120         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84121         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84122         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84123         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84124         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84125         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84126         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84127         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84128         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84129         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84130         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84131         lib/xstrtoumax.c, lib/yesno.c:
84132         Standardize inclusion of config.h.
84133         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84134         lib/inttostr.h:  Removed inclusion of config.h from header files.
84135         * lib/inttostr.c:  Adjusted in-tree users.
84136         * lib/timespec.h: Remove superfluous warning to include config.h.
84137         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84138         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84139         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84140         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84141         config.h with HAVE_CONFIG_H.
84142
84143 2005-09-19  Jim Meyering  <jim@meyering.net>
84144
84145         * modules/pathmax (License): Change to LGPL.
84146
84147 2005-09-19  Derek Price  <derek@ximbiot.com>
84148
84149         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84150
84151 2005-09-19  Bruno Haible  <bruno@clisp.org>
84152
84153         * gnulib-tool (import): Provide default for --tests-base.
84154
84155 2005-09-19  Bruno Haible  <bruno@clisp.org>
84156
84157         * doc/quote.texi: New file, extracted from gnulib.texi.
84158         * doc/ctime.texi: New file, extracted from gnulib.texi.
84159         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84160         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84161         * doc/gnulib.texi: Include them.
84162
84163 2005-09-18  Bruno Haible  <bruno@clisp.org>
84164
84165         Portability fix.
84166         * gnulib-tool (func_readlink): New function.
84167         (func_ln_if_changed): Use it.
84168
84169 2005-09-18  Bruno Haible  <bruno@clisp.org>
84170
84171         * gnulib-tool: Support --with-tests also with --import.
84172         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84173         (func_import): Use variables $testsbase and $inctests. Emit a
84174         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84175         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84176         SUBDIRS += $testsdir.
84177         (func_create_testdir): Update.
84178
84179 2005-09-18  Bruno Haible  <bruno@clisp.org>
84180
84181         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84182         instead of $dry_run.
84183         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84184         (func_ln_if_changed): Don't handle dry-run here.
84185         (func_import): In dry-run mode, detect more precisely which actions
84186         would be performed, and don't use "...ing" verbs.
84187
84188 2005-09-18  Bruno Haible  <bruno@clisp.org>
84189
84190         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84191         (func_import): Use join on two temporary files instead of three nested
84192         loops, in order to determine which files are new or old.
84193
84194 2005-09-18  Bruno Haible  <bruno@clisp.org>
84195
84196         * gnulib-tool (func_import): Comment out code that spits out the
84197         new files with --dry-run.
84198
84199 2005-09-18  Bruno Haible  <bruno@clisp.org>
84200
84201         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84202
84203 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * lib/stat-time.h: New file.
84206         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84207         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84208         in a different way.
84209         (timespec_cmp): New function.
84210         * lib/utimecmp.c: Include stat-time.h.
84211         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84212         members exist, not on the obsolescent ST_MTIM_NSEC.
84213         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84214
84215 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84216
84217         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84218
84219 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84220
84221         * MODULES.html.sh (File system functions): Add stat-time.
84222         * modules/stat-time: New file.
84223         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84224         is now done in a different way, by the stat-time module.
84225         * modules/utimecmp (Depends-on): Add stat-time.
84226
84227 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         * m4/st_mtim.m4: Remove.  Superseded by...
84230         * m4/stat-time.m4: New file.
84231         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84232         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84233
84234 2005-09-15  Derek Price  <derek@ximbiot.com>
84235
84236         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84237
84238 2005-09-15  Derek Price  <derek@ximbiot.com>
84239
84240         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84241         * lib/regex_internal.c: Ditto, using this...
84242         (__GNUC_PREREQ): ...new macro.
84243         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84244         using...
84245         (__GNUC_PREREQ): ...this new macro.
84246
84247         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84248
84249 2005-09-15  Derek Price  <derek@ximbiot.com>
84250             Paul Eggert  <eggert@cs.ucla.edu>
84251
84252         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84253         changes, consolidating in...
84254         * lib/regex_internal.h: ...this file.
84255
84256 2005-09-13  Jim Meyering  <jim@meyering.net>
84257
84258         * lib/canon-host.c: Filter through gnu indent and reword comments
84259         slightly.
84260         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84261
84262 2005-09-13  Derek Price  <derek@ximbiot.com>
84263
84264         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84265         failure.
84266         Reported by Jim Meyering  <jim@meyering.net>.
84267
84268 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84269
84270         * lib/base64.c: Typo.
84271         (base64_encode): Put b64str in initialized data section.
84272
84273 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         Merge glibc and coreutils changes into gnulib, plus a few
84276         extra fixes.
84277         * lib/md5.c: Use #error rather than a string.
84278         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84279         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84280         (__attribute__): Define to empty for non recent-GCC.
84281         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84282         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84283         Renamed from their non-__ counterparts, with new macros replacing
84284         them if not _LIBC.  Add __THROW attribute.
84285         (rol): Remove.
84286         (struct md5_ctx): Align buffer if using GCC.
84287         * lib/sha1.h (struct sha1_ctx): Likewise.
84288         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84289         The old name was backwards.
84290         (NOTSWAP): Remove; not used.
84291         (rol): New macro, moved here from md5.h.
84292         (sha1_process_block): Remove a FIXME that doesn't make sense.
84293
84294 2005-09-12  Derek Price  <derek@ximbiot.com>
84295
84296         Return usable errors from canon-host.
84297         * lib/canon-host.h: New file.
84298         * lib/canon-host.c (canon_host): Wrap...
84299         (canon_host_r): ...this new function, which now relies exclusively on
84300         getaddrinfo.
84301         (ch_strerror): New function.
84302         (last_cherror): New global.
84303         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84304         interface.
84305         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84306         void *.
84307         (freeaddrinfo): Free ai->ai_canonname when set.
84308
84309 2005-09-12  Derek Price  <derek@ximbiot.com>
84310
84311         Make canon-host require getaddrinfo.
84312         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84313         AC_LIBSOURCE canon-host.h.  Call...
84314         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84315         gl_GETADDRINFO.
84316         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84317
84318 2005-09-12  Derek Price  <derek@ximbiot.com>
84319
84320         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84321         LGPL.
84322         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84323
84324 2005-09-12  Derek Price  <derek@ximbiot.com>
84325
84326         * lib/gai_strerror.c: Include config.h when available.  Include
84327         getaddrinfo.h before other headers to test interface.
84328         Reported by Larry Jones <lawrence.jones@ugs.com>.
84329
84330 2005-09-12  Derek Price  <derek@ximbiot.com>
84331             Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         * modules/glob (Files): Add glob-libc.h.
84334
84335 2005-09-12  Derek Price  <derek@ximbiot.com>
84336             Paul Eggert  <eggert@cs.ucla.edu>
84337
84338         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84339         glob_.h, glob-libc.h.
84340         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84341
84342 2005-09-12  Derek Price  <derek@ximbiot.com>
84343             Paul Eggert  <eggert@cs.ucla.edu>
84344
84345         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84346         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84347         protecting things that should be done only in gnulib contexts.
84348         * lib/glob_.h: New file, containing only the glob things needed for
84349         gnulib.
84350         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84351         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84352         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84353         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84354         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84355         and to respect the namespace rules better.
84356
84357 2005-09-08  Simon Josefsson  <jas@extundo.com>
84358
84359         * modules/socklen: New file.
84360
84361 2005-09-08  Simon Josefsson  <jas@extundo.com>
84362
84363         * m4/socklen.m4: New file.
84364
84365 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84366
84367         * modules/utimens (Files): Add m4/utimbuf.m4, since
84368         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84369         Reported by Sergey Poznyakoff.
84370
84371 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84374         definitions, since that's the preferred style in glibc.
84375         Fix a minor spacing issue, and update copyright notice to match
84376         glibc's.
84377
84378 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84379
84380         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84381
84382 2005-09-06  Simon Josefsson  <jas@extundo.com>
84383
84384         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84385         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84386
84387 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84388
84389         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84390         warning.
84391
84392 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84393
84394         * config/srclist.txt: Add glibc bug 1302.
84395
84396 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         Change bitset word type from unsigned int to unsigned long int,
84399         as this has better performance on typical 64-bit hosts.
84400         Port bitset code to hosts with unusual word sizes.
84401         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84402         (build_collating_symbol):
84403         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84404         argument is a bitset.  This is merely a style issue, but it makes
84405         it clearer that an entire array is expected.
84406         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84407         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84408         Port to the case where bitset_word is not the same as unsigned int.
84409         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84410         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84411         Likewise.
84412         * lib/regexec.c (check_dst_limits_calc_pos_1,
84413         check_subexp_matching_top):
84414         (build_trtable, group_nodes_into_DFAstates):
84415         Likewise.
84416         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84417         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84418         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84419         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84420         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84421         * lib/regcomp.c (optimize_subexps, lower_subexp):
84422         Work even if bitset_word has holes in its bitwise representation.
84423         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84424         * lib/regexec.c (check_dst_limits_calc_pos_1,
84425         check_subexp_matching_top):
84426         Likewise.
84427         * lib/regex_internal.c (re_string_reconstruct):
84428         Don't assume UCHAR_MAX == 255.
84429         * lib/regex_internal.h (bitset_set_all): Likewise.
84430         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84431         All uses changed.
84432         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84433         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84434         All uses changed.
84435         (BITSET_WORD_MAX): New macro.
84436         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84437         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84438         (bitset_empty, bitset_copy):
84439         Prefer sizeof (bitset) to multiplying it out ourselves.
84440         (bitset_not_merge): Remove; unused.
84441         (bitset_contain): Return bool, not unsigned int with one bit on.
84442         All callers changed.
84443         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84444         alignment than re_node_set; do this by defining a new internal
84445         type struct dests_alloc and using it to allocate memory.
84446
84447 2005-09-05  Bruno Haible  <bruno@clisp.org>
84448
84449         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84450         links.
84451
84452 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84453
84454         * modules/size_max (Makefile.am): Add size_max.h
84455
84456 2005-09-04  Derek Price  <derek@ximbiot.com>
84457
84458         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84459
84460 2005-09-03  Simon Josefsson  <jas@extundo.com>
84461
84462         * gnulib-tool: Fix typo.
84463
84464 2005-09-03  Simon Josefsson  <jas@extundo.com>
84465
84466         * config/srclist.txt: Add glibc bug 1293.
84467
84468 2005-09-03  Derek Price  <derek@ximbiot.com>
84469
84470         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84471         From Larry Jones <lawrence.jones@ugs.com>.
84472
84473 2005-09-02  Simon Josefsson  <jas@extundo.com>
84474
84475         * modules/socklen: New file.
84476
84477 2005-09-02  Simon Josefsson  <jas@extundo.com>
84478
84479         * modules/havelib: New module.
84480
84481         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84482         Use havelib.
84483
84484 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84485
84486         Check for arithmetic overflow when calculating sizes, to prevent
84487         some buffer-overflow issues.  These patches are conservative, in the
84488         sense that when I couldn't determine whether an overflow was possible,
84489         I inserted a run-time check.
84490         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84491         macros.
84492         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84493         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84494         (re_xnrealloc, re_x2nrealloc): New inline functions.
84495         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84496         parse_bracket_exp):
84497         (build_equiv_class, build_charclass): Check for arithmetic overflow
84498         in size expression calculations.
84499         * lib/regex_internal.c (re_string_realloc_buffers):
84500         (build_wcs_upper_buffer, re_node_set_add_intersect):
84501         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84502         (re_dfa_add_node, register_state): Likewise.
84503         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84504         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84505         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84506         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84507
84508 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84509
84510         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84511         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84512
84513 2005-09-02  Bruno Haible  <bruno@clisp.org>
84514
84515         Support for lib vs. lib64 distinction on biarch platforms.
84516         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84517         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84519
84520 2005-09-02  Bruno Haible  <bruno@clisp.org>
84521
84522         * gnulib-tool (import): In the other first-use case, provide defaults
84523         as well.
84524
84525 2005-09-02  Bruno Haible  <bruno@clisp.org>
84526
84527         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84528         patches not yet found in the latest gettext release.
84529
84530 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84531
84532         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84533         to avoid a collision with bits/local_lim.h in glibc.
84534         All uses changed.  Problem reported by Dmitry V. Levin in
84535         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84536
84537         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84538         bugs in int versus size_t comparisons.
84539         (re_string_context_at): Fix bug where the code assumed that
84540         Idx is signed.
84541
84542         Use bool where appropriate.
84543         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84544         All callers changed.
84545         (calc_eclosure_iter): Likewise, for ROOT arg.
84546         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84547         (build_charclass_op): Likewise, for NON_MATCH arg.
84548         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84549         (re_string_construct_common): Likewise, for ICASE arg.
84550         * lib/regexec.c (re_search_2_stub, re_search_stub):
84551         Likewise, for RET_LEN arg.
84552         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84553         (set_regs): Likewise, for FL_BACKTRACK arg.
84554         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84555         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84556         (calc_eclosure_iter, parse_bracket_exp):
84557         Use bool for internal variables that are booleans.
84558         * lib/regexec.c (re_search_internal, check_matching,
84559         proceed_next_node):
84560         (set_regs, build_sifted_states, sift_states_bkref):
84561         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84562         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84563         (find_collation_sequence_value):
84564         Likewise.
84565         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84566         (re_node_set_compare):
84567         Return bool, not int. All callers changed.
84568         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84569         (build_trtable, check_node_accept): Likewise.
84570         * lib/regex_internal.h: Include stdbool.h.
84571
84572         Fix bugs uncovered when converting to bool.
84573         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84574         failure instead of charging ahead blindly.
84575         * lib/regex_internal.c (register_state): Likewise.
84576         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84577         for freeing internal storage.
84578         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84579         bitset pieces used as boolean, to avoid undefined behavior
84580         on hosts that do int overflow checking.
84581
84582 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84583
84584         * config/srclist.txt: Add glibc bugs 1285-1287.
84585
84586 2005-09-01  Jim Meyering  <jim@meyering.net>
84587
84588         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84589         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84590         Require gl_STAT_MACROS, too.
84591
84592 2005-09-01  Bruno Haible  <bruno@clisp.org>
84593
84594         * gnulib-tool (import): In the first-use case, provide defaults.
84595
84596 2005-09-01  Bruno Haible  <bruno@clisp.org>
84597
84598         * gnulib-tool (func_import): Remove the .tmp files.
84599
84600 2005-09-01  Bruno Haible  <bruno@clisp.org>
84601
84602         * gnulib-tool (func_import): Fix handling of symbolic links.
84603
84604 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84607         old glibc regex code mishandles strings longer than 2**31 bytes.
84608         This patch fixes this when the regex code is used in gnulib
84609         (i.e., outside glibc).
84610
84611         This patch should not affect the use of the regex code inside
84612         glibc.  No doubt this problem also needs to be handled for glibc
84613         as well, but the result will be an incompatible change to the
84614         glibc ABI, and the old ABI will have to be supported too.  That
84615         can be the the subject for another patch.
84616
84617         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84618         governing whether the rest of this patch is active.  By default,
84619         the macro is disabled and the patch has no effect.
84620         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84621         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84622         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84623         (re_match_2, re_set_registers): Use the new types.
84624         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84625         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84626         New macros.
84627         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84628         (re_string_context_at, bin_tree_t, re_dfastate_t):
84629         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84630         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84631         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84632         (re_string_char_size_at, re_string_wchar_at):
84633         (re_string_elem_size_at):
84634         Use the new types and macros to port to 64-bit hosts.
84635         Use unsigned types for internal values, so that the code
84636         mostly works even for arrays larger than SSIZE_MAX.
84637         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84638         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84639         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84640         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84641         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84642         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84643         (calc_inveclosure, parse_dup_op, build_range_exp):
84644         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84645         (fetch_number, create_token_tree, mark_opt_subexp):
84646         Likewise.
84647         * lib/regex_internal.c (re_string_construct_common,
84648         create_ci_newstate):
84649         (create_cd_newstate, re_string_allocate, re_string_construct):
84650         (re_string_realloc_buffers, build_wcs_upper_buffer):
84651         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84652         (re_string_reconstruct, re_string_peek_byte_case):
84653         (re_string_fetch_byte_case, re_string_context_at):
84654         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84655         (re_node_set_init_copy, re_node_set_add_intersect):
84656         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84657         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84658         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84659         (re_acquire_state, re_acquire_state_context, register_state):
84660         Likewise.
84661         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84662         search_cur_bkref_entry):
84663         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84664         (re_search_internal, re_search_2_stub, re_search_stub)
84665         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84666         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84667         (update_cur_sifted_state, check_dst_limits):
84668         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84669         (check_subexp_limits, sift_states_bkref, merge_state_array):
84670         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84671         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84672         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84673         (expand_bkref_cache, check_node_accept_bytes):
84674         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84675         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84676         (acquire_init_state_context, check_halt_node_context):
84677         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84678         (sift_states_backward, clean_state_log_if_needed):
84679         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84680         (find_recover_state, transit_state_sb, transit_state_mb):
84681         (transit_state_bkref, build_trtable, match_ctx_clean):
84682         Likewise.
84683         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84684         to work around an assumption that REG_MISSING is negative.
84685
84686         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84687         (seek_collating_symbol_entry) [defined _LIBC]:
84688         (lookup_collation_sequence_value) [defined _LIBC]:
84689         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84690         Use prototypes rather than old-style function definitions.
84691         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84692         (transit_state_sb) [0]:
84693         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84694
84695         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84696         rm_eo.
84697
84698         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84699         (optimize_subexps, lower_subexp):
84700         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84701         since the signed shift might overflow.  Use 1u<<31 instead.
84702         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84703         Likewise.
84704         * lib/regexec.c (check_dst_limits_calc_pos_1,
84705         check_subexp_matching_top): Likewise.
84706
84707         * lib/regcomp.c (optimize_subexps, lower_subexp):
84708         Use CHAR_BIT rather than 8, for clarity.
84709         * lib/regexec.c (check_dst_limits_calc_pos_1):
84710         (check_subexp_matching_top): Likewise.
84711         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84712         have to worry about portability issues when shifting it left.
84713         Remove no-longer-needed test for table_size > 0.
84714         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84715         in a word, as the resulting behavior is undefined.
84716         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84717         in one case, a <= should have been an <, and in another case the
84718         whole test was missing.
84719         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84720         the standard name CHAR_BIT.
84721         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84722         this is not true on one's complement and signed-magnitude hosts.
84723
84724         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84725         next_last_offset.
84726         (struct re_dfa_t): Remove unused member states_alloc.
84727         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84728
84729 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84730
84731         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84732         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84733         and large-file glibc and in 32-bit large-file Solaris.
84734
84735 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84736
84737         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84738         lengths fit in regoff_t; this isn't true if regoff_t is the same
84739         width as size_t.
84740         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84741         (= START + RANGE) instead of RANGE.  This avoids overflow
84742         problems when regoff_t is the same width as size_t.
84743         All callers changed.
84744         (re_search_2_stub): Check for overflow when adding the
84745         sizes of the two strings.
84746         (re_search_stub): Check for overflow when adding START
84747         to RANGE; if it occurs, substitute the extreme value.
84748
84749 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84750
84751         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84752
84753 2005-08-31  Jim Meyering  <jim@meyering.net>
84754
84755         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84756         a pointer-to-const.
84757         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84758         (register_state): Likewise.
84759         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84760         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84761         (group_nodes_into_DFAstates): Likewise.
84762
84763 2005-08-31  Jim Meyering  <jim@meyering.net>
84764
84765         * check-module: Add a FIXME comment.
84766
84767 2005-08-31  Eric Blake  <ebb9@byu.net>
84768
84769         * modules/unistd-safer (Files): Add unistd--.h.
84770         * modules/stdio-safer (Files): Add stdio--.h.
84771
84772 2005-08-31  Derek Price  <derek@ximbiot.com>
84773
84774         * lib/getdelim.c (getdelim): Return EOF on EOF.
84775         Reported by Larry Jones <lawrence.jones@ugs.com>.
84776
84777 2005-08-31  Bruno Haible  <bruno@clisp.org>
84778
84779         Avoid unnecessary diffs in the generated lib/Makefile.am.
84780         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84781         the generated files.
84782         (func_import): Don't set cmd.
84783
84784 2005-08-31  Bruno Haible  <bruno@clisp.org>
84785
84786         * lib/strstr.c: Include <stddef.h>, for NULL.
84787         * lib/strcasestr.c: Likewise.
84788         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84789
84790 2005-08-31  Bruno Haible  <bruno@clisp.org>
84791
84792         * gnulib-tool: New option --macro-prefix.
84793         (func_import): Use macro_prefix.
84794         (import): Handle option --macro-prefix.
84795
84796 2005-08-31  Bruno Haible  <bruno@clisp.org>
84797
84798         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84799         Also use new variables cached_lgpl, cached_libtool.
84800
84801 2005-08-31  Bruno Haible  <bruno@clisp.org>
84802
84803         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84804         always instantiating them.
84805
84806 2005-08-31  Bruno Haible  <bruno@clisp.org>
84807
84808         * gnulib-tool (func_import): Read the previous cached settings
84809         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84810         earlier added by gnulib but are now dropped. Warn when a gnulib file
84811         overwrites a non-gnulib file.
84812
84813 2005-08-31  Bruno Haible  <bruno@clisp.org>
84814
84815         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84816         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84817         projects that don't keep autogenerated files in CVS. Put into
84818         actioncmd only the specified modules, not the transitive closure.
84819
84820 2005-08-31  Bruno Haible  <bruno@clisp.org>
84821
84822         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84823         Create directories that shall be filled.
84824         (import): Don't look for gl_* macros in configure.ac. Recurse across
84825         all directories containing a gnulib-cache.m4 files, if meaningful.
84826
84827 2005-08-31  Bruno Haible  <bruno@clisp.org>
84828
84829         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84830         (import): Set seen_libtool when we see gl_LIBTOOL.
84831
84832 2005-08-31  Bruno Haible  <bruno@clisp.org>
84833
84834         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84835         declaration macro definitions from generated gnulib.m4.
84836
84837 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84838
84839         * lib/iconvme.h: Add prototype for iconv_alloc.
84840
84841 2005-08-29  Simon Josefsson  <jas@extundo.com>
84842
84843         * lib/iconvme.c: Fix errno.
84844
84845 2005-08-29  Bruno Haible  <bruno@clisp.org>
84846
84847         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84848         that it works when the directory contains spaces.
84849
84850 2005-08-29  Bruno Haible  <bruno@clisp.org>
84851
84852         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84853
84854 2005-08-29  Bruno Haible  <bruno@clisp.org>
84855
84856         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84857         Emit more advice.
84858
84859 2005-08-29  Bruno Haible  <bruno@clisp.org>
84860         and Stepan Kasal  <kasal@ucw.cz>
84861
84862         * check-module: If more parameters are given, check each of them
84863         separately; add more exceptions, as noted by Jim Meyering.
84864         (check_module): New procedure.
84865         (%exempt_header): Now contains all exceptions.
84866
84867 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84868
84869         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84870
84871 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84872
84873         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84874
84875 2005-08-28  Bruno Haible  <bruno@clisp.org>
84876
84877         * m4/gnulib-tool.m4: New file.
84878
84879 2005-08-27  Jim Meyering  <jim@meyering.net>
84880
84881         * modules/unistd-safer (Files): Add pipe-safer.c.
84882         * modules/fcntl-safer (Files): Add creat-safer.c.
84883
84884 2005-08-27  Jim Meyering  <jim@meyering.net>
84885
84886         * m4/stdlib-safer.m4: New file.  From coreutils.
84887         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84888         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84889         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84890         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84891         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84892
84893 2005-08-27  Jim Meyering  <jim@meyering.net>
84894
84895         * lib/fopen-safer.c: Merge minor changes from coreutils.
84896         * lib/dup-safer.c: Likewise.
84897         * lib/fd-safer.c: Likewise.
84898
84899         Merge from coreutils.
84900         * lib/stdio--.h: New file.
84901         * lib/stdlib--.h: New file.
84902         * lib/mkstemp-safer.c: New file.
84903
84904         GNU tar needs these.
84905         * lib/pipe-safer.c: New file.
84906         * lib/creat-safer.c: New file.
84907         * lib/fcntl--.h (creat): Define to creat_safer.
84908         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84909         * lib/unistd--.h (pipe): Define to pipe_safer.
84910         * lib/unistd-safer.h: Declare pipe_safer.
84911
84912 2005-08-26  Simon Josefsson  <jas@extundo.com>
84913
84914         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84915         Haible <bruno@clisp.org>.
84916
84917 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84918
84919         * lib/regex_internal.h: Remove all references to
84920         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84921         or better.
84922         (bitset_not, bitset_merge, bitset_not_merge):
84923         (bitset_mask, re_string_allocate, re_string_construct):
84924         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84925         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84926         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84927         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84928         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84929         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84930         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84931         (re_acquire_state_context):
84932         Remove unnecessary forward decls.
84933         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84934         Put __attribute at function definition,
84935         now that the function decl has been removed.
84936         * lib/regex_internal.c (re_string_peek_byte_case):
84937         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84938         Likewise.
84939
84940 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84941
84942         * m4/regex.m4: Add AC_PREREQ(2.50).
84943         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84944
84945 2005-08-25  Simon Josefsson  <jas@extundo.com>
84946
84947         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84948         __fsetlocking.
84949
84950 2005-08-25  Simon Josefsson  <jas@extundo.com>
84951
84952         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84953         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84954         GLIBC specific code.
84955
84956 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84957
84958         Make regex safe for g++.  This fixes one real bug (an "err"
84959         that should have been "*err").  g++ problem reported by
84960         Sam Steingold.
84961         * lib/regex_internal.h (re_calloc): New macro, consistent with
84962         re_malloc etc.  All callers of calloc changed to use re_calloc.
84963         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84964         not int.  All callers changed.
84965         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84966         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84967         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84968         (find_recover_state): Change "err" to "*err"; this fixes what
84969         appears to be a real bug.
84970         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84971         versus int.
84972
84973 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84974
84975         * modules/regex (Depends-on): Add malloc, since the code
84976         assumes that !malloc(0) means failure.
84977
84978 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84979
84980         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84981
84982         alloca modernization/simplification for regex.
84983         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84984         needs to be at the start of the file, and can be moved into
84985         regex_internal.h and simplified.
84986         * lib/regex_internal.h: Include <alloca.h>.
84987         (__libc_use_alloca) [!defined _LIBC]: New macro.
84988         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84989         now works outside glibc.
84990
84991 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84992
84993         * config/srclist.txt: Add glibc bugs 1241, 1245.
84994
84995 2005-08-25  Jim Meyering  <jim@meyering.net>
84996
84997         * lib/open-safer.c: Include <config.h>.
84998         Otherwise, we'd lose LARGEFILE support in any file using
84999         e.g. "fcntl--.h"
85000
85001 2005-08-25  Bruno Haible  <bruno@clisp.org>
85002
85003         * m4/minmax.m4: Require autoconf 2.52.
85004         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85005         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85006         alternatives of translit over the alphabet.
85007         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85008
85009 2005-08-24  Simon Josefsson  <jas@extundo.com>
85010
85011         * tests/test-getpass.c: New file.
85012
85013 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85014
85015         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85016         for GNU regex features.
85017
85018 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85019
85020         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85021         * lib/regex.h (regerror): Likewise.
85022
85023         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85024         requires this.  (The code never needed it.)
85025
85026         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85027         All uses of recently-renamed identifiers changed to use the new,
85028         POSIX-compliant names.  The code will build and run just fine
85029         without these changes, but it's better to eat our own dog food
85030         and use the standard-conforming names.
85031
85032         * lib/regex.h: Fix a multitude of POSIX name space violations.
85033         These changes have an effect only for programs that define
85034         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85035         do not change anything for programs compiled in the normal way.
85036         Also, there is no effect on the ABI.
85037
85038         (_REGEX_SOURCE): New macro.
85039         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85040         defined and _GNU_SOURCE is not; this fixes a name space violation.
85041
85042         Rename the following macros to obey POSIX requirements.
85043         The old names are still visible as macros if _REGEX_SOURCE is defined.
85044         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85045         RE_BACKSLASH_ESCAPE_IN_LISTS.
85046         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85047         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85048         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85049         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85050         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85051         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85052         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85053         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85054         (REG_INTERVALS): renamed from RE_INTERVALS.
85055         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85056         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85057         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85058         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85059         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85060         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85061         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85062         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85063         RE_UNMATCHED_RIGHT_PAREN_ORD.
85064         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85065         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85066         (REG_DEBUG): renamed from RE_DEBUG.
85067         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85068         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85069         unusual, since we can't clash with the POSIX REG_ICASE.
85070         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85071         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85072         (REG_NO_SUB): renamed from RE_NO_SUB.
85073         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85074         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85075         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85076         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85077         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85078         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85079         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85080         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85081         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85082         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85083         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85084         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85085         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85086         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85087         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85088         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85089         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85090         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85091         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85092         (REG_FIXED): Renamed from REGS_FIXED.
85093         (REG_NREGS): Renamed from RE_NREGS.
85094
85095         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85096         of other REG_* macros, since POSIX says the user is allowed to
85097         #undef these macros selectively.
85098
85099         (reg_errcode_t): Update comment stating what other tables need
85100         to be consistent.
85101
85102         Rename the following enum values to obey POSIX requirements.
85103         The old names are still visible as macros.
85104         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85105         is not defined, since GNU is supposed to be a superset of POSIX as
85106         much as possible, and since we want reg_errcode_t to be a signed
85107         type for implementation consistency.
85108         (_REG_NOERROR): Renamed from REG_NOERROR.
85109         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85110         (_REG_BADPAT): Renamed from REG_BADPAT.
85111         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85112         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85113         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85114         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85115         (_REG_EBRACK): Renamed from REG_EBRACK.
85116         (_REG_EPAREN): Renamed from REG_EPAREN.
85117         (_REG_EBRACE): Renamed from REG_EBRACE.
85118         (_REG_BADBR): Renamed from REG_BADBR.
85119         (_REG_ERANGE): Renamed from REG_ERANGE.
85120         (_REG_ESPACE): Renamed from REG_ESPACE.
85121         (_REG_BADRPT): Renamed from REG_BADRPT.
85122         (_REG_EEND): Renamed from REG_EEND.
85123         (_REG_ESIZE): Renamed from REG_ESIZE.
85124         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85125         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85126         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85127         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85128         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85129
85130         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85131         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85132         changed.  But support the old name if the new one is not defined
85133         and if _REGEX_SOURCE.
85134
85135         Change the following member names in struct re_pattern_buffer.
85136         The old names are still supported if !_REGEX_SOURCE.
85137         The new names are always supported, regardless of _REGEX_SOURCE.
85138         (re_buffer): Renamed from buffer.
85139         (re_allocated): Renamed from allocated.
85140         (re_used): Renamed from used.
85141         (re_syntax): Renamed from syntax.
85142         (re_fastmap): Renamed from fastmap.
85143         (re_translate): Renamed from translate.
85144         (re_can_be_null): Renamed from can_be_null.
85145         (re_regs_allocated): Renamed from regs_allocated.
85146         (re_fastmap_accurate): Renamed from fastmap_accurate.
85147         (re_no_sub): Renamed from no_sub.
85148         (re_not_bol): Renamed from not_bol.
85149         (re_not_eol): Renamed from not_eol.
85150         (re_newline_anchor): Renamed from newline_anchor.
85151
85152         Change the following member names in struct re_registers.
85153         The old names are still supported if !_REGEX_SOURCE.
85154         The new names are always supported, regardless of _REGEX_SOURCE.
85155         (rm_num_regs): Renamed from num_regs.
85156         (rm_start): Renamed from start.
85157         (rm_end): Renamed from end.
85158
85159         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85160         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85161         Prepend __ to parameter names.
85162
85163         Undo yesterday's changes.
85164
85165 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85166
85167         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85168         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85169         lib/regex.c.
85170
85171 2005-08-24  Jim Meyering  <jim@meyering.net>
85172
85173         Sync from coreutils.
85174         * m4/fcntl-safer.m4: New file.
85175
85176         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85177         and object files for this module.
85178
85179 2005-08-24  Jim Meyering  <jim@meyering.net>
85180
85181         Sync from coreutils.
85182         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85183
85184 2005-08-24  Jim Meyering  <jim@meyering.net>
85185
85186         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85187         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85188
85189 2005-08-24  Jim Meyering  <jim@meyering.net>
85190
85191         * modules/fcntl-safer: New module.
85192         * modules/fts (Depends-on): Add fcntl-safer.
85193         * MODULES.html.sh (File descriptor based Input/Output):
85194         Add fcntl-safer.
85195
85196 2005-08-24  Bruno Haible  <bruno@clisp.org>
85197
85198         Support for unit test modules.
85199         * modules/README: Mention tests modules.
85200         * modules/TEMPLATE-TESTS: New file.
85201         * gnulib-tool: New options --extract-tests-module, --with-tests and
85202         --tests-base (unused for the moment).
85203         (testsbase, inctests): New variables.
85204         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85205         (func_verify_module): Exclude TEMPLATE-TESTS.
85206         (func_verify_nontests_module, func_verify_tests_module): New functions.
85207         (func_get_dependencies): Add implicit dependency for tests modules.
85208         (func_get_tests_module): New function.
85209         (func_modules_transitive_closure): When --with-tests was specified,
85210         include the unit tests as well, unless explicitly avoided.
85211         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85212         (func_emit_tests_Makefile_am): New function.
85213         (func_create_testdir): When --with-tests was specified, emit a
85214         tests/ directory.
85215         * MODULES.html.sh (Future developments): Update.
85216
85217 2005-08-24  Bruno Haible  <bruno@clisp.org>
85218
85219         * modules/tls-tests: New file.
85220         * tests/test-tls.c: New file, from GNU gettext.
85221
85222 2005-08-24  Bruno Haible  <bruno@clisp.org>
85223
85224         * modules/lock-tests: New file.
85225         * tests/test-lock.c: New file, from GNU gettext.
85226
85227 2005-08-24  Bruno Haible  <bruno@clisp.org>
85228
85229         * lib/lock.h: Add multiple inclusion guard.
85230         * lib/tls.h: Add multiple inclusion guard.
85231
85232 2005-08-24  Bruno Haible  <bruno@clisp.org>
85233
85234         * gnulib-tool: Add support for the --aux-dir option to
85235         --create-testdir, --create-megatestdir, --test, --megatest.
85236         (func_create_testdir, func_create_megatestdir): Optionally emit a
85237         AC_CONFIG_AUX_DIR directive.
85238         (create-testdir, create-megatestdir, test, megatest): Provide a
85239         default value for $auxdir.
85240
85241 2005-08-24  Bruno Haible  <bruno@clisp.org>
85242
85243         * gnulib-tool (import): Use compound statement instead of subshell
85244         where possible.
85245
85246 2005-08-24  Bruno Haible  <bruno@clisp.org>
85247
85248         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85249
85250 2005-08-24  Bruno Haible  <bruno@clisp.org>
85251
85252         * gnulib-tool (func_version): Update.
85253
85254 2005-08-24  Bruno Haible  <bruno@clisp.org>
85255
85256         * gnulib-tool (func_import, func_create_testdir,
85257         func_create_megatestdir): Quote all autoconf macro arguments.
85258
85259 2005-08-24  Bruno Haible  <bruno@clisp.org>
85260
85261         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85262         option --force, because --force causes the aclocal.m4 of each
85263         subdirectory to be newer than the corresponding config.h.in.
85264
85265 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85266
85267         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85268         All contents moved to gl_REGEX.
85269         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85270         assume that it does.
85271
85272 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         * lib/regex.h (REG_NOSYS)
85275         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85276         Define, since POSIX requires it as of 2001.
85277         (_REG_ENOSYS)
85278         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85279         New private symbol, used to keep the enum signed in all cases.
85280         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85281         Youngman in
85282         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85283
85284         * lib/regex_internal.c (re_string_skip_chars, register_state):
85285         (calc_state_hash):
85286         Remove forward decls; no longer needed now that we use prototypes.
85287         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85288         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85289         (clean_state_log_if_needed): Likewise.
85290
85291 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85292
85293         * config/srclist.txt: Add glibc bugs 1231-1233.
85294
85295 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85296
85297         Fix problems reported by Sam Steingold in
85298         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85299         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85300         assumed that reg_errcode_t is a signed type, which is not
85301         necessarily true if _XOPEN_SOURCE is not defined.
85302         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85303         since some compilers warn about it otherwise.
85304
85305 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85306
85307         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85308         (init_word_char, create_initial_state, duplicate_node_closure):
85309         (fetch_token, peek_token_bracket, build_range_exp):
85310         (build_collating_symbol): Remove forward decls; no longer needed
85311         now that we use prototypes.
85312
85313         * lib/regcomp.c:
85314         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85315         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85316         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85317         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85318         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85319         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85320         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85321         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85322         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85323         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85324         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85325         (build_charclass, build_charclass_op, fetch_number, create_tree):
85326         (create_token_tree, mark_opt_subexp, duplicate_tree):
85327         Use prototypes rather than old-style definitions.
85328
85329         * lib/regex_internal.c:
85330         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85331         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85332         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85333         (re_string_reconstruct, re_string_peek_byte_case):
85334         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85335         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85336         (re_node_set_init_copy, re_node_set_add_intersect):
85337         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85338         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85339         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85340         (re_acquire_state, re_acquire_state_context, register_state):
85341         (create_ci_newstate, create_cd_newstate, free_state):
85342         Likewise.
85343         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85344         re_search_2):
85345         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85346         (re_search_internal, prune_impossible_nodes):
85347         (acquire_init_state_context, check_matching, static):
85348         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85349         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85350         (update_regs, sift_states_backward, build_sifted_states):
85351         (clean_state_log_if_needed, merge_state_array):
85352         (update_cur_sifted_state, add_epsilon_src_nodes):
85353         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85354         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85355         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85356         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85357         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85358         (check_arrival, check_arrival_add_next_nodes):
85359         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85360         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85361         (check_node_accept_bytes, check_node_accept, extend_buffers):
85362         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85363         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85364         (sift_ctx_init):
85365         Likewise.
85366
85367         * lib/regex_internal.h:
85368         (re_string_allocate, re_string_construct, re_string_reconstruct):
85369         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85370         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85371         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85372         (re_string_context_at, re_string_peek_byte_case):
85373         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85374         is defined, since we now use prototypes always.
85375
85376         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85377         C89 or better.  All uses removed.
85378
85379 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85380
85381         * config/srclist.txt: Add glibc bugs 1220-1227.
85382
85383 2005-08-20  Jim Meyering  <jim@meyering.net>
85384
85385         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85386         of unused local, dfa.
85387
85388 2005-08-20  Bruno Haible  <bruno@clisp.org>
85389
85390         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85391
85392 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85393
85394         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85395         (re_node_set_insert_last, re_dfa_add_node):
85396         Rename local variables to avoid GCC shadowing warnings.
85397
85398 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85401         [defined lint]: Suppress bogus uninitialized-variable warnings.
85402
85403         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85404         and let the caller return REG_ESPACE if out of space.  This
85405         removes an uninitialied-variable warning with GCC 4.0.1, and also
85406         avoids taking the address of a local variable.  All callers
85407         changed.
85408
85409 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85410
85411         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85412         $LIBCSRC/posix/regexec.c.
85413         Add glibc bug 1217 for regcomp.c.
85414
85415 2005-08-19  Jim Meyering  <jim@meyering.net>
85416
85417         * lib/regexec.c (proceed_next_node): Redo local variables to
85418         avoid GCC shadowing warnings.
85419
85420 2005-08-18  Bruno Haible  <bruno@clisp.org>
85421
85422         * lib/strstr.c (strstr): Fix return value in multibyte case.
85423         * lib/strcasestr.c (strcasestr): Likewise.
85424
85425 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85428
85429 2005-08-17  Jim Meyering  <jim@meyering.net>
85430
85431         Make the %s format (seconds since the epoch) work for a negative
85432         number and when used with a zero-padded field width, e.g. %015s.
85433
85434         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85435         label so that it precedes the code to set `digits'.  Otherwise,
85436         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85437         print `00-22'.  Now, it prints `-0022', as it should.
85438
85439 2005-08-17  Bruno Haible  <bruno@clisp.org>
85440
85441         * modules/strstr (Files): Add m4/mbrtowc.m4.
85442         (Depends-on): Add mbuiter.
85443
85444 2005-08-17  Bruno Haible  <bruno@clisp.org>
85445
85446         * modules/strcasestr: New file.
85447         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85448         strcasestr.
85449
85450 2005-08-17  Bruno Haible  <bruno@clisp.org>
85451
85452         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85453
85454 2005-08-17  Bruno Haible  <bruno@clisp.org>
85455
85456         * modules/mbuiter: New file.
85457         * MODULES.html.sh (Extended multibyte and wide character utilities):
85458         Add mbuiter.
85459
85460 2005-08-17  Bruno Haible  <bruno@clisp.org>
85461
85462         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85463         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85464
85465 2005-08-17  Bruno Haible  <bruno@clisp.org>
85466
85467         * m4/strcasestr.m4: New file.
85468
85469 2005-08-17  Bruno Haible  <bruno@clisp.org>
85470
85471         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85472         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85473
85474 2005-08-17  Bruno Haible  <bruno@clisp.org>
85475
85476         * lib/strcasestr.h: New file.
85477         * lib/strcasestr.c: New file.
85478
85479 2005-08-17  Bruno Haible  <bruno@clisp.org>
85480
85481         * lib/strcasecmp.c: Use mbuiter.h.
85482
85483 2005-08-17  Bruno Haible  <bruno@clisp.org>
85484
85485         * lib/mbuiter.h: New file.
85486
85487 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85488
85489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85490         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85491         and gl_GETOPT are both invoked via different paths (as happens
85492         with GNU tar CVS because it uses both argp and getopt), the former
85493         wins.
85494
85495 2005-08-16  Bruno Haible  <bruno@clisp.org>
85496
85497         * modules/tls: New file.
85498         * MODULES.html.sh (Multithreading): Add tls.
85499
85500 2005-08-16  Bruno Haible  <bruno@clisp.org>
85501
85502         * modules/strnlen1: New file.
85503         * MODULES.html.sh (String handling): Add strnlen1.
85504
85505 2005-08-16  Bruno Haible  <bruno@clisp.org>
85506
85507         * modules/strcase (Files): Add m4/mbrtowc.m4.
85508         (Depends-on): Add strnlen1, mbchar.
85509
85510 2005-08-16  Bruno Haible  <bruno@clisp.org>
85511
85512         * modules/mbiter: New file.
85513         * MODULES.html.sh (Extended multibyte and wide character utilities):
85514         Add mbiter.
85515
85516 2005-08-16  Bruno Haible  <bruno@clisp.org>
85517
85518         * modules/mbfile: New file.
85519         * MODULES.html.sh (Extended multibyte and wide character utilities):
85520         Add mbfile.
85521
85522 2005-08-16  Bruno Haible  <bruno@clisp.org>
85523
85524         * modules/mbchar: New file.
85525         * MODULES.html.sh (Extended multibyte and wide character utilities):
85526         New section.
85527
85528 2005-08-16  Bruno Haible  <bruno@clisp.org>
85529
85530         * m4/tls.m4: New file, from GNU gettext.
85531
85532 2005-08-16  Bruno Haible  <bruno@clisp.org>
85533
85534         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85535         always.
85536         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85537
85538 2005-08-16  Bruno Haible  <bruno@clisp.org>
85539
85540         * m4/mbiter.m4: New file.
85541
85542 2005-08-16  Bruno Haible  <bruno@clisp.org>
85543
85544         * m4/mbfile.m4: New file.
85545
85546 2005-08-16  Bruno Haible  <bruno@clisp.org>
85547
85548         * m4/mbchar.m4: New file.
85549
85550 2005-08-16  Bruno Haible  <bruno@clisp.org>
85551
85552         * lib/tls.h: New file, from GNU gettext.
85553         * lib/tls.c: New file, from GNU gettext.
85554
85555 2005-08-16  Bruno Haible  <bruno@clisp.org>
85556
85557         * lib/strnlen1.h: New file.
85558         * lib/strnlen1.c: New file.
85559
85560 2005-08-16  Bruno Haible  <bruno@clisp.org>
85561
85562         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85563         (mbi_init): Update.
85564         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85565         NUL byte, not after it.
85566
85567 2005-08-16  Bruno Haible  <bruno@clisp.org>
85568
85569         * lib/strcase.h (strcasecmp): Add note in comments.
85570         * lib/strncasecmp.c: Use code from strcasecmp.c.
85571         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85572         (strcasecmp): Work correctly in multibyte locales.
85573
85574 2005-08-16  Bruno Haible  <bruno@clisp.org>
85575
85576         * lib/mbiter.h: New file.
85577
85578 2005-08-16  Bruno Haible  <bruno@clisp.org>
85579
85580         * lib/mbfile.h: New file.
85581
85582 2005-08-16  Bruno Haible  <bruno@clisp.org>
85583
85584         * lib/mbchar.h: New file.
85585         * lib/mbchar.c: New file.
85586
85587 2005-08-16  Bruno Haible  <bruno@clisp.org>
85588
85589         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85590         the valid ones. Makes the comparison operations transitive:
85591         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85592         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85593
85594 2005-08-15  Simon Josefsson  <jas@extundo.com>
85595
85596         * modules/ssize_t (License): Change to 'unlimited'.
85597
85598         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85599
85600 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85601
85602         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85603         Add comments for each pending glibc patch.
85604
85605 2005-08-15  Bruno Haible  <bruno@clisp.org>
85606
85607         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85608         __cplusplus is defined.
85609
85610 2005-08-14  Jim Meyering  <jim@meyering.net>
85611
85612         Sync from coreutils.
85613
85614         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85615         Use the hash-table-based cycle-detection code not just when
85616         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85617         Reported by James Youngman in
85618         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85619         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85620         FTS_TIGHT_CYCLE_CHECK.
85621         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85622         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85623         once again.
85624         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85625         * lib/fts.c (fd_safer): Remove decl.
85626         Include fcntl--.h rather than unistd-safer.h
85627         (fts_safe_changedir): Don't call fd_safer; no longer needed
85628         now that we include fcntl--.h.
85629
85630 2005-08-12  Simon Josefsson  <jas@extundo.com>
85631
85632         * modules/getndelim2: Use ssize_t module.
85633         * modules/getnline: Likewise.
85634         * modules/safe-read: Likewise.
85635         * modules/xreadlink: Likewise.
85636
85637         * modules/ssize_t: New file.
85638
85639 2005-08-12  Simon Josefsson  <jas@extundo.com>
85640
85641         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85642
85643 2005-08-12  Simon Josefsson  <jas@extundo.com>
85644
85645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85646         ssize_t.
85647
85648 2005-08-12  Simon Josefsson  <jas@extundo.com>
85649
85650         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85651         readline, getdelim and check_version.
85652         (Support for systems lacking ISO C 99: Sizes of integer types):
85653         Add size_max.
85654
85655 2005-08-12  Bruno Haible  <bruno@clisp.org>
85656
85657         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85658
85659 2005-08-11  Simon Josefsson  <jas@extundo.com>
85660
85661         * modules/readline: New file.
85662
85663         * modules/strnlen (Files): Add strnlen.h.
85664
85665 2005-08-11  Simon Josefsson  <jas@extundo.com>
85666
85667         * m4/readline.m4: New file.
85668
85669 2005-08-11  Simon Josefsson  <jas@extundo.com>
85670
85671         * lib/readline.h, readline.c: New file.
85672
85673 2005-08-11  Simon Josefsson  <jas@extundo.com>
85674
85675         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85676         gl_AVOID.
85677
85678 2005-08-11  Bruno Haible  <bruno@clisp.org>
85679
85680         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85681
85682 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85683
85684         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85685
85686 2005-08-10  Simon Josefsson  <jas@extundo.com>
85687
85688         * tests/test-iconvme.c: New file.
85689
85690 2005-08-10  Simon Josefsson  <jas@extundo.com>
85691
85692         * m4/strnlen.m4: New file.
85693
85694         * m4/strndup.m4: Don't check for strnlen declaration, done in
85695         strnlen.m4.
85696
85697 2005-08-10  Simon Josefsson  <jas@extundo.com>
85698
85699         * lib/strndup.c: Use strnlen.h.
85700
85701         * lib/strnlen.h: New file.
85702
85703 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85704
85705         * README: Typos.
85706
85707 2005-08-02  Simon Josefsson  <jas@extundo.com>
85708
85709         * modules/readline: New file.
85710
85711 2005-08-02  Simon Josefsson  <jas@extundo.com>
85712
85713         * modules/getdelim: New file.
85714
85715         * modules/getline: Rewrite, don't use getndelim2.
85716
85717 2005-08-02  Simon Josefsson  <jas@extundo.com>
85718
85719         * m4/getline.m4: Separate out getdelim stuff into separate module.
85720
85721         * m4/getdelim.m4: New file.
85722
85723 2005-08-02  Simon Josefsson  <jas@extundo.com>
85724
85725         * lib/getline.h, getline.c: Rewrite.
85726
85727         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85728
85729 2005-07-31  Bruno Haible  <bruno@clisp.org>
85730
85731         * lib/lock.h (gl_lock_initializer): New macro.
85732         (gl_lock_define_initialized): Use it.
85733         (gl_rwlock_initializer): New macro.
85734         (gl_rwlock_define_initialized): Use it.
85735         (gl_recursive_lock_initializer): New macro.
85736         (gl_recursive_lock_define_initialized): Use it.
85737
85738 2005-07-30  Karl Berry  <karl@gnu.org>
85739
85740         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85741         Report from Ben Pfaff, regarding getopt.
85742
85743 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85744
85745         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85746         normal way.
85747         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85748         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85749         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85750         (gl_GETOPT): Use the new macros.  Most of the implementation
85751         is moved to the new macros.  This is for programs like Emacs
85752         that don't want all the functionality of gl_GETOPT.
85753
85754 2005-07-26  Bruno Haible  <bruno@clisp.org>
85755
85756         * m4/lock.m4: Update from GNU gettext.
85757
85758 2005-07-26  Bruno Haible  <bruno@clisp.org>
85759
85760         * lib/lock.h: Update from GNU gettext.
85761         * lib/lock.c: Update from GNU gettext.
85762
85763 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85764
85765         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85766         obsolescent AC_TRY_RUN.  Include the default includes files, for
85767         'exit'.
85768
85769 2005-07-24  Bruno Haible  <bruno@clisp.org>
85770
85771         * modules/visibility: New file.
85772         * MODULES.html.sh (Misc): Add visibility.
85773
85774 2005-07-24  Bruno Haible  <bruno@clisp.org>
85775
85776         * m4/visibility.m4: New file.
85777
85778 2005-07-24  Bruno Haible  <bruno@clisp.org>
85779
85780         * doc/visibility.texi: New file.
85781
85782 2005-07-22  Bruno Haible  <bruno@clisp.org>
85783
85784         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85785         $(ALLOCA_H), redundant through BUILT_SOURCES.
85786         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85787         redundant through BUILT_SOURCES.
85788         * modules/byteswap (Makefile.am): Remove explicit dependency on
85789         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85790         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85791         $(FNMATCH_H), redundant through BUILT_SOURCES.
85792         * modules/getopt (Makefile.am): Remove explicit dependency on
85793         $(GETOPT_H), redundant through BUILT_SOURCES.
85794         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85795         redundant through BUILT_SOURCES.
85796         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85797         redundant through BUILT_SOURCES.
85798         * modules/stdbool (Makefile.am): Remove explicit dependency on
85799         $(STDBOOL_H), redundant through BUILT_SOURCES.
85800         * modules/stdint (Makefile.am): Remove explicit dependency on
85801         $(STDINT_H), redundant through BUILT_SOURCES.
85802         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85803         Remove explicit dependency on $(SYSEXITS_H).
85804         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85805
85806 2005-07-18  Simon Josefsson  <jas@extundo.com>
85807
85808         * lib/check-version.c (check_version): Accept identical versions too.
85809
85810 2005-07-18  Bruno Haible  <bruno@clisp.org>
85811
85812         * modules/lock: New file.
85813         * MODULES.html.sh (Multithreading): New section.
85814
85815 2005-07-18  Bruno Haible  <bruno@clisp.org>
85816
85817         * m4/lock.m4: New file, from GNU gettext.
85818
85819 2005-07-18  Bruno Haible  <bruno@clisp.org>
85820
85821         * lib/lock.h: New file, from GNU gettext.
85822         * lib/lock.c: New file, from GNU gettext.
85823
85824 2005-07-18  Bruno Haible  <bruno@clisp.org>
85825
85826         * lib/lock.h (gl_once_t): New type.
85827         (gl_once_define, gl_once): New macros.
85828         * lib/lock.c (fresh_once): New variable.
85829         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85830         functions.
85831
85832 2005-07-16  Simon Josefsson  <jas@extundo.com>
85833
85834         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85835         workaround, suggested by Bruno.
85836
85837 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85838
85839         * modules/xalloc (Depends-on): Add xalloc-die.
85840         * modules/xvasprintf (Depends-on): Add xalloc-die.
85841
85842 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85843
85844         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85845         with a minor change.
85846
85847 2005-07-15  Bruno Haible  <bruno@clisp.org>
85848
85849         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85850         When using lib/poll.c, define poll as rpl_poll.
85851
85852 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85853
85854         * modules/argp (Depends-on): Remove unlocked-io.
85855
85856 2005-07-14  Derek Price  <derek@ximbiot.com>
85857
85858         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85859         for glob symlink bug.
85860
85861 2005-07-14  Bruno Haible  <bruno@clisp.org>
85862
85863         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85864         Instead, test for *_unlocked function declarations directly.
85865
85866 2005-07-11  Simon Josefsson  <jas@extundo.com>
85867
85868         * modules/size_max: New file.
85869
85870         * modules/xsize: Depend on size_max module for size_max.m4.
85871
85872 2005-07-11  Simon Josefsson  <jas@extundo.com>
85873
85874         * lib/size_max.h: New file.
85875
85876 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85879         copyright symbol and the year.
85880         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85881         (version_etc_va): Use parameterized copyright notice.
85882         Reword to conform to the current GNU coding standards.
85883
85884 2005-07-11  Karl Berry  <karl@gnu.org>
85885
85886         * doc/gnulib.texi (Quoting): new node.
85887         (Initial import): more info, from Patrice.
85888
85889 2005-07-11  Bruno Haible  <bruno@clisp.org>
85890
85891         * gnulib-tool (func_usage): Document option --avoid.
85892         (Command line options): Handle --avoid.
85893         (func_acceptable): New function.
85894         (func_modules_transitive_closure): Use it.
85895
85896 2005-07-11  Bruno Haible  <bruno@clisp.org>
85897
85898         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85899         Reported by Jim Meyering.
85900
85901 2005-07-10  Bruno Haible  <bruno@clisp.org>
85902
85903         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85904         Needed when size_t is smaller than 'unsigned int'.
85905         Reported by Paul Eggert.
85906
85907 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85908
85909         * modules/argp (Depends-on): Add unlocked-io
85910
85911 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85912
85913         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85914         block of defines.
85915
85916 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85917
85918         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85919         fix now.
85920
85921 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85922         and Paul Eggert  <eggert@cs.ucla.edu>
85923
85924         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85925         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85926
85927 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85928
85929         * modules/regex (Files): Add lib/regex_internal.c,
85930         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85931         (Depends-on): Add extensions.
85932         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85933
85934 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85935
85936         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85937         pathconf.
85938         * m4/same.m4 (gl_SAME): Likewise.
85939         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85940
85941         * m4/regex.m4: Adjust to new libc regex implementation.
85942         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85943         all the .c and .h parts of (the new) regex.
85944         Quote the m4 stuff better.
85945         Check for RE_ICASE bug of old gnulib.
85946         Check for REG_STARTEND of recent libc.
85947         Rename local variables from jm_* to gl_*.
85948         Quote operand of "test -f".
85949         Say "recent enough" version of libc, not "version 2".
85950         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85951         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85952         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85953         Remove check for btowc, isascii.
85954         Require AM_LANGINFO_CODESET.
85955
85956 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85957
85958         * lib/regex.c, regex.h: Sync from libc.
85959         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85960         * lib/regexec.c:
85961         New files, synced from libc, except that regex_internal.h
85962         currently has a small porting fix.
85963
85964 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85965
85966         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85967         regex_internal.c, regexec.c.
85968         Add regex_internal.h too, but as a comment, since the libc version
85969         is currently broken in gnulib mode.
85970
85971 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85972
85973         Support programs like Emacs that use gnulib but not gettext.
85974         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85975         * modules/gettext-h: New file.
85976         * modules/gettext (Files): Remove lib/gettext.h.
85977         (Depends-on): Add gettext-h.
85978         (Makefile.am): Remove lib_SOURCES.
85979         * modules/argmatch, modules/c-stack, modules/closeout:
85980         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85981         * modules/execute, modules/file-type, modules/getaddrinfo:
85982         * modules/getopt, modules/human, modules/javacomp:
85983         * modules/javaexec, modules/mkdir-p, modules/obstack:
85984         * modules/openat, modules/pagealign_alloc, modules/pipe:
85985         * modules/quotearg, modules/regex, modules/rpmatch:
85986         * modules/unicodeio, modules/userspec, modules/version-etc:
85987         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85988         * modules/xsetenv:
85989         Depend on gettext-h, not gettext.
85990
85991 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85992
85993         * gnulib-tool (func_import): Add support for 'public domain' license.
85994         * modules/alloca, modules/atexit, modules/memmove:
85995         Now public domain, not GPL.
85996         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85997         * modules/realloc, modules/strerror, modules/strtod:
85998         Now LGPL, not GPL.
85999
86000 2005-07-05  Bruno Haible  <bruno@clisp.org>
86001
86002         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86003         autoconf CVS. Needed for mingw.
86004
86005 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86006
86007         Remove the dependency of the strftime module on the tzset module.
86008         * modules/strftime (Depends-on): Remove dependency on tzset.
86009
86010 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86011
86012         Remove the dependency of the strftime module on the tzset module.
86013         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86014         gl_FUNC_TZSET_CLOBBER.
86015
86016 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86017
86018         Remove the dependency of the strftime module on the tzset module.
86019         * lib/strftime.c (my_strftime)
86020         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86021         Copy the input structure, to work around some of the bug with
86022         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86023         Solaris releases, you should also use the tzset module, but we won't
86024         require it as a dependency any more since we don't want LGPLed code
86025         to depend on GPLed code.
86026
86027 2005-07-02  Jim Meyering  <jim@meyering.net>
86028
86029         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86030         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86031         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86032         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86033
86034 2005-07-02  Jim Meyering  <jim@meyering.net>
86035
86036         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86037
86038 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86039
86040         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86041         declares only 'struct timespec;' (!).
86042
86043 2005-07-01  Jim Meyering  <jim@meyering.net>
86044
86045         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86046         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86047         * lib/save-cwd.c, tempname.c:
86048         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86049         and don't include <sys/file.h>).
86050
86051 2005-06-29  Jim Meyering  <jim@meyering.net>
86052
86053         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86054         type name.  Use the variable name instead.
86055         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86056         Likewise.
86057
86058 2005-06-28  Simon Josefsson  <jas@extundo.com>
86059
86060         * modules/check-version (Files): Add check-version.m4.
86061
86062 2005-06-28  Simon Josefsson  <jas@extundo.com>
86063
86064         * m4/check-version.m4: New file, suggested by Jim Meyering
86065         <jim@meyering.net>.
86066
86067 2005-06-28  Simon Josefsson  <jas@extundo.com>
86068
86069         * lib/check-version.h, lib/check-version.c: New files.
86070
86071 2005-06-28  Simon Josefsson  <jas@extundo.com>
86072
86073         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86074         collision with global variable.  Better indentation.  Don't
86075         increment buffer pointer beyond buffer end.  Based on comments
86076         from Paul Eggert <eggert@cs.ucla.edu>.
86077
86078         * lib/base64.h: Indent.
86079
86080 2005-06-28  Simon Josefsson  <jas@extundo.com>
86081
86082         * doc/gnulib.texi (Library version handling): New section.
86083
86084 2005-06-28  Jim Meyering  <jim@meyering.net>
86085
86086         * check-module (find_included_lib_files): Hard-code another
86087         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86088         but modules/fts-lgpl (correctly) does not list those files.
86089
86090         * modules/canonicalize (Files): Add lib/pathmax.h.
86091
86092 2005-06-25  Simon Josefsson  <jas@extundo.com>
86093
86094         * modules/check-version: New file.
86095
86096 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86097
86098         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86099         initializer of struct addrinfo, as an indication that we don't
86100         care how many members the structure has.
86101
86102 2005-06-24  Derek Price  <derek@ximbiot.com>
86103         and Bruno Haible  <bruno@clisp.org>
86104
86105         Remove stat module & update lstat.
86106         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86107         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86108         * m4/stat.m4: Remove this file.
86109
86110 2005-06-24  Derek Price  <derek@ximbiot.com>
86111         and Bruno Haible  <bruno@clisp.org>
86112
86113         Remove stat module & update lstat.
86114         * lib/stat.c: Remove this file...
86115         (slash_aware_lstat): ...moving this content and its support...
86116         * lib/lstat.c (rpl_lstat): ...into here.
86117         * lib/lstat.h: New file.
86118
86119 2005-06-24  Derek Price  <derek@ximbiot.com>
86120         and Bruno Haible  <bruno@clisp.org>
86121
86122         Remove stat module & update lstat.
86123         * config/srclist.txt (libc sources): Remove stat.
86124
86125 2005-06-24  Derek Price  <derek@ximbiot.com>
86126         and Bruno Haible  <bruno@clisp.org>
86127
86128         Remove stat module & update lstat.
86129         * MODULES.html.sh (stat): Remove.
86130         * MODULES.html: Regenerated.
86131         * modules/lstat (Description): Correct function name.
86132         (Files): Add "lstat.h".
86133         (Depends-on): Remove stat, add xalloc, stat-macros.
86134         * modules/stat: Remove this file.
86135         (Include): Add "lstat.h", remove <sys/stat.h>.
86136
86137 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86138
86139         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86140         (ranged_convert): Don't save conversion in a temporary struct.
86141         This causes a warning with GCC 4.0.0, and anyway in the typical
86142         case it's not worth the extra 100 bytes or so of code.
86143         (ranged_convert, __mktime_internal): When calling a function via a
86144         pointer P, use P () rather than (*P) (), as we now assume C89 or
86145         better.
86146
86147 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86148
86149         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86150         "who -r" failed to give output.  Problem reported by Tim Waugh.
86151
86152         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86153         (xcalloc): Use it to avoid needless tests.
86154         Problem reported by Jim Meyering.
86155
86156 2005-06-20  Derek Price  <derek@ximbiot.com>
86157
86158         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86159         unnecessary for Autoconfs > 2.59c.
86160
86161 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86162
86163         * lib/argp.h (__option_is_short): Check upper limit of
86164         __key. Isprint() requires its argument to have the value
86165         of an unsigned char or EOF.
86166
86167 2005-06-16  Jim Meyering  <jim@meyering.net>
86168
86169         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86170         when either N or S is zero.
86171
86172 2005-06-16  Derek Price  <derek@ximbiot.com>
86173
86174         * m4/bison.m4: Declare YACC & YFLAGS precious.
86175
86176 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86177
86178         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86179         multibyte string or pattern, fall back on unibyte matching.
86180         Problem reported by James Youngman.
86181
86182 2005-06-08  Bruno Haible  <bruno@clisp.org>
86183
86184         * modules/csharpcomp: New file.
86185         * MODULES.html.sh (C#): Add csharpcomp.
86186
86187 2005-06-08  Bruno Haible  <bruno@clisp.org>
86188
86189         * m4/csharpcomp.m4: New file, from GNU gettext.
86190
86191 2005-06-08  Bruno Haible  <bruno@clisp.org>
86192
86193         * lib/csharpcomp.h: New file, from GNU gettext.
86194         * lib/csharpcomp.c: New file, from GNU gettext.
86195         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86196
86197 2005-06-08  Bruno Haible  <bruno@clisp.org>
86198
86199         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86200         warning on mingw.
86201
86202 2005-06-07  Derek Price  <derek@ximbiot.com>
86203
86204         Sync from CVS.
86205         * lib/glob_.h: Indent nested #ifdef.
86206
86207 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86208
86209         Sync from coreutils.
86210         Use "file name" when talking about file names, instead of "filename"
86211         or "path", as per the GNU coding standards.
86212         * lib/mkdir-p.c: Renamed from makepath.c.
86213         (make_dir_parents): Renamed from make_path.  All callers changed.
86214         * lib/mkdir-p.h: Likewise.  All includers changed.
86215         * lib/filenamecat.c: Renamed from path-concat.c.
86216         (file_name_concat): Renamed from path_concat.  All callers changed.
86217         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86218         * lib/filenamecat.h: Likewise.  All includers changed.
86219         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86220         in comments or local variable names.
86221         * lib/basename.c: Likewise.
86222         * lib/canonicalize.c, canonicalize.h: Likewise.
86223         * lib/dirname.c, dirname.h: Likewise.
86224         * lib/euidaccess.c: Likewise.
86225         * lib/exclude.c: Likewise
86226         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86227         * lib/fsusage.c, fsuage.h: Likewise.
86228         * lib/fts.c, fts_.h: Likewise.
86229         * lib/getcwd.c: Likewise.
86230         * lib/getloadavg.c: Likewise.
86231         * lib/mkstemp.c: Likewise.
86232         * lib/mountlist.c, mountlist.h: Likewise.
86233         * lib/openat.c, openat.h: Likewise.
86234         * lib/readlink-stub.c: Likewise.
86235         * lib/readutmp.c, readutmp.h: Likewise.
86236         * lib/rename.c: Likewise.
86237         * lib/rmdir.c: Likewise.
86238         * lib/same.c: Likewise.
86239         * lib/savedir.c: Likewise.
86240         * lib/stripslash.c: Likewise.
86241         * lib/tempname.c: Likewise.
86242         * lib/xreadlink.c: Likewise.
86243         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86244         All uses changed.
86245         * lib/exclude.h: Likewise.
86246
86247         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86248         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86249         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86250         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86251         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86252         files have been getting away with it for years (MORE/BSD 4.3
86253         is extinct now).
86254         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86255         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86256
86257         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86258         Define to 256, not 255, as per modern POSIX.
86259
86260 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86261
86262         Sync from coreutils.
86263         Use "file name" when talking about file names, instead of "filename"
86264         or "path", as per the GNU coding standards.
86265         * MODULES.html.sh: mkdir-p renamed from makepath.
86266         filenamecat renamed from path-concat.
86267         * modules/filenamecat: Renamed from modules/path-concat.
86268         (Files): filenamecat.h and filenamecat.c renamed from
86269         path-concat.h and path-concat.c.
86270         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86271         (Include): filenamecat.h, not path-concat.h.
86272         * modules/mkdir-p: Renamed from modules/makepath.
86273         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86274         makepath.c.
86275         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86276         (Include): mkdir-p.h, not makepath.h.
86277
86278 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86279
86280         Sync from coreutils.
86281         * m4/mkdir-p.m4: Renamed from makepath.m4.
86282         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86283         Rename files from makepath.c to mkdir-p.c, and from
86284         makepath.h to mkdir-p.h.
86285         * m4/filenamecat.m4: Renamed from path-concat.m4.
86286         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86287         Rename files from path-concat.c to filenamecat.c,
86288         and from path-concat.h to filenamecat.h.
86289         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86290         "file name" in local variables or comments.
86291         * m4/rename.m4: Likewise.
86292
86293 2005-06-01  Bruno Haible  <bruno@clisp.org>
86294
86295         * modules/csharpexec: New file.
86296         * MODULES.html.sh (C#): New section.
86297
86298 2005-06-01  Bruno Haible  <bruno@clisp.org>
86299
86300         * m4/csharp.m4: New file, from GNU gettext.
86301         * m4/csharpexec.m4: New file, from GNU gettext.
86302
86303 2005-06-01  Bruno Haible  <bruno@clisp.org>
86304
86305         * lib/csharpexec.h: New file, from GNU gettext.
86306         * lib/csharpexec.c: New file, from GNU gettext.
86307         * lib/csharpexec.sh.in: New file, from GNU gettext.
86308
86309 2005-05-31  Derek Price  <derek@ximbiot.com>
86310             Paul Eggert  <eggert@cs.ucla.edu>
86311
86312         Sync from cvs.
86313         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86314
86315 2005-05-31  Derek Price  <derek@ximbiot.com>
86316             Paul Eggert  <eggert@cs.ucla.edu>
86317
86318         Sync from cvs.
86319         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86320
86321 2005-05-29  Derek Price  <derek@ximbiot.com>
86322
86323         * config/srclist.txt (glob_.h, glob.c): Add these files.
86324
86325 2005-05-29  Derek Price  <derek@ximbiot.com>
86326
86327         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86328         * modules/glob: New file.
86329         * modules/getlogin_r: Add link to POSIX spec in description.
86330
86331 2005-05-29  Derek Price  <derek@ximbiot.com>
86332             Paul Eggert  <eggert@cs.ucla.edu>
86333
86334         * m4/glob.m4: New file.
86335
86336 2005-05-29  Derek Price  <derek@ximbiot.com>
86337             Paul Eggert  <eggert@cs.ucla.edu>
86338
86339         * lib/glob_.h, lib/glob.c: New files.
86340
86341 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86342
86343         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86344         * modules/fts-lgpl (Depends-on): Remove gettext.
86345
86346 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86347
86348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86349         and don't require gt_INTTYPES_PRI.
86350
86351 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86352
86353         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86354
86355         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86356         the configuration hassle isn't worth it.
86357         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86358         (LONGEST_MODIFIER, PRIuMAX): Remove.
86359
86360 2005-05-27  Bruno Haible  <bruno@clisp.org>
86361
86362         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86363
86364 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86365
86366         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86367         _POSIX_PTHREAD_SEMANTICS for Solaris.
86368
86369 2005-05-25  Derek Price  <derek@ximbiot.com>
86370
86371         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86372
86373 2005-05-25  Derek Price  <derek@ximbiot.com>
86374             Paul Eggert  <eggert@cs.ucla.edu>
86375
86376         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86377         * lib/getlogin_r.c, getlogin_r.h: New files.
86378
86379 2005-05-25  Bruno Haible  <bruno@clisp.org>
86380             Derek Price  <derek@ximbiot.com>
86381
86382         * lib/getlogin_r.h: Simplify API documentation.
86383
86384 2005-05-23  Derek Price  <derek@ximbiot.com>
86385
86386         * modules/minmax (Files): Add m4/minmax.m4.
86387         (configure.ac): Add gl_MINMAX.
86388
86389 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86390
86391         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86392         so that unistd-safer.h (GPL'ed code) need not be included.
86393
86394 2005-05-22  Bruno Haible  <bruno@clisp.org>
86395
86396         * m4/minmax.m4: New file.
86397         Based on a patch by Derek Price <derek@ximbiot.com>.
86398
86399 2005-05-22  Bruno Haible  <bruno@clisp.org>
86400
86401         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86402         (INT64_MIN): Fix definition.
86403         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86404
86405         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86406         NEED_SIGNED_INT_TYPES.
86407
86408         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86409         HAVE_SYSTEM_INTTYPES.
86410
86411 2005-05-22  Bruno Haible  <bruno@clisp.org>
86412
86413         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86414         Also include <sys/param.h> if it defines MIN, MAX.
86415         Based on a patch by Derek Price <derek@ximbiot.com>.
86416
86417 2005-05-21  Jim Meyering  <jim@meyering.net>
86418
86419         * modules/fts (Files): Add m4/inttypes-pri.m4.
86420         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86421
86422 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86423
86424         New fts module.
86425         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86426         (setup_dir, free_dir): New functions.
86427         (enter_dir, leave_dir): Define trivial
86428         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86429         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86430         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86431         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86432         Move to fts-cycle.c.
86433         (fts_open): Use setup_dir.
86434         (fts_close): Use free_dir.
86435         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86436         This adds a label and some gotos, but the alternatives were messier.
86437         Check for memory allocation failure when entering a dir.
86438         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86439         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86440         (FTS): New member fts_cycle, that is a union that contains the
86441         old active_dir_ht and cycle_state.  All uses changed to mention
86442         fts_cycle.ht and fts_cycle.state.
86443         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86444         fts.c, with the following changes:
86445         (setup_dir, free_dir): New functions.
86446         (enter_dir): Now returns bool.  Return true if successful, false
86447         if memory exhausted.  All callers changed.
86448         Do not bother partly cleaning up on
86449         memory allocation failure; that is free_dir's job.
86450         However, free ad if hash_insert fails, to avoid memory leak.
86451         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86452         fts->fts_options to see which union member to use.
86453
86454 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86455
86456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86457         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86458
86459 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86460
86461         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86462
86463 2005-05-20  Jim Meyering  <jim@meyering.net>
86464
86465         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86466         Now a macro, to pacify GCC.
86467
86468 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86469
86470         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86471         of -1.
86472
86473 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86474
86475         * lib/chown.c (rpl_chown): Return -1 on failure.
86476
86477 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86478
86479         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86480         Don't check for stddef.h.
86481         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86482         don't use its results.
86483         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86484         since we include them unconditionally.  Don't require
86485         AM_STDBOOL_H, since stdbool is a prerequisite.
86486         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86487         since we assume C89 or better.
86488         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86489         as we don't use their results.
86490         Don't check for fchdir, memmove, memset, strrchr, as we use
86491         them unconditionally.
86492         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86493         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86494
86495 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86496
86497         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86498         Include <stddef.h> unconditionally, since we assume C89 now.
86499         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86500         * lib/fts.c: Include fts_.h first, to check interface.
86501         Do not include intprops.h; no longer needed.
86502         Include cycle-check.h and hash.h, since fts_.h no longer does.
86503         Remove unnecessary casts of closedir to void.
86504         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86505         decide whether to decrement nlinks.
86506         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86507         (FTS): Use struct hash_table * instead of Hash_table, so that
86508         we no longer need to include hash.h here.
86509
86510 2005-05-18  Jim Meyering  <jim@meyering.net>
86511
86512         * modules/dirfd (License): Change to LGPL.  Most of the code
86513         is already in the public domain.
86514
86515 2005-05-18  Jim Meyering  <jim@meyering.net>
86516
86517         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86518         Reported by Yoann Vandoorselaere.
86519
86520 2005-05-17  Jim Meyering  <jim@meyering.net>
86521
86522         * m4/fts.m4: New file, from coreutils.
86523
86524 2005-05-17  Jim Meyering  <jim@meyering.net>
86525
86526         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86527
86528 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86529
86530         Sync from coreutils.
86531         * m4/unlinkdir.m4: New file.
86532
86533 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86534
86535         Sync from coreutils.
86536         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86537         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86538         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86539         White space changes only.
86540         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86541         special.
86542         * lib/yesno.c: Include getline.h, not ctype.h.
86543         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86544         Use getline to remove arbitrary restriction on response length.
86545
86546 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86547
86548         * config/srclist-update: Spell out "Street" in FSF postal
86549         mail address; this is the style the FSF seems to prefer.
86550
86551         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86552         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86553         this updates FSF postal mail address.
86554
86555         Sync from coreutils.
86556         * modules/unlinkdir: New file.
86557         * modules/yesno (Depends-on): Add getline.
86558         * MODULES.html.sh (File system functions): Add unlinkdir.
86559
86560 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86561
86562         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86563         lib/strsep.h:
86564         Change the initial comment to refer to GPL, not LGPL.
86565         gnulib-tool will change it to LGPL as needed.
86566
86567         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86568         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86569         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86570         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86571         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86572         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86573         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86574         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86575         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86576         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86577         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86578         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86579         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86580         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86581         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86582         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86583         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86584         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86585         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86586         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86587         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86588         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86589         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86590         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86591         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86592         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86593         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86594         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86595         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86596         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86597         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86598         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86599         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86600         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86601         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86602         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86603         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86604         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86605         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86606         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86607         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86608         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86609         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86610         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86611         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86612         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86613         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86614         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86615         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86616         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86617         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86618         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86619         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86620         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86621         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86622         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86623         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86624         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86625         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86626         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86627         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86628         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86629         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86630         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86631         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86632         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86633         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86634         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86635         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86636         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86637         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86638         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86639         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86640         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86641         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86642         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86643         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86644         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86645         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86646         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86647         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86648         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86649         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86650         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86651         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86652         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86653         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86654         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86655         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86656         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86657         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86658         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86659         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86660         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86661         lib/yesno.c, lib/yesno.h:
86662         Update FSF postal mail address.
86663
86664 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86665
86666         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86667         tests/test-memmem.c, tests/test-stpncpy.c:
86668         Update FSF postal mail address.
86669
86670 2005-05-13  Bruno Haible  <bruno@clisp.org>
86671
86672         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86673         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86674         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86675         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86676         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86677         Add support for 64-bit integers in the MSVC compiler.
86678
86679 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86680
86681         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86682
86683 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86684
86685         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86686
86687 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86688
86689         * doc/getdate.texi (General date syntax): Don't say that date
86690         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86691         Problem reported by Nic Ferrier.
86692
86693 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86694
86695         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86696         specified in ai_socktype. Fix invalid ai_protocol
86697         check. ai_protocol is usually set to 0 or depending on
86698         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86699         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86700         ai_socktype / ai_protocol in the returned addrinfo structure.
86701
86702 2005-05-10  Simon Josefsson  <jas@extundo.com>
86703
86704         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86705         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86706
86707 2005-05-10  Karl Berry  <karl@gnu.org>
86708
86709         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86710         (from http://www.gnu.org/licenses).
86711         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86712         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86713         fdl.texi suffices.
86714
86715 2005-05-10  Karl Berry  <karl@gnu.org>
86716
86717         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86718         (COPYING.DOC): remove.
86719
86720         * config/srclist-update: new FSF address.
86721
86722 2005-05-10  Derek Price  <derek@ximbiot.com>
86723
86724         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86725         possible.
86726
86727 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86728             Bruno Haible  <bruno@clisp.org>
86729
86730         * modules/inet_ntop: New file.
86731         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86732         inet_ntop.
86733
86734 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86735             Bruno Haible  <bruno@clisp.org>
86736
86737         * m4/inet_ntop.m4: New file.
86738
86739 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86740             Bruno Haible  <bruno@clisp.org>
86741
86742         * lib/inet_ntop.h: New file.
86743         * lib/inet_ntop.c: New file, from glibc with modifications.
86744
86745 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86746
86747         * modules/time_r (License): Change to LGPL.
86748         * modules/extensions (License): Change to LGPL.  Actually,
86749         the license is more permissive than that, but currently gnulib-tool
86750         doesn't know how to handle more-permissive licenses.
86751
86752         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86753         Problem reported by Dave Love.
86754
86755 2005-05-08  Jim Meyering  <jim@meyering.net>
86756
86757         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86758         blank.
86759
86760 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86761
86762         * modules/argmatch (Depends-on): Add stdbool.
86763         * modules/backupfile (Depends-on): Likewise.
86764         * modules/chdir-long (Depends-on): Likewise.
86765         * modules/closeout (Depends-on): Likewise.
86766         * modules/cycle-check (Depends-on): Likewise.
86767         * modules/dirname (Depends-on): Likewise.
86768         * modules/fnmatch (Depends-on): Likewise.
86769         * modules/fsusage (Depends-on): Likewise.
86770         * modules/fwriteerror (Depends-on): Likewise.
86771         * modules/getcwd (Depends-on): Likewise.
86772         * modules/getloadavg (Depends-on): Likewise.
86773         * modules/hard-locale (Depends-on): Likewise.
86774         * modules/makepath (Depends-on): Likewise.
86775         * modules/mountlist (Depends-on): Likewise.
86776         * modules/nanosleep (Depends-on): Likewise.
86777         * modules/posixtm (Depends-on): Likewise.
86778         * modules/quotearg (Depends-on): Likewise.
86779         * modules/readtokens (Depends-on): Likewise.
86780         * modules/readtokens0 (Depends-on): Likewise.
86781         * modules/readutmp (Depends-on): Likewise.
86782         * modules/save-cwd (Depends-on): Likewise.
86783         * modules/strftime (Depends-on): Likewise.
86784         * modules/userspec (Depends-on): Likewise.
86785         * modules/utimecmp (Depends-on): Likewise.
86786         * modules/xgetcwd (Depends-on): Likewise.
86787         * modules/xnanosleep (Depends-on): Likewise.
86788         * modules/xstrtod (Depends-on): Likewise.
86789         * modules/yesno (Depends-on): Likewise.
86790
86791 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86792
86793         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86794         needless checks.
86795
86796 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86797
86798         Merge from coreutils.  Among other things,
86799         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86800         * lib/fd-safer.c: New file.
86801         * lib/fcntl-safer.h, open-safer.c: Remove.
86802         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86803         * lib/dup-safer.c: Include unistd-safer.h first.
86804         Don't include errno.h.
86805         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86806         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86807         * lib/file-type.c: Rely on file-type.h change.
86808         * lib/getloadavg.c: Include unistd-safer.h.
86809         (getloadavg): Use safer open.
86810         * lib/getusershell.c: Include "stdio-safer.h".
86811         (getusershell): Use safer fopen.
86812         * lib/long-options.c (long_options): Use NULL rather than 0.
86813         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86814         'free'.
86815         * lib/modechange.c: Likewise.
86816         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86817         (MODE_DONE): New constant.
86818         (struct mode_change): Remove 'next' member.
86819         (make_node_op_equals): New function; like the old one of the
86820         same name, except it allocates an array.
86821         (mode_compile, mode_create_from_ref): Use it.
86822         (mode_compile): Allocate result as an array, not a linked list.
86823         Parse octal string ourself, so that we catch mistakes like "+0".
86824         (mode_adjust): Arg is an array, not a linked list.
86825         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86826         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86827         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86828         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86829         Remove.  This is now stat-macros.h's job.
86830         (talloc): Remove.  All callers replaced by xalloc, so that
86831         our invokers don't have to worry about reporting memory failures.
86832         (make_node_op_equals): Remove.
86833         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86834         New constants.
86835         (struct mode_change): Moved here from modechange.h.
86836         (mode_append_entry): Remove.
86837         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86838         apps to have incorrect behavior.  Use simpler algorithm for head
86839         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86840         Detect more invalid usages rather than having somewhat-random behavior.
86841         Don't insert an "a=" action, as that leads to incorrect behavior.
86842         (mode_compile, mode_create_from_ref): Return NULL on error instead
86843         of an enum, since now there's only one way to have an error.  All
86844         callers changed.
86845         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86846         at the correct time.  Simplify calculation of "+u" and its ilk.
86847         Don't mishandle "+X".
86848         (mode_free): Remove "register" and localize decls.
86849         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86850         (struct mode_change): Move to modechange.c; callers don't
86851         need to see this stuff.
86852         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86853         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86854         (mode_change, mode_adjust): Reflect the new signatures noted above.
86855         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86856         that might redefine system include files.
86857         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86858         (my_usleep): Use NULL rather than (void *) 0.
86859         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86860         Use siginterrupt to specify that system calls should be interrupted.
86861         (rpl_nanosleep): Move initialization of suspended closer to call of
86862         my_usleep.
86863         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86864         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86865         (desirable_utmp_entry): New function.
86866         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86867         using x2nrealloc, to simplify logic.
86868         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86869         size calculation.  Do not assume utmp file is a regular file.
86870         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86871         (READ_UTMP_CHECK_PIDS): New constant.
86872         * lib/save-cwd.c: Include unistd-safer.h.
86873         (save_cwd): Use fd_safer.
86874         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86875         [!_LIBC] Include "stat-macros.h" instead.
86876         * lib/unistd-safer.h (fd_safer): New decl.
86877
86878 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86879
86880         * modules/getloadavg (Depends-on): Add unistd-safer.
86881         * modules/getusershell (Depends-on): Add stdio-safer.
86882         * modules/lstat (Depends-on): Remove xalloc.
86883         * modules/mkstemp (Depends-on): Add stat-macros.
86884         * modules/modechange (Depends-on): Remove xstrtol.
86885         Add stat-macros, xalloc.
86886         * modules/save-cwd (Depends-on): Add unistd-safer.
86887         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86888         * modules/unistd-safer (Files): Add lib/fd-safer.c
86889         (Makefile.am): Remove lib_SOURCES.
86890
86891         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86892         Remove fcntl-safer; unistd-safer supersedes it.
86893
86894 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86895
86896         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86897         AC_HEADER_STAT.
86898         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86899         (gl_PREREQ_CHOWN): Remove.
86900         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86901         it.  Don't require AC_HEADER_STAT.
86902         (gl_PREREQ_LSTAT): Remove.
86903         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86904         Don't require AC_HEADER_STAT.
86905         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86906         (gl_PREREQ_RMDIR): Remove.
86907         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86908         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86909         the stat-macros module a prerequisite.
86910         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86911         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86912         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86913         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86914         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86915         variable names.
86916         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86917         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86918         variable prefixes.
86919         * m4/fcntl-safer.m4: Remove.
86920         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86921         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86922         Invoke gl_PREREQ_FD_SAFER.
86923         (gl_PREREQ_FD_SAFER): New macro.
86924         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86925         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86926         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86927         Remove duplicate call to AC_LIBOBJ(readutmp).
86928         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86929
86930         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86931         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86932
86933 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86934
86935         * MODULES.html.sh (Misc): Add byteswap.
86936
86937 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86938
86939         * modules/getcwd (Depends-on): Add extensions.
86940         * modules/openat (Depends-on): Likewise.
86941
86942 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86943
86944         * modules/byteswap: New file.
86945
86946 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86947
86948         * m4/byteswap.m4: New file.
86949
86950 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86951
86952         * lib/byteswap_.h: New file.
86953
86954 2005-04-25  Karl Berry  <karl@gnu.org>
86955
86956         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86957
86958 2005-04-25  Albert Chin  <china@thewrittenword.com>
86959
86960         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86961         Toolkit C bug.
86962
86963 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86964
86965         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86966         (func_ln_if_changed): Remove forcibly for no error message
86967         in case file does not exist.
86968
86969 2005-04-19  Simon Josefsson  <jas@extundo.com>
86970
86971         * gnulib-tool (Options): Make --symlink mean --symbolic.
86972
86973 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86974
86975         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86976
86977 2005-04-16  Simon Josefsson  <jas@extundo.com>
86978
86979         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86980
86981 2005-04-15  Simon Josefsson  <jas@extundo.com>
86982
86983         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86984
86985 2005-04-15  Simon Josefsson  <jas@extundo.com>
86986
86987         * gnulib-tool: Rename --symlink to --symbolic.
86988
86989 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86990
86991         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86992         symbolic links to files instead of copying/moving.  Add --aux-dir,
86993         specifying directory relative --dir where auxiliary build tools
86994         are placed.
86995
86996 2005-04-14  Bruno Haible  <bruno@clisp.org>
86997
86998         * modules/allocsa (License): Change to LGPL.
86999         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87000
87001 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87002
87003         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87004         that "UTC +1 second" continues to work.  Problem reported
87005         by Dmitry V. Levin.
87006         (relunit_snumber): New rule.
87007         (relunit): Use it.
87008
87009 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87010
87011         * lib/getdate.y (universal_time_zone_table): New constant.
87012         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87013         universal_time_zone_table.
87014         (lookup_zone): Prefer universal_time_zone_table to
87015         local_time_zone_table, so that "GMT" time stamps are allowed in
87016         London during the summer.  Problem reported by Ian Abbott.
87017
87018 2005-04-12  Jim Meyering  <jim@meyering.net>
87019
87020         * lib/human.c (humblock): Set *options even when returning due to
87021         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87022         warning from gcc-4.
87023
87024 2005-04-09  Jim Meyering  <jim@meyering.net>
87025
87026         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87027         -Wuninitialized: initialize tm0.tm_year.
87028
87029 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87030
87031         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87032         count, since there's no maximum.  All uses changed.
87033         Add member dsts_seen.
87034         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87035         not being INT_MAX.
87036         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87037         Use pc_rels_seen to decide whether a date is absolute.
87038
87039         * lib/getdate.y (number): Don't overwrite year.
87040         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87041         check.
87042
87043 2005-04-02  Simon Josefsson  <jas@extundo.com>
87044
87045         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87046         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87047
87048 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87049
87050         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87051         where no absolute path name can be longer than PATH_MAX.
87052
87053 2005-03-27  Jim Meyering  <jim@meyering.net>
87054
87055         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87056
87057 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87058
87059         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87060         "one's complement" -> "ones' complement" in comment, as per Knuth.
87061         "value of type" -> "type or expression" in comment.
87062         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87063
87064 2005-03-26  Jim Meyering  <jim@meyering.net>
87065
87066         Comment nits.
87067         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87068         Correct typos: s/or/of/.
87069
87070 2005-03-26  Jim Meyering  <jim@meyering.net>
87071
87072         * modules/check-include-files: Move to ../ and rename to...
87073         * check-module: ...this.
87074
87075 2005-03-25  Jim Meyering  <jim@meyering.net>
87076
87077         * modules/xvasprintf (Files): Add xalloc.h.
87078
87079 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87080
87081         * modules/gettext (Files): config/config.rpath ->
87082         build-aux/config.rpath
87083         * modules/iconv (Files): Likewise.
87084         Problem reported by Oskar Liljeblad.
87085
87086 2005-03-23  Jim Meyering  <jim@meyering.net>
87087
87088         * modules/check-include-files: New script to check for
87089         missing dependencies, multiple includes, etc.
87090
87091         * modules/c-strtold (Depends-on): Add xalloc.
87092         * modules/c-strtod (Depends-on): Add xalloc.
87093         * modules/hash (Depends-on): Add xalloc.
87094         (Files): Remove lib/xalloc.h.
87095
87096         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87097         * modules/userspec (Files): Add lib/inttostr.h.
87098
87099 2005-03-23  Jim Meyering  <jim@meyering.net>
87100
87101         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87102
87103 2005-03-22  Jim Meyering  <jim@meyering.net>
87104
87105         * modules/stat-macros: New module.
87106         * modules/canonicalize, modules/euidaccess, modules/file-type,
87107         * modules/filemode, modules/lchown, modules/makepath,
87108         * modules/rmdir, modules/stat: Depend on new stat-macros module
87109         rather than listing lib/stat-macros.h manually.
87110         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87111
87112 2005-03-22  Jim Meyering  <jim@meyering.net>
87113
87114         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87115
87116 2005-03-22  Bruno Haible  <bruno@clisp.org>
87117
87118         * config/srclist.txt: Replace target directory 'config' with
87119         'build-aux'.
87120         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87121         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87122         ../build-aux/.
87123
87124 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87125
87126         * modules/chdir-long (Depends-on): Add mempcpy.
87127
87128         * modules/acl, modules/backupfile, modules/c-strtod,
87129         modules/c-strtold, modules/canon-host, modules/canonicalize,
87130         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87131         modules/exclude, modules/exitfail, modules/file-type,
87132         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87133         modules/getdate, modules/getline, modules/getpagesize,
87134         modules/getpass, modules/getugroups, modules/group-member,
87135         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87136         modules/inttostr, modules/long-options, modules/makepath,
87137         modules/md5, modules/memcasecmp, modules/memcoll,
87138         modules/modechange, modules/mountlist, modules/path-concat,
87139         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87140         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87141         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87142         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87143         modules/strftime, modules/strndup, modules/strverscmp,
87144         modules/timespec, modules/unlocked-io, modules/userspec,
87145         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87146         modules/yesno:
87147         Remove lib_SOURCES line from Makefile.am section, as this is now
87148         done automatically by the corresponding Autoconf macro.
87149
87150 2005-03-21  Jim Meyering  <jim@meyering.net>
87151
87152         Changes imported from coreutils.
87153
87154         * lib/cycle-check.c: Don't include xalloc.h.
87155
87156         * lib/path-concat.c: Don't include assert.h.
87157         (path_concat): Remove assertion that would have triggered
87158         for ABASE starting with more than one slash.
87159         Reported by Andreas Schwab.
87160
87161         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87162         properly when ABASE is an absolute file name.
87163         Correct the description of this function.
87164         Include <assert.h>.
87165         Add an assertion and a test driver.
87166         This fixes a bug introduced on 2004-07-02.
87167         Andreas Schwab reported the resulting failure of cp --parents:
87168         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87169
87170 2005-03-21  Jim Meyering  <jim@meyering.net>
87171
87172         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87173         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87174
87175 2005-03-21  Jim Meyering  <jim@meyering.net>
87176         and  Paul Eggert  <eggert@cs.ucla.edu>
87177
87178         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87179         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87180         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87181         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87182         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87183         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87184         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87185         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87186         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87187         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87188         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87189         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87190         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87191         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87192         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87193         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87194         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87195         for these modules.
87196
87197 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87198
87199         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87200         (which shouldn't happen), generate nothing instead of returning 0
87201         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87202
87203 2005-03-16  Bruno Haible  <bruno@clisp.org>
87204
87205         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87206         HAVE_LONGLONG_64BIT.
87207
87208 2005-03-16  Bruno Haible  <bruno@clisp.org>
87209
87210         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87211         HAVE_LONGLONG_64BIT.
87212
87213 2005-03-16  Bruno Haible  <bruno@clisp.org>
87214
87215         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87216         HAVE_LONGLONG_64BIT.
87217
87218 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87219
87220         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87221         reliably distinguish strftime failure from empty output on POSIX
87222         hosts.
87223
87224 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87225
87226         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87227         (iconv_string): Don't guess a size-zero buffer, as that might cause
87228         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87229         result would be 'too large', where 'too large' is (heuristically)
87230         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87231         overflow concerns.  This will prevent some unwanted malloc failures
87232         when the inputs are very large.
87233
87234 2005-03-15  Karl Berry  <karl@gnu.org>
87235
87236         * config/srclist.txt (config.rpath): from gettext.
87237         * config/config.rpath: update.
87238
87239 2005-03-15  Bruno Haible  <bruno@clisp.org>
87240
87241         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87242         to 'negate'.
87243
87244         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87245         variable.
87246
87247         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87248         results.
87249
87250 2005-03-14  Simon Josefsson  <jas@extundo.com>
87251
87252         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87253         <fx@gnu.org>.
87254
87255 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87256
87257         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87258         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87259         intprops.h.
87260         * lib/strtol.c: Likewise.
87261
87262 2005-03-14  Jim Meyering  <jim@meyering.net>
87263
87264         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87265         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87266         to be nonzero so that we (and caller) can detect the difference
87267         between a valid zero-length expansion and an error return, even
87268         when the underlying strftime fails before writing anything into
87269         that location.
87270
87271 2005-03-14  Bruno Haible  <bruno@clisp.org>
87272
87273         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87274         Update from GNU gettext 0.14.3.
87275
87276 2005-03-10  Jim Meyering  <jim@meyering.net>
87277
87278         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87279
87280 2005-03-10  Jim Meyering  <jim@meyering.net>
87281
87282         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87283         so that this module works on systems without fchdir.
87284
87285 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87286
87287         Factor int-properties macros into a single file, except for
87288         glibc-related files.
87289         * lib/intprops.h: New file.
87290         * lib/getloadavg.c: Include it instead of limits.h.
87291         (INT_STRLEN_BOUND): Remove.
87292         * lib/human.c: Include intprops.h.
87293         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87294         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87295         302/1000.
87296         * lib/inttostr.h: Include intprops.h instead of limits.h.
87297         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87298         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87299         for consistency with intprops.h.
87300         (time_t_is_integer, twos_complement_arithmetic): Use them.
87301         * lib/sig2str.h: Include <signal.h>, intprops.h.
87302         (INT_STRLEN_BOUND): Remove.
87303         * lib/strftime.c (TYPE_SIGNED): Remove.
87304         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87305         * lib/strtol.c: Adjust comments to match intprops.h.
87306         * lib/userspec.c: Include intprops.h.
87307         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87308         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87309         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87310         instead of rolling our own expressions.
87311         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87312
87313         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87314         instead of int.
87315         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87316         the right thing even if adding 1900 would overflow.  Similarly
87317         for tm_mon + 1 and tm_yday + 1.
87318         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87319         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87320         (DO_SIGNED_NUMBER): New macro.
87321         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87322
87323 2005-03-07  Bruno Haible  <bruno@clisp.org>
87324
87325         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87326
87327 2005-03-07  Bruno Haible  <bruno@clisp.org>
87328
87329         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87330
87331 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87332
87333         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87334         (func_import): Only replace files via --import when they have actually
87335         changed.
87336
87337 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87338
87339         * m4/mmap-anon.m4: New file.
87340         * m4/pagealign_alloc.m4: New file.
87341
87342 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87343             Bruno Haible  <bruno@clisp.org>
87344
87345         * modules/pagealign_alloc: New file.
87346         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87347
87348 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87349             Bruno Haible  <bruno@clisp.org>
87350
87351         * lib/pagealign_alloc.h: New file.
87352         * lib/pagealign_alloc.c: New file.
87353
87354 2005-03-03  Bruno Haible  <bruno@clisp.org>
87355
87356         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87357         Use an all-permissive copyright notice, recommended by RMS.
87358
87359 2005-03-02  Bruno Haible  <bruno@clisp.org>
87360
87361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87362         of AIX, the replacement has to be done only after <string.h> is
87363         included, therefore not in config.h. stpncpy.h does the replacement,
87364         and stpncpy.c uses it.
87365
87366 2005-03-02  Bruno Haible  <bruno@clisp.org>
87367
87368         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87369         stpncpy.c uses it.
87370
87371 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87372
87373         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87374         The workaround isn't strictly needed for POSIX conformance, and
87375         it's too much of a pain to configure and maintain.  We'll ask
87376         people to fix their kernels instead.
87377         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87378         (NANOSLEEP_BUG_WORKAROUND): Remove.
87379         (xnanosleep): Remove the workaround.
87380
87381 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87382
87383         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87384         Reported by Derek Price.
87385         (Include): Add "timespec.h".
87386
87387         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87388
87389 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87390
87391         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87392         to detect nanosleep bug.
87393
87394 2005-03-01  Bruno Haible  <bruno@clisp.org>
87395
87396         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87397
87398 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87399
87400         * modules/gethrxtime: New file.
87401         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87402         (Depends-on): Add gethrxtime.
87403         (configure.ac): Add gl_XNANOSLEEP.
87404         (Makefile.am): Remove lib_SOURCES line.
87405
87406 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87407
87408         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87409         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87410
87411 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87412
87413         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87414         * lib/timespec.h (gettime): Return void, since it always
87415         succeeds now.  All uses changed.
87416         * lib/gettime.c (gettime): Likewise.
87417         [HAVE_NANOTIME]: Prefer nanotime.
87418         Assume gettimeofday succeeds, as POSIX requires.
87419         Assime time () succeeds, since other code already does.
87420         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87421         (timespec_subtract): Remove.
87422         (NANOSLEEP_BUG_WORKAROUND): New constant.
87423         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87424         things considerably.  Use it only on GNU/Linux hosts, since the
87425         workaround shouldn't be needed elsewhere.
87426
87427 2005-02-24  Bruno Haible  <bruno@clisp.org>
87428
87429         * modules/gettext (Files): Add m4/glibc2.m4.
87430
87431 2005-02-24  Bruno Haible  <bruno@clisp.org>
87432
87433         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87434         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87435         * m4/progtest.m4:
87436         Update from GNU gettext 0.14.2.
87437         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87438
87439 2005-02-24  Bruno Haible  <bruno@clisp.org>
87440
87441         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87442         * lib/config.charset: Update from GNU gettext 0.14.2.
87443
87444 2005-02-24  Bruno Haible  <bruno@clisp.org>
87445
87446         * lib/gettext.h: Update from GNU gettext 0.14.2.
87447
87448 2005-02-23  Simon Josefsson  <jas@extundo.com>
87449
87450         * m4/iconvme.m4: New file.
87451
87452 2005-02-23  Jim Meyering  <jim@meyering.net>
87453
87454         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87455         change.
87456         Thanks to Bruno Haible for catching it.
87457
87458 2005-02-22  Simon Josefsson  <jas@extundo.com>
87459
87460         * modules/iconvme: New file.
87461
87462         * MODULES.html.sh: Add iconvme.
87463
87464 2005-02-22  Simon Josefsson  <jas@extundo.com>
87465
87466         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87467
87468 2005-02-22  Simon Josefsson  <jas@extundo.com>
87469
87470         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87471
87472 2005-02-22  Jim Meyering  <jim@meyering.net>
87473
87474         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87475         s/ifndef/ifdef/.
87476
87477 2005-02-20  Neil Conway  <neilc@samurai.com>
87478
87479         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87480         returned by OSX/Darwin if the specified buffer is not large
87481         enough for the hostname.
87482
87483 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87484
87485         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87486         pass it to _help, otherwise the latter coredumps trying to
87487         dereference state.root_argp.
87488
87489 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87490
87491         * modules/chdir-long (Depends-on): Add memrchr.
87492         * modules/memrchr (Files): Add lib/memrchr.h.
87493         (Include): "memrchr.h".
87494
87495 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87496
87497         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87498
87499 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87500
87501         * lib/memrchr.h: New file.
87502         * lib/chdir-long.c: Include it.
87503         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87504         Don't bother including stddef.h.
87505
87506 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87507
87508         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87509         inclusion.
87510         Include <sys/types.h>, for dev_t.
87511         (ME_DUMMY, ME_REMOTE): Move from here....
87512         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87513         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87514         Dmitry V. Levin.
87515         Include mountlist.h first, to test the interface.
87516
87517 2005-01-29  Bruno Haible  <bruno@clisp.org>
87518
87519         * lib/progname.c (program_name): Initialize.
87520         Needed when linking statically on MacOS X.
87521
87522 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87523
87524         Sync from coreutils.
87525         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87526         (Depends-on): Add c-strtod.
87527         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87528
87529 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87530
87531         Sync from coreutils.
87532         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87533
87534         Remove files that are specific to coreutils.
87535         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87536
87537 2005-01-28  Bruno Haible  <bruno@clisp.org>
87538
87539         * modules/javacomp: New file.
87540         * MODULES.html.sh (Java): Add javacomp.
87541
87542 2005-01-28  Bruno Haible  <bruno@clisp.org>
87543
87544         * m4/javacomp.m4: New file, from GNU gettext.
87545
87546 2005-01-28  Bruno Haible  <bruno@clisp.org>
87547
87548         * lib/javacomp.sh.in: New file, from GNU gettext.
87549         * lib/javacomp.h: New file, from GNU gettext.
87550         * lib/javacomp.c: New file, from GNU gettext.
87551
87552 2005-01-26  Simon Josefsson  <jas@extundo.com>
87553
87554         * lib/gai_strerror.c: Use GPL in header.
87555
87556 2005-01-26  Bruno Haible  <bruno@clisp.org>
87557
87558         * modules/javaexec: New file.
87559         * MODULES.html.sh (Java): Add javaexec.
87560
87561 2005-01-26  Bruno Haible  <bruno@clisp.org>
87562
87563         * m4/javaexec.m4: New file, from GNU gettext.
87564
87565 2005-01-26  Bruno Haible  <bruno@clisp.org>
87566
87567         * lib/javaexec.sh.in: New file, from GNU gettext.
87568         * lib/javaexec.h: New file, from GNU gettext.
87569         * lib/javaexec.c: New file, from GNU gettext.
87570
87571 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87572
87573         * modules/lchown (Depends-on): Remove lchown.h
87574
87575 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87576
87577         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87578         must be defined if the header file was not found, in order
87579         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87580
87581 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87582
87583         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87584         initializers for struct pentry_state.
87585         (__argp_error): Check return value of __asprintf
87586         (__argp_failure): Translate error message
87587
87588         * lib/argp-parse.c: Removed braces around the expansion of N_()
87589
87590 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87591
87592         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87593         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87594         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87595         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87596         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87597         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87598         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87599         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87600         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87601         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87602         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87603         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87604         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87605         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87606         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87607         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87608         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87609         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87610         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87611         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87612         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87613         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87614         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87615         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87616         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87617         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87618         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87619         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87620         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87621         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87622         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87623         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87624         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87625         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87626         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87627         Use an all-permissive copyright notice, recommended by RMS.
87628
87629 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87630
87631         * modules/chdir-long (Depends-on): Remove mempcpy.
87632
87633 2005-01-21  Jim Meyering  <jim@meyering.net>
87634
87635         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87636         same value as for Solaris 9.
87637
87638         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87639         component length.  This included changing the parameter to be
87640         of type `char *' rather than `char const *'.
87641         * lib/chdir-long.h (chdir_long): Update prototype.
87642
87643         * lib/openat.c (fdopendir, fstatat): New functions.
87644         * lib/openat.h: Include headers required for use of DIR and struct
87645         stat.
87646         [AT_SYMLINK_NOFOLLOW]: Define.
87647         (fdopendir, fstatat): Add prototypes.
87648
87649 2005-01-21  Bruno Haible  <bruno@clisp.org>
87650
87651         * modules/classpath: New file.
87652         * MODULES.html.sh (Java): Add classpath.
87653
87654 2005-01-21  Bruno Haible  <bruno@clisp.org>
87655
87656         * lib/classpath.h: New file, from GNU gettext.
87657         * lib/classpath.c: New file, from GNU gettext.
87658
87659 2005-01-20  Simon Josefsson  <jas@extundo.com>
87660
87661         * modules/version-etc-fsf: New file.
87662
87663 2005-01-20  Simon Josefsson  <jas@extundo.com>
87664
87665         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87666         * lib/version-etc.c: Remove version_etc_copyright.
87667         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87668         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87669
87670 2005-01-20  Simon Josefsson  <jas@extundo.com>
87671
87672         * lib/base64.h (isbase64): Add.
87673
87674         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87675         using a unsigned prototype, don't inline.
87676         (base64_decode): Use it.
87677
87678 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87679
87680         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87681         it.
87682
87683 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87684
87685         * lib/save-cwd.c (save_cwd): Remove code to support the case
87686         where fchdir is missing or flaky.
87687
87688 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87689
87690         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87691
87692 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87693
87694         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87695         AC_LIBSOURCES now does this.
87696         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87697         with new ullong_max module.
87698
87699 2005-01-19  Bruno Haible  <bruno@clisp.org>
87700
87701         * modules/sh-quote: New file.
87702         * MODULES.html.sh (Executing programs): Add sh-quote.
87703
87704 2005-01-19  Bruno Haible  <bruno@clisp.org>
87705
87706         * lib/sh-quote.h: New file, from GNU gettext.
87707         * lib/sh-quote.c: New file, from GNU gettext.
87708
87709 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87710
87711         Merge from coreutils.
87712         * m4/ullong_max.m4: New file.
87713         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87714         (gl_MACROS): Assume localeconv exists.
87715
87716 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87717
87718         Merge changes from coreutils, as described below in several
87719         changelogs dated today.
87720
87721         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87722         (O_DIRECTORY): Remove; not needed here, since "." must be
87723         a directory.  All uses removed.
87724         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87725         universal on Suns, and we also need to test for IRIX.
87726         Revamp code to use 'if' rather than '#if'.
87727         Avoid unnecessary comparison of cwd->desc to 0.
87728
87729         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87730         for known valid error numbers rather than observed invalid ones.
87731
87732 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87733
87734         * modules/ullong_max: New file.
87735
87736         * modules/chdir-long, modules/openat: New files.
87737         * modules/save-cwd (Depends-on): Depend on chdir-long.
87738         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87739
87740 2005-01-18  Jim Meyering  <jim@meyering.net>
87741
87742         Merge from coreutils.
87743         * m4/chdir-long.m4, m4/openat.m4: New files.
87744         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87745         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87746         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87747         is sane and DOES follow symlinks.  Besides, testing 20 different
87748         systems found no broken chown implementations.
87749         Prompted by a change in rsync's copy of this macro.
87750         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87751
87752         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87753
87754         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87755         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87756         NULL-means-set-to-current-time semantics.
87757         Remove temporary file immediately, rather than waiting
87758         for configure's at-exit trap code to do it.
87759
87760 2005-01-18  Jim Meyering  <jim@meyering.net>
87761
87762         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87763
87764         * lib/utimens.c (futimens): Account for the fact that futimes
87765         can also fail with errno == ENOSYS or errno == ENOENT.
87766         Patch from Dmitry V. Levin.
87767
87768         Change the name of the robust chdir function from chdir to chdir_long.
87769         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87770         (restore_cwd): Use chdir_long, not chdir.
87771         * lib/chdir-long.c: Renamed from chdir.c.
87772         * lib/chdir-long.h: Renamed from chdir.h.
87773         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87774         Hurd.
87775
87776 2005-01-18  Bruno Haible  <bruno@clisp.org>
87777
87778         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87779         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87780         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87781         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87782         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87783         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87784         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87785         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87786         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87787         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87788         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87789         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87790         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87791         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87792         Use an all-permissive copyright notice, recommended by RMS.
87793
87794 2005-01-18  Bob Proulx  <bob@proulx.com>
87795
87796         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87797         simplify offsetof() macro construct to avoid compile failure with
87798         native HP-UX 11.0 ANSI C compiler.
87799
87800 2005-01-17  Bruno Haible  <bruno@clisp.org>
87801
87802         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87803         redundant because stpncpy.m4 takes care of it.
87804
87805 2005-01-17  Bruno Haible  <bruno@clisp.org>
87806
87807         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87808
87809 2005-01-17  Bruno Haible  <bruno@clisp.org>
87810
87811         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87812         used.
87813
87814 2005-01-17  Bruno Haible  <bruno@clisp.org>
87815
87816         * lib/fwriteerror.h (fwriteerror): Change specification to include
87817         fclose.
87818         * lib/fwriteerror.c: Include <stdbool.h>.
87819         (fwriteerror): At the end, close the file stream. Record whether
87820         stdout was already closed.
87821
87822 2005-01-17  Bruno Haible  <bruno@clisp.org>
87823
87824         * lib/execute.c (environ): Declare if needed.
87825         * lib/pipe.c (environ): Likewise.
87826         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87827
87828 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87829
87830         * modules/argp: Depend on vsnprintf
87831
87832 2005-01-10  Jim Meyering  <jim@meyering.net>
87833
87834         * modules/closeout (Depends-on): Add atexit.
87835
87836 2005-01-06  Bruno Haible  <bruno@clisp.org>
87837
87838         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87839
87840 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87841
87842         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87843         definitions to be after all include files, to avoid collisions.
87844         Problem reported by Bob Proulx.
87845
87846 2005-01-04  Jim Meyering  <jim@meyering.net>
87847
87848         Changes imported from coreutils.
87849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87850         as the mkstemp template, use a temporary directory and an
87851         8.3-friendly template to avoid trouble on systems like DJGPP.
87852         Reported by Juan M. Guerrero via Stepan Kasal.
87853         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87854         close. Remove the temporary directory right away, rather than waiting
87855         for configure's at-exit trap code to do it.
87856         Suggestion from Stepan Kasal.
87857
87858 2005-01-01  Simon Josefsson  <jas@extundo.com>
87859
87860         * gnulib-tool: Print #include directives when --import'ing.
87861
87862 2004-12-28  Simon Josefsson  <jas@extundo.com>
87863
87864         * tests/test-base64.c: Include required header files.  Remove
87865         unused variables.
87866
87867 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87868
87869         * modules/error (Depends-on): Remove gettext.
87870
87871 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87872
87873         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87874         not needed.  This removes a dependency on the gettext module.
87875         [defined _LIBC]: Do not include <libintl.h>; not needed.
87876
87877 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87878
87879         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87880         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87881
87882 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87883
87884         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87885         HAVE_DECL_STRTOLD.
87886
87887 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87888
87889         * modules/getdate (Depends-on): Remove alloca-opt.
87890
87891 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87892
87893         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87894
87895 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87896
87897         * lib/argp-parse.c: Include <stddef.h>.
87898         (alignof, alignto): New macros.
87899         (parser_init): Don't assume that void * is aligned sufficiently
87900         for struct option.
87901
87902         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87903         need to extend the stack.
87904         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87905         large.
87906
87907 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87908
87909         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87910
87911 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87912
87913         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87914         (2004-10-24) change.  Apparently this was a false alarm.
87915
87916         * modules/getdate: Depend on alloca-opt, not alloca.
87917
87918 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87919
87920         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87921         Remove now-obsolete comment about AIX.
87922         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87923         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87924         (YYMAXDEPTH): New macro.
87925
87926 2004-12-18  Simon Josefsson  <jas@extundo.com>
87927
87928         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87929
87930 2004-12-18  Bruno Haible  <bruno@clisp.org>
87931
87932         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87933
87934 2004-12-18  Bruno Haible  <bruno@clisp.org>
87935
87936         * lib/fatal-signal.c (fatal_signals): Make non-const.
87937         (init_fatal_signals): New function.
87938         (uninstall_handlers, install_handlers): Ignore signals that were set to
87939         SIG_IGN.
87940         (at_fatal_signal): Call init_fatal_signals.
87941         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87942         SIG_IGN.
87943         Reported by Paul Eggert.
87944
87945 2004-12-18  Bruno Haible  <bruno@clisp.org>
87946
87947         * doc/alloca.texi: New file.
87948         * doc/alloca-opt.texi: New file.
87949
87950 2004-12-17  Jim Meyering  <jim@meyering.net>
87951
87952         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87953         Otherwise, install-sh could exit with improper exit status when
87954         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87955
87956 2004-12-16  Simon Josefsson  <jas@extundo.com>
87957
87958         * tests/test-base64.c: Add license.
87959
87960 2004-12-15  Stepan Kasal  <address@hidden>
87961
87962         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87963
87964 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87965
87966         * modules/getcwd (Files): Add m4/d-ino.m4.
87967         Suggested by Mark D. Baushke.
87968
87969 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87970
87971         * lib/getdate.y (textint): New member "negative".
87972         (time_zone_hhmm): New function.
87973         Expect 14 shift-reduce conflicts, not 13.
87974         (o_colon_minutes): New rule.
87975         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87976         (yylex): Set the "negative" member of signed numbers.
87977
87978 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87979
87980         * doc/getdate.texi (Time of day items, Time zone items):
87981         Describe new formats +00:00, UTC+00:00.
87982
87983 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87984
87985         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87986         spurious "-l"s.  Problem reported by Stepan Kasal.
87987
87988 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87989
87990         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87991         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87992
87993 2004-12-04  Simon Josefsson  <jas@extundo.com>
87994
87995         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87996         Vandoorselaere <yoann@prelude-ids.org>.
87997
87998 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87999
88000         Changes imported from coreutils.
88001         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88002         exist.
88003         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88004
88005 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88006
88007         Changes imported from coreutils.
88008         * lib/hard-locale.c: Assume <locale.h> exists.
88009         Include "strdup.h".
88010         (GLIBC_VERSION): New macro.
88011         (hard_locale): Assume setlocale exists.
88012         Rewrite to avoid #ifdef.
88013         Use strdup rather than malloc + strcpy.
88014         * lib/human.c: Assume <locale.h> exists.
88015         (human_readable): Assume localeconv exists.
88016
88017 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88018
88019         * modules/hard-locale (Depends-on): Add strdup.
88020
88021 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88022
88023         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88024         convert T2, not T.  (Imported from libc.)
88025
88026 2004-11-30  Simon Josefsson  <jas@extundo.com>
88027
88028         * modules/restrict (License): Change to LGPL.
88029
88030 2004-11-30  Simon Josefsson  <jas@extundo.com>
88031
88032         * m4/restrict.m4: Add copyright and copying conditions.
88033
88034 2004-11-30  Simon Josefsson  <jas@extundo.com>
88035
88036         * m4/base64.m4: New file.
88037
88038 2004-11-30  Simon Josefsson  <jas@extundo.com>
88039
88040         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88041         base64.
88042
88043         * tests/test-base64.c: New file.
88044
88045         * modules/base64: New file.
88046
88047 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88048
88049         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88050         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88051
88052         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88053
88054 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88055
88056         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88057         (__getcwd.c): Don't restore errno; glibc doesn't.
88058         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88059         first, falling back to our code only if its results look suspicious.
88060         Ensure that the resulting buffer is only as large as necessary.
88061
88062         * lib/readutmp.c: Include readutmp.h first.
88063         Include <errno.h>, since readutmp.h no longer does that.
88064         * lib/readutmp.h: Don't include <errno.h>,
88065         <sys/param.h>, <time.h>; not needed to establish interface.
88066         (errno): Remove decl.
88067         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88068         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88069         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88070
88071 2004-11-28  Simon Josefsson  <jas@extundo.com>
88072
88073         * lib/base64.h, base64.c: New file.
88074
88075 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88076
88077         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88078
88079 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88080
88081         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88082         (Depends-on): Remove pathmax, same.  Add mempcpy.
88083         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88084         (Makefile.am): Append getcwd.h to lib_SOURCES.
88085         (Include): Add getcwd.h.
88086         (Maintainer): Change from Jim Meyering to "all, glibc",
88087         since getdate now uses intended-for-glibc code.
88088         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88089         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88090
88091 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88092
88093         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88094         HP's ANSI C compiler.
88095         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88096         Declaring int functions causes warnings on some modern systems and
88097         shouldn't be needed to compile on ancient ones.
88098         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88099         defined.
88100
88101         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88102         with the following changes.
88103         (__set_errno): Parenthesize properly.
88104         Include <stdbool.h>.
88105         (MIN, MAX, MATCHING_INO): New macros.
88106         (__getcwd): Define with prototype, not K&R form.
88107         Use heuristics to allocate default buffer on stack if possible.
88108         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88109         behavior, and to avoid the PATH_MAX limit when computing
88110         ../../../../...
88111         Use MATCHING_INO to compare inode number to file.
88112         Check for arithmetic overflow in size calculations.
88113         Fix bug in reallocation of dot array that caused getcwd to fail
88114         on directories nested deeper than 75.
88115         Be more careful about saving errno on error.
88116         Do not use realloc; use only free+malloc, as this is a bit
88117         more flexible and avoids a needless copy operation.
88118         Do not inspect st_dev and st_ino for symbolic links; POSIX
88119         doesn't specify the latter.
88120         Check for closedir errors.
88121         Avoid needless casts.
88122         Use "#ifdef weak_alias" around weak_alias, to be like other
88123         glibc code.
88124         The following changes to getcwd.c have effect only when used in
88125         gnulib; they have no effect inside glibc proper.
88126         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88127         as alloca isn't used.
88128         (alloca, __alloca): Likewise.
88129         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88130         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88131         unconditionally, as gnulib assumes C89 or better.
88132         Do not include <sys/param.h>.
88133         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88134         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88135         better.
88136         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88137         Include <dirent.h> in a way that is compatible with modern Autoconf.
88138         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88139         New macros, if not already defined.
88140         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88141         Use "_LIBC", not "defined _LIBC", for consistency.
88142         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88143         a mempcpy module.
88144         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88145         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88146         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88147         credit only to Jim Meyering and adjust the copyright dates.
88148         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88149         <stdlib.h>, <unistd.h>, "pathmax.h".
88150         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88151         (INITIAL_BUFFER_SIZE): Remove.
88152         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88153
88154 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88155
88156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88157         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88158         Use the _ONCE methods, for efficiency.
88159         Check for fcntl.h.  In test program, include <errno.h>
88160         and <fcntl.h> if available.  Remove old K&R cruft from
88161         test program.  Check for common errors in GNU/Linux,
88162         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88163         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88164         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88165         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88166         name accordingly.
88167         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88168         accommodate new getcwd.c.
88169         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88170         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88171         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88172         that's all we need now.
88173
88174 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88175
88176         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88177         argp-parse.c depends on getopt internals, that means we should
88178         always use our getopt, to be on the safe side.
88179         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88180         order not to spoil the result of an eventual previous invocation
88181         of gl_GETOPT_SUBSTITUTE.
88182
88183 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88184
88185         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88186         redefinition warnings. To avoid them, include the defines
88187         in `#if !defined __need_getopt ... #endif'. The only place
88188         where __getopt_argv_const is used is in definitions
88189         of getopt_long and getopt_long_only below, which are as well
88190         protected by `#ifndef __need_getopt'.
88191         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88192         __need_getopt after including <stdio.h> and <unistd.h> These
88193         headers might have defined it.
88194
88195 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88196
88197         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88198
88199 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88200
88201         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88202         (futimens): New function, which uses futimes if available.
88203         (futimens, utimens): Support timespec==NULL, with same semantics
88204         as utime and utimens.
88205         * lib/utimens.h (futimens): New decl.
88206
88207 2004-11-23  Jim Meyering  <jim@meyering.net>
88208
88209         * lib/getopt_.h: Remove trailing blanks.
88210
88211 2004-11-23  Jim Meyering  <jim@meyering.net>
88212
88213         * lib/__fpending.c: Add comment.
88214
88215 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88216
88217         * modules/canonicalize (Depends-on): Add xreadlink.
88218         Problem reported by James Youngman.
88219
88220 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88221
88222         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88223         New macros.
88224         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88225         optopt): Use them instead of invoking ## directly; otherwise, the
88226         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88227
88228 2004-11-19  Bruno Haible  <bruno@clisp.org>
88229
88230         * lib/strtok_r.c: Move comments from here...
88231         * lib/strtok_r.h: ... to here.
88232
88233 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88234
88235         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88236         implementations that mishandle size_t overflow.
88237
88238 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88239
88240         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88241         might fail.  Problem reported by Yoann Vandoorselaere.
88242         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88243         implementations that mishandle size_t overflow.
88244
88245 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88246
88247         * modules/canon-host (Depends-on): Add strdup.
88248
88249 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88250
88251         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88252
88253 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88254
88255         * lib/canon-host.c: Include "strdup.h".
88256         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88257         Use strdup instead of malloc/strcpy to duplicate strings.
88258
88259         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88260         (human_space_before_unit): New constant.
88261         * lib/human.c (human_readable): Support it.
88262
88263         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88264         (xgetcwd): Set errno correctly when failing.
88265         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88266         the failure is actually due to a PATH_MAX problem.
88267
88268         Further getopt changes to make it more likely that glibc will
88269         buy the changes back.
88270         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88271         (getopt): Use it, so to preserve glibc semantic
88272         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88273         when compiling for libc.
88274         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88275         (getopt_long, getopt_long_only): Use it.
88276
88277         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88278         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88279         (getopt): Argv is now char * const *, as per standard.
88280         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88281         not char *__getopt_argv_const *.
88282         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88283         _getopt_long_only_r): Likewise.
88284         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88285         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88286         _getopt_long_r, _getopt_long_only_r): Likewise.
88287         * lib/getopt_.h (__getopt_argv_const): Remove.
88288         (getopt): Argv is now char * const *, as per standard.
88289
88290         * lib/getdate.y (tORDINAL): New token.
88291         (day, relunit): Allow it for relative times.
88292         (relative_time_table): Use tORDINAL for ordinals.
88293
88294 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88295
88296         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88297         Document that "second" isn't allowed as an ordinal number.
88298
88299 2004-11-16  Jim Meyering  <jim@meyering.net>
88300
88301         * modules/closeout (Depends-on): Add fpending.
88302
88303 2004-11-15  Jim Meyering  <jim@meyering.net>
88304
88305         * lib/closeout.c: Include "__fpending.h" once again.
88306         Include <stdbool.h>.
88307         (close_stdout): Don't fail just because stdout was closed initially,
88308         since some programs don't write to stdout in the normal course of
88309         operation (other than --version and --help), and we don't want this
88310         function to make e.g. `touch file >&-' fail.
88311         But do fail if it was closed and someone has tried to write to it.
88312         E.g., `printf foo >&-' must fail.
88313
88314 2004-11-13  Jim Meyering  <jim@meyering.net>
88315
88316         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88317
88318 2004-11-12  Simon Josefsson  <jas@extundo.com>
88319
88320         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88321         small doc fix is still pending.
88322
88323 2004-11-11  Simon Josefsson  <jas@extundo.com>
88324
88325         * modules/strtok_r: New file.
88326
88327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88328         strtok_r.
88329
88330 2004-11-11  Simon Josefsson  <jas@extundo.com>
88331
88332         * m4/strtok_r.m4: New file.
88333
88334         * m4/getopt.m4: Replace opterr.
88335
88336 2004-11-11  Simon Josefsson  <jas@extundo.com>
88337
88338         * lib/strtok_r.h, strtok_r.c: New file.
88339
88340 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88341
88342         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88343         of replacing opterr, getopt, etc.  This should handle the
88344         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88345
88346 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88349         we can stop lying to compilers about the constness of argv when we
88350         are compiled outside glibc.
88351         (getopt, getopt_long, getopt_long_only): Use it.
88352         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88353         _getopt_internal, getopt): Likewise.
88354         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88355         _getopt_long_only_r): Likewise.
88356         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88357         _getopt_long_r, _getopt_long_only_r): Likewise.
88358
88359         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88360         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88361         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88362         the other external symbols.
88363         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88364         declaration, since the above renaming now works around collisions.
88365
88366 2004-11-11  Jim Meyering  <jim@meyering.net>
88367
88368         * lib/linebreak.c: Remove trailing blanks.
88369         * lib/alloca_.h: Likewise.
88370         * lib/acosl.c: Likewise.
88371         * lib/euidaccess.c: Likewise.
88372         * lib/allocsa.h: Likewise.
88373
88374 2004-11-10  Simon Josefsson  <jas@extundo.com>
88375
88376         * m4/getaddrinfo.m4: New file.
88377
88378 2004-11-10  Simon Josefsson  <jas@extundo.com>
88379
88380         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88381
88382 2004-11-10  Simon Josefsson  <jas@extundo.com>
88383
88384         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88385         getaddrinfo.
88386
88387         * modules/getaddrinfo: New file.
88388
88389 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88390
88391         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88392
88393 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88394
88395         * lib/mktime.c (SHR): New macro, which is a portable
88396         substitute for >> that should work even on Crays.
88397         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88398         Problem reported by Mark D. Baushke in
88399         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88400         * lib/getdate.y (SHR): Likewise.
88401         (tm_diff): Use it.
88402         * lib/strftime.c (SHR): Likewise.
88403         (tm_diff): Use it.
88404         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88405         quote_these_too, so that right shifts are well defined.  All uses
88406         changed.
88407
88408 2004-11-10  Jim Meyering  <jim@meyering.net>
88409
88410         Ensure that no close failure goes unreported.
88411         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88412         return early when it seems there's nothing to flush.
88413         Don't include __fpending.h.
88414
88415 2004-11-10  Jim Meyering  <jim@meyering.net>
88416
88417         * modules/closeout (Depends-on): Remove fpending.
88418
88419 2004-11-10  Jim Meyering  <jim@meyering.net>
88420
88421         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88422
88423 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88424
88425         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88426         gl_FUNC_STRFTIME.
88427         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88428         and AC_REQUIRE when possible, to avoid duplicate checks.
88429         Check for <wchar.h>.
88430
88431 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88432
88433         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88434
88435 2004-11-09  Bruno Haible  <bruno@clisp.org>
88436
88437         * m4/sockpfaf.m4: New file.
88438
88439 2004-11-05  Bruno Haible  <bruno@clisp.org>
88440
88441         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88442         Reported by Mark D. Baushke <mdb@cvshome.org>.
88443
88444 2004-11-04  Bruno Haible  <bruno@clisp.org>
88445
88446         2004-09-11  Bruno Haible  <bruno@clisp.org>
88447                 * allocsa.valgrind: New file.
88448         2004-02-06  Bruno Haible  <bruno@clisp.org>
88449                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88450                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88451                 Reported by Christopher Seip <chris.seip@hp.com>.
88452
88453 2004-11-04  Bruno Haible  <bruno@clisp.org>
88454
88455         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88456         (Makefile.am): Distribute it.
88457
88458 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88459
88460         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88461         with errno == ERANGE if the buffer is too small.
88462         Problem reported by Mark D. Baushke.
88463
88464 2004-11-03  Albert Chin  <china@thewrittenword.com>
88465             Paul Eggert  <eggert@cs.ucla.edu>
88466
88467         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88468         equivalent, substitute $ac_type for equivalent type rather than
88469         blindly using uint32_t *always* which won't work if uint32_t is not
88470         available.  Define _UINT32_T to work around typedef of uint32_t if
88471         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88472         2.5.1.
88473
88474 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88475
88476         * m4/jm-macros.m4: Sync from coreutils.
88477         (gl_MACROS): Check for mbrlen, for pathchk.
88478         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88479
88480 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88481
88482         * lib/xreadlink.c (MAXSIZE): New macro.
88483         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88484         size does not exceed MAXSIZE.  Avoid cast.
88485         As suggested by Mark D. Baushke in
88486         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88487         if readlink fails with buffer size just under MAXSIZE, try again
88488         with MAXSIZE.
88489
88490 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88491
88492         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88493
88494 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88495         and  Paul Eggert  <eggert@cs.ucla.edu>
88496
88497         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88498         (get_date): Overparenthesize to avoid GCC warning.
88499
88500 2004-11-02  Bruno Haible  <bruno@clisp.org>
88501
88502         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88503         returns void.
88504
88505 2004-11-02  Bruno Haible  <bruno@clisp.org>
88506
88507         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88508         function returns void.
88509
88510 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88511
88512         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88513         fflush_unlocked, flockfile, funlockfile, funlockfile,
88514         fputs_unlocked, putc_unlocked.
88515
88516 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88517
88518         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88519         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88520         already declared.
88521
88522 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88523
88524         * modules/getdate (Files): Add doc/getdate.texi.
88525         (Depends-on): Add setenv, xalloc.
88526
88527 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88528
88529         * lib/getdate.y: Add support for TZ="foo" within a date string.
88530         Fix some bugs near time_t boundaries.  Reject dates with
88531         out-of-range components, e.g., "Sept 31".
88532         Include <stdlib.h>, "setenv.h", "xalloc.h".
88533         (ISDIGIT_LOCALE): Remove; unused.
88534         Note that the TZ and time functions used here are not reentrant.
88535         (mktime_ok, get_tz): New functions.
88536         (TZBUFSIZE): New constant.
88537         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88538         This requires that we sometimes generate our own TZ="XXX..." setting.
88539
88540 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88541
88542         * doc/getdate.texi: New file, from coreutils with modifications for
88543         the new TZ parsing.
88544
88545 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88546
88547         * lib/mktime.c (not_equal_tm): Remove redundant check.
88548
88549 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88550
88551         * modules/regex (lib_SOURCES): Add regex.c.
88552         Reported by James Youngman in
88553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88554
88555 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88556
88557         * lib/getdate.y: Use Bison 1.875 features, and some minor
88558         code cleanups.  This change does not affect semantics.
88559         Don't include <stdlib.h>; no longer needed.
88560         Don't include unlocked-io.h; only the "#if TEST" code uses
88561         stdio, and performance isn't crucial there.
88562         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88563         Bison 1.875 features as described below.
88564         All uses of "PC." replaced by "pc->".
88565         (YYSTYPE): Add a forward declaration.
88566         (yylex, yyerror): Use full prototypes in forward decls.
88567         Use "%pure-parser" rather than obsolescent "%pure_parser".
88568         Use %parse-param and %lex-param instead of obsolescent
88569         YYPARSE_PARAM and YYLEX_PARAM.
88570         (meridian_table, month_and_day_table, time_units_table,
88571         relative_time_table, time_zone_table, military_table,
88572         lookup_zone, lookup_word, get_date):
88573         Use NULL instead of 0 where appropriate.
88574         (to_hour): Avoid abort (), to avoid a dependency on
88575         stdlib.h.
88576         (yyerror, yylex): Now accepts parser_control * arg.
88577         (main) [TEST]: Use '\0' rather than 0 for char.
88578
88579 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88580
88581         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88582
88583 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88584
88585         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88586         It's now the caller's responsibility to handle the case where
88587         !HAVE_GETPAGESIZE && !defined getpagesize.
88588
88589         * lib/mktime.c (leapyear): Arg is long int, not int.
88590
88591 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88592
88593         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88594
88595 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88596
88597         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88598         missing.  Problem reported by James Youngman.
88599
88600 2004-10-16  Simon Josefsson  <jas@extundo.com>
88601
88602         * gnulib-tool: Fix comments.  Fix parse problem.
88603         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88604
88605 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88606
88607         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88608         implementation of getopt_long.  Problem reported by Alexander Taler in:
88609         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88610
88611 2004-10-15  Bruno Haible  <bruno@clisp.org>
88612
88613         * gnulib-tool: Untabify. Initialize supplied_libname.
88614         (func_usage): More homogenous output.
88615         (func_modules_transitive_closure, func_modules_to_filelist,
88616         func_emit_lib_Makefile_am): New functions.
88617         (func_import): New function, extracted from big case statement. Use
88618         func_get_license, func_modules_transitive_closure,
88619         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88620         opt_lgpl. Don't use test -a, as it's not portable.
88621         (func_create_testdir): Use func_modules_transitive_closure,
88622         func_modules_to_filelist, func_emit_lib_Makefile_am.
88623
88624 2004-10-15  Bruno Haible  <bruno@clisp.org>
88625
88626         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88627
88628 2004-10-15  Bruno Haible  <bruno@clisp.org>
88629
88630         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88631         the portions belonging to each module.
88632         Suggested by Derek Robert Price <derek@ximbiot.com>.
88633
88634 2004-10-12  Simon Josefsson  <jas@extundo.com>
88635
88636         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88637         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88638         to real functions.
88639
88640 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88641
88642         * modules/vsnprintf: New file.
88643
88644 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88645
88646         * m4/vsnprintf.m4: New file.
88647
88648 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88649
88650         * lib/vsnprintf.h: New file.
88651         * lib/vsnprintf.c: New file.
88652
88653 2004-10-11  Bruno Haible  <bruno@clisp.org>
88654
88655         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88656         vsnprintf.
88657
88658 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88659
88660         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88661
88662 2004-10-07  Bruno Haible  <bruno@clisp.org>
88663
88664         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88665         fits into the provided buffer.
88666
88667 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88668
88669         * lib/diacrit.c, diacrit.h: Add GPL notice.
88670
88671         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88672         notice.
88673         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88674         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88675         This avoids a potential constant-folding bug.
88676
88677 2004-10-05  Bruno Haible  <bruno@clisp.org>
88678
88679         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88680         for the declaration of strsep.
88681
88682 2004-10-05  Bruno Haible  <bruno@clisp.org>
88683
88684         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88685
88686 2004-10-04  Simon Josefsson  <jas@extundo.com>
88687
88688         * modules/memmem: New file.
88689         * tests/test-memmem.c: New file.
88690         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88691
88692 2004-10-04  Simon Josefsson  <jas@extundo.com>
88693
88694         * m4/memmem.m4: New file.
88695
88696 2004-10-04  Simon Josefsson  <jas@extundo.com>
88697
88698         * lib/memmem.h: New file.
88699         * lib/memmem.c: New file, taken from glibc.
88700
88701 2004-10-04  Simon Josefsson  <jas@extundo.com>
88702
88703         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88704         '#ifdef USE_UNLOCKED_IO'.
88705
88706 2004-10-04  Simon Josefsson  <jas@extundo.com>
88707
88708         * config/srclist.txt: Add memmem from glibc.
88709
88710 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88711
88712         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88713
88714         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88715         modules/exclude, modules/getdate, modules/getline,
88716         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88717         modules/getusershell, modules/linebuffer, modules/md5,
88718         modules/mountlist, modules/posixtm, modules/readtokens,
88719         modules/readutmp, modules/regex, modules/sha1,
88720         modules/version-etc, modules/yesno:
88721         Remove dependency on unlocked-io.
88722
88723 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88724
88725         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88726
88727         * m4/unlocked-io.m4: Add copyright notice.
88728         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88729
88730 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88731
88732         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88733         * lib/xmalloc.c (xmemdup): Likewise.
88734         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88735         XFREE): Remove these long-obsolescent macros.
88736         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88737         * lib/xstrdup.c: Remove.
88738
88739         * lib/regex.c (re_comp): Cast gettext return value to char *,
88740         Problem reported by Martin Neitzel via Mark D. Baushke.
88741
88742 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88743
88744         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88745         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88746         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88747         regex.c, sha1.c, version-etc.c, yesno.c:
88748         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88749         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88750         the includer's responsibility.
88751
88752         Sync from coreutils.
88753
88754         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88755         points to the start of a string, as the C Standard says the
88756         resulting behavior is undefined.
88757
88758         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88759         simple -> simple_backups, numbered_existing ->
88760         numbered_existing_backups, numbered -> numbered_backups
88761         to avoid shadowing problems.  All uses changed.
88762         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88763         * lib/backupfile.c (check_extension, numbered_backup):
88764         Rename locals to avoid shadowing 'basename'.
88765         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88766         once.
88767
88768         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88769         * lib/.cvsignore: Add getopt.h.
88770
88771 2004-10-04  Bruno Haible  <bruno@clisp.org>
88772
88773         * modules/README: New file.
88774         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88775         not a module.
88776
88777 2004-10-02  Jim Meyering  <jim@meyering.net>
88778
88779         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88780
88781 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88782
88783         * modules/strsep: New file.
88784
88785 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88786
88787         * m4/strsep.m4: New file.
88788
88789 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88790
88791         * lib/strsep.h: New file.
88792         * lib/strsep.c: New file.
88793
88794 2004-10-01  Simon Josefsson  <jas@extundo.com>
88795
88796         * lib/snprintf.c (snprintf): Handle size==0.
88797
88798 2004-10-01  Simon Josefsson  <jas@extundo.com>
88799             Bruno Haible  <bruno@clisp.org>
88800
88801         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88802         (snprintf): Declare 'args'.
88803
88804 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88805
88806         * lib/snprintf.c: Remove comments as to why each header is needed.
88807
88808 2004-10-01  Bruno Haible  <bruno@clisp.org>
88809
88810         * MODULES.html.sh: Add strsep.
88811
88812 2004-09-30  Simon Josefsson  <jas@extundo.com>
88813
88814         * modules/snprintf: New file.
88815
88816 2004-09-30  Simon Josefsson  <jas@extundo.com>
88817
88818         * m4/snprintf.m4: New file.
88819
88820 2004-09-30  Simon Josefsson  <jas@extundo.com>
88821
88822         * lib/snprintf.h, lib/snprintf.c: New files.
88823
88824 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88825
88826         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88827         (hol_entry_help): Never translate an empty string.
88828         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88829         * lib/argp.h (OPTION_NO_TRANS): New option.
88830
88831 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88832
88833         * modules/argp (Maintainer): Replace Simon Josefsson
88834         by Sergey Poznyakoff.
88835
88836 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88837
88838         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88839         changes merged back into glibc.
88840
88841 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88842
88843         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88844
88845 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88846
88847         * lib/xvasprintf.c: Include xalloc.h.
88848         (xvasprintf): Use xalloc_die, not xmalloc_die.
88849
88850 2004-09-29  Bruno Haible  <bruno@clisp.org>
88851
88852         * modules/alloca-opt: New file, derived from modules/alloca.
88853         * modules/allocsa: Depend on alloca-opt instead of alloca.
88854         * modules/setenv: Likewise.
88855         * modules/vasnprintf: Likewise.
88856         * MODULES.html.sh: Add alloca-opt.
88857
88858 2004-09-28  Simon Josefsson  <jas@extundo.com>
88859
88860         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88861         LGPL, and to replace license template from GPL to LGPL.
88862
88863 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88864
88865         * modules/dummy: Change license to LGPL.
88866
88867 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88868
88869         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88870
88871 2004-09-24  Simon Josefsson  <jas@extundo.com>
88872
88873         * modules/minmax (License): Change from GPL to LGPL.
88874
88875 2004-09-23  Simon Josefsson  <jas@extundo.com>
88876
88877         * gnulib-tool (--import): Typo.
88878
88879 2004-09-23  Simon Josefsson  <jas@extundo.com>
88880
88881         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88882
88883 2004-09-22  Bruno Haible  <bruno@clisp.org>
88884
88885         * modules/*: Add 'License' field.
88886         * gnulib-tool: Accept --extract-license option.
88887         (func_get_license): New function.
88888
88889 2004-09-21  Bruno Haible  <bruno@clisp.org>
88890
88891         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88892         Reported by Simon Josefsson.
88893
88894 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88895
88896         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88897         gl_AC_TYPE_LONG_LONG.
88898
88899 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88900
88901         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88902
88903 2004-09-18  Simon Josefsson  <jas@extundo.com>
88904         and  Paul Eggert  <eggert@cs.ucla.edu>
88905
88906         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88907         calls with autoreconf.  Define GL_LIB.
88908
88909 2004-09-14  Karl Berry  <karl@gnu.org>
88910
88911         * config/srclist.txt: unsync setenv.c, sigh.
88912
88913 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88914
88915         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88916         Problem reported by Bruno Haible in:
88917         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88918
88919 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88920
88921         * config/srclist.txt: Comment out argp-pvh.c.
88922
88923 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88924
88925         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88926         in case some system header has #define'd it.  Problem reported by
88927         Soeren D. Schulze in
88928         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88929
88930 2004-09-09  Karl Berry  <karl@gnu.org>
88931
88932         * regex.[ch]: delete from the root.  These were supposed to be
88933                 synced with emacs cvs, but this has not happened for about
88934                 a year, and anyway nothing else uses emacs regex.[ch].
88935                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88936                 lib/regex[.ch] is untouched.
88937
88938 2004-09-09  Bruno Haible  <bruno@clisp.org>
88939
88940         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88941
88942 2004-09-09  Bruno Haible  <bruno@clisp.org>
88943
88944         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88945         modifications.
88946         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88947
88948 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88949
88950         * modules/xvasprintf: New file.
88951         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88952
88953 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88954
88955         * lib/xvasprintf.h: New file.
88956         * lib/xvasprintf.c: New file.
88957         * lib/xasprintf.c: New file.
88958
88959 2004-09-08  Bruno Haible  <bruno@clisp.org>
88960
88961         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88962
88963 2004-09-08  Bruno Haible  <bruno@clisp.org>
88964
88965         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88966         length is > INT_MAX.
88967         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88968         more.
88969
88970 2004-09-08  Bruno Haible  <bruno@clisp.org>
88971
88972         * lib/stdint_.h: New file, taken from GNU clisp.
88973
88974 2004-09-08  Bruno Haible  <bruno@clisp.org>
88975             Oskar Liljeblad  <oskar@osk.mine.nu>
88976
88977         * modules/stdint: New file.
88978         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88979
88980 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88981
88982         Import from coreutils.
88983         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88984         strings on unbounded length.  alloca's performance benefits aren't
88985         that important here.
88986         (V_STRDUP): Remove.
88987         (parse_with_separator): New function, with most of the internals
88988         of the old parse_user_spec.  Allow user to omit both user and group,
88989         for compatibility with FreeBSD.
88990         Clone only the user name, not the entire spec.
88991         Do not set *uid, *gid unless entirely successful.
88992         Avoid memory leak in some failing cases.
88993         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88994         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88995         (parse_user_spec): Rewrite to use parse_with_separator.
88996
88997 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88998
88999         * modules/userspec: Don't depend on alloca.
89000
89001 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89002
89003         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89004
89005 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89006
89007         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89008         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89009         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89010
89011 2004-08-16  Simon Josefsson  <jas@extundo.com>
89012
89013         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89014         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89015         Add --dry-run for --import.
89016         Let user provided command line parameters override configure.ac
89017         settings.
89018
89019 2004-08-12  Simon Josefsson  <jas@extundo.com>
89020
89021         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89022         as discussed with Paul Eggert in threads rooted at
89023         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89024         and
89025         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89026         Before, the test was empty, and relied on ELIDE_CODE in source
89027         code.)
89028         (gl_PREREQ_GETOPT): New macro.
89029         (gl_GETOPT): Use them.
89030
89031 2004-08-12  Simon Josefsson  <jas@extundo.com>
89032
89033         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89034         * lib/getopt_.h: Renamed from getopt.h.
89035
89036 2004-08-12  Simon Josefsson  <jas@extundo.com>
89037
89038         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89039         Change default library name from libfoo to libgnu.
89040         Now, if you have a configure.ac that says:
89041                 gl_SOURCE_BASE(gl)
89042                 gl_M4_BASE(gl/m4)
89043                 gl_MODULES(error getopt etcetera)
89044                 gl_INIT
89045         you can import all you need by running:
89046                 ../gnulib/gnulib-tool --import
89047
89048         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89049         (Makefile.am): Rewrite, use logic from argz.
89050         (Include): Use <getopt.h> instead of "getopt.h".
89051
89052 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89053
89054         * modules/argp (Files): Add m4/unlocked-io.m4.
89055         (Depends-on): Add extensions.
89056
89057 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89058
89059         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89060         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89061         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89062         Check for program_invocation_name, program_invocation_short_name,
89063         flockfile, funlockfile, features.h, _getopt_long_only_r.
89064
89065 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89066
89067         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89068         its complicated substitute.
89069         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89070         and program_invocation_name.
89071         (__argp_basename) [!_LIBC]: Remove; the only use was
89072         replaced by its body.
89073         (__argp_short_program_name): Change condition from
89074         !defined __argp_short_program_name to
89075         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89076         to match argp-namefrob.h.
89077         (__argp_failure): Don't assume strerror_r returns char *.
89078         * lib/argp-parse.c (N_): Define unconditionally.
89079         (argp_default_options): Fill out initializers with 0 to avoid
89080         gcc warnings.
89081
89082 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89083
89084         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89085         getopt1.c.
89086
89087 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89088
89089         Merge from coreutils.
89090
89091         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89092
89093         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89094         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89095
89096 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89097
89098         Merge from coreutils.
89099
89100         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89101         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89102         for Reliant Unix 5.43.
89103
89104         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89105         (union fooround): Use uintmax_t, not long int.
89106         The rest is a merge from libc:
89107         [defined _LIBC]: Include <shlib-compat.h>.
89108         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89109
89110         * lib/settime.c (settime): Recode to avoid warning with
89111         Sun Forte C 6U2.
89112
89113         * lib/strverscmp.c: Convert to UTF-8.
89114
89115 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89116
89117         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89118         m4/uintmax_t.m4.
89119
89120 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89121
89122         * modules/xalloc-die: New file.
89123         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89124
89125         * modules/md5 (Files): Add m4/uint32_t.m4.
89126         * modules/sha1: Renamed from modules/sha.
89127         (Files):
89128         Rename lib/sha.h to lib/sha1.h.
89129         Rename lib/sha.c to lib/sha1.c.
89130         Rename m4/sha.m4 to m4/sha1.m4.
89131         (lib_SOURCES): Likewise.
89132         (configure.ac): Rename gl_SHA to gl_SHA1.
89133         (Include): sha.h -> sha1.h.
89134
89135 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89136
89137         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89138         * m4/sha1.m4: Renamed from sha.m4.
89139         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89140
89141 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89142
89143         * lib/obstack.h (obstack_empty_p):
89144         Don't assume that chunk->contents is suitably aligned.
89145         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89146         Likewise. Problem reported by Benno in
89147         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89148
89149         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89150         readable.  This could be improved further but it'd take some work.
89151
89152 2004-08-08  Simon Josefsson  <jas@extundo.com>
89153
89154         * modules/xgethostname (Depends-on): Remove exit and error (not
89155         used).
89156
89157         * modules/getpass-gnu: Add getpass.h.
89158         (Depends-on): Add stdbool.
89159         * modules/getpass: Add getpass.h.
89160
89161 2004-08-08  Simon Josefsson  <jas@extundo.com>
89162
89163         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89164         Check getpass declaration.
89165
89166 2004-08-08  Simon Josefsson  <jas@extundo.com>
89167
89168         * lib/xgethostname.c: Don't include error.h (not used).
89169
89170         * lib/getpass.h: Add.
89171         * lib/getpass.c: Include getpass.h first.
89172
89173 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89174
89175         * lib/xalloc-die.c: New file.
89176         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89177         All uses removed.
89178         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89179         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89180         xalloc-die.c.
89181         (_, N_, xalloc_die): Move to xalloc-die.c.
89182         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89183         so that we needn't mess with xalloc_msg_memory_exhausted.
89184
89185         * lib/sha1.h: Renamed from sha.h.
89186         (SHA1_H): Renamed from _SHA_H.
89187         (sha1_ctx): Renamed from sha_ctx.
89188         (sha1_init_ctx): Renamed from sha_init_ctx.
89189         (sha1_process_block): Renamed from sha_process_block.
89190         (sha1_process_bytes): Renamed from sha_process_bytes.
89191         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89192         (sha1_read_ctx): Renamed from sha_read_ctx.
89193         (sha1_stream): Renamed from sha_stream.
89194         (sha1_buffer): Renamed from sha_buffer.
89195         * lib/sha1.c: Likewise; renamed from sha.c.
89196         Do not include <sys/types.h>.
89197         Include <stddef.h> rather than <stdlib.h>.
89198
89199 2004-08-08  Bruno Haible  <bruno@clisp.org>
89200
89201         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89202         FILESYSTEM_PREFIX_LEN.
89203         * lib/progreloc.c: Likewise.
89204         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89205
89206 2004-08-06  Simon Josefsson  <jas@extundo.com>
89207
89208         * modules/progname (Depends-on): Don't depend on stdbool.
89209
89210 2004-08-06  Simon Josefsson  <jas@extundo.com>
89211
89212         * modules/getsubopt: New file.
89213         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89214         getsubopt.
89215
89216 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89217
89218         More merge from coreutils.
89219
89220         * m4/utimens.m4, m4/utimecmp.m4: New files.
89221         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89222         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89223         prereq.m4, sha.m4: Import changes from coreutils.
89224
89225 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89226
89227         More merge from coreutils.
89228         * modules/raise, modules/readtokens0, modules/utimens:
89229         * modules/utimecmp, module/xnanosleep: New files.
89230         * modules/strftime: Add lib/strftime.h.
89231         Change include from <time.h> to "strftime.h".
89232         * modules/yesno: Add lib/yesno.h.
89233         * modules/backupfile: Remove lib/addext.c.
89234         * modules/euidaccess: Add stat-macros.h.
89235         * modules/canonicalize, modules/euidaccess,
89236         modules/filemode, modules/lchown, modules/makepath,
89237         modules/rmdir, modules/stat: Likewise.
89238
89239 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89240
89241         Merge from tar.
89242         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89243         SIZE_MAX is a valid preprocessor constant.
89244         (__argp_basename): Change from "#ifndef _LIBC"
89245         to "#ifndef __argp_short_program_name", so that
89246         we don't compile these functions for tar.
89247
89248         More merges from coreutils.
89249         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89250         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89251         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89252         * lib/addext.c: Remove; no longer needed.
89253         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89254         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89255         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89256         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89257         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89258         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89259         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89260         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89261         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89262         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89263         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89264         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89265         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89266         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89267         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89268         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89269         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89270         Import changes from coreutils.
89271
89272 2004-08-05  Simon Josefsson  <jas@extundo.com>
89273
89274         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89275
89276 2004-08-05  Simon Josefsson  <jas@extundo.com>
89277
89278         * m4/getsubopt.m4: New file.
89279
89280 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89281
89282         Merge from coreutils.
89283
89284         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89285         * m4/getcwd-path-max.m4: New files.
89286
89287         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89288         FILESYSTEM_PREFIX_LEN ->
89289         FILE_SYSTEM_PREFIX_LEN.
89290         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89291         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89292         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89293         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89294
89295         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89296         prerequisite modules now handle the DOS stuff.
89297         Don't check for unistd.h.
89298
89299 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89300
89301         Merge from coreutils.
89302
89303         * lib/.gdb-history: Remove; this doesn't belong here.
89304
89305         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89306         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89307         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89308         * lib/getcwd.c: New files.
89309
89310         * lib/dirname.h: Include <stdbool.h>.
89311         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89312         for consistency with POSIX terminology.  All uses changed.
89313         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89314         (strip_trailing_slashes): Use bool for booleans.
89315         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89316
89317         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89318         sometimes returns a positive errno value even when it succeeds.
89319         (print_errno_message) [!LIBC]: Fall back on strerror if
89320         __strerror_r fails.
89321
89322         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89323         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89324         (longest_relative_suffix): New function.
89325         (path_concat): Use it.  Assume first argument is not NULL.
89326         Port to DOS.  Omit redundant separators.
89327         Report an error instead of returning NULL.
89328         Use mempcpy instead of memcpy.
89329         (xpath_concat): Remove: not declared or used.
89330
89331         * lib/same.h: Include <stdbool.h>
89332         (same_name): Return bool, not int.
89333         * lib/same.c (same_name): Likewise.
89334         (errno): Don't declare; we assume C89 or better now.
89335
89336         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89337         if not already defined.
89338
89339         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89340         * lib/dup-safer.c (errno): Likewise.
89341
89342 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89343
89344         Merge from coreutils.
89345         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89346         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89347         * modules/path-concat: Don't depend on strdup.
89348
89349 2004-08-03  Simon Josefsson  <jas@extundo.com>
89350
89351         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89352         * lib/progname.h: Don't include stdbool.h.
89353
89354 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89355
89356         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89357         * MODULES.html.sh (func_all_modules): Remove fatal.
89358
89359 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89360
89361         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89362
89363 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89364
89365         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89366         working.
89367
89368 2004-08-02  Simon Josefsson  <jas@extundo.com>
89369
89370         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89371         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89372         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89373
89374 2004-08-01  Simon Josefsson  <jas@extundo.com>
89375
89376         * lib/xgetdomainname.c: Include stdlib.h, for free().
89377
89378 2004-07-19  Bruno Haible  <bruno@clisp.org>
89379
89380         * MODULES.html.sh (func_all_modules): Add dummy.
89381
89382 2004-07-16  Simon Josefsson  <jas@extundo.com>
89383
89384         * modules/dummy: New file.
89385
89386 2004-07-16  Simon Josefsson  <jas@extundo.com>
89387
89388         * lib/dummy.c: New file.
89389
89390 2004-07-16  Bruno Haible  <bruno@clisp.org>
89391
89392         * lib/backupfile.h: Add extern "C" for C++.
89393         * lib/closeout.h: Likewise.
89394         * lib/copy-file.h: Likewise.
89395         * lib/findprog.h: Likewise.
89396         * lib/full-write.h: Likewise.
89397         * lib/pathname.h: Likewise.
89398         * lib/progname.h: Likewise.
89399         * lib/stpcpy.h: Likewise.
89400         * lib/stpncpy.h: Likewise.
89401         * lib/strcase.h: Likewise.
89402         * lib/strstr.h: Likewise.
89403         * lib/xalloc.h: Likewise.
89404
89405         * lib/mbswidth.h: Add extern "C" for C++.
89406         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89407
89408 2004-07-13  Robert Millan  <robertmh@gnu.org>
89409
89410         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89411
89412 2004-07-09  Simon Josefsson  <jas@extundo.com>
89413
89414         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89415         failed without this.)
89416
89417 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89418
89419         * modules/chown (Files): Add lib/fchown-stub.c, since
89420         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89421
89422 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89423
89424         * lib/fchown-stub.c: New file.
89425
89426 2004-06-24  Jim Meyering  <jim@meyering.net>
89427
89428         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89429
89430 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89431
89432         * modules/argz: Omit "#include".
89433
89434         * MODULES.html.sh (func_all_modules): Add calloc, to match
89435         2004-06-01 addition of calloc module.
89436
89437 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89438
89439         * m4/argz.m4: New file, which is autoupdated from libtool.
89440
89441 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89442
89443         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89444         libtool.
89445
89446 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89447
89448         * config/srclist-update: Don't insist on "USA." before the
89449         close-comment, as libtool omits the period and puts the */ on a
89450         separate line.
89451         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89452         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89453
89454 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89455
89456         * modules/argz: New file.
89457         * MODULES.html.sh (func_all_modules): Add argz.
89458
89459 2004-06-12  Jim Meyering  <jim@meyering.net>
89460         and  Paul Eggert  <eggert@cs.ucla.edu>
89461
89462         * modules/hash (Files): Add lib/xalloc.h.
89463         * modules/pipe (Depends-on): Add wait-process.
89464         * modules/stat (Depends-on): Add xalloc.
89465         * modules/userspec (Files): Add lib/userspec.h.
89466         * modules/xstrto
89467
89468         Upgrade from gettext-0.13.
89469         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89470         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89471         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89472
89473 2004-06-10  Jim Meyering  <jim@meyering.net>
89474
89475         * lib/calloc.c: New file.
89476
89477 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89478
89479         * lib/getdate.y (yylex): Allow space between sign and number.
89480         Problem reported by Dan Jacobson.
89481
89482 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89483
89484         Merge from coreutils CVS.
89485
89486         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89487         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89488         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89489         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89490         xstrtol.m4: Fix copyright date and/or serial number.
89491
89492         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89493         See if we need an fchown replacement.
89494         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89495         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89496         and use the replacement function if we detect either defect.
89497
89498         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89499         gl_UTIMECMP.
89500
89501 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89502         and  Jim Meyering  <jim@meyering.net>
89503
89504         Merge from coreutils CVS.
89505
89506         * lib/stat-macros.h: New file, with contents from file-type.h
89507         and coreutils' system.h.
89508         * lib/file-type.c: Include "stat-macros.h".
89509         * lib/file-type.h (file_type): Move all macro definitions to new file,
89510         stat-macros.h.
89511
89512         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89513         Wrap old code with this conditional.
89514         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89515         function that does not dereference symlinks.
89516         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89517
89518         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89519         dependency problems.
89520         (xreadlink): Accept new arg SIZE, for efficiency.
89521         All decls and uses changed.
89522         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89523
89524         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89525         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89526
89527         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89528         sysexits.h.
89529
89530 2004-06-01  Jim Meyering  <jim@meyering.net>
89531
89532         * m4/calloc.m4: New file.
89533
89534 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89535
89536         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89537         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89538         Also, fix a typo in a diagnostic.
89539
89540 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89541
89542         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89543         or AC_FUNC_REALLOC.
89544
89545 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89546
89547         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89548         macros to be defined.
89549         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89550         the allocator returns NULL because the requested size is zero.
89551
89552 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89553
89554         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89555         var.  Add comment explaining why libc still defines it.  This
89556         merges the following patch from glibc:
89557         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89558
89559 2004-05-20  Andreas Schwab  <schwab@suse.de>
89560
89561         * m4/free.m4: Replace free if it not known to work, not the other
89562         way round.
89563
89564 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89565
89566         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89567         present in glibc since revision 1.1 of this file.
89568         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89569         obstack_alignment_mask, obstack_alloc, obstack_base,
89570         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89571         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89572         obstack_grow0, obstack_init, obstack_int_grow,
89573         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89574         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89575         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89576         nonexistent functions.
89577
89578 2004-05-18  Karl Berry  <karl@gnu.org>
89579
89580         * config/srclist.txt: break link for vasnprintf.c.
89581
89582 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89583
89584         Port obstack to the AS/400, where pointers are 16 bytes wide and
89585         you cannot cast an integer to a valid pointer.  This patch is
89586         currently waiting to be integrated into glibc; see
89587         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89588
89589         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89590         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89591         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89592         (struct obstack): temp member is now a union of a pointer and
89593         an integer, instead of an integer.  All integer uses changed.
89594         This does not affect the physical layout of struct obstack,
89595         except on hosts (like the AS/400) where the size or alignment of
89596         void * is greater than that of ptrdiff_t.
89597         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89598         __STDC__)]: Store temporary in pointer member of union, not
89599         integer member.
89600         * lib/obstack.c: Include <stddef.h>, for offsetof.
89601         (struct fooalign): Remove; it doesn't need a name.
89602         (union fooround): Change double to long double, and add void *.
89603         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89604         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89605         not a macro.  Hence the values are always int; so remove all
89606         casts-to-int in uses.
89607
89608 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89609
89610         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89611         we can get this patch merged into glibc.
89612
89613 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89614             Paul Eggert  <eggert@cs.ucla.edu>
89615
89616         * m4/argp: Depend on alloca.
89617
89618 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89619             Paul Eggert  <eggert@cs.ucla.edu>
89620
89621         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89622         freecoding.
89623
89624 2004-05-17  Bruno Haible  <bruno@clisp.org>
89625
89626         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89627         precision that consists of a '.' followed by an empty digit string.
89628         Patch by Tor Lillqvist <tml@iki.fi>.
89629
89630 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89631
89632         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89633         for backward compatibility with older code.  We need our own
89634         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89635         it under some other name, and our alloca.h will define it.
89636
89637 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89638             Derek Price  <derek@ximbiot.com>
89639
89640         * lib/alloca.c: Include <alloca.h>, to get our interface.
89641         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89642         include <alloca.h> first.  Use C89 prototype for alloca; this
89643         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89644         Use #elif for simplicity, since we can assume C89 now.
89645         Don't try to source the system alloca.h since it will not be found
89646         and to prevent recursively including its replacement.
89647         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89648         * lib/regex.c: Likewise.
89649
89650 2004-05-16  Derek Price  <derek@ximbiot.com>
89651             Paul Eggert  <eggert@cs.ucla.edu>
89652
89653         getline cleanup.  This changes the getndelim2 API: both order of
89654         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89655         no delimiter).
89656
89657         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89658         interface does that.
89659         (getline): Always use getdelim, so that we don't have two
89660         copies of this code.
89661         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89662         if available.
89663         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89664         (GETNDELIM2_MAXIMUM): New macro.
89665         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89666         instead of the old practice of delim2==0.  All callers changed.
89667         Return -1 on overflow, instead of returning junk.
89668         Do not set *linesize unless allocation succeeds.
89669         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89670         that we include sys/types.h.
89671         * lib/getnline.h: Likewise.
89672         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89673         (getndelim2): Reorder arguments.
89674         * lib/getnline.c (getnline, getndelim):
89675         Don't discard the NMAX argument.
89676         (getnline): Invoke getndelim, to avoid code duplication.
89677         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89678         of (size_t) -1 by callers of the getnline family.
89679
89680 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89681
89682         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89683         Check for gettimeofday.
89684         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89685         Check for settimeofday, stime.
89686
89687 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89688
89689         * lib/nanosleep.c (suspended): Change its type from int to
89690         sig_atomic_t volatile.
89691         (first_call): Make it private to rpl_nanosleep, and have it
89692         be zero initially as that's a bit faster.
89693         (my_usleep): Round up fractional times instead of truncating them,
89694         as this is the usual meaning for 'sleep'.
89695
89696         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89697         doesn't work.
89698         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89699         (ENOSYS): Define if not defined.
89700         (settime): Fall back on stime if it exists and settimeofday fails.
89701         But don't bother with fallbacks if a method fails with errno == EPERM.
89702
89703 2004-05-11  Jim Meyering  <jim@meyering.net>
89704
89705         Prior to this change, the save_cwd caller required read access to the
89706         current directory on most systems (ones with the fchdir function).
89707
89708         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89709         fails, try write-only, and finally, resort to using xgetcwd.
89710
89711 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89712
89713         * lib/obstack.c, obstack.h: Import changes from libc.
89714
89715 2004-04-28  Bruno Haible  <bruno@clisp.org>
89716
89717         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89718         also implicitly appends .exe to executables.
89719         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89720         accepts Windows pathnames.
89721         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89722         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89723         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89724         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89725         Reported by Derek Robert Price <derek@ximbiot.com>.
89726
89727 2004-04-21  Karl Berry  <karl@gnu.org>
89728
89729         * config/srclist.txt (localcharset.c): break sync.
89730
89731 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89732
89733         * m4/host-os.m4: Add a copyright notice.
89734
89735 2004-04-20  Jim Meyering  <jim@meyering.net>
89736
89737         Change UTILS_ to gl_ in AC_DEFINE'd names.
89738         Change utils_- and jm_-prefixed variables, too.
89739         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89740         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89741         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89742
89743         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89744         Don't emit trailing blanks.
89745         Also rename jm_-prefixed variables to have gl_ prefix.
89746
89747         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89748         Also rename jm_-prefixed variables to have gl_ prefix.
89749
89750         * m4/jm-macros.m4: Reflect the renamings.
89751         * m4/prereq.m4: Likewise.
89752
89753 2004-04-20  Jim Meyering  <jim@meyering.net>
89754
89755         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89756         memory.
89757
89758 2004-04-20  Jim Meyering  <jim@meyering.net>
89759             Bruno Haible  <bruno@clisp.org>
89760
89761         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89762         memory when realloc fails.
89763
89764 2004-04-19  Jim Meyering  <jim@meyering.net>
89765
89766         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89767         now that readutmp.c may call `free (0)'.
89768
89769 2004-04-19  Bruno Haible  <bruno@clisp.org>
89770
89771         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89772         * m4/inttypes_h.m4: Likewise.
89773         * m4/stdint_h.m4: Likewise.
89774         * m4/intmax_t.m4: Likewise.
89775         * m4/uintmax_t.m4: Likewise.
89776
89777 2004-04-18  Jim Meyering  <jim@meyering.net>
89778
89779         * m4/prereq.m4: Don't forbid jm_ prefix.
89780
89781         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89782         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89783         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89784         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89785         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89786         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89787         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89788         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89789         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89790         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89791         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89792         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89793         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89794         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89795         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89796         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89797         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89798         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89799         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89800
89801 2004-04-18  Jim Meyering  <jim@meyering.net>
89802
89803         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89804         failure, don't leak memory and do call END_UTMP_ENT.
89805
89806 2004-04-16  Jim Meyering  <jim@meyering.net>
89807
89808         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89809         coreutils' stat program.
89810         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89811
89812 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89813
89814         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89815         C89.
89816         (CHAR_BIT): Remove, since we assume C89.
89817         Include <stdint.h> if available, as per current Autoconf CVS advice.
89818
89819 2004-03-31  Jim Meyering  <jim@meyering.net>
89820
89821         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89822         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89823         * m4/xalloc.m4: Likewise.
89824
89825 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89826
89827         Merge from coreutils.
89828
89829         * m4/inttostr.m4: New file.
89830         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89831         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89832         Require gl_CLOCK_TIME.
89833         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89834
89835 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89836
89837         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89838         not bool, to be more consistent with Unix conventions.
89839         Suggested by Bruno Haible.
89840
89841         Merge from coreutils.
89842
89843         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89844         * lib/umaxtostr.c: New files.
89845
89846         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89847         the usual <time.h> dance.
89848         (get_date): Change signature to support fractional time stamps.
89849         All callers changed.
89850         * lib/getdate.y: Include "getdate.h" first, as we can now
89851         assume C89 and don't need to worry about 'const'.
89852         Similarly, include "unlocked-io.h" near start, not in middle.
89853         Include <limits.h>.
89854         (textint.value): Use long int rather than int.
89855         (textint.digits): Use size_t rather than int.
89856         (BILLION, LOG10_BILLION): New constants.
89857         (parser_control): New member rel_ns.  Members day_ordinal,
89858         time_zone, month, day, hour, minutes, rel_year, rel_month,
89859         rel_day, rel_hour, rel_minutes, rel_seconds
89860         are now long int, not int.  Member seconds is now struct timespec,
89861         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89862         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89863         not int.
89864         (%union.intval): Now long int, not int.
89865         New member timespec.
89866         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89867         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89868         (spec): Now is a timespec or an item list.
89869         (timespec, items): New nonterminals.
89870         (time, rel, relunit, number, get_date):
89871         Add support for fractional seconds.
89872         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89873         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89874         (to_hour): First arg is now long int, not int.
89875         (to_year): Returns long int, not int.
89876         Don't treat year -70 like 70.
89877         (tm_diff): Returns long int, not int.
89878         (lookup_word): Use bool instead of int when appropriate.
89879         (yylex): Use size_t for count, not int.
89880         Detect overflow when parsing large integer constants.
89881         Add support for fractions.
89882         (get_date): Make pointers 'const' if possible.
89883         Use more-portable code to detect integer overflow.
89884         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89885         Don't use ctime; it's not reliable if the year has >4 digits.
89886
89887         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89888         This is for compatibility with BSD.
89889
89890         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89891         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89892         From coreutils' system.h.
89893
89894         * lib/userspec.c: Don't include "posixver.h".
89895         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89896         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89897         compatible extension.  Simplify code by removing a boolean int
89898         that was always nonzero if a string was nonnull.
89899
89900 2004-03-30  Jim Meyering  <jim@meyering.net>
89901
89902         Merge from coreutils.
89903
89904         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89905         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89906         on some systems one must include <grp.h> before it.
89907         Reported by Christian Krackowizer.
89908
89909 2004-03-30  Jim Meyering  <jim@meyering.net>
89910
89911         Merge from coreutils.
89912
89913         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89914
89915         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89916         an empty input stream.
89917
89918         * lib/readtokens.c: Include <stdbool.h>.
89919         (readtoken): Use `size_t' rather than int/long.
89920         All callers adjusted.
89921         Use `bool' rather than `int' where appropriate.
89922         Use memset rather than an explicit loop.
89923         Use x2nrealloc rather than xrealloc.
89924         Allow the use of `\0' as a delimiter.
89925         (readtokens): Likewise.
89926         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89927
89928 2004-03-30  Jim Meyering  <jim@meyering.net>
89929
89930         * m4/realloc.m4: Remove file, since now it does no more than
89931         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89932         the `configure.ac' section of module/realloc.
89933         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89934
89935 2004-03-30  Bruno Haible  <bruno@clisp.org>
89936
89937         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89938         nonnull.
89939
89940 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89941
89942         Merge changes to getloadavg.c from coreutils and Emacs.
89943
89944         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89945         Define to an expression, not to the empty string.
89946         Include cloexec.h and xalloc.h.
89947         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89948         Use set_cloexec_flag rather than rolling our own.
89949         * lib/cloexec.c, lib/cloexec.h: New files.
89950
89951 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89952
89953         * m4/cloexec.m4: New file.
89954
89955 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89956
89957         * lib/getopt.h: Sync with libc CVS.
89958
89959 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89960             Bruno Haible  <bruno@clisp.org>
89961
89962         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89963         mbswidth.
89964
89965 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89966             Bruno Haible  <bruno@clisp.org>
89967
89968         * lib/mbswidth.h: Include <wchar.h> only if
89969         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89970         <wchar.h>.
89971         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89972
89973 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89974
89975         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89976         Sync with libc CVS.
89977         * lib/getopt_int.h: New file, also synced from libc.
89978
89979 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89980
89981         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89982         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89983         Bring back getopt.c, getopt.h, getopt1.c.
89984
89985 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89986
89987         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89988         All uses changed.  Check for sa_sigaction member; this fixes
89989         a bug first reported by Jason Andrade in
89990         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89991
89992 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89993
89994         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89995         '#if' expressions.  Unlike the code it replaces, it does not
89996         depend on (defined _SC_PAGESIZE).  However, it does depend on
89997         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89998         first reported by Jason Andrade in
89999         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90000
90001 2004-02-25  Simon Josefsson  <jas@extundo.com>
90002
90003         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90004
90005 2004-02-25  Simon Josefsson  <jas@extundo.com>
90006
90007         * lib/strdup.h: New file.
90008         * lib/strdup.c: Include it.
90009         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90010         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90011
90012 2004-02-23  Karl Berry  <karl@gnu.org>
90013
90014         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90015         (from fencepost.gnu.org:/gd/gnuorg).
90016
90017 2004-02-23  Karl Berry  <karl@gnu.org>
90018
90019         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90020         * config/srclist.txt: add maintain/standards documents.
90021
90022 2004-02-18  Bruno Haible  <bruno@clisp.org>
90023
90024         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90025         Reported by Derek Robert Price <derek@ximbiot.com>.
90026
90027 2004-02-16  Karl Berry  <karl@gnu.org>
90028
90029         * config/mkinstalldirs, install-sh: update from automake.
90030
90031 2004-02-06  Karl Berry  <karl@gnu.org>
90032
90033         * m4/po.m4: update from gettext 0.14.1.
90034
90035 2004-02-06  Karl Berry  <karl@gnu.org>
90036
90037         * lib/config.charset: update from gettext 0.14.1.
90038
90039 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90040
90041         Add comments and code, prompted by suggestions from Bruno Haible
90042         for sh-quote.
90043         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90044         describing the enum quoting_style values.
90045         * lib/quotearg.c (quotearg_alloc): New function.
90046         (quotearg_buffer_restyled): Treat lone { and } as special.
90047         Treat = as special.  Work around bug with older shells
90048         that "see" a '\' that is really the 2nd byte of a multibyte char.
90049         Quote empty string with shell_quoting_style.
90050
90051 2004-02-03  Bruno Haible  <bruno@clisp.org>
90052
90053         * m4/pipe.m4: New file, from GNU gettext.
90054
90055 2004-02-03  Bruno Haible  <bruno@clisp.org>
90056
90057         * lib/pipe.h: New file, from GNU gettext.
90058         * lib/pipe.c: New file, from GNU gettext.
90059
90060 2004-01-27  Bruno Haible  <bruno@clisp.org>
90061
90062         * m4/execute.m4: New file, from GNU gettext.
90063
90064 2004-01-27  Bruno Haible  <bruno@clisp.org>
90065
90066         * lib/execute.h: New file, from GNU gettext.
90067         * lib/execute.c: New file, from GNU gettext.
90068         * lib/w32spawn.h: New file, from GNU gettext.
90069
90070 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90071
90072         Merge from diffutils.
90073
90074         * lib/file-type.c (file_type): Add typed memory objects.
90075         * lib/file-type.h (S_TYPEISTMO): New macro.
90076
90077         * lib/c-stack.h (c_stack_action): Remove argv argument.
90078         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90079         (die): Don't calculate message unless segv_action returns.
90080         (get_stack_location, min_address_from_argv, max_address_from_argv,
90081         volatile stack_base, volatile_stack_size): Remove.
90082         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90083         that every segmentation violation is a stack overflow.  (Ouch!)
90084         See Debian bug 136249 (still outstanding) for more info about why
90085         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90086
90087 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90088
90089         Exit-status fix from coreutils.
90090
90091         Use exit_failure consistently in place of EXIT_FAILURE,
90092         so that program exit statuses are consistent on failure.
90093
90094         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90095         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90096         * lib/argmatch.h: Comment fix to match the above.
90097         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90098         Now a macro referring to exit_failure, instead of a separate
90099         variable.  Include "exitfail.h" to get it.
90100         * lib/xstrtol.h: Include "exitfail.h".
90101         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90102
90103         * lib/long-options.c (parse_long_options): Use prototype
90104         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90105         for clarity.
90106
90107 2004-01-21  Jim Meyering  <jim@meyering.net>
90108
90109         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90110         so as not to conflict with a different-sized __mktime_internal
90111         function in GNU libc.
90112         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90113         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90114
90115 2004-01-20  Karl Berry  <karl@gnu.org>
90116
90117         * config/config.guess: update from config.
90118
90119         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90120
90121 2004-01-20  Bruno Haible  <bruno@clisp.org>
90122
90123         Safer stack allocation.
90124         * lib/setenv.c: Include allocsa.h.
90125         (alloca): Remove fallback definition.
90126         (freea): Remove macro.
90127         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90128         instead of freea.
90129
90130 2004-01-20  Bruno Haible  <bruno@clisp.org>
90131
90132         * m4/eealloc.m4: New file, from GNU gettext.
90133
90134 2004-01-20  Bruno Haible  <bruno@clisp.org>
90135
90136         * m4/allocsa.m4: New file, from GNU gettext.
90137
90138 2004-01-20  Bruno Haible  <bruno@clisp.org>
90139
90140         * lib/xallocsa.h: New file, from GNU gettext.
90141         * lib/xallocsa.c: New file, from GNU gettext.
90142
90143 2004-01-20  Bruno Haible  <bruno@clisp.org>
90144
90145         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90146
90147 2004-01-20  Bruno Haible  <bruno@clisp.org>
90148
90149         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90150         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90151         specially.
90152
90153 2004-01-20  Bruno Haible  <bruno@clisp.org>
90154
90155         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90156         patch.
90157
90158 2004-01-20  Bruno Haible  <bruno@clisp.org>
90159
90160         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90161
90162 2004-01-20  Bruno Haible  <bruno@clisp.org>
90163
90164         * lib/eealloc.h: New file.
90165
90166 2004-01-20  Bruno Haible  <bruno@clisp.org>
90167
90168         * lib/binary-io.h: Avoid warnings on Cygwin.
90169
90170 2004-01-20  Bruno Haible  <bruno@clisp.org>
90171
90172         * lib/allocsa.h: New file, from GNU gettext.
90173         * lib/allocsa.c: New file, from GNU gettext.
90174
90175 2004-01-18  Karl Berry  <karl@gnu.org>
90176
90177         * doc/gpl.texi, doc/lgpl.texi: new files.
90178
90179 2004-01-18  Karl Berry  <karl@gnu.org>
90180
90181         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90182         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90183
90184 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90185
90186         Merge from coreutils.
90187
90188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90189         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90190         (gl_DEFAULT_POSIX2_VERSION): Move
90191         the documentation from 'configure' into 'config.hin',
90192         so that 'configure --help' isn't burdened by it and
90193         we don't have to worry about its formatting there.
90194         Reword the documentation so that it's more succinct
90195         and can be run together into a single paragraph.
90196         * m4/same.m4 (gl_SAME): Check for pathconf.
90197
90198 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90199
90200         Merge from coreutils.
90201
90202         * lib/posixver.c: Include posixver.h.
90203
90204         * lib/same.c: Include <stdbool.h>, <limits.h>.
90205         (_POSIX_NAME_MAX): Define if not defined.
90206         (MIN): New macro.
90207         (same_name): If file names are silently truncated, report
90208         that the file names are the same if they are the same after
90209         the silent truncation.
90210
90211         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90212         conversion function.
90213         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90214         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90215         longer needed.
90216
90217 2004-01-15  Jim Meyering  <jim@meyering.net>
90218
90219         Merge from coreutils.
90220
90221         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90222         if no library is required.
90223         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90224         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90225         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90226         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90227         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90228         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90229         value, $ac_cv_search_crypt, if it's "none required".
90230         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90231         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90232         not gl_FUNC_GETLOADAVG.
90233         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90234         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90235
90236 2004-01-15  Jim Meyering  <jim@meyering.net>
90237
90238         Merge from coreutils.
90239
90240         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90241         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90242         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90243
90244         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90245         optional configure-time default.
90246
90247         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90248
90249         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90250
90251 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90252
90253         Merge from coreutils.
90254
90255         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90256         value, $ac_cv_search_nanosleep, if it's "none required".
90257
90258 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90259
90260         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90261         with like-named macro in fnmatch.c.
90262         (EXT): Use an internal constant instead.
90263
90264         Merge fnmatch patches from glibc.
90265         * lib/fnmatch.c (mbsinit): Remove define.
90266         Add libc_hidden_ver (__fnmatch, fnmatch).
90267         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90268         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90269
90270 2004-01-14  Karl Berry  <karl@gnu.org>
90271
90272         * config/install-sh: update from automake.
90273
90274 2004-01-13  Karl Berry  <karl@gnu.org>
90275
90276         * config/install-sh: update from automake.
90277
90278 2004-01-09  Karl Berry  <karl@gnu.org>
90279
90280         * config/install-sh: update from automake.
90281
90282 2004-01-05  Karl Berry  <karl@gnu.org>
90283
90284         * config/config.{sub,guess}: update from config.
90285
90286 2003-12-31  Karl Berry  <karl@gnu.org>
90287
90288         * config/depcomp: update from automake.
90289
90290 2003-12-14  Karl Berry  <karl@gnu.org>
90291
90292         * lib/config.charset: update from gettext-runtime.
90293
90294 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90295
90296         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90297         Bug reported by Alfred M. Szmidt.
90298
90299 2003-12-03  Bruno Haible  <bruno@clisp.org>
90300
90301         * m4/gettext.m4: Upgrade from gettext-0.13.
90302         * m4/po.m4: Upgrade from gettext-0.13.
90303         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90304         * m4/intmax.m4: New file, from gettext-0.13.
90305         * m4/printf-posix.m4: New file, from gettext-0.13.
90306
90307 2003-11-29  Karl Berry  <karl@gnu.org>
90308
90309         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90310
90311 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90312             Bruno Haible  <bruno@clisp.org>
90313
90314         * lib/printf-parse.h: Don't include sys/types.h.
90315         (ARG_NONE): New macro.
90316         (char_directive): Change type of *arg_index fields to size_t.
90317         * lib/printf-parse.c: Don't include sys/types.h.
90318         (SSIZE_MAX): Remove macro.
90319         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90320         Remove unnecessary overflow check.
90321         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90322         fields.
90323
90324 2003-11-25  Bruno Haible  <bruno@clisp.org>
90325
90326         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90327
90328 2003-11-25  Bruno Haible  <bruno@clisp.org>
90329
90330         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90331         gt_TYPE_SSIZE_T.
90332
90333 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90334
90335         * modules/alloca: Remove dependency on xalloc.
90336
90337 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90338
90339         * lib/alloca.c: Remove dependency on xalloc module.
90340         (xalloc_die): Remove.
90341         (memory_full) [!defined emacs]: New macro.
90342         [!defined emacs]: Don't include xalloc.h.
90343         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90344         address arithmetic overflows.  Change datatypes a bit to avoid
90345         unnecessary casts.
90346
90347 2003-11-22  Jim Meyering  <jim@meyering.net>
90348
90349         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90350         s/size/size_t/.
90351
90352 2003-11-21  Karl Berry  <karl@gnu.org>
90353
90354         * config/config.{sub,guess}: update from config.
90355
90356 2003-11-18  Karl Berry  <karl@gnu.org>
90357
90358         * config/config.{sub,guess}: update from config.
90359
90360         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90361
90362 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90363
90364         * README: Mention that S+T cannot overflow if S is the size of
90365         an existing object and T is sufficiently small.
90366
90367 2003-11-17  Jim Meyering  <jim@meyering.net>
90368
90369         On systems without utime and without a utimes function capable of
90370         dealing with a NULL struct utimbuf* argument, this utime replacement
90371         could -- in unusual circumstances -- leak a file descriptor.
90372         * lib/utime.c: Include <unistd.h> and <errno.h>.
90373         (utime_null): Be sure to close `fd' and to preserve errno.
90374         Reported by Geoff Collyer via Arnold Robbins.
90375
90376 2003-11-17  Bruno Haible  <bruno@clisp.org>
90377
90378         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90379         (Depends-on): Add xsize.
90380
90381 2003-11-17  Bruno Haible  <bruno@clisp.org>
90382
90383         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90384
90385 2003-11-17  Bruno Haible  <bruno@clisp.org>
90386
90387         * lib/vasnprintf.c (alloca): Remove fallback definition.
90388         (freea): Remove definition.
90389         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90390         Reported by Paul Eggert.
90391
90392 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90393             Bruno Haible  <bruno@clisp.org>
90394
90395         Protect against address arithmetic overflow.
90396         * lib/printf-args.h: Include stddef.h.
90397         (arguments): Change type of field 'count' to size_t.
90398         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90399         'unsigned int' where appropriate.
90400         * lib/printf-parse.h: Include sys/types.h.
90401         (char_directive): Change type of *arg_index fields to ssize_t.
90402         (char_directives): Change type of fields 'count', max_*_length to
90403         size_t.
90404         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90405         (SSIZE_MAX): Define fallback value.
90406         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90407         instead of 'int' where appropriate. Check a_allocated, d_allocated
90408         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90409         * lib/vasnprintf.c: Include xsize.h.
90410         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90411         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90412         overflow. Avoid wraparound when converting a width or precision from
90413         decimal to binary.
90414
90415 2003-11-16  Bruno Haible  <bruno@clisp.org>
90416
90417         Update from GNU gettext.
90418         * lib/printf-parse.c: Generalize to it can be compiled for wide
90419         strings.
90420         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90421         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90422         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90423         SNPRINTF): New macros.
90424         Don't include <alloca.h> if the file is used inside libintl.
90425         (local_wcslen): New function, for Solaris 2.5.1.
90426         (VASNPRINTF): Use it instead of wcslen.
90427
90428 2003-11-16  Bruno Haible  <bruno@clisp.org>
90429
90430         * lib/xsize.h (xmax): New function.
90431         (xsum, xsum3, xsum4): Declare as "pure" functions.
90432
90433 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90434
90435         * modules/xalloc (Files): Undo latest change, since xalloc.h
90436         no longer needs SIZE_MAX or PTRDIFF_MAX.
90437
90438 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90439
90440         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90441         gl_PTRDIFF_MAX.
90442
90443 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90444
90445         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90446         "return", to pacify some unknown compiler.  Problem reported
90447         by Joerg Schilling.
90448
90449 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90450
90451         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90452         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90453         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90454         heuristic is just as accurate as far as we know, and it removes a
90455         dependency on size_max.m4 and ptrdiff_max.m4.
90456
90457 2003-11-11  Bruno Haible  <bruno@clisp.org>
90458
90459         * modules/xsize (Files): Add m4/size_max.m4.
90460         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90461
90462 2003-11-11  Bruno Haible  <bruno@clisp.org>
90463
90464         * m4/size_max.m4: New file.
90465         * m4/ptrdiff_max.m4: New file.
90466         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90467         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90468         (gl_XALLOC): Invoke it.
90469
90470 2003-11-11  Bruno Haible  <bruno@clisp.org>
90471
90472         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90473         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90474         defined.
90475
90476 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90477
90478         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90479         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90480         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90481         From Bruno Haible.
90482         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90483         not (size_t) -1, since it's defined here.
90484
90485 2003-11-09  Karl Berry  <karl@gnu.org>
90486
90487         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90488
90489 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90490
90491         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90492         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90493         Reject sizes of exactly SIZE_MAX bytes.
90494         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90495         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90496
90497 2003-11-05  Bruno Haible  <bruno@clisp.org>
90498
90499         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90500         SIZE_MAX defined in <limits.h> on Solaris.
90501
90502 2003-11-04  Jim Meyering  <jim@meyering.net>
90503
90504         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90505         variable names, rather than @VAR@.
90506         * modules/poll: Likewise.
90507
90508 2003-11-04  Bruno Haible  <bruno@clisp.org>
90509
90510         * modules/xsize: New file.
90511         * modules/linebreak: Depend on xsize.
90512         * MODULES.html.sh (func_all_modules): Add xsize.
90513
90514 2003-11-04  Bruno Haible  <bruno@clisp.org>
90515
90516         * m4/xsize.m4: New file.
90517
90518 2003-11-04  Bruno Haible  <bruno@clisp.org>
90519
90520         * lib/xsize.h: New file.
90521         * lib/linebreak.c: Include xsize.h.
90522         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90523         argument for overflow.
90524         Suggested by Paul Eggert.
90525
90526 2003-11-03  Karl Berry  <karl@gnu.org>
90527
90528         * config/config.{guess,sub}: update from config.
90529
90530 2003-11-03  Jim Meyering  <jim@meyering.net>
90531
90532         * modules/userspec (lib_SOURCES): Add userspec.h.
90533         (Include): Add "userspec.h".
90534         Improve description.
90535
90536 2003-11-03  Jim Meyering  <jim@meyering.net>
90537
90538         * lib/userspec.c: Include "userspec.h".
90539         * lib/userspec.h: New file.
90540
90541 2003-11-03  Bruno Haible  <bruno@clisp.org>
90542
90543         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90544
90545 2003-11-03  Bruno Haible  <bruno@clisp.org>
90546
90547         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90548         available, to avoid (extremely rare) race condition.
90549         Suggested by Paul Eggert.
90550
90551 2003-11-02  Karl Berry  <karl@gnu.org>
90552
90553         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90554
90555 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90556
90557         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90558         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90559         (read_filesystem_list): Set and use me_type_malloced.
90560         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90561         whatever the type happens to be), for brevity and consistency.
90562         Check for size calculation overflow on Alphas running OSF/1.
90563
90564 2003-10-31  Jim Meyering  <jim@meyering.net>
90565
90566         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90567
90568         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90569
90570 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90571             Bruno Haible  <bruno@clisp.org>
90572
90573         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90574         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90575
90576 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90577
90578         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90579         netbsd*-gnu*.  Suggested by Robert Millan.
90580
90581 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90582
90583         * modules/group-member: Depend on stdbool.
90584
90585 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90586
90587         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90588
90589 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90590
90591         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90592         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90593         after the 'gnu' in these cases.  This fixes some bugs in the
90594         previous change, and is based on suggestions by Robert Millan.
90595
90596 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90597
90598         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90599         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90600         no longer needed.
90601         * lib/quotearg.c (quotearg_n_options): Use it.
90602         * lib/group-member.c: Include <stdbool.h>.
90603         (free_group_info): Arg is now const *; don't free arg.
90604         (get_group_info): Now returns bool and accepts struct group_info *,
90605         rather than returning a malloc'ed struct group_info *.
90606         All uses changed.  Check for overflow in internal size calculation.
90607
90608         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90609         rather than xmalloc/xrealloc.
90610         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90611         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90612         conformance bug: the old code used a pointer after freeing the
90613         storage that it addressed.
90614         * lib/hash.c (hash_initialize): Simplify the code by using
90615         xalloc_oversized rather than doing it by hand.
90616         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90617         the buffer preserved.  Use free and xmalloc instead.
90618         * lib/quotearg.c (quotearg_n_options): Likewise.
90619         Use a simpler test for size overflow.  Don't use xalloc_oversized
90620         because unsigned int might be wider than size_t (!); this suggests
90621         that we should switch from unsigned int to size_t for slot numbers.
90622
90623 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90624
90625         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90626         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90627         NetBSD kernels.  Requested by Richard Stallman.
90628
90629 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90630
90631         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90632         to allocate the returned structure.  Do not allocate a subarray,
90633         as x2nrealloc will do that.
90634         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90635         instead of xnrealloc.
90636         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90637
90638 2003-10-27  Bruno Haible  <bruno@clisp.org>
90639
90640         * lib/stdbool_.h: Better support for BeOS.
90641
90642 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90643
90644         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90645         now uses inline.
90646
90647 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90648
90649         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90650         callers that want to do their own size-overflow checking.  Include
90651         <stdbool.h>, since xalloc_oversized returns bool.
90652         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90653         to use xalloc_oversized.
90654
90655         Add two functions x2realloc, x2nrealloc, for programs that grow
90656         arrays dynamically by doubling their sizes.
90657         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90658         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90659         New functions.
90660
90661         Port to C99 semantics for 'inline' of external functions.
90662         Bug reported by Bruno Haible.
90663         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90664         with the old contents of xnmalloc.
90665         (xnmalloc, xmalloc): Use it.
90666         (xnrealloc_inline): New static inline function,
90667         with the old contents of xnrealloc.
90668         (xnrealloc, xrealloc): Use it.
90669
90670         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90671         that.
90672
90673 2003-10-26  Karl Berry  <karl@gnu.org>
90674
90675         * config/srclist.txt (COPYING.DOC): no longer available from
90676         /gd/gnuorg; don't know where the ultimate source is.
90677
90678 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90679
90680         Fix several address-calculation bugs in the hash modules,
90681         plus some minor code cleanup.
90682
90683         * lib/hash.h: Include <stdbool.h>, for bool.
90684         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90685         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90686         hash_get_n_entries, hash_get_max_bucket_length,
90687         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90688         hash_rehash): Use size_t rather than unsigned.
90689         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90690         hash_get_n_buckets_used, hash_get_n_entries,
90691         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90692         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90693         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90694         Likewise.
90695         (SIZE_MAX): Define if not defined.
90696         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90697         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90698         hash_print):
90699         Use const * when possible.
90700         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90701         (check_tuning): Fix bug: if tuning parameters were very close to
90702         0 or 1, rounding errors could have caused subscript violations.
90703         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90704         (hash_initialize): Add 'fail:' label
90705         to free table and return NULL, and use it to simplify code.
90706         Use calloc rather than clearing the storage ourself.
90707         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90708         buffer size calculations.
90709         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90710         Include <stddef.h>, for size_t.
90711         * lib/hash-pjw.c (hash_pjw): Likewise.
90712         Switch to method described by Bruno Haible.
90713         Include <limits.h>, for CHAR_BIT.
90714         (SIZE_BITS): New macro.
90715
90716 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90717
90718         * m4/getline.m4 (AM_FUNC_GETLINE):
90719         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90720         hosts.  Problem reported by Derek Robert Price in
90721         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90722         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90723         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90724
90725 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90726
90727         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90728         ceiling the allocation at NMAX bytes rather than silently
90729         discarding input bytes before NMAX is reached.  This makes
90730         a difference only if NMAX exceeds SIZE_MAX / 2.
90731
90732         * lib/obstack.c: Merge from glibc.
90733         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90734         Add libc_hidden_def (_obstack_newchunk).
90735         (_obstack_free) [! defined _LIBC]: Remove.
90736         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90737         a clone of the function body.
90738         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90739         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90740
90741         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90742         glibc.
90743         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90744         arg to memcpy.
90745
90746         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90747         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90748         Don't use lvalue casts, as GCC plans to remove support for them
90749         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90750         was also present in the non-GCC version, indicating that this
90751         code had always been buggy and had never been widely used.
90752         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90753         Use the fast variant of each macro, rather than copying the
90754         definiens of the fast variant; that way, we'll be more likely to
90755         catch future bugs in the fast variants.
90756
90757 2003-10-20  Bruno Haible  <bruno@clisp.org>
90758
90759         * modules/wait-process: New file.
90760         * MODULES.html.sh (func_all_modules): Add wait-process.
90761
90762 2003-10-20  Bruno Haible  <bruno@clisp.org>
90763
90764         * m4/wait-process.m4: New file.
90765
90766 2003-10-20  Bruno Haible  <bruno@clisp.org>
90767
90768         * lib/wait-process.h: New file, from GNU gettext.
90769         * lib/wait-process.c: New file, from GNU gettext.
90770
90771 2003-10-19  Jim Meyering  <jim@meyering.net>
90772
90773         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90774         HPUX 10.20.
90775
90776 2003-10-18  Karl Berry  <karl@gnu.org>
90777
90778         * config/config.guess: update from config.
90779
90780 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90781
90782         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90783         (getgroups): First arg is int, not size_t.
90784         Don't let 'free' mangle errno.
90785
90786 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90787
90788         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90789
90790 2003-10-16  Karl Berry  <karl@gnu.org>
90791
90792         * config/config.{guess,sub}: update from config.
90793
90794 2003-10-16  Jim Meyering  <jim@meyering.net>
90795
90796         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90797         memcpy.
90798
90799 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90800
90801         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90802         (SIZE_MAX): Remove.
90803         (new_exclude, add_exclude_file): Initial size no longer needs to
90804         be a power of 2.
90805         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90806         our own address arithmetic overflow checking.
90807
90808         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90809         (fnmatch): Do not alloca more than 2000 wide characters;
90810         instead, use malloc for large buffers.
90811         Check for address arithmetic overflow, and return -1
90812         with errno set to ENOMEM in that case.
90813         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90814         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90815         instead, return -1.  Check for address arithmetic overflow.
90816
90817 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90818
90819         Handle invalid suffixes and overflow independently, so that
90820         callers can treat them independently as needed.  Fix some bugs in
90821         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90822         suffix for a human-readable blocksize.  The major caller-visible
90823         change is the addition of a new
90824         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90825         that both overflow and suffix chars were found.
90826
90827         * lib/human.c (humblock): Don't check separately for invalid suffix
90828         char; that is xstrtoumax's job (now that its bug is fixed).
90829         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90830         INTMAX_MAX]: New macros.
90831         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90832         TYPE_MAXIMUM): New macros.
90833         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90834         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90835         if overflow occurs, as it's what __strtol does and it's more useful
90836         in practice.
90837         (__xstrtol): If __strtol reports some error other than ERANGE,
90838         reflect it to the caller as LONGINT_INVALID.  If it reports
90839         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90840         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90841         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90842         value.
90843         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90844         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90845         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90846         [defined UINTMAX_MAX]: New macros.
90847
90848 2003-10-14  Bruno Haible  <bruno@clisp.org>
90849
90850         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90851
90852 2003-10-14  Bruno Haible  <bruno@clisp.org>
90853
90854         * m4/sig_atomic_t: New file, from GNU gettext.
90855         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90856
90857 2003-10-14  Bruno Haible  <bruno@clisp.org>
90858
90859         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90860         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90861         Also use volatile where needed.
90862
90863 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90864
90865         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90866         Change maintainer from Bruno Haible to 'all'.
90867
90868 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90869
90870         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90871
90872 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90873
90874         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90875         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90876         and define in terms of the other primitives.
90877         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90878         (SIZE_MAX): Define if not already defined.
90879         (array_size_overflow): New function.
90880         (xalloc_die): Abort instead of exiting if 'error' returns.
90881         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90882         (xmalloc, xrealloc): Use them.
90883         (xcalloc): Check for address arithmetic overflow.
90884         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90885         a bit faster than strcpy.
90886
90887 2003-10-10  Simon Josefsson  <jas@extundo.com>
90888
90889         * modules/argp (Depends-on): Add restrict and strcase.
90890
90891 2003-10-10  Simon Josefsson  <jas@extundo.com>
90892
90893         * m4/argp.m4: Add AC_C_INLINE.
90894
90895 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90896
90897         Merge getpass from libc, plus a few fixes.
90898
90899         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90900         Include <stdbool.h>.
90901         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90902         __fsetlocking to empty.
90903         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90904         do include <bits/libc-lock.h>.
90905         Do not include <fcntl.h>; not needed.
90906         [_LIBC]: Include <wchar.h>.
90907         (NOTCANCEL_MODE): New macro.
90908         (flockfile, funlockfile) [_LIBC]: New macros.
90909         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90910         [!_LIBC]: New macros.
90911         (call_fclose): New function.
90912         (getpass): Use it.  Save tty stream separately; this simplifies the
90913         code and makes it more reliable if stdin happens to equal stdout.
90914         Invoke __fsetlocking on tty.
90915         Handle thread cancellation if needed.
90916         Namespace cleanup (use __tcgetattr, __getline).
90917         Use bool for Booleans.
90918         [USE_IN_LIBIO]: Handle wide streams.
90919         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90920         stream might go where.
90921
90922         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90923         doesn't have to include <stdio.h> before us.
90924         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90925         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90926         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90927         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90928         if not declared, so that we can use getpass.c code from libc without
90929         rewriting it.
90930         (flockfile, ftrylockfile, funlockfile): New macros.
90931
90932 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90933
90934         * modules/getpass: Depend on stdbool.
90935
90936 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90937
90938         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90939
90940 2003-10-07  Karl Berry  <karl@gnu.org>
90941
90942         * config/config.{guess,sub}: update from config.
90943
90944 2003-10-06  Jim Meyering  <jim@meyering.net>
90945             Bruno Haible  <bruno@clisp.org>
90946
90947         This lets translators provide better translations for the
90948         "Written by ..." part of --version output.
90949         * lib/version-etc.h: Include stdarg.h.
90950         (version_etc_copyright): Declare as readonly.
90951         (version_etc): Make this function variadic with a NULL-terminated list
90952         of author name strings.
90953         (version_etc_va): New declaration.
90954         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90955         (version_etc_copyright): Declare as readonly.
90956         (version_etc_va): New function. Provide a different translatable string
90957         for each possible number of authors < 10. Abbreviate when there are 10
90958         authors or more.
90959         (version_etc): Make this function variadic. Call version_etc_va.
90960         Suggestion from Gary V. Vaughan.
90961
90962         * lib/long-options.h (parse_long_options): Change prototype: the
90963         authors string is moved to the end and becomes variadic.
90964         * lib/long-options.c: Include stdarg.h.
90965         (parse_long_options): Make this function variadic, too.
90966         Call version_etc_va, not version_etc.
90967
90968 2003-10-06  Bruno Haible  <bruno@clisp.org>
90969
90970         * modules/version-etc-2: Remove file.
90971         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90972
90973 2003-10-06  Bruno Haible  <bruno@clisp.org>
90974
90975         * modules/fatal-signal: New file.
90976         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90977
90978 2003-10-06  Bruno Haible  <bruno@clisp.org>
90979
90980         * m4/fatal-signal.m4: New file.
90981         * m4/signalblocking.m4: New file, from GNU gettext.
90982
90983 2003-10-06  Bruno Haible  <bruno@clisp.org>
90984
90985         * lib/version-etc-2.h: Remove file.
90986         * lib/version-etc-2.c: Remove file.
90987
90988 2003-10-06  Bruno Haible  <bruno@clisp.org>
90989
90990         * lib/fatal-signal.h: New file, from GNU gettext.
90991         * lib/fatal-signal.c: New file, from GNU gettext.
90992
90993 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90994
90995         * README: Rework advice for preventing empty .o files.
90996         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90997         not <sys/types.h>.
90998
90999 2003-10-04  Karl Berry  <karl@gnu.org>
91000
91001         * lib/argp*: update from libc.
91002
91003 2003-10-04  Karl Berry  <karl@gnu.org>
91004
91005         * config/config.{guess,sub}: update from config.
91006
91007 2003-10-02  Bruno Haible  <bruno@clisp.org>
91008
91009         * modules/lchown (Include): Add lchown.h.
91010         * modules/time_r (Include): Use "..." syntax.
91011         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91012
91013 2003-10-01  Simon Josefsson  <jas@extundo.com>
91014
91015         * MODULES.html.sh (func_all_modules): Move gethostname from section
91016         'based on' to section 'lacking' POSIX:2001.
91017
91018 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91019
91020         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91021         to output mode on the same stream.
91022
91023 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91024
91025         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91026         Fix arg typo in previous patch.
91027
91028 2003-09-28  Jim Meyering  <jim@meyering.net>
91029
91030         * lib/error.c: Correct cpp indentation.
91031
91032 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91033
91034         * modules/free: New file.
91035
91036 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91037
91038         * m4/free.m4: New file.
91039
91040 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91041
91042         * lib/minmax.h (MIN, MAX)
91043         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91044         Omit the special code that used __typeof__, since we worry that
91045         it could be more trouble than it's worth.  See:
91046         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91047         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91048
91049         * lib/free.c: New file.
91050
91051 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91052
91053         Trivial fixes to Makefile.am parts of module listings.
91054         * modules/strstr: Append strstr.h to lib_SOURCES.
91055         * modules/strcase: Likewise, for strcase.h.
91056
91057 2003-09-27  Karl Berry  <karl@gnu.org>
91058
91059         * config/mkinstalldirs: update from automake.
91060
91061 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91062
91063         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91064         (error_tail): Do not loop, reallocating temporary buffer, since
91065         the output cannot contain more wide characters than the input
91066         contains bytes, the size must be big enough already.  This avoids
91067         one potential size overflow calculation.  Check for size overflow
91068         when calculating temporary buffer size.  Free temporary buffer
91069         when done, if it was allocated with malloc; this plugs a memory
91070         leak.  Remove casts from void * to pointers, that are no longer
91071         needed now that we're assuming C89 or better.
91072
91073         Merge error changes from glibc.
91074
91075         * lib/error.c, error.h: Update copyright notice header to match glibc.
91076         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91077         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91078         Disable cancellation while printing error.
91079         * lib/error.h: Prepend __ to parameter names.
91080
91081 2003-09-26  Jim Meyering  <jim@meyering.net>
91082
91083         * lib/error.c (error_tail): Move some declarations
91084         into inner scope where the local variables are used.
91085
91086 2003-09-26  Bruno Haible  <bruno@clisp.org>
91087
91088         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91089         stpncpy().
91090         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91091
91092 2003-09-26  Bruno Haible  <bruno@clisp.org>
91093
91094         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91095         (stpncpy): Define as alias for gnu_stpncpy.
91096         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91097
91098 2003-09-25  Simon Josefsson  <jas@extundo.com>
91099
91100         * lib/xgetdomainname.h: New file.
91101         * lib/xgetdomainname.c: New file.
91102
91103 2003-09-25  Simon Josefsson  <jas@extundo.com>
91104             Bruno Haible  <bruno@clisp.org>
91105
91106         * modules/getdomainname: New file.
91107         * modules/xgetdomainname: New file.
91108         * MODULES.html.sh (func_all_modules): Add getdomainname,
91109         xgetdomainname.
91110
91111 2003-09-25  Simon Josefsson  <jas@extundo.com>
91112             Bruno Haible  <bruno@clisp.org>
91113
91114         * m4/getdomainname.m4: New file.
91115
91116 2003-09-25  Simon Josefsson  <jas@extundo.com>
91117             Bruno Haible  <bruno@clisp.org>
91118
91119         * lib/getdomainname.h: New file.
91120         * lib/getdomainname.c: New file.
91121
91122 2003-09-25  Karl Berry  <karl@gnu.org>
91123
91124         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91125
91126 2003-09-25  Karl Berry  <karl@gnu.org>
91127
91128         * config/install-sh: update from automake.
91129
91130 2003-09-25  Bruno Haible  <bruno@clisp.org>
91131
91132         * modules/version-etc-2: New file, from modules/version-etc with
91133         modifications.
91134         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91135
91136 2003-09-25  Bruno Haible  <bruno@clisp.org>
91137
91138         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91139         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91140
91141 2003-09-24  Simon Josefsson  <jas@extundo.com>
91142
91143         * modules/xgethostname: Add xgethostname.h.
91144
91145 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91146
91147         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91148         the buffer associated with the argument.  Bug reported by
91149         Simon Josefsson.
91150
91151 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91152
91153         * README: Document assumptions that 'int' is at least 32 bits
91154         wide, that integer arithmetic is 2's complement without overflow,
91155         that there are no holes in integer values, that adding sizes of
91156         two nonoverlapping objects can't overflow, and that all-bits-zero
91157         yields scalar zero.  Fix spelling and capitalization typos.
91158
91159 2003-09-19  Karl Berry  <karl@gnu.org>
91160
91161         * lib/argp.h: update from libc.
91162
91163 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91164
91165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91166         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91167         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91168
91169 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91170
91171         * gnulib-tool: Use "test -h", not "test -L", for portability
91172         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91173         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91174         (sed_extract_prog): Issue s commands one-by-one, rather than
91175         using \| in one s command.
91176
91177 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91178
91179         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91180         input error, instead of returning NULL the next time we are called
91181         (and therefore losing track of errno).
91182
91183 2003-09-16  Bruno Haible  <bruno@clisp.org>
91184
91185         * gnulib-tool (func_create_testdir): Warn about duplicated
91186         dependencies.
91187
91188 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91189
91190         * modules/argmatch, modules/fatal, modules/obstack,
91191         modules/xalloc, modules/xgethostname: Sort dependencies by
91192         importance, not alphabetically.
91193
91194 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91195
91196         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91197         fails, so that the caller gets the proper errno.
91198
91199         * lib/readutmp.c (read_utmp): Likewise.
91200         Check for fstat error.  Close stream and free storage
91201         when failing.
91202
91203 2003-09-14  Karl Berry  <karl@gnu.org>
91204
91205         * config/srclist.txt (strdup.c): disable for c89 changes.
91206
91207 2003-09-14  Jim Meyering  <jim@meyering.net>
91208
91209         * lib/getloadavg.c: Correct cpp indentation.
91210         * lib/strdup.c: Likewise.
91211         * lib/vasnprintf.c: Likewise.
91212
91213 2003-09-14  Bruno Haible  <bruno@clisp.org>
91214
91215         * modules/fwriteerror: New file.
91216         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91217
91218 2003-09-14  Bruno Haible  <bruno@clisp.org>
91219
91220         * lib/fwriteerror.h: New file.
91221         * lib/fwriteerror.c: New file.
91222
91223 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91224
91225         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91226         modules/xgethostname, modules/xalloc: Depend on exit.
91227
91228 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91229
91230         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91231
91232         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91233         and AC_MINIX, too, so that their extensions are available.
91234
91235         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91236         This macro has been superseded by gl_BACKUPFILE.
91237
91238         More patches to assume C89 or better.
91239
91240         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91241
91242         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91243         unconditionally.
91244         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91245         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91246         Include <string.h>, <stdlib.h> unconditionally.
91247         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91248         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91249         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91250         headers or for string.h.
91251         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91252         or strtoul.
91253
91254         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91255         headers.
91256         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91257         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91258         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91259         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91260         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91261         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91262         memcpy, memset.
91263         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91264         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91265         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91266         strtol.
91267         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91268         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91269         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91270         strtoul.
91271
91272 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91273
91274         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91275         * lib/obstack.c [!defined _LIBC]: Likewise.
91276         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91277         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91278         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91279
91280         More changes to assume C89 or better.
91281
91282         * lib/error.c (error_tail): Assume vprintf.
91283
91284         * lib/argmatch.c (getenv): Remove decl.
91285         * lib/progreloc.c (get_full_program_name): Define via prototype.
91286         * lib/setenv.c (clearenv): Likewise.
91287         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91288         needed.
91289         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91290         (malloc, memcpy): Remove decls.
91291         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91292         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91293         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91294         (memcpy): Remove macro.
91295         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91296         (__P): Remove.  All uses removed.
91297         (PTR): Remove.  All uses changed to void *.
91298         (CHAR_BIT, NULL): Remove.
91299         (spaces, zeros, memset_space, memset_zero)
91300         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91301         Remove.
91302         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91303         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91304         Define with prototype.
91305         Remove now-unnecessary prototype decl.
91306         (extra_args_spec): Assume ANSI C.  All uses changed.
91307         (extra_args_spec_iso): Remove.
91308         (my_strftime, emacs_strftimeu): Define via prototype.
91309         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91310         unconditionally.
91311         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91312         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91313         (strtoul, strtol): Remove decls.
91314         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91315         LONG_MAX): Remove.
91316         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91317         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91318         (LOCALE_PARAM_PROTO): New macro.
91319         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91320         (INTERNAL (strtol), strtol): Define with a prototype.
91321         (PARAMS): Remove.  All uses removed.
91322         * lib/tempname.c: Include <string.h> unconditionally.
91323         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91324         * lib/xgethostname.c (main): Define with a prototype.
91325         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91326         Include <stdlib.h> unconditionally.
91327         (calloc, malloc, realloc, free): Remove decls.
91328         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91329         Include <stdlib.h> unconditionally.  Sort include file names.
91330         (strtod): Remove.
91331         (xstrtod): Define with a prototype.
91332         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91333         (strtol, strtoul): Remove decls.
91334
91335 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91336
91337         More patches to assume C89 or better.
91338         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91339         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91340         string.h, memchr, STDC_HEADERS.
91341
91342 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91343
91344         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91345         Include <stdlib.h>, <string.h> unconditionally.
91346         Remove now-unnecessary cast to char *.
91347         * lib/strnlen.c: Include <string.h> unconditionally.
91348         * lib/yesno.c (yesno): Define with a prototype.
91349
91350 2003-09-11  Bruno Haible  <bruno@clisp.org>
91351
91352         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91353
91354 2003-09-10  Jim Meyering  <jim@meyering.net>
91355
91356         * lib/error.c: Correct indentation of cpp directives.
91357
91358 2003-09-10  Bruno Haible  <bruno@clisp.org>
91359
91360         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91361         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91362         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91363         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91364         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91365         <stdlib.h> and <string.h> checks.
91366         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91367         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91368
91369 2003-09-10  Bruno Haible  <bruno@clisp.org>
91370
91371         * lib/strcspn.c: Include <string.h> unconditionally.
91372         * lib/strpbrk.c: Include <string.h> unconditionally.
91373         * lib/strstr.c: Include <string.h> unconditionally.
91374         * lib/unicodeio.c: Include <string.h> unconditionally.
91375         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91376         * lib/unsetenv.c: Likewise.
91377         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91378         * lib/yesno.c: Include <stdlib.h> unconditionally.
91379         (rpmatch): Add prototype.
91380
91381 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91382
91383         More patches to assume C89 or better.
91384         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91385         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91386         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91387         or for string.h.
91388         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91389         stdlib.h.
91390         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91391         C headers.
91392         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91393         string.h.
91394         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91395         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91396         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91397         or for string.h.
91398         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91399         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91400         C headers.
91401         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91402         memcpy.
91403         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91404         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91405         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91406         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91407         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91408         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91409         string.h, free.
91410         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91411         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91412         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91413         C headers, or for string.h.
91414         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91415         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91416         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91417         headers, memory.h, stdlib.h, string.h, strings.h.
91418         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91419         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91420         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91421         strchr.
91422         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91423         headers, memory.h, string.h.
91424         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91425         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91426         free.
91427         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91428         headers.
91429         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91430         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91431         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91432         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91433         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91434
91435 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91436
91437         More K&R removal.
91438
91439         * lib/acosl.c (main): Use a prototype.
91440         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91441         tanl.c: Likewise.
91442
91443         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91444
91445         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91446         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91447         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91448         with a prototype.
91449         * lib/getopt.c (const): Remove macro.
91450         Include <string.h> unconditionally.
91451         (my_index): Remove; all uses changed to strchr.
91452         (strlen): Remove decl.
91453         (exchange): Remove forward decl; no longer needed.
91454         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91455         Define with prototype.
91456         * lib/getopt1.c (const): Remove macro.
91457         (getopt_long, getopt_long_only, main): Define with prototype.
91458
91459         * lib/getugroups.c: Include <string.h> unconditionally.
91460
91461         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91462         (getusershell, setusershell, endusershell, readname, main):
91463         Define with prototypes.
91464
91465         * lib/group-member.c: Include group-member.h first.
91466         Include <stdlib.h> unconditionally.
91467
91468         * lib/hard-locale.c: Include hard-locale.h first.
91469         Include <stdlib.h>, <string.h> unconditionally.
91470
91471         * lib/hash.c (free, malloc): Remove decls.
91472         Include <stdlib.h> unconditionally.
91473
91474         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91475         (getenv): Do not declare.
91476
91477         * lib/idcache.c: Include <string.h> unconditionally.
91478
91479         * lib/long-options.c: Include long-options.h first, to test interface.
91480         Include <stdlib.h> unconditionally.
91481
91482         * lib/makepath.c: Include makepath.h first, to test interface.
91483         Include <stdlib.h> and <string.h> unconditionally.
91484
91485         * lib/linebuffer.c: Include <stdlib.h>.
91486         (free): Remove decl.
91487
91488         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91489         stddef.h. rpl_malloc returns void *, not char *.
91490         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91491         prototype.
91492
91493         * lib/md5.h: Include <limits.h> unconditionally.
91494         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91495         (__P): Remove; all uses removed.
91496         * lib/md5.c: Include "md5.h" first.
91497         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91498         md5_buffer, md5_process_bytes, md5_process_block):
91499         Define with prototypes.
91500         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91501         * lib/sha.c: Include "sha.h" first.
91502         Include <stdlib.h>, <string.h> unconditionally.
91503
91504         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91505         * lib/memcmp.c (__ptr_t): Likewise.
91506         * lib/memrchr.c (__ptr_t): Likewise.
91507         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91508         Include <string.h> unconditionally.
91509         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91510         * lib/memchr.c: Include <stdlib.h> unconditionally.
91511         * lib/memchr.c (LONG_MAX): Remove.
91512         * lib/memrchr.c (LONG_MAX): Likewise.
91513         * lib/memchr.c (__memchr): Define via a prototype.
91514         * lib/memrchr.c (__memrchr): Likewise.
91515         * lib/memcmp.c (__P): Remove, and remove all uses.
91516         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91517         Remove forward decls; no longer needed.
91518         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91519         Use types required by C89 in prototype.
91520
91521         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91522         * lib/savedir.c: Likewise.
91523         * lib/mkdir.c (free): Remove decl.
91524         * lib/rmdir.c (rmdir): Define with a prototype.
91525         * lib/savedir.c: Include savedir.h first, to test interface.
91526
91527         * lib/mktime.c (STDC_HEADERS): Remove.
91528         Include <stdlib.h>, <string.h> unconditionally.
91529
91530         * lib/modechange.c: Include <stdlib.h> unconditionally.
91531         (malloc): Remove decl.
91532
91533         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91534         (free): Remove decl.
91535
91536         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91537         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91538         (This type really should be intptr_t, but that's a C99ism.)
91539         (_obstack_memcpy): Remove: all uses changed to memcpy.
91540         Include <string.h> unconditionally.
91541         (struct obstack): Assume __STDC__ for types of members
91542         chunkfun, freefun, extra_arg.
91543         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91544         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91545         obstack_begin, obstack_specify_allocation,
91546         obstack_specify_allocation_with_arg, obstack_chunkfun,
91547         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91548         Remove unprototyped decls and the macros that use them.
91549         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91550         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91551         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91552         (defined __STDC__ && __STDC__)]:
91553         Remove nonprototyped code.
91554         Include <stdlib.h> unconditionally.
91555         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91556         _obstack_allocated_p, _obstack_free, obstack_free,
91557         _obstack_memory_used, print_and_abort):
91558         Define using prototypes.
91559         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91560         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91561         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91562         obstack_next_free, obstack_object_size, obstack_room) [0]:
91563         Remove unused, unprototyped code.
91564
91565         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91566
91567         * lib/physmem.c (physmem_total, physmem_available, main): Define
91568         with prototypes.
91569
91570         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91571         (main): Define with a prototype.
91572
91573         * lib/posixver.c (getenv): Remove decl.
91574
91575         * lib/putenv.c (malloc): Returns void *, not char *.
91576         Include <string.h> unconditionally.
91577         (strchr, memcpy, NULL): Do not define.
91578
91579         * lib/readtokens.c: Include readtokens.h first, to test interface.
91580         Include <stdlib.h>, <string.h> unconditionally.
91581         (init_tokenbuffer): Define with a prototype.
91582
91583         * lib/regex.c (PARAMS): Remove.  All uses removed.
91584         All uses of _RE_ARGS removed, too.
91585         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91586         unconditionally.
91587         (bzero): Assume memset exists.
91588         (memcmp, memcpy, NULL): Remove.
91589         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91590         char, or assignments to local vars of type signed char.
91591         (init_syntax_once, PREFIX(extract_number_and_incr),
91592         PREFIX(print_partial_compiled_pattern),
91593         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91594         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91595         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91596         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91597         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91598         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91599         wcs_compile_range, byte_compile_range, truncate_wchar,
91600         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91601         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91602         count_mbs_length, wcs_re_match_2_internal,
91603         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91604         PREFIX(alt_match_null_string_p),
91605         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91606         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91607         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91608         now-unnecessary declaration, if any.
91609         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91610         regcomp, regexec):
91611         Remove now-unnecessary casts among pointer types.
91612         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91613
91614         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91615         (free): Remove decl.
91616
91617         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91618
91619         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91620         (free): Remove decl.
91621
91622         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91623         * lib/xgetcwd.c: Likewise.
91624
91625         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91626         (free): Remove decl.
91627
91628         * lib/strchrnul.c (strchrnul): Define with a prototype.
91629         Fix bug: c_in was not converted to char before searching.
91630
91631         The following changes are not K&R related:
91632
91633         * lib/group-member.h: Include <sys/types.h>, so that this file is
91634         self-contained.
91635         * lib/makepath.h: Likewise.
91636
91637         * lib/getusershell.c (readname, default_index, line_size, readname):
91638         Use size_t, not int, for sizes.
91639         (readname): If the size overflows, report an error instead of
91640         looping forever.
91641
91642 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91643
91644         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91645         libc.
91646
91647 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91648
91649         * README: New section: portability guidelines.
91650
91651 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91652
91653         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91654         C89 spec.
91655
91656 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91657
91658         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91659
91660 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91661
91662         Assume C89 or better; remove K&R cruft.
91663         A few of these changes were first proposed by Derek Robert Price
91664         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91665
91666         * lib/addext.c: Include <string.h> unconditionally.
91667         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91668         Don't declare getenv or malloc.
91669
91670         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91671         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91672         (NULL): Remove.
91673         (find_stack_direction, alloca): Use prototypes.
91674
91675         * lib/atexit.c (atexit): Define using a prototype.
91676
91677         * lib/basename.c, dirname.c, stripslash.c:
91678         Include <string.h> unconditionally.
91679
91680         * lib/bcopy.c: Include <stddef.h>.
91681         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91682
91683         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91684
91685         * lib/error.h (error, error_at_line, error_print_progname)
91686         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91687         * lib/error.c: Include error.h first, to check interface.
91688         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91689         (VA_START): Remove; all uses changeed to va_start.
91690         (exit, strerror): Remove decls.
91691         (error_print_progname): Prototype uncondionally.
91692         Don't include <errno.h>; no longer needed.
91693         (private_strerror): Remove.
91694         (error_tail): Always define.
91695         (error, error_at_line): Assume C89 or better; always use prototypes.
91696         * lib/fatal.c: Include "fatal.h" first, to test interface.
91697         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91698         (VA_START): Remove; all uses changed to va_start.
91699         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91700         this case.
91701         (exit): Remove decl.
91702         (fatal): Prototype unconditionally.  Assume va_start works.
91703         Abort at end, to pacify gcc.
91704
91705         * lib/euidaccess.c (main): Define with a prototype.
91706
91707         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91708
91709         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91710
91711         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91712         prototypes.
91713         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91714         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91715         (getenv): Remove decl.
91716         (fnmatch): Define using a prototype.
91717         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91718         (FCT): Define using a prototype.
91719
91720         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91721
91722         * lib/gethostname.c: Include <stddef.h>.
91723         (gethostname): Define with prototype.  Length is size_t, not int.
91724
91725 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91726
91727         Assume C89 or better; remove K&R cruft.
91728         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91729         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91730         string.h, getenv, malloc.
91731         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91732         headers.
91733         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91734         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91735         do not check for strerror.
91736         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91737         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91738         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91739         do not check for doprnt or vprintf.
91740         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91741         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91742
91743 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91744
91745         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91746         getversion.c should have been removed then, but was accidentally
91747         preserved.
91748
91749         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91750         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91751
91752 2003-09-08  Karl Berry  <karl@gnu.org>
91753
91754         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91755                 config, forget about prep.
91756
91757         * config/depcomp, missing: update from automake.
91758
91759 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91760
91761         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91762         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91763
91764 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91765
91766         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91767         copy_tm_result.  Bug reported by Simon Josefsson in
91768         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91769
91770 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91771
91772         * m4/time_r.m4: New file.
91773         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91774         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91775         is. Check for timegm declaration.
91776         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91777         Do not check for gmtime_r.
91778         Replace mktime if __mktime_internal does not exist and if mktime
91779         hasn't been replaced already.
91780
91781 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91782
91783         * lib/time_r.c, lib/time_r.h: New files.
91784
91785         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91786         __localtime_r.
91787         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91788         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91789
91790         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91791         __gmtime_r.
91792         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91793         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91794         Include <time_r.h>.
91795
91796         * lib/timegm.c: Switch to glibc implementation, with the following
91797         changes:
91798         [defined HAVE_CONFIG_H]: Include <config.h>.
91799         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91800         (__mktime_internal) [!defined _LIBC]: New decl.
91801         (__gmtime_r) [!defined _LIBC]: New macro and function.
91802         (timegm): Use a prototype, since gnulib assumes C89.
91803         Do not bother declaring tmp to be const, as it's not really usefu.
91804         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91805         (timegm): Declare only if HAVE_DECL_TIMEGM.
91806
91807 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91808
91809         * MODULES.html.sh (func_all_modules): Add time_r.
91810         * modules/time_r: New file.
91811         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91812         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91813
91814 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91815
91816         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91817         Bug reported by Lute Kamstra in
91818         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91819
91820         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91821         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91822         course with correspondingly smaller numbers for tomorrow and
91823         yesterday.  From Tadayoshi Funaba.  Originally installed into
91824         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91825         coreutils merge?).
91826
91827 2003-08-31  Simon Josefsson  <jas@extundo.com>
91828
91829         * modules/timegm: New file.
91830         * MODULES.html.sh (func_all_modules): Add timegm.
91831
91832 2003-08-31  Simon Josefsson  <jas@extundo.com>
91833
91834         * m4/timegm.m4: New file.
91835
91836 2003-08-31  Simon Josefsson  <jas@extundo.com>
91837
91838         * lib/timegm.h: New file.
91839         * lib/timegm.c: New file.  Based on
91840         wget-1.8.2/src/http.c:mktime_from_utc.
91841
91842 2003-08-31  Karl Berry  <karl@gnu.org>
91843
91844         * lib/argp.h: update from libc.
91845
91846 2003-08-28  Bruno Haible  <bruno@clisp.org>
91847
91848         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91849         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91850         followed by '#define fnmatch fnmatch_posix' gives an error.
91851
91852 2003-08-28  Bruno Haible  <bruno@clisp.org>
91853
91854         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91855         warning on QNX, which defines O_BINARY to 000000.
91856
91857 2003-08-27  Jim Meyering  <jim@meyering.net>
91858
91859         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91860         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91861         would fail after 32.  Reported by Danny Levinson.  Details here:
91862         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91863
91864 2003-08-24  Bruno Haible  <bruno@clisp.org>
91865
91866         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91867         MSVC7 <stdio.h> is included later.
91868
91869 2003-08-22  Simon Josefsson  <jas@extundo.com>
91870
91871         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91872
91873 2003-08-20  Karl Berry  <karl@gnu.org>
91874
91875         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91876
91877 2003-08-20  Bruno Haible  <bruno@clisp.org>
91878
91879         * modules/progname: New file.
91880         * MODULES.html.sh (func_all_modules): Add progname.
91881
91882 2003-08-20  Bruno Haible  <bruno@clisp.org>
91883
91884         * lib/progname.h: New file, from GNU gettext.
91885         * lib/progname.c: New file, from GNU gettext.
91886         * lib/progreloc.c: New file, from GNU gettext.
91887
91888 2003-08-19  Jim Meyering  <jim@meyering.net>
91889
91890         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91891         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91892
91893 2003-08-19  Bruno Haible  <bruno@clisp.org>
91894
91895         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91896         more.
91897
91898 2003-08-19  Bruno Haible  <bruno@clisp.org>
91899
91900         * lib/xstrdup.c: Assume <string.h> exists.
91901
91902 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91903
91904         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91905         in makefile rules.
91906
91907 2003-08-18  Jim Meyering  <jim@meyering.net>
91908
91909         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91910         * m4/lib-ld.m4: Likewise.
91911
91912 2003-08-18  Jim Meyering  <jim@meyering.net>
91913
91914         * lib/setenv.h: Indent nested cpp directive.
91915         * lib/vasnprintf.c: Remove trailing blanks.
91916
91917 2003-08-17  Simon Josefsson  <jas@extundo.com>
91918
91919         * modules/xstrndup: New file.
91920         * MODULES.html.sh (func_all_modules): Add xstrndup.
91921
91922 2003-08-17  Simon Josefsson  <jas@extundo.com>
91923
91924         * modules/argp: Fix autoconf macro name. Add more dependencies.
91925
91926 2003-08-17  Simon Josefsson  <jas@extundo.com>
91927
91928         * m4/xstrndup.m4: New file.
91929
91930 2003-08-17  Simon Josefsson  <jas@extundo.com>
91931
91932         * m4/argp.m4: New file.
91933
91934 2003-08-17  Simon Josefsson  <jas@extundo.com>
91935             Bruno Haible  <bruno@clisp.org>
91936
91937         * lib/xstrndup.h: New file.
91938         * lib/xstrndup.c: New file.
91939
91940 2003-08-17  Bruno Haible  <bruno@clisp.org>
91941
91942         * modules/strndup (Files, Include): Add lib/strndup.h.
91943
91944 2003-08-17  Bruno Haible  <bruno@clisp.org>
91945
91946         * modules/euidaccess (Files): Add lib/euidaccess.h.
91947
91948 2003-08-17  Bruno Haible  <bruno@clisp.org>
91949
91950         * lib/strndup.h: New file.
91951
91952 2003-08-17  Bruno Haible  <bruno@clisp.org>
91953
91954         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91955         like AC_GNU_SOURCE.
91956         * modules/extensions (configure.ac): Comment out the invocation of
91957         gl_USE_SYSTEM_EXTENSIONS.
91958
91959 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91960
91961         Merges from coreutils, etc.
91962         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91963         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91964         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91965         fixing a typo.
91966         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91967         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91968
91969 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91970
91971         Document merge from coreutils.
91972         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91973         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91974         * modules/utime: Add m4/utimes-null.m4.
91975
91976 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91977
91978         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91979         space, undoing this 2003-08-12 change:
91980         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91981
91982 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91983
91984         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91985         strtoul.c from libc, undoing this 2003-08-12 change:
91986         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91987
91988 2003-08-16  Jim Meyering  <jim@meyering.net>
91989
91990         Merges from coreutils.
91991         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91992         prefix.  Adjust cache variables similarly.  Create 500 rather than
91993         just 300 files, to exercise bug on Darwin6.5, too.
91994         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91995         $missing_dir.
91996         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91997         AM_SYS_POSIX_TERMIOS.
91998         Reported by mkc@mathdogs.com.
91999         Also change use of $am_cv_sys_posix_termios
92000         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92001         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92002         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92003         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92004         in /proc/mounts until it finds one with matching device number.  This
92005         is unnecessary when the FILE argument *is* a mount point.  No stat call
92006         is necessary in that case.  So, disable the statvfs-testing code on
92007         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92008         as RedHat bug# 84846.
92009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92010         to 1MB, so as not to render systems with no stack size limit (e.g.,
92011         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92012         Include <unistd.h>.  On some systems,
92013         it is required for the definition of _SC_PAGESIZE.
92014
92015 2003-08-16  Jim Meyering  <jim@meyering.net>
92016
92017         Merge from coreutils.
92018         * lib/xstrtoimax.c: #else #if -> #elif.
92019         * lib/xstrtoumax.c: Likewise.
92020
92021 2003-08-16  Jim Meyering  <jim@meyering.net>
92022
92023         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92024         * m4/utimes.m4: Removed.
92025         * m4/utimes-null.m4: Renamed from utimes.m4.
92026
92027         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92028         to 1MB, so as not to render systems with no stack size limit (e.g.,
92029         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92030         Include <unistd.h>.  On some systems,
92031         it is required for the definition of _SC_PAGESIZE.
92032
92033 2003-08-16  Jim Meyering  <jim@meyering.net>
92034         and Paul Eggert  <eggert@cs.ucla.edu>
92035
92036         Merges from coreutils, etc.
92037
92038         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92039         using the latest version from cvs.  This avoids problems with #line
92040         directives using a vendor (Sun) compiler.
92041         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92042         Don't set GETGROUPS_LIB here; now it's
92043         done via getgroups.m4's wrapper function.
92044         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92045         rather than just in sh-util/configure.in, so that the
92046         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92047         same.
92048         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92049         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92050         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92051         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92052         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92053         Remove code that is now done by the newly-required macros.
92054         Append $(EXEEXT) to DF_PROG.
92055         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92056         Do not invoke or require the following here,
92057         since prereq.m4 or some gnulib .m4 now does this for us:
92058         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92059         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92060         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92061         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92062         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92063         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92064         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92065         AC_FUNC_OBSTACK.
92066         Do not replace the following functions, as this is now the job
92067         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92068         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92069         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92070         atexit getpass, strdup, getpagesize.
92071         Replace 'raise'.
92072         Do not check for the following functions, as this is now the job
92073         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92074         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92075         setregid.
92076         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92077         Check for sys/sysctl.h.
92078         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92079         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92080         of checking for ssize_t ourselves.
92081
92082         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92083         Require every macro that gnulib/modules/* suggests for us.
92084         (jm_PREREQ_ADDEXT): New macro.
92085         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92086         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92087
92088         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92089         (gl_PHYSMEM): Use it.
92090         Also check for `table' function.
92091         Check for new headers and functions.
92092         Add check for sys/sysmp.h.
92093         With suggestions from Kaveh Ghazi.
92094         Ignore headers that are present but cannot be compiled.  This
92095         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92096         C 5.4.
92097
92098 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92099
92100         Document merge from coreutils.
92101         * modules/userspec: Depend on posixver.
92102         * modules/strftime: Depend on tzset.
92103
92104 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92105
92106         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92107         rather than tab, after '#' in shell-script copyright notices.
92108         Suggested by Bruno Haible.
92109
92110 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92111
92112         * config/srclist-update: Use three spaces, rather than tab, after '#'
92113         in shell-script copyright notices.  Suggested by Bruno Haible.
92114         Remove unnecessary parenthesization in regular expression.
92115
92116 2003-08-15  Jim Meyering  <jim@meyering.net>
92117
92118         Merge from coreutils.
92119         * lib/xgethostname.c: Include <stdlib.h>.
92120         (xghostname): Don't exit for anything other than memory-related
92121         failure; just return NULL.
92122         * lib/userspec.c: Include "posixver.h".
92123         (parse_user_spec): Accept `.' as a separator only
92124         in pre-POSIX-200112 mode.
92125         * lib/strtoimax.c: Use #elif rather than #else #if.
92126         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92127         Remove function, now that we can rely on a working tzset function.
92128         [!_LIBC]: Ensure that the required autoconf test has been run.
92129         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92130         Use underlying_strftime for %r.
92131         * lib/sha.c: Merge in some clean-up and optimization changes from
92132         glibc.
92133         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92134         Ensure that it is a multiple of 64.
92135         Rearrange loop exit tests so as to avoid performing an
92136         additional fread after encountering an error or EOF.
92137         * lib/realloc.c: Update copyright date.
92138
92139 2003-08-15  Jim Meyering  <jim@meyering.net>
92140         and Paul Eggert  <eggert@twinsun.com>
92141
92142         Merge from coreutils.
92143         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92144         member but strut utmpx does not.  Needed for AIX 4.3.3.
92145         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92146
92147 2003-08-15  Jim Meyering  <jim@meyering.net>
92148         and Paul Eggert  <eggert@cs.ucla.edu>
92149
92150         Merges from coreutils, etc.
92151         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92152         Require gl_FUNC_TZSET_CLOBBER.
92153         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92154         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92155         members.
92156
92157 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92158
92159         Help the merge from coreutils.
92160         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92161         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92162         * m4/tzset.m4: Use it too.
92163
92164 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92165
92166         * modules/tzset: New file.
92167
92168 2003-08-14  Jim Meyering  <jim@meyering.net>
92169
92170         Merges from coreutils.
92171         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92172         variable names, rather than @FNMATCH_H@.
92173         * modules/alloca: Likewise for $(ALLOCA_H).
92174
92175         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92176         the three copies of the literal target, `fnmatch.h'.
92177         * modules/alloca (alloca.h): Likewise.
92178
92179 2003-08-14  Jim Meyering  <jim@meyering.net>
92180
92181         Merge from coreutils.
92182         * m4/tzset.m4: New file.
92183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92184         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92185         otherwise, AIX 5.1 systems would end up using the latter.
92186         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92187         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92188         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92189         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92190
92191 2003-08-14  Jim Meyering  <jim@meyering.net>
92192
92193         Merge from coreutils.
92194         * lib/obstack.h: Whitespace changes.
92195         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92196         and xcalloc return values.
92197         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92198         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92199         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92200         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92201         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92202         error from mntctl.
92203         Use mntctl's return value to drive the entry-processing loop, since
92204         we can't rely on the value of the vmt_length member in the last
92205         entry.  On some systems doing so could result in exhausting
92206         virtual memory.  Based in part on a patch from Mike Jetzer.
92207
92208 2003-08-14  Jim Meyering  <jim@meyering.net>
92209         and Paul Eggert  <eggert@twinsun.com>
92210
92211         Merges from coreutils, plus other fixes.
92212         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92213         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92214         for credits and details.  Thanks to Kaveh Ghazi for helping
92215         to keep these files in sync.
92216         (ARRAY_SIZE): Define it.
92217         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92218         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92219         (memcasecmp): Don't assume size_t fits in unsigned int.
92220         Remove casts and duplicate code.
92221         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92222         (memcpy): Remove definition.
92223         Merge in some clean-up and optimization changes from glibc.
92224         [BLOCKSIZE]: Move definition to top of file.
92225         Ensure that it is a multiple of 64.
92226         Rearrange loop exit tests so as to avoid performing an
92227         additional fread after encountering an error or EOF.
92228         * lib/md5.h (md5_uintptr): Define.
92229         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92230         return to the initial working directory.  Preserve errno
92231         for caller.
92232         * lib/idcache.c: Include "xalloc.h".
92233         (xmalloc, xrealloc): Remove decls.
92234         (getuser): Remove casts no longer required in C89.
92235         * lib/human.c: Include stdio.h, for sprintf.
92236         * lib/group-member.c: Include "xalloc.h".
92237         (xmalloc, xrealloc): Remove decls.
92238         (get_group_info): Remove casts no longer required in C89.
92239         * lib/getusershell.c (readname): Remove casts no longer required in
92240         C89.
92241         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92242         * lib/getline.c: Whitespace fix, from coreutils.
92243
92244 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92245
92246         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92247         Check for isascii.
92248
92249         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92250         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92251         Undo previous (whitespace-only) change.
92252
92253 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92254
92255         * lib/exclude.c: Include <ctype.h>
92256         (IN_CTYPE_DOMAIN): New macro.
92257         (is_space): New fn.
92258         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92259         and empty lines.
92260
92261         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92262         Undo previous (whitespace-only) change.
92263
92264 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92265
92266         * config/srclist-update: Change update back to the old behavior,
92267         leaving whitespace alone.  Use one 'sed' command rather than a
92268         pipeline.
92269         (fixlicense): Now a variable, not a function.
92270         (remove_trailing_blanks): Remove.
92271         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92272         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92273         Undo previous (whitespace-only) change.
92274
92275 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92276
92277         Merge from coreutils.
92278         * modules/euidaccess: Add lib_SOURCES, include for new
92279         file euidaccess.h
92280
92281 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92282
92283         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92284         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92285         Normalize leading white space and remove trailing white space.
92286
92287         Merge from coreutils
92288         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92289
92290         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92291         0.12.1.  These files are now being upgraded automatically by
92292         ../config/srclist-update.
92293
92294 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92295
92296         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92297         Normalize leading white space and remove trailing white space.
92298         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92299         notice, as per ../config/srclist-update.
92300
92301         Merge from coreutils.
92302         * lib/euidaccess.h: New file.
92303         * lib/euidaccess.c: Include it.
92304         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92305         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92306         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92307
92308 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92309
92310         * config/srclist-update: Add copyright notice.
92311         (remove_id_lines, remove_trailing_blanks): New constants.
92312         (fixfile): Use them to normalize spacing a bit in copied files.
92313         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92314         Normalize leading white space and remove trailing white space.
92315
92316         * config/texinfo.tex: Sync with texinfo.
92317
92318         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92319         strtoul.c from libc, to merge coreutils whitespace changes.
92320
92321         * config/srclist.txt: Get the following m4 files from gettext:
92322         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92323         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92324         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92325         wint_t.m4.
92326
92327 2003-08-12  Karl Berry  <karl@gnu.org>
92328
92329         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92330         been made.
92331
92332 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92333
92334         * modules/gnu-source, m4/gnu-source.m4:
92335         Remove; we're assuming Autoconf 2.54 or later now.
92336         Suggested by Bruno Haible.
92337         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92338
92339 2003-08-11  Bruno Haible  <bruno@clisp.org>
92340
92341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92342
92343 2003-08-11  Bruno Haible  <bruno@clisp.org>
92344
92345         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92346         (vasnprintf): Use it instead of wcslen.
92347
92348 2003-08-11  Bruno Haible  <bruno@clisp.org>
92349
92350         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92351         value to ensure that _Bool promotes to int. Use #define for _Bool when
92352         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92353
92354 2003-08-10  Karl Berry  <karl@gnu.org>
92355
92356         * lib/regex.h: update from libc (whitespace fix).
92357
92358 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92359
92360         Merge some files from coreutils.  These changes were
92361         originally made by Jim Meyering.
92362         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92363         many older Unixes require this.
92364         * lib/alloca.c (alloca): Remove cast to argument of free;
92365         no longer needed in C89.
92366         * lib/alloca_.h, regex.h: Fix white space to match
92367         what GNU indent does.
92368
92369 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92370
92371         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92372         apparently Emacs's Unicode mode got confused before my 2003-08-05
92373         checkin.
92374
92375 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92376
92377         * m4/extensions.m4: New file.
92378         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92379         Require gl_USE_SYSTEM_EXTENSIONS.
92380         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92381         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92382
92383 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92384
92385         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92386         * modules/extensions, modules/gnu-source: New files.
92387         * modules/timespec, modules/unlocked-io: Depend on extensions.
92388
92389 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92390
92391         * modules/restrict: New file.
92392         * MODULES.html.sh (func_all_modules): Add restrict.
92393         * modules/regex: Depend on restrict.
92394
92395 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92396
92397         * m4/restrict.m4: New file.
92398         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92399
92400 2003-08-07  Bruno Haible  <bruno@clisp.org>
92401
92402         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92403         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92404
92405 2003-08-07  Bruno Haible  <bruno@clisp.org>
92406
92407         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92408         makes the module 'getndelim2' compatible with the module 'getline'.
92409
92410 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92411
92412         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92413         byte with "\201" to avoid glitches when editing that source file
92414         with multi-gnome-terminal.
92415
92416 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92417
92418         * lib/bumpalloc.h: Remove.
92419
92420 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92421
92422         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92423         * modules/bumpalloc: Remove.
92424
92425 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92426
92427         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92428         GNU coding style.
92429
92430         Merge from coreutils.
92431         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92432         1. From glibc.
92433         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92434         from Karl Berry, implemented by Jim Meyering.
92435         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92436         from Dmitry V. Levin.
92437         Remove anachronistic cast of xrealloc.
92438         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92439         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92440         type. Otherwise, it wouldn't compile with at least /bin/cc on
92441         ymp-cray-unicos9.0.2.X.
92442         Combine two mostly-identical uses of alloca into one.
92443         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92444
92445 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92446
92447         [From Emacs.]
92448
92449         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92450         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92451         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92452         obsolete NLIST_NAME_UNION.
92453         [__GNU__]: Undef BSD and FSCALE.
92454         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92455
92456 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92457
92458         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92459         an enum type, so that it's guaranteed to promote to int.  See:
92460         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92461
92462 2003-08-03  Karl Berry  <karl@gnu.org>
92463
92464         * config/depcomp: update from automake.
92465
92466 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92467
92468         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92469         (strerror): Don't assume that a printable int fits in 14 bytes.
92470
92471 2003-07-31  Bruno Haible  <bruno@clisp.org>
92472
92473         * modules/getpass-gnu: New file.
92474         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92475
92476 2003-07-31  Bruno Haible  <bruno@clisp.org>
92477
92478         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92479
92480 2003-07-24  Karl Berry  <karl@gnu.org>
92481
92482         * config/missing: update from automake.
92483
92484 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92485             Bruno Haible  <bruno@clisp.org>
92486
92487         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92488         * lib/getline.c (getline, getdelim): Likewise.
92489         Remove _GNU_SOURCE define; now it's defined in config.h through
92490         m4/getline.m4.
92491
92492 2003-07-23  Karl Berry  <karl@gnu.org>
92493
92494         * config/config.sub: update from prep.
92495
92496 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92497
92498         * modules/xalloc (Depends-on): Add exitfail.
92499         * modules/xmemcoll: Likewise.
92500
92501 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92502
92503         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92504         over-parenthesization in macros.
92505
92506         Sync with coreutils.
92507
92508         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92509         required by C99.
92510
92511         Use `exit_failure' for xalloc and xmemcoll instead of their own
92512         private exit-failure variables.
92513         * lib/xalloc.h (xalloc_exit_failure): Remove.
92514         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92515         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92516         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92517         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92518         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92519
92520 2003-07-20  Jim Meyering  <jim@meyering.net>
92521
92522         * modules/closeout (Depends-on): Add exitfail.
92523         Suggestion from Bruno Haible.
92524
92525 2003-07-19  Karl Berry  <karl@gnu.org>
92526
92527         * config/config.sub: update from prep.
92528
92529 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92530
92531         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92532         Remove.
92533         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92534         to test that it can stand by itself.  Include "exitfail.h".
92535         Clients should set exit_failure instead.
92536         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92537
92538 2003-07-18  Bruno Haible  <bruno@clisp.org>
92539
92540         * modules/getndelim2: New file.
92541         * modules/getline: Share files with module getndelim2.
92542         * modules/getnline: Depend on getndelim2 instead of sharing files with
92543         it. Add getnline.c to lib_SOURCES.
92544         * MODULES.html.sh (func_all_modules): Add getndelim2.
92545
92546 2003-07-18  Bruno Haible  <bruno@clisp.org>
92547
92548         * m4/getndelim2.m4: New file.
92549         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92550         invoke gl_PREREQ_GETNDELIM2.
92551         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92552         gl_PREREQ_GETNDELIM2.
92553         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92554         gl_GETNDELIM2.
92555
92556 2003-07-18  Bruno Haible  <bruno@clisp.org>
92557
92558         * lib/getndelim2.h: New file.
92559         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92560         getndelim2.h.
92561         (getndelim2): Make non-static. Change return type to ssize_t.
92562         * lib/getline.h: Change argument names.
92563         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92564         * lib/getnline.c: Include getndelim2.h.
92565
92566 2003-07-18  Andreas Schwab  <schwab@suse.de>
92567
92568         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92569
92570 2003-07-17  Karl Berry  <karl@gnu.org>
92571
92572         * config/config.sub: update from prep.
92573
92574 2003-07-17  Bruno Haible  <bruno@clisp.org>
92575
92576         * modules/getnline: New file.
92577         * modules/getline: Add lib/getndelim2.c to source file list.
92578         * MODULES.html.sh (func_all_modules): Add getnline.
92579
92580 2003-07-17  Bruno Haible  <bruno@clisp.org>
92581
92582         * m4/getnline.m4: New file.
92583
92584 2003-07-17  Bruno Haible  <bruno@clisp.org>
92585
92586         * m4/Makefile.am.in: Remove file.
92587         * m4/Makefile.am: Remove file.
92588         * m4/Makefile.in: Remove file.
92589
92590 2003-07-17  Bruno Haible  <bruno@clisp.org>
92591
92592         * lib/getnline.h: New file.
92593         * lib/getnline.c: New file.
92594         * lib/getndelim2.c: New file, extracted from getline.c.
92595         (getndelim2): Renamed from getdelim2, with added nmax argument.
92596         * lib/getline.c: Include getndelim2.c.
92597         (getdelim2): Moved out to getndelim2.c.
92598         (getline, getdelim): Update.
92599
92600 2003-07-17  Bruno Haible  <bruno@clisp.org>
92601
92602         * lib/Makefile.am: Remove file.
92603         * lib/Makefile.in: Remove file.
92604
92605 2003-07-17  Bruno Haible  <bruno@clisp.org>
92606
92607         * configure.in: Remove file.
92608         * Makefile.in: Remove file.
92609
92610 2003-07-17  Bruno Haible  <bruno@clisp.org>
92611
92612         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92613
92614 2003-07-16  Karl Berry  <karl@gnu.org>
92615
92616         * config/srclist-update: was running fixlicense twice, which caused
92617                 texinfo.tex to be nullified for some reason.  Simplify,
92618                 $gplsrc is no longer needed as far as I can see?
92619
92620 2003-07-16  Jim Meyering  <jim@meyering.net>
92621
92622         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92623
92624 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92625
92626         * config/srclist.txt: Get the following files from gettext-runtime/intl
92627         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92628         ref-del.sin.  From Bruno Haible.
92629         * config/srclist-update (fixfile): Change grep pattern again, since the
92630         previous fix didn't work (there was another trailing $).  Use
92631         '[$]' to escape the $s.
92632
92633 2003-07-15  Karl Berry  <karl@gnu.org>
92634
92635         * lib/vasnprintf.c: update from gettext.
92636
92637 2003-07-15  Karl Berry  <karl@gnu.org>
92638
92639         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92640         gets expanded when surrounded by '$'.
92641
92642 2003-07-15  Jim Meyering  <jim@meyering.net>
92643
92644         * modules/save-cwd: Don't depend on error.  From Derek Price.
92645
92646 2003-07-15  Jim Meyering  <jim@meyering.net>
92647
92648         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92649
92650 2003-07-14  Simon Josefsson  <jas@extundo.com>
92651
92652         * modules/mempcpy: New file.
92653         * MODULES.html.sh (func_all_modules): Add mempcpy.
92654
92655 2003-07-14  Simon Josefsson  <jas@extundo.com>
92656
92657         * m4/mempcpy.m4: New file.
92658
92659 2003-07-14  Simon Josefsson  <jas@extundo.com>
92660
92661         * lib/mempcpy.h: New file.
92662         * lib/mempcpy.c: New file.
92663
92664 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92665
92666         * modules/getdate, modules/posixtm: Depend on mktime.
92667
92668 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92669
92670         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92671         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92672         unicodeio.c, unicodeio.h, unlocked-io.h:
92673         Switch from LGPL to GPL.
92674
92675 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92676
92677         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92678         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92679         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92680         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92681         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92682         updated automatically by ../config/srclist-update.  This changes
92683         their license from LPGL to GPL.
92684
92685 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92686
92687         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92688         assumed to refer to the root of the most recent stable gettext version.
92689         * config/srclistvars.sh: Add defaults for eggert.
92690         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92691         Match "This program" as well as "The program".  This is needed
92692         for gettext.
92693
92694 2003-07-14  Jim Meyering  <jim@meyering.net>
92695
92696         Don't emit diagnostics.  Let callers do that.
92697         * lib/save-cwd.c: Don't include "error.h".
92698         (save_cwd): Don't call error.  Ensure that errno is valid
92699         when returning nonzero.
92700
92701         * lib/save-cwd.h (restore_cwd): Update prototype.
92702         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92703         Simplify.  Don't call error upon failure.  Let callers do that.
92704         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92705         when auditing is enabled.  But don't bother updating the #if.
92706
92707 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92708
92709         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92710         it breaks C++ compilation.
92711         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92712
92713 2003-07-10  Simon Josefsson  <jas@extundo.com>
92714
92715         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92716
92717 2003-07-10  Jim Meyering  <jim@meyering.net>
92718
92719         * m4/clock_time.m4: Remove trailing blank.
92720         * m4/intmax_t.m4: Likewise.
92721
92722 2003-07-10  Jim Meyering  <jim@meyering.net>
92723
92724         * lib/vasnprintf.c: Remove trailing blanks.
92725         Make cpp indentation consistent.
92726
92727 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92728
92729         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92730         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92731         Switch from LGPL to GPL.
92732
92733 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92734
92735         * config/srclist.txt: Sort sublists.  Add
92736         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92737         that differ from gnulib for one reason or another; we'd like this list
92738         to be smaller but for now let's document what we have.
92739
92740 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92741
92742         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92743         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92744         and sweeter "eval x=$x".
92745         * config/srclist.txt: Get lib/argp* from glibc.
92746
92747 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92748
92749         * lib/mktime.c: Fix some boundary cases and remove need for floating
92750         point.
92751
92752         Issue a compile-time diagnostic if time_t is floating point, or if
92753         two's complement arithmetic is not in effect, or if arithmetic
92754         right shift does not propagate the sign.  These assumptions were
92755         all in the original code but they weren't checked.
92756
92757         (TIME_T_MIDPOINT, verify): New macros.
92758         (__isleap): Remove; it has integer overflow problems.
92759         (leapyear): New function, without those problems.
92760         (ydhms_tm_diff): Remove; splitting into two parts.
92761         (ydhms_diff): New function, containing the arithmetic part of
92762         the old ydhms_tm_diff function.  Issue a compile-time
92763         diagnostic if we are not using C99 integer division.
92764         Avoid casts when possible.
92765         (guess_time_tm): New function, containing the checking part of
92766         the old ydhms_tm_diff function.  Return the new value, rather than
92767         the difference between it and the old.  Accept a new argument T
92768         so that *T specifies the old value.  Check for overflow in the result.
92769
92770         (__mktime_internal): Use a time_t offset, not a long int offset.
92771         This undoes the 2003-06-04 change, which is no longer needed now
92772         that we have better overflow checking.
92773         (localtime_offset): Likewise.
92774
92775         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92776         and long are 64-bit but int is only 32-bit.
92777         (ydhms_diff): Use long int to store year1 and yday1.
92778         Issue a compile-time diagnostic if long int is not wide enough.
92779
92780         (__mktime_internal): Use long int to store adjusted year and yday.
92781         Use plain C rather than preprocessor commands, if that doesn't
92782         affect efficiency.
92783         Check for overflow (and try to repair) after each probe
92784         rather than checking only at the very end.  This avoids some bugs
92785         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92786         does not equal GMT offset at maximum time).
92787         Use integer to check for overflow rather than floating point; this
92788         is more portable to non-IEEE hosts, and is a tad faster.
92789         When we detect that we are oscillating between two values,
92790         don't check whether tm_isdst has the requested value, since
92791         we already know the answer.  When tm_isdst has the wrong value,
92792         use a different heuristic to find the right one, based on the
92793         extreme values actually observed in practice in tz2003a,
92794         rather than the (overly optimistic) "previous 3 calendar quarters".
92795
92796         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92797         "T const" to accommodate glibc style.
92798         (check_result): Use less-confusing report format.  "long" -> "long int.
92799         (main): Likewise.
92800         Don't loop if the iteration overflows time_t.
92801         Allow a negative step in the iteration.
92802
92803 2003-07-06  Karl Berry  <karl@gnu.org>
92804
92805         * config/depcomp: update from automake.
92806         * config/config.sub: update from prep.
92807
92808 2003-07-03  Karl Berry  <karl@gnu.org>
92809
92810         * config/config.guess: update from prep.
92811
92812 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92813
92814         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92815         xreadlink.c now includes it unconditionally.
92816
92817 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92818
92819         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92820         having it depend on HAVE_SYS_TYPES_H.
92821
92822 2003-07-01  Bruno Haible  <bruno@clisp.org>
92823
92824         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92825         <sys/types.h> should be sufficient.
92826         Reported by Paul Eggert.
92827
92828 2003-06-26  Karl Berry  <karl@gnu.org>
92829
92830         * config/depcomp: update from automake.
92831
92832 2003-06-26  Bruno Haible  <bruno@clisp.org>
92833
92834         * modules/human: Depend on module stdbool.
92835
92836 2003-06-25  Bruno Haible  <bruno@clisp.org>
92837
92838         * modules/readlink: New file.
92839         * modules/xreadlink: Depend on it.
92840         * MODULES.html.sh (func_all_modules): Add readlink.
92841
92842 2003-06-25  Bruno Haible  <bruno@clisp.org>
92843
92844         * m4/readlink.m4: New file.
92845
92846 2003-06-25  Bruno Haible  <bruno@clisp.org>
92847
92848         * lib/readlink.c: New file.
92849
92850 2003-06-22  Karl Berry  <karl@gnu.org>
92851
92852         * config/srclist.txt: update mkinstalldirs from automake.
92853         * config/mkinstalldirs: update.
92854
92855 2003-06-22  Bruno Haible  <bruno@clisp.org>
92856
92857         Portability to mingw32.
92858         * m4/ssize_t.m4: New file, from GNU gettext.
92859         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92860         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92861
92862 2003-06-22  Bruno Haible  <bruno@clisp.org>
92863
92864         * modules/safe-read: Add m4/ssize_t.m4.
92865         * modules/xreadlink: Add m4/ssize_t.m4.
92866
92867 2003-06-20  Bruno Haible  <bruno@clisp.org>
92868
92869         Assume C89, so PARAMS isn't needed.
92870         * lib/unicodeio.h (PARAMS): Remove.
92871         * lib/unicodeio.c: Don't use PARAMS.
92872
92873 2003-06-18  Karl Berry  <karl@gnu.org>
92874
92875         * config/config.{guess,sub}: update from prep.
92876
92877 2003-06-18  Jim Meyering  <jim@meyering.net>
92878
92879         Merge changes from coreutils.
92880         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92881         Remove explicit declarations of xmalloc and realloc.
92882         Include xalloc.h.
92883         (read_utmp): Remove anachronistic cast of xmalloc.
92884
92885 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92886
92887         Assume C89, so PARAMS isn't needed.
92888         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92889         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92890         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92891         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92892         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92893         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92894         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92895         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92896         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92897         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92898         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92899         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92900         no longer needed. Anyway, config.h should always be included before any
92901         other file.
92902
92903 2003-06-11  Simon Josefsson  <jas@extundo.com>
92904
92905         * modules/sysexits: New file.
92906         * MODULES.html.sh (func_all_modules): Add sysexits.
92907
92908 2003-06-11  Simon Josefsson  <jas@extundo.com>
92909
92910         * lib/sysexit_.h: New file.
92911
92912 2003-06-11  Derek Price  <derek@ximbiot.com>
92913
92914         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92915         necessary.
92916
92917 2003-06-11  Bruno Haible  <bruno@clisp.org>
92918
92919         * m4/sysexits.m4: New file.
92920
92921 2003-06-10  Simon Josefsson  <jas@extundo.com>
92922
92923         * lib/argp.h: New file, from glibc.
92924         * lib/argp-ba.c: New file, from glibc.
92925         * lib/argp-eexst.c: New file, from glibc.
92926         * lib/argp-fmtstream.c: New file, from glibc.
92927         * lib/argp-fmtstream.h: New file, from glibc.
92928         * lib/argp-fs-xinl.c: New file, from glibc.
92929         * lib/argp-help.c: New file, from glibc.
92930         * lib/argp-namefrob.h: New file, from glibc.
92931         * lib/argp-parse.c: New file, from glibc.
92932         * lib/argp-pv.c: New file, from glibc.
92933         * lib/argp-pvh.c: New file, from glibc.
92934         * lib/argp-xinl.c: New file, from glibc.
92935
92936 2003-06-10  Simon Josefsson  <jas@extundo.com>
92937
92938         * modules/strchrnul: New file.
92939
92940 2003-06-10  Simon Josefsson  <jas@extundo.com>
92941
92942         * modules/argp: New file.
92943
92944 2003-06-10  Simon Josefsson  <jas@extundo.com>
92945
92946         * m4/strchrnul.m4: New file.
92947
92948 2003-06-10  Simon Josefsson  <jas@extundo.com>
92949
92950         * lib/strchrnul.h: New file.
92951         * lib/strchrnul.c: New file.
92952
92953 2003-06-10  Bruno Haible  <bruno@clisp.org>
92954
92955         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92956
92957 2003-06-07  Karl Berry  <karl@gnu.org>
92958
92959         * config/config.{guess,sub}: update from prep.
92960
92961 2003-06-07  Jim Meyering  <jim@meyering.net>
92962
92963         * modules/strtod: Use $(...) notation, not @...@ for
92964         AC_REPLACE'd variables.
92965         * modules/localcharset: Likewise.
92966
92967 2003-06-07  Jim Meyering  <jim@meyering.net>
92968
92969         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92970         in place of my name in the copyright comment.
92971         Remove definition and uses of __P.
92972
92973         From coreutils.
92974         * lib/stat.c: Don't declare xmalloc explicitly.
92975         Instead, include "xalloc.h".
92976         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92977         xrealloc, and xcalloc return values.
92978         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92979         Improve comment.
92980         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92981
92982 2003-06-07  Bruno Haible  <bruno@clisp.org>
92983
92984         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92985         avoid AC_CONFIG_LINKS.
92986         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92987         fnmatch.h, to avoid AC_CONFIG_LINKS.
92988         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92989
92990 2003-06-07  Bruno Haible  <bruno@clisp.org>
92991
92992         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92993         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92994         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92995         directory.
92996         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92997         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92998         directory.
92999
93000 2003-06-06  Jim Meyering  <jim@meyering.net>
93001
93002         Merge from coreutils.
93003         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93004         Consolidate declarations and initializations of *_base* locals.
93005
93006         Merge from coreutils.
93007         This avoids a core dump on systems without GNU putenv,
93008         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93009         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93010         (unsetenv): New static function, from GNU libc.
93011         (rpl_putenv): Use it.
93012
93013         * lib/modechange.c: Remove trailing blanks.
93014
93015         Merge from coreutils.
93016         * lib/fsusage.c: Remove declaration of statfs.
93017         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93018
93019         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93020
93021 2003-06-06  Jim Meyering  <jim@meyering.net>
93022
93023         * lib/stdbool_.h: Renamed from stdbool.h.in.
93024
93025 2003-06-06  Jim Meyering  <jim@meyering.net>
93026             Bruno Haible  <bruno@clisp.org>
93027
93028         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93029         Adjust Makefile.am snippet not to redirect directly to target.
93030         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93031
93032 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93033
93034         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93035         mismatch, look in future quarters as well as past.  This fixes a
93036         bug when processing fall-backwards gaps immediately after a long
93037         period of daylight-saving time.
93038
93039         * lib/mktime.c: Assume freestanding C89 or better.
93040         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93041         (__P): Remove; not used.
93042         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93043         (mktime, not_equal_tm, print_tm, check_result,
93044         main): Use prototypes.  Use const * where appropriate.
93045         (main): Fix typo in testing code that uncovered by above changes.
93046         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93047
93048 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93049
93050         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93051         locale.h, localeconv.  This merges changes from coreutils.
93052
93053         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93054         It can be removed after the next Autoconf is released.
93055         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93056         needed.
93057
93058 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93059
93060         * lib/mktime.c: Fix Debian bug 177940
93061         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93062         (localtime_offset): Now long int, not time_t, because we want it
93063         to be guaranteed to be signed.  All uses changed.
93064         (__mktime_internal): If overflow would occur when adding offset,
93065         don't add it.
93066
93067         Merge 'human' changes from coreutils.  Rewrite to support
93068         locale-specific notations like thousands separators.
93069         * lib/human.c: Simplify authorship notice.
93070         Include human.h immediately after config.h.
93071         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93072         <limits.h>: Do not include, since human.h does.
93073         (SIZE_MAX, UINTMAX_MAX): New macros.
93074         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93075         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93076         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93077         (power_letter): Renamed from suffixes.
93078         (generate_suffix_backwards): Remove.
93079         (adjust_value): Now takes int style (because of human.h changes)
93080         and long double value (for greater precision on some platforms).
93081         (group_number): New function.
93082         (human_readable): Use it.  Use integer options, not enum.
93083         Put the options before the sizes in the arg list.
93084         Support all the new options.
93085         The old human_readable function has been removed;
93086         use inttostr.h instead.
93087         (human_readable, default_block_size, humblock):
93088         Use uintmax_t, not int, for block sizes.
93089         (human_readable_inexact, block_size_types): Remove.
93090         (block_size_opts): New constant.
93091         (human_options): Renamed from human_block_size, with new signature
93092         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93093         * lib/human.h: Add copyright and authorship notice.
93094         Include <limits.h> and <stdbool.h> unconditionally.
93095         (PARAMS): Remove.  All uses removed.
93096         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93097         (enum human_inexact_style): Remove tag; now a nameless enum.
93098         (human_floor, human_ceiling, human_round_to_even): Now have
93099         values 2, 0, 1 rather than -1, 1, 0.
93100         (human_group_digits, human_suppress_point_zero, human_autoscale,
93101         human_base_1024, human_SI, human_B): New constants.
93102         (human_readable_inexact, human_block_size): Remove.
93103         (human_readable): Size args are now uintmax_t, not int.
93104         (human_options): New decl.
93105
93106         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93107         unnecessary now that we assume C89 or better.  This change
93108         imported from coreutils.
93109
93110         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93111         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93112         in the 2003-05-30 sync from glibc.
93113
93114         .h files should stand alone, but we shouldn't include <sys/types.h>
93115         if we can get away with just <stddef.h>.
93116
93117         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93118         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93119         rather than <sys/types.h>, as we merely need size_t.
93120         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93121         to get size_t.
93122         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93123         Include <stdio.h>, to get FILE.
93124         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93125         memcasecmp.h has included <stddef.h> and all we need is size_t.
93126         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93127         our interface, instead of including <sys/types.h>
93128
93129 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93130
93131         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93132         now, as glibc mktime is buggy on non-glibc systems.
93133
93134 2003-06-03  Karl Berry  <karl@gnu.org>
93135
93136         * config/config.sub: update from prep.
93137
93138 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93139
93140         [from coreutils]
93141         Fix some minor time-related bugs with POSIX time arguments.
93142         Some valid time stamps were being rejected (notably -1, and
93143         time stamps before 1900 on 64-bit hosts).  And some invalid
93144         time stamps were being accepted, e.g. September 31.
93145
93146         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93147         that we can return (time_t) -1 successfully.
93148         * lib/posixtm.c: Likewise.
93149         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93150         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93151         (t): Remove static var.
93152         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93153         of static var.  All uses changed.
93154         (year): Do not reject years before 1900; they can occur with
93155         64-bit time_t.
93156         (posix_time_parse): Do not check for out-of-range components;
93157         that is now the caller's responsibility, since our checks were
93158         only approximations.
93159         (posixtime): Use mktime to check for out-of-range components,
93160         since it knows them exactly.
93161         If mktime returns (time_t) -1, check whether an error actually occurred
93162         by invoking localtime on -1.
93163         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93164         posixtime failures better.
93165         Improve the test data (in comments only).
93166
93167 2003-06-02  Karl Berry  <karl@gnu.org>
93168
93169         * config/mkinstalldirs (version): new variable.
93170         (--version): new option.
93171         (usage): improve message.
93172
93173 2003-05-30  Karl Berry  <karl@gnu.org>
93174
93175         * lib/mktime.c: update from libc.
93176
93177 2003-05-30  Bruno Haible  <bruno@clisp.org>
93178
93179         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93180         * config/config.rpath: Upgrade to gettext-0.12.1.
93181
93182 2003-05-30  Bruno Haible  <bruno@clisp.org>
93183
93184         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93185         * m4/nls.m4: New file, from gettext-0.12.1.
93186         * m4/po.m4: New file, from gettext-0.12.1.
93187         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93188
93189 2003-05-30  Bruno Haible  <bruno@clisp.org>
93190
93191         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93192         * lib/localcharset.h: Likewise.
93193         * lib/localcharset.c: Likewise.
93194
93195 2003-05-29  Karl Berry  <karl@gnu.org>
93196
93197         * config/config.rpath: update from gettext.
93198
93199 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93200
93201         Assume the headers required for C89 freestanding compilers.
93202         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93203         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93204         * m4/human.m4 (gl_HUMAN): Likewise.
93205         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93206         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93207         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93208         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93209         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93210         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93211
93212 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93213
93214         Assume the headers required for C89 freestanding compilers.
93215         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93216         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93217         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93218         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93219         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93220         define, since <limits.h> is guaranteed to do that.
93221         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93222         * lib/exclude.c: Include <stdbool.h> unconditionally.
93223         * lib/tempname.c: Include <stddef.h> unconditionally.
93224         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93225         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93226         <stddef.h> does that.
93227         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93228         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93229         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93230         needed.
93231         * lib/xstrtol.c: Likewise.
93232         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93233         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93234
93235         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93236         warnings on some platforms.
93237
93238         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93239         arbitrarily.
93240
93241 2003-05-26  Jim Meyering  <jim@meyering.net>
93242
93243         Merge in a change from coreutils:
93244         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93245         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93246         that condition, rather than `-1' which is slightly misleading.
93247         Change the name of the cache variable to have the gl_ prefix.
93248         Prompted by a patch from Richard Dawe for DJGPP.
93249
93250 2003-05-24  Karl Berry  <karl@gnu.org>
93251
93252         * config/config.guess: update from prep.
93253
93254 2003-05-22  Karl Berry  <karl@gnu.org>
93255
93256         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93257
93258 2003-05-20  Karl Berry  <karl@gnu.org>
93259
93260         * config/config.guess: update from prep.
93261
93262 2003-05-18  Karl Berry  <karl@gnu.org>
93263
93264         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93265         might actually be set by the user.
93266
93267         * config/depcomp, install-sh, mdate-sh: update from automake.
93268
93269 2003-05-17  Bruno Haible  <bruno@clisp.org>
93270
93271         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93272         invalid expansion for AC_EGREP_CPP.
93273         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93274         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93275         Suggested by Akim Demaille <akim@epita.fr> in
93276         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93277
93278 2003-05-12  Jim Meyering  <jim@meyering.net>
93279
93280         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93281         the space-padded-by-default conversion specifiers, %e, %k, %l.
93282
93283 2003-05-12  Bruno Haible  <bruno@clisp.org>
93284
93285         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93286         the string is longer than 4 KB.
93287
93288 2003-05-11  Karl Berry  <karl@gnu.org>
93289
93290         * config/config.{guess,sub}: update from prep.
93291
93292 2003-05-09  Bruno Haible  <bruno@clisp.org>
93293
93294         * modules/error: Add m4/strerror_r.m4 to file list.
93295
93296 2003-05-03  Bruno Haible  <bruno@clisp.org>
93297
93298         Upgrade to Unicode-4.0.
93299         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93300         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93301         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93302         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93303         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93304         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93305         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93306         Change width of U+E0100..U+E01EF from 1 to 0.
93307
93308 2003-04-25  Jim Meyering  <jim@meyering.net>
93309
93310         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93311         of type size_t, not int.
93312
93313 2003-04-25  Bruno Haible  <bruno@clisp.org>
93314
93315         * lib/copy-file.c: Include <stddef.h>, for size_t.
93316
93317 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93318
93319         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93320         code which expansion is under static control.  Patch imported from
93321         Akim Demaille's patch to Bison; see
93322         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93323
93324 2003-04-14  Bruno Haible  <bruno@clisp.org>
93325
93326         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93327
93328 2003-04-11  Jim Meyering  <jim@meyering.net>
93329
93330         Merge changes from Coreutils.
93331
93332         2003-03-22  Jim Meyering  <jim@meyering.net>
93333
93334         * lib/strftime.c (widen): Cast alloca return value to proper type.
93335
93336         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93337
93338         From GNU libc.
93339         * lib/strftime.c (my_strftime): Handle very large width
93340         specifications for numeric values correctly.  Improve checks for
93341         overflow.
93342
93343         2003-01-19  Jim Meyering  <jim@meyering.net>
93344
93345         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93346         definitions.
93347         (nl_get_alt_digit) [! defined my_strftime]: Define.
93348         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93349         _nl_get_alt_digit and _nl_get_walt_digit.
93350
93351         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93352         libc. These changes have no effect outside of _LIBC.
93353
93354 2003-04-10  Bruno Haible  <bruno@clisp.org>
93355
93356         * modules/findprog: New file.
93357         * MODULES.html.sh (func_all_modules): Add it.
93358
93359 2003-04-10  Bruno Haible  <bruno@clisp.org>
93360
93361         * m4/findprog.m4: New file.
93362         * m4/eaccess.m4: New file.
93363
93364 2003-04-10  Bruno Haible  <bruno@clisp.org>
93365
93366         * lib/findprog.h: New file, from GNU gettext.
93367         * lib/findprog.c: New file, from GNU gettext.
93368
93369 2003-04-05  Jim Meyering  <jim@meyering.net>
93370
93371         Merge changes from Coreutils.
93372
93373         * lib/exclude.h (PARAMS): Remove definition and uses.
93374         * lib/exclude.c: Remove uses of `PARAMS'.
93375
93376         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93377         Add test-cases for DOS filenames. Declare program_name.
93378         (main): Set up program_name.  Patch by Rich Dawe.
93379
93380         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93381         error from mntctl.
93382         Use mntctl's return value to drive the entry-processing loop, since
93383         we can't rely on the value of the vmt_length member in the last
93384         entry.  On some systems doing so could result in exhausting
93385         virtual memory.  Based in part on a patch from Mike Jetzer.
93386
93387 2003-04-04  Bruno Haible  <bruno@clisp.org>
93388
93389         * modules/linebreak: New file.
93390         * MODULES.html.sh (func_all_modules): Add it.
93391
93392 2003-04-04  Bruno Haible  <bruno@clisp.org>
93393
93394         * m4/linebreak.m4: New file.
93395
93396 2003-04-04  Bruno Haible  <bruno@clisp.org>
93397
93398         * lib/linebreak.h: New file, from GNU gettext.
93399         * lib/linebreak.c: New file, from GNU gettext with slight
93400         modifications.
93401         * lib/lbrkprop.h: New file, from GNU gettext.
93402
93403 2003-04-03  Bruno Haible  <bruno@clisp.org>
93404
93405         * modules/utf8-ucs4: New file.
93406         * modules/utf16-ucs4: New file.
93407         * modules/ucs4-utf8: New file.
93408         * modules/ucs4-utf16: New file.
93409         * MODULES.html.sh (func_all_modules): Add them.
93410
93411 2003-04-03  Bruno Haible  <bruno@clisp.org>
93412
93413         * m4/utf-ucs4.m4: New file.
93414         * m4/ucs4-utf.m4: New file.
93415
93416 2003-04-03  Bruno Haible  <bruno@clisp.org>
93417
93418         * lib/utf8-ucs4.h: New file, from GNU gettext.
93419         * lib/utf16-ucs4.h: New file, from GNU gettext.
93420         * lib/ucs4-utf8.h: New file, from GNU gettext.
93421         * lib/ucs4-utf16.h: New file, from GNU gettext.
93422
93423 2003-04-02  Bruno Haible  <bruno@clisp.org>
93424
93425         * modules/binary-io: New file.
93426         * MODULES.html.sh (func_all_modules): Add it.
93427
93428 2003-04-02  Bruno Haible  <bruno@clisp.org>
93429
93430         * lib/binary-io.h: New file, from GNU gettext.
93431
93432 2003-04-01  Bruno Haible  <bruno@clisp.org>
93433
93434         * modules/pathname: New file.
93435         * MODULES.html.sh (func_all_modules): Add it.
93436
93437 2003-04-01  Bruno Haible  <bruno@clisp.org>
93438
93439         * lib/pathname.h: New file, from GNU gettext.
93440         * lib/concatpath.c: New file, from GNU gettext.
93441
93442 2003-03-30  Bruno Haible  <bruno@clisp.org>
93443
93444         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93445
93446 2003-03-30  Bruno Haible  <bruno@clisp.org>
93447
93448         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93449         function chown() doesn't exist.
93450
93451 2003-03-28  Bruno Haible  <bruno@clisp.org>
93452
93453         * modules/copy-file: New file.
93454         * MODULES.html.sh (func_all_modules): Add it.
93455
93456 2003-03-28  Bruno Haible  <bruno@clisp.org>
93457
93458         * m4/copy-file.m4: New file.
93459
93460 2003-03-28  Bruno Haible  <bruno@clisp.org>
93461
93462         * lib/copy-file.h: New file, from GNU gettext.
93463         * lib/copy-file.c: New file, from GNU gettext.
93464
93465 2003-03-18  Jim Meyering  <jim@meyering.net>
93466
93467         * lib/quote.c (quote_n): Fix typo in comment.
93468
93469 2003-03-18  Bruno Haible  <bruno@clisp.org>
93470
93471         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93472         checking.
93473         * m4/onceonly_2_57.m4: Likewise.
93474
93475 2003-03-17  Bruno Haible  <bruno@clisp.org>
93476
93477         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93478         (m4_quote): Remove macro.
93479         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93480
93481 2003-03-14  Jim Meyering  <jim@meyering.net>
93482
93483         Merge changes from Coreutils.
93484         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93485         to be const, in order to avoid warnings.
93486         (obstack_room): Likewise.
93487         (obstack_empty_p): Likewise.
93488
93489 2003-03-14  Bruno Haible  <bruno@clisp.org>
93490
93491         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93492         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93493
93494 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93495
93496         Merge changes from Bison.
93497         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93498         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93499         when compiling Bison 1.875's `bitset bset = obstack_alloc
93500         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93501         * lib/hash.c: Include <stdbool.h> unconditionally.
93502
93503 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93504
93505         * m4/onceonly.m4 (m4_quote): New macro.
93506         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93507         Quote AC_FOREACH variable-expansions properly.
93508
93509 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93510
93511         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93512
93513 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93514
93515         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93516         Reported by Bruce Becker; see:
93517         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93518
93519 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93520             Bruno Haible  <bruno@clisp.org>
93521
93522         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93523         Reported by John Hughes, see
93524         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93525
93526 2003-02-20  Bruno Haible  <bruno@clisp.org>
93527
93528         * MODULES.html.sh (func_all_modules): Add poll.
93529
93530 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93531
93532         * modules/poll: New file.
93533
93534 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93535
93536         * lib/poll_.h: New file.
93537         * lib/poll.c: New file.
93538
93539 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93540
93541         * m4/poll.m4: New file.
93542
93543 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93544
93545         * modules/mathl: New file.
93546
93547 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93548
93549         * lib/mathl.h: New file.
93550         * lib/acosl.c: New file.
93551         * lib/asinl.c: New file.
93552         * lib/atanl.c: New file.
93553         * lib/ceill.c: New file.
93554         * lib/cosl.c: New file.
93555         * lib/expl.c: New file.
93556         * lib/floorl.c: New file.
93557         * lib/frexpl.c: New file.
93558         * lib/ldexpl.c: New file.
93559         * lib/logl.c: New file.
93560         * lib/sincosl.c: New file.
93561         * lib/sinl.c: New file.
93562         * lib/sqrtl.c: New file.
93563         * lib/tanl.c: New file.
93564         * lib/trigl.c: New file.
93565         * lib/trigl.h: New file.
93566
93567 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93568
93569         * m4/mathl.m4: New file.
93570
93571 2003-02-18  Bruno Haible  <bruno@clisp.org>
93572
93573         * MODULES.html.sh (func_all_modules): Add mathl.
93574
93575 2003-02-17  Bruno Haible  <bruno@clisp.org>
93576
93577         * modules/mkdtemp: New module.
93578         * MODULES.html.sh (func_all_modules): Add it.
93579
93580 2003-02-17  Bruno Haible  <bruno@clisp.org>
93581
93582         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93583
93584 2003-02-17  Bruno Haible  <bruno@clisp.org>
93585
93586         * lib/mkdtemp.h: New file, from GNU gettext.
93587         * lib/mkdtemp.c: New file, from GNU gettext.
93588
93589 2003-02-02  Jim Meyering  <jim@meyering.net>
93590
93591         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93592         e.g. glibc-2.2.93.
93593
93594 2003-01-31  Bruno Haible  <bruno@clisp.org>
93595
93596         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93597         'rpl_rename'.
93598         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93599         'rpl_strnlen'.
93600         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93601         'rpl_strtod'.
93602         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93603         'rpl_utime'.
93604
93605 2003-01-31  Bruno Haible  <bruno@clisp.org>
93606
93607         * lib/rename.c: #undef rename before defining rpl_rename.
93608         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93609
93610 2003-01-30  Bruno Haible  <bruno@clisp.org>
93611
93612         * modules/vasnprintf, modules/vasprintf: New modules.
93613         * MODULES.html.sh (func_all_modules): Add them.
93614
93615 2003-01-30  Bruno Haible  <bruno@clisp.org>
93616
93617         * m4/signed.m4: New file, from GNU gettext.
93618         * m4/longdouble.m4: New file, from GNU gettext.
93619         * m4/wchar_t.m4: New file, from GNU gettext.
93620         * m4/wint_t.m4: New file, from GNU gettext.
93621         * m4/vasnprintf.m4: New file.
93622         * m4/vasprintf.m4: New file.
93623
93624 2003-01-30  Bruno Haible  <bruno@clisp.org>
93625
93626         * lib/printf-args.h: New file, from GNU gettext.
93627         * lib/printf-args.c: New file, from GNU gettext.
93628         * lib/printf-parse.h: New file, from GNU gettext.
93629         * lib/printf-parse.c: New file, from GNU gettext.
93630         * lib/vasnprintf.h: New file, from GNU gettext.
93631         * lib/vasnprintf.c: New file, from GNU gettext.
93632         * lib/asnprintf.c: New file, from GNU gettext.
93633         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93634         * lib/vasprintf.c: New file, from GNU gettext.
93635         * lib/asprintf.c: New file, from GNU gettext.
93636
93637 2003-01-29  Bruno Haible  <bruno@clisp.org>
93638
93639         * modules/stpncpy: New module.
93640         * MODULES.html.sh (func_all_modules): Add it.
93641
93642 2003-01-29  Bruno Haible  <bruno@clisp.org>
93643
93644         * m4/stpncpy.m4: New file.
93645
93646 2003-01-29  Bruno Haible  <bruno@clisp.org>
93647
93648         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93649         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93650
93651 2003-01-28  Bruno Haible  <bruno@clisp.org>
93652
93653         * modules/c-ctype: New module.
93654         * MODULES.html.sh (func_all_modules): Add it.
93655
93656 2003-01-28  Bruno Haible  <bruno@clisp.org>
93657
93658         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93659         Paul Eggert.
93660         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93661         Paul Eggert.
93662
93663 2003-01-27  Bruno Haible  <bruno@clisp.org>
93664
93665         * modules/xsetenv: New module.
93666         * MODULES.html.sh (func_all_modules): Add it.
93667
93668 2003-01-27  Bruno Haible  <bruno@clisp.org>
93669
93670         * lib/xsetenv.h: New file, from GNU gettext.
93671         * lib/xsetenv.c: New file, from GNU gettext.
93672
93673 2003-01-23  Jim Meyering  <jim@meyering.net>
93674
93675         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93676         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93677
93678 2003-01-23  Bruno Haible  <bruno@clisp.org>
93679
93680         * modules/minmax: New module.
93681         * MODULES.html.sh (func_all_modules): Add it.
93682
93683 2003-01-23  Bruno Haible  <bruno@clisp.org>
93684
93685         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93686         Eggert.
93687
93688 2003-01-22  Bruno Haible  <bruno@clisp.org>
93689
93690         * modules/exit: New module.
93691         * MODULES.html.sh (func_all_modules): Add it.
93692
93693 2003-01-22  Bruno Haible  <bruno@clisp.org>
93694
93695         * lib/exit.h: New file, from GNU gettext.
93696
93697 2003-01-19  Bruno Haible  <bruno@clisp.org>
93698
93699         * gnulib-tool: Recognize option --extract-maintainer.
93700         (func_get_maintainer): New function.
93701         * modules/*: Add Maintainer entry.
93702
93703 2003-01-16  Jim Meyering  <jim@meyering.net>
93704
93705         * m4/regex.m4: The `regex' struct is both input and output.
93706         Initialize it before each use.  Patch by Tim Waugh.
93707
93708 2003-01-16  Bruno Haible  <bruno@clisp.org>
93709
93710         * MODULES.html.sh: Add a table of contents. Add the module name as
93711         leftmost column. Add hyperlinks.
93712
93713 2003-01-15  Bruno Haible  <bruno@clisp.org>
93714
93715         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93716
93717 2003-01-15  Bruno Haible  <bruno@clisp.org>
93718
93719         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93720         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93721         suffix.
93722
93723 2003-01-15  Bruno Haible  <bruno@clisp.org>
93724
93725         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93726
93727 2003-01-15  Bruno Haible  <bruno@clisp.org>
93728
93729         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93730         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93731
93732 2003-01-14  Jim Meyering  <jim@meyering.net>
93733
93734         * lib/same.c (same_name): Tweak a comment.
93735
93736 2003-01-14  Bruno Haible  <bruno@clisp.org>
93737
93738         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93739         when a string comparison is sufficient.
93740
93741 2003-01-14  Bruno Haible  <bruno@clisp.org>
93742
93743         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93744         'unsigned int'.
93745
93746 2003-01-14  Bruno Haible  <bruno@clisp.org>
93747
93748         * lib/hash-pjw.c: Add comment about low quality of this function.
93749
93750 2003-01-13  Bruno Haible  <bruno@clisp.org>
93751
93752         * modules/stpcpy: Distribute lib/stpcpy.h.
93753         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93754
93755 2003-01-13  Bruno Haible  <bruno@clisp.org>
93756
93757         * modules/*: Add a description.
93758         * modules/strpbrk: Fix Makefile.am snippet.
93759         * modules/strtoimax: Fix dependencies.
93760         * modules/strtoumax: Likewise.
93761
93762 2003-01-13  Bruno Haible  <bruno@clisp.org>
93763
93764         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93765         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93766         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93767
93768 2003-01-13  Bruno Haible  <bruno@clisp.org>
93769
93770         * gnulib-tool (func_create_testdir): Store config/* files in the main
93771         directory.
93772         * config.rpath: Move to ...
93773         * config/config.rpath: ... here.
93774         * modules/gettext: Contains config/config.rpath, not config.rpath.
93775         * modules/iconv: Likewise.
93776
93777 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93778
93779         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93780         to avoid collisions with libcurses and libreadline.
93781
93782         * m4/getstr.m4: Remove.
93783         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93784
93785 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93786
93787         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93788         to avoid collisions with libcurses and libreadline.
93789
93790         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93791         * lib/getstr.h, getstr.c: Remove.
93792         * lib/getline.c: Include "getline.h", to check interface.
93793         Move body of old getstr.c here: this defines MIN_CHUNK and
93794         declares getdelim2, which is renamed from getstr.
93795         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93796
93797         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93798         All uses changed.
93799         * lib/linebuffer.h: Likewise.
93800         (readline): Remove backward-compatibility macro.
93801
93802 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93803
93804         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93805         to avoid collisions with libcurses and libreadline.
93806         * getstr: Remove.
93807         * MODULES.html.sh: Remove getstr.
93808         * modules/getline: Depend on unlocked-io, not getstr.
93809
93810 2003-01-12  Jim Meyering  <jim@meyering.net>
93811
93812         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93813
93814 2003-01-10  Bruno Haible  <bruno@clisp.org>
93815
93816         * modules/alloca: Change Makefile.am requirements. Simplify Include
93817         requirements. Add lib/alloca_.h to file list.
93818
93819 2003-01-10  Bruno Haible  <bruno@clisp.org>
93820
93821         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93822
93823 2003-01-10  Bruno Haible  <bruno@clisp.org>
93824
93825         * lib/alloca_.h: New file.
93826         * lib/getdate.y: Unconditionally include alloca.h.
93827         * lib/makepath.c: Likewise.
93828         * lib/setenv.c: Likewise.
93829         * lib/userspec.c: Likewise.
93830
93831 2003-01-09  Karl Berry  <karl@gnu.org>
93832
93833         * MODULES.html.sh: include `dirname $0` in PATH, to find
93834         gnulib-tool.
93835
93836 2003-01-09  Bruno Haible  <bruno@clisp.org>
93837
93838         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93839         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93840
93841 2003-01-09  Bruno Haible  <bruno@clisp.org>
93842
93843         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93844
93845 2003-01-09  Bruno Haible  <bruno@clisp.org>
93846
93847         * lib/stdbool.h.in: New file.
93848
93849 2003-01-09  Bruno Haible  <bruno@clisp.org>
93850
93851         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93852         * MODULES.html.sh: Likewise.
93853
93854 2003-01-08  Jim Meyering  <jim@meyering.net>
93855
93856         * lib/full-write.c: Undefine and define-away `const' after inclusion
93857         of errno.h, not before.  Suggestion from Bruno Haible.
93858
93859 2003-01-08  Bruno Haible  <bruno@clisp.org>
93860
93861         * modules/full-read: Depend on full-write.
93862
93863 2003-01-08  Bruno Haible  <bruno@clisp.org>
93864
93865         * lib/safe-read.c: Include specification header first, to ensure its
93866         selfcontainedness.
93867         * lib/full-write.c: Likewise.
93868
93869 2003-01-07  Jim Meyering  <jim@meyering.net>
93870
93871         * lib/full-write.c: Rework so that it may serve to define full_read,
93872         too.
93873         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93874
93875 2003-01-07  Bruno Haible  <bruno@clisp.org>
93876
93877         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93878         <inttypes.h>.
93879         * lib/xstrtol.h: Likewise.
93880         * lib/xstrtoimax.c: Likewise.
93881         * lib/xstrtoumax.c: Likewise.
93882         * lib/human.h: Likewise.
93883
93884         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93885         on systems that have <inttypes.h> but not <stdint.h>.
93886
93887 2003-01-07  Bruno Haible  <bruno@clisp.org>
93888
93889         * MODULES.html.sh: Add copyright notice.
93890         (missed_files): Omit CVS directory entries.
93891         (func_module): Make it work with sed-3.02.
93892         * MODULES.txt: Remove file.
93893
93894 2003-01-06  Jim Meyering  <jim@meyering.net>
93895
93896         * lib/version-etc.c: Update year in translatable copyright string.
93897
93898 2003-01-03  Karl Berry  <karl@gnu.org>
93899
93900         * config/config.{guess,sub}: update from prep.
93901
93902 2003-01-02  Karl Berry  <karl@gnu.org>
93903
93904         * doc/COPYING.DOC: belatedly updated to 1.2.
93905
93906 2003-01-01  Karl Berry  <karl@gnu.org>
93907
93908         * gnulib-tool (func_verify_module): report module name $module in
93909         error message, not $1.
93910         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93911         be created, only if it doesn't exist.
93912         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93913
93914 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93915
93916         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93917
93918 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93919
93920         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93921         memcmp if strcoll doesn't work.
93922
93923 2002-12-31  Bruno Haible  <bruno@clisp.org>
93924
93925         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93926         nonempty.
93927
93928 2002-12-31  Bruno Haible  <bruno@clisp.org>
93929
93930         * lib/memcoll.c (STRCOLL): New macro.
93931         (memcoll): Use it.
93932
93933 2002-12-31  Bruno Haible  <bruno@clisp.org>
93934
93935         * lib/localcharset.h: New file.
93936         * lib/localcharset.c: Include it.
93937         * lib/unicodeio.c: Likewise.
93938
93939 2002-12-31  Bruno Haible  <bruno@clisp.org>
93940
93941         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93942         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93943
93944 2002-12-31  Bruno Haible  <bruno@clisp.org>
93945
93946         * lib/getline.h: Include <stddef.h>, for size_t.
93947
93948         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93949         * lib/unicodeio.c: Don't include <stddef.h>.
93950
93951 2002-12-31  Bruno Haible  <bruno@clisp.org>
93952
93953         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93954         HAVE_TM_ZONE.
93955
93956 2002-12-24  Karl Berry  <karl@gnu.org>
93957
93958         * config/config.guess: update from prep.
93959
93960 2002-12-24  Bruno Haible  <bruno@clisp.org>
93961
93962         General infrasructure.
93963         * m4/README: Rewritten.
93964         * m4/onceonly.m4: New file.
93965         * m4/onceonly_2_57.m4: New file.
93966
93967         Module atexit.
93968         * m4/atexit.m4: New file.
93969
93970         Module strtod.
93971         * m4/strtod.m4: New file.
93972
93973         Module strtol.
93974         * m4/strtol.m4: New file.
93975
93976         Module strtoul.
93977         * m4/strtoul.m4: New file.
93978
93979         Module memchr.
93980         * m4/memchr.m4: New file.
93981
93982         Module memcmp.
93983         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93984         (jm_FUNC_MEMCMP): Invoke it.
93985
93986         Module memcpy.
93987         * m4/memcpy.m4: New file.
93988
93989         Module memmove.
93990         * m4/memmove.m4: New file.
93991
93992         Module memset.
93993         * m4/memset.m4: New file.
93994
93995         Module strcspn.
93996         * m4/strcspn.m4: New file.
93997
93998         Module strpbrk.
93999         * m4/strpbrk.m4: New file.
94000
94001         Module strstr.
94002         * m4/strstr.m4: New file.
94003
94004         Module strerror.
94005         * m4/strerror.m4: New file.
94006
94007         Module mktime.
94008         * m4/mktime.m4: Renamed from jm-mktime.m4.
94009         (gl_PREREQ_MKTIME): New macro.
94010         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94011
94012         Module malloc.
94013         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94014         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94015         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94016
94017         Module realloc.
94018         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94019         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94020         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94021
94022         Module strftime.
94023         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94024         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94025         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94026         gl_TM_GMTOFF.
94027         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94028
94029         Module xalloc.
94030         * m4/xalloc.m4: New file.
94031
94032         Module alloca.
94033         * m4/alloca.m4: New file.
94034
94035         Module putenv.
94036         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94037         (jm_FUNC_PUTENV): Invoke it.
94038
94039         Module setenv.
94040         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94041         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94042         when invoked twice.
94043         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94044         gt_FUNC_SETENV.
94045
94046         Module memrchr.
94047         * m4/memrchr.m4: New file.
94048
94049         Module stpcpy.
94050         * m4/stpcpy.m4: New file.
94051
94052         Module strcase.
94053         * m4/strcase.m4: New file.
94054
94055         Module strdup.
94056         * m4/strdup.m4: New file.
94057
94058         Module strnlen.
94059         * m4/strnlen.m4: New file.
94060
94061         Module strndup.
94062         * m4/strndup.m4: New file.
94063
94064         Module xstrtod.
94065         * m4/xstrtod.m4: New file.
94066
94067         Module xstrtol.
94068         * m4/xstrtol.m4: New file.
94069
94070         Module getdate.
94071         * m4/getdate.m4: New file.
94072
94073         Module unlocked-io.
94074         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94075         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94076         * m4/jm-glibc-io.m4n: Remove file.
94077
94078         Module long-options.
94079         * m4/long-options.m4: New file.
94080
94081         Module md5.
94082         * m4/md5.m4: New file.
94083
94084         Module sha.
94085         * m4/sha.m4: New file.
94086
94087         Module getstr.
94088         * m4/getstr.m4: New file.
94089
94090         Module getline.
94091         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94092         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94093         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94094         simply getline. Infoke gl_PREREQ_GETLINE.
94095
94096         Module obstack.
94097         * m4/obstack.m4: New file.
94098
94099         Module hash.
94100         * m4/hash.m4: New file.
94101
94102         Module readtokens.
94103         * m4/readtokens.m4: New file.
94104
94105         Module strverscmp.
94106         * m4/strverscmp.m4: New file.
94107
94108         Module stdbool.
94109         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94110         OSF/1.
94111
94112         Module strtoll.
94113         * m4/strtoll.m4: New file.
94114
94115         Module strtoull.
94116         * m4/strtoull.m4: New file.
94117
94118         Module strtoimax.
94119         * m4/strtoimax.m4: New file.
94120
94121         Module strtoumax.
94122         * m4/strtoumax.m4: New file.
94123
94124         Module xstrtoimax.
94125         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94126         jm_AC_PREREQ_XSTRTOIMAX.
94127         Moved the strtol prerequisites to strtol.m4.
94128         Moved the strtoll prerequisites to strtoll.m4.
94129         Moved the strtoimax prerequisites to strtoimax.m4.
94130
94131         Module xstrtoumax.
94132         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94133         jm_AC_PREREQ_XSTRTOUMAX.
94134         Moved the strtoul prerequisites to strtoul.m4.
94135         Moved the strtoull prerequisites to strtoull.m4.
94136         Moved the strtoumax prerequisites to strtoumax.m4.
94137
94138         Module chown.
94139         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94140         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94141
94142         Module dup2.
94143         * m4/dup2.m4: New file.
94144
94145         Module ftruncate.
94146         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94147         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94148
94149         Module getgroups.
94150         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94151         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94152
94153         Module gettimeofday.
94154         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94155         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94156         gl_PREREQ_GETTIMEOFDAY.
94157
94158         Module mkdir.
94159         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94160         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94161
94162         Module mkstemp.
94163         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94164         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94165         jm_AC_TYPE_UINTMAX_T.
94166         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94167
94168         Module stat.
94169         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94170         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94171
94172         Module lstat.
94173         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94174         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94175
94176         Module timespec.
94177         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94178         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94179         * m4/st_mtim.m4: Indentation.
94180
94181         Module nanosleep.
94182         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94183         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94184         gl_PREREQ_NANOSLEEP.
94185
94186         Module regex.
94187         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94188         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94189         (gl_REGEX): New macro.
94190
94191         Module rename.
94192         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94193         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94194
94195         Module rmdir.
94196         * m4/rmdir.m4: New file.
94197
94198         Module utime.
94199         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94200         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94201         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94202
94203         Module dirname.
94204         * m4/dirname.m4: New file.
94205
94206         Module getopt.
94207         * m4/getopt.m4: New file.
94208
94209         Module unistd-safer.
94210         * m4/unistd-safer.m4: New file.
94211
94212         Module fnmatch.
94213         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94214         declaration.
94215         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94216         (gl_FUNC_FNMATCH_POSIX): New macro.
94217         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94218         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94219         simply fnmatch.
94220
94221         Module exclude.
94222         * m4/exclude.m4: New file.
94223
94224         Module human.
94225         * m4/human.m4: New file.
94226
94227         Module acl.
94228         * m4/acl.m4: Nop.
94229
94230         Module backupfile.
94231         * m4/backupfile.m4: New file.
94232         * m4/d-ino.m4: Indentation.
94233
94234         Module fsusage.
94235         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94236         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94237         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94238
94239         Module dirfd.
94240         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94241         requirements.
94242
94243         Module euidaccess.
94244         * m4/euidaccess.m4: New file.
94245
94246         Module file-type.
94247         * m4/file-type.m4: New file.
94248
94249         Module fileblocks.
94250         * m4/fileblocks.m4: New file.
94251
94252         Module filemode.
94253         * m4/filemode.m4: New file.
94254
94255         Module isdir.
94256         * m4/isdir.m4: New file.
94257
94258         Module lchown.
94259         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94260         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94261
94262         Module makepath.
94263         * m4/makepath.m4: New file.
94264
94265         Module modechange.
94266         * m4/modechange.m4: New file.
94267
94268         Module mountlist.
94269         * m4/mountlist.m4: New file.
94270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94271         Indentation.
94272
94273         Module path-concat.
94274         * m4/path-concat.m4: New file.
94275
94276         Module pathmax.
94277         * m4/pathmax.m4: New file.
94278
94279         Module same.
94280         * m4/same.m4: New file.
94281
94282         Module save-cwd.
94283         * m4/save-cwd.m4: New file.
94284
94285         Module savedir.
94286         * m4/savedir.m4: New file.
94287
94288         Module xgetcwd.
94289         * m4/xgetcwd.m4: New file.
94290         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94291
94292         Module xreadlink.
94293         * m4/xreadlink.m4: New file.
94294
94295         Module safe-read.
94296         * m4/safe-read.m4: New file.
94297
94298         Module safe-write.
94299         * m4/safe-write.m4: New file.
94300
94301         Module closeout.
94302         * m4/closeout.m4: New file.
94303
94304         Module stdio-safer.
94305         * m4/stdio-safer.m4: New file.
94306
94307         Module getpass.
94308         * m4/getpass.m4: New file.
94309
94310         Module getugroups.
94311         * m4/getugroups.m4: New file.
94312
94313         Module group-member.
94314         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94315         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94316
94317         Module idcache.
94318         * m4/idcache.m4: New file.
94319
94320         Module userspec.
94321         * m4/userspec.m4: New file.
94322
94323         Module gettime.
94324         * m4/clock_time.m4: New file.
94325         * m4/gettime.m4: New file.
94326
94327         Module settime.
94328         * m4/settime.m4: New file.
94329
94330         Module posixtm.
94331         * m4/posixtm.m4: New file.
94332
94333         Module gethostname.
94334         * m4/gethostname.m4: New file.
94335
94336         Module canon-host.
94337         * m4/canon-host.m4: New file.
94338
94339         Module gettext.
94340         * m4/codeset.m4: New file, from gettext-0.11.5.
94341         * m4/gettext.m4: New file, from gettext-0.11.5.
94342         * m4/glibc21.m4: New file, from gettext-0.11.5.
94343         * m4/iconv.m4: New file, from gettext-0.11.5.
94344         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94345         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94346         * m4/inttypes.m4: New file, from gettext-0.11.5.
94347         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94348         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94349         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94350         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94351         * m4/lib-link.m4: New file, from gettext-0.11.5.
94352         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94353         * m4/progtest.m4: New file, from gettext-0.11.5.
94354         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94355         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94356         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94357
94358         Module localcharset.
94359         * m4/localcharset.m4: New file.
94360
94361         Module hard-locale.
94362         * m4/hard-locale.m4: New file.
94363
94364         Module mbswidth.
94365         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94366         onceonly macros.
94367         * m4/mbrtowc.m4: Add comment.
94368
94369         Module memcasecmp.
94370         * m4/memcasecmp.m4: New file.
94371
94372         Module memcoll.
94373         * m4/memcoll.m4: New file.
94374
94375         Module unicodeio.
94376         * m4/unicodeio.m4: New file.
94377
94378         Module rpmatch.
94379         * m4/rpmatch.m4: New file.
94380
94381         Module yesno.
94382         * m4/yesno.m4: New file.
94383
94384         Module exitfail.
94385         * m4/exitfail.m4: New file.
94386
94387         Module c-stack.
94388         * m4/c-stack.m4 (gl_C_STACK): New macro.
94389         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94390
94391         Module error.
94392         * m4/error.m4 (gl_ERROR): New macro.
94393         (jm_PREREQ_ERROR): Use onceonly macros.
94394
94395         Module fatal.
94396         * m4/fatal.m4: New file.
94397
94398         Module getloadavg.
94399         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94400         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94401
94402         Module getpagesize.
94403         * m4/getpagesize.m4: New file.
94404
94405         Module getusershell.
94406         * m4/getusershell.m4: New file.
94407
94408         Module physmem.
94409         * m4/physmem.m4: New file.
94410
94411         Module posixver.
94412         * m4/posixver.m4: New file.
94413
94414         Module quotearg.
94415         * m4/quotearg.m4: New file.
94416
94417         Module quote.
94418         * m4/quote.m4: New file.
94419
94420         Module readutmp.
94421         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94422
94423         Module sig2str.
94424         * m4/sig2str.m4: New file.
94425
94426         Other.
94427         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94428         ulonglong.m4.
94429         * m4/intmax_t.m4: New file.
94430         * m4/d-type.m4: Indentation.
94431         * m4/jm-macros.m4: Update.
94432         * m4/prereq.m4 (jm_PREREQ): Update.
94433         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94434         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94435         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94436         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94437         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94438         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94439         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94440         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94441         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94442         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94443         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94444         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94445         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94446         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94447         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94448         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94449         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94450         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94451         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94452
94453 2002-12-24  Bruno Haible  <bruno@clisp.org>
94454
94455         * MODULES.txt: Update according to m4/ changes.
94456
94457         Module gettext.
94458         * config.rpath: New file, from gettext-0.11.5.
94459
94460         * modules/*: New module descriptions.
94461         * gnulib-tool: New file.
94462         * MODULES.html.sh: New file.
94463
94464 2002-12-21  Karl Berry  <karl@gnu.org>
94465
94466         * doc/fdl.texi: update to version 1.2.
94467
94468 2002-12-19  Karl Berry  <karl@gnu.org>
94469
94470         * config/config.guess: update from prep.
94471
94472 2002-12-18  Bruno Haible  <bruno@clisp.org>
94473
94474         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94475         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94476
94477 2002-12-17  Bruno Haible  <bruno@clisp.org>
94478
94479         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94480         stdlib.h, string.h.
94481
94482 2002-12-17  Bruno Haible  <bruno@clisp.org>
94483
94484         * lib/canon-host.c (strdup): Remove unused declaration.
94485
94486         * lib/fsusage.c: Include full_read.h.
94487         (get_fs_usage): Use full_read instead of safe_read.
94488
94489         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94490
94491 2002-12-12  Karl Berry  <karl@gnu.org>
94492
94493         * config/config.guess: update from prep.
94494
94495 2002-12-11  Bruno Haible  <bruno@clisp.org>
94496
94497         * m4/setenv.m4: New file, from gettext-0.11.5.
94498
94499 2002-12-11  Bruno Haible  <bruno@clisp.org>
94500
94501         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94502         not unsetenv().
94503         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94504         modifications:
94505
94506         2002-12-11  Bruno Haible  <bruno@clisp.org>
94507
94508                 * setenv.c (alloca): Fall back to malloc.
94509                 (freea): New macro.
94510                 (setenv): Use freea() to free memory allocated with alloca().
94511
94512         2002-11-13  Bruno Haible  <bruno@clisp.org>
94513
94514                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94515                 function declarations.
94516                 * unsetenv.c (unsetenv): Likewise.
94517
94518         2002-03-04  Bruno Haible  <bruno@clisp.org>
94519
94520                 Portability to AIX 4.3.3.
94521                 * unsetenv.c: New file, extracted from setenv.c.
94522                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94523
94524         2001-12-20  Bruno Haible  <bruno@clisp.org>
94525
94526                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94527                 use malloc instead. For SunOS 4.
94528
94529         2001-12-11  Bruno Haible  <bruno@clisp.org>
94530
94531                 * setenv.c: Declare alloca.
94532                 (compar_fn_t): New typedef.
94533                 (KNOWN_VALUE, STORE_VALUE): Use it.
94534
94535         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94536         setenv.h.
94537
94538 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94539
94540         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94541         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94542         Choose values that are less likely to collide with system fnmatch
94543         options.
94544         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94545         defined (e.g., a pure POSIX system).
94546         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94547         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94548
94549 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94550
94551         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94552         a pain in practice to deal with generated m4 files.  This change
94553         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94554
94555         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94556         and jm-glibc-io.m4, as they are no longer a special case.
94557         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94558         kludge and the auto-generation stuff.  Check only whether the
94559         functions are declared, not whether they exist, since older hosts
94560         that don't declare the functions can't use the optimization anyway.
94561
94562 2002-12-06  Jim Meyering  <jim@meyering.net>
94563
94564         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94565
94566         Merge in changes from libc's misc/error.c, in preparation
94567         for the merge of gnulib's changes back into libc.
94568
94569         * lib/error.c (_): Define only if not already defined.
94570         Move definition to follow all #include directives.
94571         Include unlocked-io.h only if !_LIBC.
94572         [_LIBC]: Include <libio/libioP.h>.
94573         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94574         (fflush): Tweak definition to use INTUSE.
94575         (putc): Define.
94576
94577 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94578
94579         * lib/alloca.c [defined emacs]: Include "lisp.h".
94580         (xalloc_die) [defined emacs]: New macro.
94581         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94582         [! defined emacs]: Include <xalloc.h>.
94583         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94584         (pointer): Typedef to POINTER_TYPE *.
94585         (malloc): Remove decl; we now always use xmalloc.
94586         (alloca): Use old-style definition, since Emacs needs this.
94587         Check for arithmetic overflow when computing combined size.
94588
94589 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94590
94591         Do not generate unlocked-io.h automatically, since it's easier to
94592         maintain it by hand.
94593
94594         * lib/unlocked-io.h: New file, from GNU diffutils,
94595         but with proper copyright notice and attribution.
94596         * lib/gen-uio: Remove.
94597         * lib/Makefile.am: Add copyright notice.
94598         (libfetish_a_SOURCES): Add unlocked-io.h.
94599         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94600         (DISTCLEANFILES, io_functions): Remove macros.
94601         (EXTRA_DIST): Remove gen_uio.
94602         (unlocked-io.h): Remove rule.
94603
94604 2002-12-04  Jim Meyering  <jim@meyering.net>
94605
94606         Reflect the fact that stat.c and lstat.c are no longer generated.
94607         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94608         (DISTCLEANFILES): Likewise.
94609         (EXTRA_DIST): Likewise.
94610         (all_local): Don't depend on stat.c or lstat.c.
94611         (stat.c, lstat.c): Remove rules.
94612         (EXTRA_DIST): Remove xstat.in.
94613
94614         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94615         * lib/stat.c: New file.  Contents mostly from xstat.in.
94616         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94617         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94618
94619         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94620         too.
94621         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94622
94623 2002-12-03  Jim Meyering  <jim@meyering.net>
94624
94625         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94626         but not semantics, to minimize the differences between these two files.
94627         (safe_read): Change comment to mention SAFE_READ_ERROR.
94628
94629         * lib/safe-read.c (IS_EINTR): Define.
94630         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94631
94632 2002-12-02  Jim Meyering  <jim@meyering.net>
94633
94634         * lib/safe-read.c (EINTR): Define.
94635         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94636         (INT_MAX): Provide fallback.
94637         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94638
94639         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94640
94641 2002-12-02  Bruno Haible  <bruno@clisp.org>
94642
94643         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94644         Define, taken from safe-read.c.
94645         (INT_MAX): Provide fallback.
94646         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94647         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94648
94649         * lib/safe-read.c (EINTR): Remove definition.
94650         (safe_read): Don't use EINTR if it is absent.
94651
94652 2002-12-01  Jim Meyering  <jim@meyering.net>
94653
94654         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94655         zero.
94656         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94657
94658 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94659
94660         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94661         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94662         with `if (! (value < limit)) abort ();', for readability.
94663
94664 2002-11-26  Karl Berry  <karl@gnu.org>
94665
94666         * lib/strdup.c: copy from libc again, with jim's ok.
94667         * lib/.cppi-disable: re-add strdup.c
94668
94669 2002-11-25  Karl Berry  <karl@gnu.org>
94670
94671         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94672         instead of "strtol.c".
94673
94674 2002-11-25  Karl Berry  <karl@gnu.org>
94675
94676         * config/install-sh: update from automake for variable quoting, $0 in
94677         error msgs, etc.
94678
94679         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94680         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94681         entry.
94682
94683 2002-11-25  Jim Meyering  <jim@meyering.net>
94684
94685         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94686
94687 2002-11-24  Karl Berry  <karl@gnu.org>
94688
94689         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94690         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94691
94692 2002-11-24  Jim Meyering  <jim@meyering.net>
94693
94694         Update from coreutils:
94695
94696         * lib/mktime.c: Merge in changes from libc.
94697
94698         Avoid a link-time failure on some Linux systems.
94699         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94700         (otherwise).
94701         (__mon_yday): Declare with the STATIC attribute.
94702         (__mktime_internal): Likewise.
94703         Based on a report from Greg Schafer.
94704
94705 2002-11-23  Jim Meyering  <jim@meyering.net>
94706
94707         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94708         Use `unsigned', not `int', as type of index.
94709
94710         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94711
94712         * lib/fsusage.c: Remove unneeded parentheses around operands of
94713         `defined'.
94714
94715 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94716
94717         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94718         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94719         so that we can be included first.
94720         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94721         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94722         No need to include stddef.h or sys/types.h any more.
94723         Surround local include files with "", not "<>".
94724         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94725         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94726         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94727         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94728         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94729         (ISPRINT): Remove; no longer needed now that we assume C89.
94730
94731         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94732         Preserve errno.
94733
94734         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94735         quotearg_char): Use SIZE_MAX rather than
94736         (size_t) -1 when we are talking about "infinity".
94737
94738         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94739
94740 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94741
94742         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94743         hint that one should use `if (! x) abort ();' rather than `assert
94744         (x);', and anyway it's one less thing to worry about configuring.
94745         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94746         hash_rehash, hash_insert): Use abort rather than assert.
94747
94748 2002-11-22  Bruno Haible  <bruno@clisp.org>
94749
94750         * lib/safe-read.h: Assume C89. Add comments.
94751         (safe_read): Change return type to size_t.
94752         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94753         byte counts > SSIZE_MAX correctly.
94754         * lib/safe-write.h: New file.
94755         * lib/safe-write.c: New file.
94756         * lib/full-read.h: New file.
94757         * lib/full-read.c: New file.
94758         * lib/full-write.h: Assume C89. Add comments.
94759         * lib/full-write.c: Include safe-write.h.
94760         (full_write): Rewritten to use safe_write.
94761         Suggested by Jim Meyering and Paul Eggert.
94762
94763 2002-11-21  Jim Meyering  <jim@meyering.net>
94764
94765         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94766
94767         Merge in changes from the coreutils.
94768
94769         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94770         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94771         <stdint.h>.
94772         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94773         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94774         int.  Work more efficiently if X is the same width as uintmax_t.
94775         Do not compare X to -1, to avoid bogus compiler warning.
94776         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94777         Don't assume that f_frsize and f_bsize are the same type.
94778
94779         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94780         warning on FreeBSD.
94781
94782         * lib/makepath.c (make_path): Restore umask *before* creating the final
94783         component.
94784         (make_path): Minor reformatting.
94785
94786         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94787         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94788         HAVE_MALLOC/HAVE_REALLOC.
94789
94790         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94791         dummy ones.  At least on GNU/Linux systems, `auto' means something
94792         else.
94793         From Michael Stone.
94794
94795 2002-11-21  Bruno Haible  <bruno@clisp.org>
94796
94797         Remove case insensitive option matching.
94798         * lib/argmatch.h (argcasematch): Remove declaration.
94799         (ARGCASEMATCH): Remove macro.
94800         (__xargmatch_internal): Remove case_sensitive argument.
94801         (XARGMATCH): Update.
94802         (XARGCASEMATCH): Remove macro.
94803         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94804         case_sensitive argument.
94805         (argcasematch): Remove function.
94806         (__xargmatch_internal): Remove case_sensitive argument.
94807         (main): Use XARGMATCH instead of XARGCASEMATCH.
94808
94809         * lib/xmalloc.c: Change compile-time error message. Add comment about
94810         required autoconf version.
94811
94812 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94813
94814         Merge argmatch cleanups from Bison.  Assume C89.
94815
94816         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94817         Include stdlib.h, for EXIT_FAILURE.
94818         Always include <string.h>, since we assume C89.
94819         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94820         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94821         Include <stddef.h> instead, since it's all we need for size_t.
94822         (PARAMS): Remove.  All uses removed.
94823         (ARRAY_CARDINALITY): Do not bother to #undef.
94824         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94825         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94826         Remove unnecessary parentheses.
94827         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94828         Insert necessary parentheses.
94829         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94830         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94831
94832 2002-11-19  Bruno Haible  <bruno@clisp.org>
94833
94834         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94835         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94836
94837         * lib/mbswidth.h (PARAMS): Remove macro.
94838         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94839         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94840
94841         * lib/gcd.h (PARAMS): Remove macro.
94842         (gcd): Use ANSI C function declarations.
94843         * lib/gcd.c (gcd): Likewise.
94844
94845 2002-11-15  Bruno Haible  <bruno@clisp.org>
94846
94847         * lib/strcspn.c: Include <stddef.h>.
94848         (strcspn): Use ANSI C function declaration. Change return type to
94849         size_t. Use NULL.
94850         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94851         (strpbrk): Use NULL.
94852         * lib/strpbrk.h (PARAMS): Remove macro.
94853         (strpbrk): Use ANSI C function declaration.
94854         * lib/strstr.c: Don't include <sys/types.h>.
94855         * lib/strstr.h (PARAMS): Remove macro.
94856         (strstr): Use ANSI C function declarations.
94857
94858 2002-11-14  Karl Berry  <karl@gnu.org>
94859
94860         * config/mkinstalldirs: `do' on separate line, instead of
94861         `for var; do'.
94862
94863 2002-11-06  Bruno Haible  <bruno@clisp.org>
94864
94865         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94866         * lib/gcd.c (gcd): Likewise.
94867
94868 2002-11-05  Bruno Haible  <bruno@clisp.org>
94869
94870         * lib/gcd.h: New file, from gettext-0.11.5.
94871         * lib/gcd.c: New file, from gettext-0.11.5.
94872
94873 2002-11-05  Bruno Haible  <bruno@clisp.org>
94874
94875         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94876         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94877         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94878         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94879
94880         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94881         <libintl.h>.
94882         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94883         <libintl.h>.
94884
94885         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94886         * lib/human.c: Include gettext.h instead of <libintl.h>.
94887         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94888         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94889         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94890         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94891         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94892         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94893         (textdomain): Remove definition.
94894         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94895
94896         * lib/long-options.c: Remove include of <libintl.h> and definition of
94897         _.
94898         * lib/same.c: Remove include of <libintl.h> and definition of _.
94899
94900 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94901
94902         * lib/config.charset: A few additions for Solaris.
94903
94904 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94905
94906         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94907         * lib/localcharset.c (locale_charset): Declare as extern "C".
94908
94909 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94910
94911         * lib/config.charset: msdos in uk_UA uses CP1125.
94912
94913 2002-11-04  Bruno Haible  <bruno@clisp.org>
94914
94915         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94916         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94917         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94918         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94919         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94920
94921 2002-11-04  Bruno Haible  <bruno@clisp.org>
94922
94923         * lib/localcharset.c (locale_charset): Don't return an empty string.
94924
94925 2002-11-04  Bruno Haible  <bruno@clisp.org>
94926
94927         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94928         aliases.
94929
94930 2002-11-04  Bruno Haible  <bruno@clisp.org>
94931
94932         * lib/config.charset: Update for newest glibc. Add canonical names
94933         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94934
94935 2002-11-04  Bruno Haible  <bruno@clisp.org>
94936
94937         * lib/config.charset: Add support for NetBSD.
94938
94939 2002-11-04  Bruno Haible  <bruno@clisp.org>
94940
94941         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94942
94943 2002-11-01  Bruno Haible  <bruno@clisp.org>
94944
94945         * configure.in: Add AC_CONFIG_AUX_DIR call.
94946         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94947         test/Makefile.
94948         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94949
94950 2002-09-28  Karl Berry  <karl@gnu.org>
94951
94952         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94953         installed automake until the next release, since changes have been
94954         made.
94955
94956 2002-09-25  Karl Berry  <karl@gnu.org>
94957
94958         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94959         * lib/getopt*: copy from libc/posix.
94960         * lib/gettext.h: copy from gettext.
94961         * lib/.cppi-disable: add strdup.c, gettext.h.
94962
94963 2002-09-25  Karl Berry  <karl@gnu.org>
94964
94965         * config/srclist.txt: enable gettext.h check.
94966         * config/config.{guess,sub}: update from prep.
94967         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94968                 from automake 1.6.3.
94969         See srclist*.
94970
94971 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94972
94973         * regex.c (PATFETCH): Remove the translating fetch.
94974         (PATFETCH_RAW): Rename to PATFETCH.
94975         (set_image_of_range): New fun.
94976         (SET_RANGE_TABLE_WORK_AREA): Use it.
94977         (regex_compile): Don't translate the pattern chars so eagerly.
94978         Only do it when inserting an `exactn' bytecode or when handling
94979         a char-range.
94980         (mutually_exclusive_p): Avoid empty statement.
94981
94982 2002-07-06  Jim Meyering  <meyering@lucent.com>
94983
94984         * m4/README: Don't mention Makefile.am.in.
94985         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94986
94987 2002-07-01  Jim Meyering  <meyering@lucent.com>
94988
94989         * lib/c-stack.c: Include sys/time.h.
94990         From Volker Borchert.
94991
94992 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94993
94994         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94995
94996 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94997
94998         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94999         New macro.  Use it uniformly instead of
95000         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95001         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95002         reported by Vin Shelton.
95003
95004 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95005
95006         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95007         Do not assume SA_SIGINFO behavior.
95008         Bug reported by Jim Meyering on NetBSD 1.5.2.
95009
95010 2002-06-22  Jim Meyering  <meyering@lucent.com>
95011
95012         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95013         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95014
95015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95016         now that configure.ac uses AC_GNU_SOURCE.
95017         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95018         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95019
95020         Update to latest tools.  Suggestions from Paul Eggert.
95021         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95022         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95023         * m4/fnmatch.m4: Likewise.
95024         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95025         to AC_HEADER_STDBOOL
95026
95027 2002-06-22  Jim Meyering  <meyering@lucent.com>
95028
95029         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95030         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95031
95032 2002-06-22  Jim Meyering  <meyering@lucent.com>
95033
95034         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95035
95036         * lib/exitfail.c, exitfail.h: Likewise.
95037         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95038
95039         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95040         of fnmatch.h.
95041         (EXTRA_DIST): Add fnmatch_loop.c.
95042         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95043
95044         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95045         * lib/fnmatch.c: Update from diffutils-2.8.2.
95046         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95047         * lib/fnmatch.h: Remove file.
95048
95049 2002-06-21  Jim Meyering  <meyering@lucent.com>
95050
95051         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95052         * m4/mbrtowc.m4: Likewise.
95053
95054         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95055         * m4/mbswidth.m4: Reflect name change:
95056         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95057         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95058
95059         * m4/lib-link.m4: Update from gettext-0.11.2.
95060         * m4/gettext.m4: Likewise.
95061
95062         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95063         From Alfred M. Szmidt.
95064
95065 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95066
95067         * lib/file-type.h: Report an error if neither S_ISREG nor
95068         S_IFREG is defined, instead of using a test specific to glibc
95069         2.2.  This should be safe, since POSIX requires S_ISREG and
95070         Unix Version 7 had S_IFREG.  We don't need to check for
95071         <sys/types.h> since we don't use any symbols that it defines.
95072
95073 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95074
95075         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95076         $@-t, so that each temporary file name is unique and valid in the first
95077         8 characters, for operation under DOS.
95078
95079 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95080
95081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95082
95083 2002-06-15  Jim Meyering  <meyering@lucent.com>
95084
95085         Work even with DJGPP 2.03, which lacks support for symlinks.
95086         From Richard Dawe.
95087         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95088         is defined.
95089         * lib/lchown.c (S_ISLNK): Likewise.
95090
95091 2002-06-15  Jim Meyering  <meyering@lucent.com>
95092
95093         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95094         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95095         have been included before this file.
95096
95097 2002-06-14  Jim Meyering  <meyering@lucent.com>
95098
95099         * lib/file-type.h: Use the version from diffutils-2.8.2.
95100         * lib/file-type.c: Likewise.
95101
95102 2002-06-07  Jim Meyering  <meyering@lucent.com>
95103
95104         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95105         They're needed at least for NetBSD 1.5.2.
95106         ($statxfs_includes): Include those same headers.
95107         ($statxfs_includes): Include sys/vfs.h if available.
95108         ($statxfs_includes): Likewise for sys/statvfs.h.
95109         Check for the following members in both structs statfs and statvfs:
95110         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95111
95112 2002-06-01  Jim Meyering  <meyering@lucent.com>
95113
95114         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95115         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95116
95117 2002-05-28  Jim Meyering  <meyering@lucent.com>
95118
95119         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95120         Reported by Volker Borchert.
95121
95122 2002-05-27  Jim Meyering  <meyering@lucent.com>
95123
95124         Fix a problem seen only on nonconforming systems whereby ls.c's
95125         use of localtime, and then of gettimeofday would cause trouble:
95126         the localtime call used to initialize rpl_gettimeofday's save
95127         mechanism would clobber ls's current local time information so
95128         that in any long listing the first file would always be listed
95129         with date 1970-01-01.  Analysis by Volker Borchert.
95130
95131         * lib/gettimeofday.c (localtime): Undefine.
95132         (rpl_localtime): New function.
95133
95134 2002-05-27  Jim Meyering  <meyering@lucent.com>
95135
95136         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95137         localtime.
95138
95139         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95140         use the replacement function; it wouldn't resolve at link time.
95141         Reported by Volker Borchert.
95142
95143 2002-05-22  Jim Meyering  <meyering@lucent.com>
95144
95145         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95146         file-type.h.
95147         * lib/file-type.h: New file.
95148         * lib/file-type.c (file_type): New file/function.  Extracted from
95149         diffutils.
95150
95151 2002-04-30  Jim Meyering  <meyering@lucent.com>
95152
95153         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95154
95155 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95156
95157         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95158
95159 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95160
95161         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95162         Do not check for alloca.h (no longer used) or stdbool.h (was never
95163         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95164
95165 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95166
95167         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95168
95169 2002-04-29  Jim Meyering  <meyering@lucent.com>
95170
95171         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95172         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95173         Use AC_FUNC_STRNLEN here instead.
95174
95175         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95176         With autoconf-2.53a, it's part of AC_PROG_CC.
95177
95178 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95179
95180         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95182
95183 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95184
95185         * lib/sig2str.h, lib/sig2str.c: New files.
95186         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95187
95188 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95189
95190         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95191         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95192         of 127, since 64 is the largest conceivable number for ancient
95193         nonstandard hosts.
95194         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95195
95196 2002-04-28  Jim Meyering  <meyering@lucent.com>
95197
95198         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95199
95200 2002-04-24  Jim Meyering  <meyering@lucent.com>
95201
95202         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95203         (jm_PREREQ): Use it.
95204
95205         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95206         mach/mach.h fcntl.h.
95207         Check for this function: setlocale.
95208
95209 2002-04-24  Jim Meyering  <meyering@lucent.com>
95210
95211         * lib/gettext.h: New file, from Gettext.
95212         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95213         (libfetish_a_SOURCES): Add gettext.h.
95214
95215 2002-04-16  Jim Meyering  <meyering@lucent.com>
95216
95217         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95218         ut_pid, ut_id, ut_exit.
95219
95220 2002-04-16  Jim Meyering  <meyering@lucent.com>
95221
95222         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95223         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95224         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95225
95226 2002-04-12  Jim Meyering  <meyering@lucent.com>
95227
95228         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95229         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95230         existence of the getmntinfo function.  Needed for Darwin 5.3.
95231
95232         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95233         This is necessary at least on Darwin 5.3.
95234
95235         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95236         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95237         strnlen.o in the library, and that makes some versions of ranlib
95238         object.
95239
95240 2002-04-12  Jim Meyering  <meyering@lucent.com>
95241
95242         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95243
95244 2002-04-09  Jim Meyering  <meyering@lucent.com>
95245
95246         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95247         to be more precise.  Rather than saying we're checking whether the
95248         function `works', say what we're testing.
95249         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95250         Reported by Bruno Haible.
95251
95252 2002-03-10  Jim Meyering  <meyering@lucent.com>
95253
95254         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95255         Suggestion from Santiago Vila.
95256
95257 2002-03-08  Jim Meyering  <meyering@lucent.com>
95258
95259         * lib/rename.c: Mention that this wrapper is needed also on
95260         mips-dec-ultrix4.4 systems.
95261
95262 2002-03-02  Jim Meyering  <meyering@lucent.com>
95263
95264         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95265         not HAVE_CLOCK_SETTIME.
95266
95267 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95268
95269         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95270         Check for clock_settime.
95271
95272 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95273
95274         * lib/nanosleep.h: Rename to....
95275         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95276
95277         * lib/gettime.c: New file.
95278         * lib/settime.c: New file.
95279         * lib/stime.c: Remove.
95280
95281         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95282         timespec.h.  Remove nanosleep.h.
95283
95284 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95285
95286         * m4/acl.m4: New file.
95287         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95288         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95289
95290 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95291
95292         * lib/acl.c, lib/acl.h: New files.
95293         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95294
95295 2002-02-24  Jim Meyering  <meyering@lucent.com>
95296
95297         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95298         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95299         cause trouble.  Reported by Nelson Beebe.
95300
95301 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95302
95303         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95304         compilers that don't know that xalloc_die never returns.
95305
95306 2002-02-20  Jim Meyering  <meyering@lucent.com>
95307
95308         * lib/getdate.c: Regenerate using bison-1.33.
95309
95310 2002-02-17  Jim Meyering  <meyering@lucent.com>
95311
95312         * config/config.guess (main): Don't use `head -1'; it's no longer
95313         portable. Use `sed 1q' instead.
95314
95315 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95316
95317         * m4/codeset.m4: Upgrade to gettext-0.11.
95318         * m4/gettext.m4: Upgrade to gettext-0.11.
95319         * m4/glibc21.m4: Upgrade to gettext-0.11.
95320         * m4/iconv.m4: Upgrade to gettext-0.11.
95321         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95322         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95323         * m4/lib-ld.m4: New file, from gettext-0.11.
95324         * m4/lib-link.m4: New file, from gettext-0.11.
95325         * m4/lib-prefix.m4: New file, from gettext-0.11.
95326         * m4/progtest.m4: Upgrade to gettext-0.11.
95327
95328 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95329
95330         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95331         (jm_PREREQ): Use it.
95332
95333 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95334
95335         * lib/posixver.c, lib/posixver.h: New files.
95336         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95337
95338 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95339             Bruno Haible  <bruno@clisp.org>
95340
95341         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95342         (fwrite_success_callback): New declaration.
95343         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95344         print_unicode_char. Call failure callback instead of error.
95345         (fwrite_success_callback): New function.
95346         (exit_failure_callback): New function.
95347         (fallback_failure_callback): New function.
95348         (print_unicode_char): Call unicode_to_mb.
95349
95350 2002-01-26  Jim Meyering  <meyering@lucent.com>
95351
95352         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95353         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95354
95355 2002-01-26  Jim Meyering  <meyering@lucent.com>
95356
95357         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95358
95359 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95360
95361         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95362
95363 2002-01-22  Jim Meyering  <meyering@lucent.com>
95364
95365         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95366         Otherwise, some versions of automake would omit the rule that makes
95367         Makefile from Makefile.in.
95368
95369 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95370
95371         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95372         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95373         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95374         (memcoll): Set errno to zero if there is no error.
95375
95376         * lib/quotearg.c (quotearg_buffer_restyled):
95377         Fix bug with quoting buffers containing NUL when backslashing escapes.
95378         This bug was exposed by the other changes in this patch.
95379         (quotearg_n_options): New arg ARGSIZE.
95380         All callers changed.
95381         (quoting_options_from_style): New function.
95382         (quotearg_n_style): Use it.
95383         (quotearg_n_style_mem): New function.
95384
95385         * lib/quotearg.h (quotearg_n_style_mem): New function.
95386
95387 2002-01-19  Jim Meyering  <meyering@lucent.com>
95388
95389         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95390         Remove useless quotes: DF_PROG="df".
95391         * m4/strnlen.m4: New file.
95392
95393 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95394
95395         * lib/backupfile.c (ISDIGIT): Comment fix.
95396         * lib/getdate.y (ISDIGIT): Likewise.
95397         * lib/posixtm.c (ISDIGIT, year): Likewise.
95398         * lib/strverscmp.c (ISDIGIT): Likewise.
95399         * lib/userspec.c (ISDIGIT): Likewise.
95400
95401 2002-01-16  Jim Meyering  <meyering@lucent.com>
95402
95403         * lib/getdate.y: Add three semicolons, each just before a closing
95404         brace. Bison (as of version 1.31) no longer papers over that mistake.
95405
95406 2002-01-05  Jim Meyering  <meyering@lucent.com>
95407
95408         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95409
95410 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95411
95412         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95413         not silently exit merely because the output buffer happens to
95414         have nothing pending.
95415
95416 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95417
95418         See the big note in ../ChangeLog.
95419         * lib/human.c (suffixes): Prefer K to k for 1024.
95420         (generate_suffix_backwards): New function.
95421         (human_readable_inexact): Use it.
95422         * lib/xstrtol.c (__xstrtol): If there is no number but there
95423         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95424         Accept 'K' as well as 'k'.
95425
95426 2001-12-15  Jim Meyering  <meyering@lucent.com>
95427
95428         * lib/regex.h (__restrict_arr): Update from libc.
95429
95430         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95431         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95432         (STREQ): Define.
95433
95434 2001-12-14  Jim Meyering  <meyering@lucent.com>
95435
95436         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95437         Suggestion from Bruno Haible.
95438
95439 2001-12-10  Jim Meyering  <meyering@lucent.com>
95440
95441         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95442         xrealloc, Instead, include "xalloc.h".
95443         (initbuffer): Don't cast xmalloc return value to char*.
95444         (readline): Reword comment.
95445         Don't cast xrealloc return value to char*
95446         Return NULL, not 0.
95447
95448 2001-12-09  Jim Meyering  <meyering@lucent.com>
95449
95450         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95451         about `signed and unsigned type in conditional expression'.
95452         * lib/posixtm.c (posix_time_parse): Likewise.
95453
95454         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95455
95456         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95457         to avoid a pedantic warning.
95458
95459         * lib/getstr.c: Don't include assert.h.
95460         (getstr): Remove warning-evoking assertions.
95461         Return -1 if offset parameter is out of bounds.
95462         Change the type of a local from int to size_t.
95463
95464         * lib/strftime.c (my_strftime_localtime_r): Include this function
95465         definition in the `#if ! HAVE_TM_GMTOFF' block.
95466
95467         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95468         Include xalloc.h instead.
95469
95470 2001-12-02  Jim Meyering  <meyering@lucent.com>
95471
95472         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95473         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95474         included.
95475
95476         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95477         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95478
95479 2001-11-30  Akim Demaille  <akim@epita.fr>
95480
95481         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95482         before being defined.
95483
95484 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95485
95486         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95487         First arg is int, not unsigned.
95488         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95489         (SIZE_MAX, UINT_MAX): New macros.
95490         (quotearg_n_options): Abort if N is negative.
95491         Avoid overflow check on hosts where size_t is 64 bits and int
95492         is 32 bits, as overflow is impossible there.
95493         Fix off-by-one typo that caused unnecessary reallocation.
95494
95495 2001-11-27  Jim Meyering  <meyering@lucent.com>
95496
95497         * lib/tempname.c: Merge with version from libc.
95498         * lib/regex.c: Likewise.
95499
95500         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95501         systems for which STDC_HEADERS is 0, it was not included, resulting in
95502         a warning about an integer-to-pointer conversion problem with getenv.
95503         Reported by Volker Borchert.
95504
95505 2001-11-26  Jim Meyering  <meyering@lucent.com>
95506
95507         * lib/gtod.h: Remove file.
95508         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95509         * lib/gettimeofday.c: Don't include gtod.h.
95510         (GTOD_init): Remove function.
95511         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95512         Suggestion from Volker Borchert.
95513
95514 2001-11-23  Jim Meyering  <meyering@lucent.com>
95515
95516         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95517         it.
95518         * lib/hash.c (struct hash_table): Define it here instead.
95519
95520 2001-11-22  Jim Meyering  <meyering@lucent.com>
95521
95522         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95523
95524 2001-11-20  Jim Meyering  <meyering@lucent.com>
95525
95526         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95527         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95528
95529 2001-11-19  Jim Meyering  <meyering@lucent.com>
95530
95531         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95532         directory.  Use "conftestXXXXXX" as the template.
95533         Suggestion from Paul Eggert.
95534
95535         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95536         immediately, so the test doesn't mistakenly hit the max-open-files
95537         limit.
95538
95539 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95540
95541         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95542         (TEMPORARIES): New macro.
95543         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95544         removes an artificial limitation (e.g. HP-UX 10.20, where
95545         TMP_MAX is 17576).
95546
95547 2001-11-18  Jim Meyering  <meyering@lucent.com>
95548
95549         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95550
95551 2001-11-18  Jim Meyering  <meyering@lucent.com>
95552
95553         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95554         on SunOS 4.
95555
95556         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95557         files will be created before anything else.
95558
95559 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95560
95561         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95562         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95563
95564 2001-11-17  Jim Meyering  <meyering@lucent.com>
95565
95566         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95567         Prompted by a report from Bob Proulx.
95568
95569         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95570         Instead, require UTILS_FUNC_MKSTEMP.
95571
95572 2001-11-17  Jim Meyering  <meyering@lucent.com>
95573
95574         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95575         Now, that's done as part of AC_FUNC_STRTOD.
95576
95577 2001-11-17  Jim Meyering  <meyering@lucent.com>
95578
95579         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95580         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95581         rather than group writable.  Patch by Juan F. Codagnone.
95582
95583         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95584         xrealloc, Instead, include "xalloc.h".
95585
95586         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95587         Remove explicit declarations of xmalloc, xrealloc,
95588         and xstrdup.  Instead, include "xalloc.h".
95589
95590         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95591         unlocked-io.h.
95592         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95593         Likewise.
95594         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95595
95596         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95597         Reported by Padraig Brady.
95598
95599         * lib/mkstemp.c: #undef mkstemp.
95600         Include config.h.
95601         (rpl_mkstemp): Rename from mkstemp.
95602         Protoize.
95603
95604 2001-11-16  Jim Meyering  <meyering@lucent.com>
95605
95606         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95607         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95608         determine the amount of total physical memory, use pstat_getstatic.
95609         HPUX-11 doesn't define _SC_PHYS_PAGES.
95610         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95611         If sysconf couldn't be used to determine the amount of available
95612         physical memory, use both pstat_getstatic and pstat_getdynamic.
95613         Based on a patch from Bob Proulx.
95614
95615 2001-11-10  Jim Meyering  <meyering@lucent.com>
95616
95617         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95618         (jm_PREREQ): Use it.
95619
95620 2001-11-09  Jim Meyering  <meyering@lucent.com>
95621
95622         * m4/jm-macros.m4: Require autoconf-2.52f.
95623         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95624         Use these AC_-prefixed names, not the AM_-prefixed ones.
95625
95626         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95627
95628 2001-11-05  Jim Meyering  <meyering@lucent.com>
95629
95630         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95631
95632 2001-11-04  Jim Meyering  <meyering@lucent.com>
95633
95634         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95635         $DEFS.
95636
95637 2001-11-03  Jim Meyering  <meyering@lucent.com>
95638
95639         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95640         of AC_DEFUN.
95641
95642         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95643         know the name of the variable in the macro definition.
95644
95645 2001-11-03  Jim Meyering  <meyering@lucent.com>
95646
95647         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95648         in argmatch_to_argument call.
95649
95650         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95651         argument.
95652
95653         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95654         e.g., a fault due to an attempt to free a NULL pointer.
95655
95656 2001-11-01  Jim Meyering  <meyering@lucent.com>
95657
95658         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95659         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95660
95661 2001-11-01  Jim Meyering  <meyering@lucent.com>
95662
95663         * lib/dirfd.c, lib/dirfd.h: New files.
95664         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95665
95666         * lib/hash.c (hash_print) [TESTING]: Clean up.
95667
95668 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95669
95670         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95671         to avoid a warning if -Wall.
95672
95673 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95674
95675         * README: New file
95676         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95677         (per RMS's instructions, this is now the canonical source)
95678         * lgpl/, gpl/: New directories.
95679
95680 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95681
95682         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95683
95684 2001-10-21  Jim Meyering  <meyering@lucent.com>
95685
95686         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95687         this code would end up calling gettext even in packages built
95688         with --disable-nls.
95689         * lib/getopt.c (_): Likewise.
95690         * lib/regex.c (_): Likewise.
95691
95692 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95693
95694         * m4/error.m4 (jm_PREREQ_ERROR):
95695         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95696         AC_FUNC_STRERROR_R does that.
95697         Check for strerror declaration.
95698
95699         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95700         are supposed to have them these days.
95701         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95702         Merge changes from latest Autoconf CVS.
95703         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95704         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95705         POSIX decided to standardize on the int flavor of strerror_r.
95706
95707 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95708
95709         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95710         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95711         Use strerror_r that is only a macro, even if it is not a function.
95712         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95713         (private_strerror): Use prototypes, not old-style function definition.
95714         (print_errno_message): New function.
95715         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95716         char*-flavored one.
95717         (error_tail, error, error_at_line): Use it.
95718
95719 2001-10-11  Jim Meyering  <meyering@lucent.com>
95720
95721         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95722         and quote_n (1, ... to avoid clobbering a buffer.
95723
95724 2001-10-05  Jim Meyering  <meyering@lucent.com>
95725
95726         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95727         hash-pjw.h.
95728         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95729         * lib/hash-pjw.h: New file.
95730
95731 2001-09-30  Jim Meyering  <meyering@lucent.com>
95732
95733         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95734         `struct fsstat' has the `f_fstypename' member.
95735         Use that to define FS_TYPE, which is now used to make
95736         the getfsstat link test tighter.
95737
95738 2001-09-30  Jim Meyering  <meyering@lucent.com>
95739
95740         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95741         Include <sys/ucred.h>, for Apple Darwin.
95742         Include sys/mount.h and sys/fs_types.h only if available.
95743         (FS_TYPE): Define.
95744         (read_filesystem_list): Use FS_TYPE.
95745
95746 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95747
95748         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95749         a boolean context.
95750
95751 2001-09-29  Jim Meyering  <meyering@lucent.com>
95752
95753         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95754         [one-argument getmntent function]): Include stdio.h before mntent.h.
95755         SunOS 4.1.x needs it for the declaration of `FILE'.
95756         Patch by Volker Borchert.
95757
95758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95759         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95760         sys/fs_types.h, and make the link-test for getfsstat guard #include
95761         directives with appropriate #if HAVE_*_H tests so that we can
95762         detect getfsstat on Apple Darwin1.3.7 systems.
95763         Reported by Nelson Beebe.
95764         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95765
95766 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95767
95768         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95769         #defines strtoimax.  Also treat the other strto* functions
95770         like strtoimax.
95771
95772         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95773         Check for strtoul and strtoumax,
95774         as those declarations are made even in the signed case.
95775         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95776         Likewise, for strtol and strtoimax.
95777
95778 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95779
95780         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95781         #defines strtoimax.  Also treat the other strto* functions
95782         like strtoimax.
95783
95784         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95785         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95786         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95787
95788 2001-09-26  Jim Meyering  <meyering@lucent.com>
95789
95790         Most macros in unlocked-io.h had the wrong number of arguments.
95791         * lib/gen-uio: New script.
95792         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95793         * lib/unlocked-io.hin: Remove file.
95794         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95795         rather than trying to embed it here.
95796         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95797         Reported by Padraig Brady.
95798
95799 2001-09-25  Volker Borchert  <bt@teknon.de>
95800
95801         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95802         `result'.
95803
95804 2001-09-24  Jim Meyering  <meyering@lucent.com>
95805
95806         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95807
95808 2001-09-23  Jim Meyering  <meyering@lucent.com>
95809
95810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95811         instead of the mere test for existence of mntent.h.  The latter
95812         would get a false-positive on AIX 3.4 systems.
95813         In the outer getmntent if-block, don't die if neither of the getmntent
95814         tests succeeds.  Instead, just fall through and continue with the
95815         remaining tests.
95816
95817 2001-09-23  Jim Meyering  <meyering@lucent.com>
95818
95819         * lib/mountlist.c: Remove useless parentheses in #if directives.
95820         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95821         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95822
95823 2001-09-22  Jim Meyering  <meyering@lucent.com>
95824
95825         * m4/gettext.m4: New file.  From gettext.
95826         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95827         * m4/progtest.m4: Likewise
95828         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95829         * m4/glibc21.m4: Likewise.
95830
95831         * m4/libintl.m4: Remove.  No longer used.
95832
95833 2001-09-22  Jim Meyering  <meyering@lucent.com>
95834
95835         * lib/localcharset.c: Update from latest gettext.
95836         * lib/config.charset: Likewise.
95837
95838 2001-09-20  Jim Meyering  <meyering@lucent.com>
95839
95840         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95841         strtoimax.
95842         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95843         strtoumax.
95844
95845 2001-09-20  Jim Meyering  <meyering@lucent.com>
95846
95847         * lib/xstrtol.c (strtoimax): Guard declaration with
95848         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95849         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95850         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95851         (strtoumax): Likewise, for completeness (it wasn't necessary).
95852
95853 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95854
95855         * lib/strtoimax.c (HAVE_LONG_LONG):
95856         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95857         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95858         to work around bug in IBM C compiler.
95859
95860 2001-09-17  Jim Meyering  <meyering@lucent.com>
95861
95862         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95863         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95864         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95865         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95866         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95867         whenever the right hand side need not be expanded by the shell.
95868
95869 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95870
95871         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95872         library.  It's not correct, as some older glibcs are buggy.
95873         fnmatch wasn't fixed until glibc 2.2.
95874
95875         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95876         special shell magic here.
95877
95878 2001-09-16  Jim Meyering  <meyering@lucent.com>
95879
95880         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95881         * m4/jm-macros.m4: Require it.
95882
95883 2001-09-16  Jim Meyering  <meyering@lucent.com>
95884
95885         * lib/mkdir.c: New file.
95886
95887 2001-09-15  Jim Meyering  <meyering@lucent.com>
95888
95889         * m4/jm-macros.m4: Check for help2man.
95890
95891 2001-09-11  Jim Meyering  <meyering@lucent.com>
95892
95893         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95894         The body, by Paul Eggert, was moved here from configure.in.
95895         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95896
95897 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95898
95899         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95900         (jm_PREREQ): Use it.
95901
95902 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95903
95904         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95905         Use ssize_t, not int, to store result of readlink.
95906         Check for ssize_t overflow as well as size_t overflow,
95907         as POSIX says the result of readlink is implementation-defined
95908         when ssize_t overflows.
95909         Remove unnecessary cast to char*.
95910         Use free+malloc instead of realloc, as the storage doesn't need
95911         to be preserved and it's clearer and can be more efficient that way.
95912         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95913         * lib/xreadlink.h (xreadlink): Update prototype.
95914
95915 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95916
95917         * lib/xgetcwd.c: Revert some of the previous change; intead,
95918         fix the HAVE_GETCWD_NULL code to behave more like the
95919         !HAVE_GETCWD_NULL code used to.
95920
95921         Include "xalloc.h".
95922         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95923         invoke xalloc_die.
95924
95925 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95926
95927         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95928         sys/param.h, as pathmax.h includes them.
95929
95930 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95931
95932         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95933         (jm_PREREQ_XGETCWD): New macro.
95934
95935         * m4/getcwd.m4: New file.
95936
95937 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95938
95939         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95940         like the HAVE_GETCWD_NULL code.
95941         Include pathmax.h if not HAVE_GETCWD.
95942         Do not include xalloc.h.
95943         (INITIAL_BUFFER_SIZE): New symbol.
95944         Do not use xmalloc / xrealloc, since the caller is responsible for
95945         handling errors.  Preserve errno around `free' during failure.
95946         Do not overrun buffer when using getwd.
95947
95948 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95949
95950         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95951         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95952         getcwd (NULL, 0).
95953
95954 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95955
95956         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95957         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95958         spotted by Jim Meyering.
95959
95960 2001-09-03  Jim Meyering  <meyering@lucent.com>
95961
95962         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95963         failure.
95964
95965 2001-09-02  Jim Meyering  <meyering@lucent.com>
95966
95967         * lib/error.c: Update from GNU libc.
95968
95969 2001-09-01  Jim Meyering  <meyering@lucent.com>
95970
95971         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95972         Used by df.
95973
95974 2001-09-01  Jim Meyering  <meyering@lucent.com>
95975
95976         * lib/xreadlink.c: New file.
95977         * lib/xreadlink.h: New file.
95978         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95979         xreadlink.h.
95980
95981         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95982         doesn't conflict with sparc Solaris 7's definition in
95983         /usr/include/sys/int_types.h.
95984
95985         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95986         files.
95987         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95988         and strncasecmp as r-values.  Unixware didn't have declarations.
95989
95990 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95991
95992         * lib/xstrtol.h: Add copyright notice.
95993         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95994         LONGINT_INVALID_SUFFIX_CHAR.
95995
95996 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95997
95998         * lib/xstrtol.c (strtoimax): New decl.
95999
96000 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96001
96002         * lib/xgetcwd.c: Don't include pathmax.h.
96003         Include stdlib.h and unistd.h if available.
96004         Include xalloc.h.
96005         (xmalloc, xstrdup, free): Remove decls.
96006         (xgetcwd): Don't assume sizes fit in unsigned.
96007         Check for overflow when computing sizes.
96008         Simplify reallocation code.
96009
96010 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96011
96012         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96013         a directory's st_size can have an arbitrary value, so the old
96014         usage could waste an arbitrary amount of memory.  All uses
96015         changed.
96016         * lib/savedir.h: Update prototype.
96017
96018 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96019
96020         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96021
96022         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96023         old strtoimax.c.
96024
96025         Also, make the following further changes to make this file's
96026         configuration more similar to that of strtol.c:
96027         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96028         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96029         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96030         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96031         changed to signed values.
96032
96033         And make the following changes as well:
96034         Fix copyright notice, as 1999 was missing.
96035         (verify): New macro.
96036         (strtoimax): Check sizes at compile-time, not run-time.
96037         Prefer strtol to strtoll if both work.
96038         (main): Remove; it was not that useful and was a pain to maintain.
96039
96040         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96041
96042 2001-08-31  Jim Meyering  <meyering@lucent.com>
96043
96044         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96045         Use an initial, malloc'd, buffer of length 128 rather than
96046         a statically allocated one of length 1024.
96047
96048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96049
96050         Simplify code, partly by assuming autoconf 2.52 semantics.
96051
96052         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96053
96054         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96055         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96056         All uses removed.
96057         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96058         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96059         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96060         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96061         jm_AC_HEADER_INTTYPES_H.
96062         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96063
96064         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96065
96066         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96067         Quote first arg of AC_DEFUN.
96068         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96069         since they are needed to parse the include file even if we need
96070         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96071         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96072         but with opposite signedness.
96073
96074 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96075
96076         Merge 'exclude' changes from tar 1.13.22.
96077         This fixes one or two unlikely storage allocation overflow bugs,
96078         but doesn't change user-visible behavior otherwise.
96079
96080 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96081
96082         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96083         (jm_PREREQ_EXCLUDE): New macro.
96084
96085 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96086
96087         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96088         tm to be declared.
96089
96090 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96091
96092         * lib/hash.c: Remove '2001' from copyright notice.
96093
96094 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96095
96096         * lib/full-write.h: New file.
96097         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96098         * lib/full-write.c: Correct credits, as cccp.c no longer
96099         exists and anyway it was so heavily changed from the old cccp
96100         code as to be unrecognizable.  Include full-write.h.
96101         (full_write): Return size_t, with short writes meaning failure.
96102         All callers changed.  This fixes a bug with large buffers
96103         on 64-bit hosts.
96104         * lib/utime.c: Include full-write.h.
96105
96106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96107
96108         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96109         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96110         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96111         Include if available.
96112         (<xalloc.h>): Include
96113         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96114         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96115         collide with FNM macros.
96116         (struct patopts): New struct.
96117         (struct exclude): Use it, as exclude patterns now come with options.
96118         (new_exclude): Support above changes.
96119         (new_exclude, add_exclude_file):
96120         Initial size must now be a power of two to simplify overflow checking.
96121         (free_exclude, fnmatch_no_wildcards): New function.
96122         (excluded_filename): No longer requires options arg, as the options
96123         are determined by add_exclude.  Now returns bool, not int.
96124         (excluded_filename, add_exclude):
96125         Add support for the fancy new exclusion options.
96126         (add_exclude, add_exclude_file): Now takes int options arg.
96127         Check for arithmetic overflow when computing sizes.
96128         (add_exclude_file): xrealloc might modify errno, so don't
96129         realloc until after errno might be used.
96130
96131         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96132         New macros.
96133         (free_exclude): New decl.
96134         (add_exclude, add_exclude_file): Now takes int options arg.
96135         (excluded_filename): No longer requires options arg, as the options
96136         are determined by add_exclude.  Now returns bool, not int.
96137
96138 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96139
96140         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96141
96142 2001-08-27  Jim Meyering  <meyering@lucent.com>
96143
96144         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96145
96146         * lib/version-etc.c (N_): Remove definition.
96147         Revert most of last change.
96148         Instead, simply don't mark the `Copyright...' string for translation.
96149         Based on advice from Paul Eggert.
96150
96151         * lib/strtoxmax.c: Tweak comment.
96152
96153 2001-08-26  Jim Meyering  <meyering@lucent.com>
96154
96155         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96156
96157         * m4/xstrtoimax.m4: New file.
96158         * m4/xstrtoumax.m4: Add comments explaining why we
96159         AC_REPLACE_FUNCS(strtol).
96160
96161 2001-08-26  Jim Meyering  <meyering@lucent.com>
96162
96163         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96164         of copyright with `%s' so translators don't get an untranslated
96165         message in 2002.
96166         (COPYRIGHT_YEAR): Define.
96167         (version_etc): Use fprintf rather than fputs.
96168         Suggestion from Ulrich Drepper.
96169
96170         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96171
96172         * lib/strtoll.c: New file, from GNU libc.
96173         * lib/xstrtoimax.c: New file.
96174
96175         * lib/xstrtol.h: Add xstrtoimax.
96176         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96177         * lib/strtoimax.c: New file.  Likewise, but first define
96178         STRTOUXMAX_SIGNED.
96179
96180         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96181         ...
96182         * lib/strtoxmax.c: ... then renamed to this.
96183
96184 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96185
96186         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96187         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96188         (jm_AC_TYPE_INTMAX_T): New macro.
96189         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96190
96191         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96192
96193         * m4/longlong.m4: Renamed from ulonglong.m4.
96194         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96195         * m4/uintmax_t.m4: Removed.
96196
96197 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96198
96199         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96200         Port to Solaris 8, where 'sed' requires a space after the 'r'
96201         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96202         Redirect output to $tmp just once.
96203
96204 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96205
96206         * lib/addext.c (<errno.h>): Include.
96207         (errno): Declare if not defined.
96208         (addext): Work correctly when pathconf returns -1 and leaves
96209         errno alone because there is no limit.  Also, work even if
96210         pathconf returns a value greater than SIZE_MAX.
96211
96212 2001-08-12  Jim Meyering  <meyering@lucent.com>
96213
96214         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96215         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96216         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96217         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96218         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96219         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96220         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96221         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96222         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96223         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96224         utime.m4, utimes.m4, xstrtoumax.m4:
96225         Quote the first argument in each use of AC_DEFUN.
96226
96227 2001-08-12  Jim Meyering  <meyering@lucent.com>
96228
96229         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96230         Simply `return getcwd (NULL, 0);'.
96231         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96232         Use 1300 as initial value for length, not PATH_MAX.
96233
96234         * lib/pathmax.h: Clean up cpp syntax.
96235
96236 2001-08-12  Jim Meyering  <meyering@lucent.com>
96237
96238         * lib/gettimeofday.c: New file.
96239         * lib/gtod.h: New file.
96240         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96241
96242 2001-08-05  Jim Meyering  <meyering@lucent.com>
96243
96244         * m4/jm-macros.m4: Require autoconf-2.52.
96245
96246 2001-08-04  Jim Meyering  <meyering@lucent.com>
96247
96248         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96249         stmt, to get in sync with glibc.
96250
96251 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96252
96253         The following changes are from gettext 0.10.39 as maintained by
96254         Bruno Haible.
96255
96256         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96257         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96258         with inverted sense.  All uses changed.
96259
96260         * lib/mbswidth.c: Don't include <limits.h>.
96261         Include <stdlib.h> and <string.h> unconditionally.
96262         (iswcntrl, mbsinit, ISCNTRL): New macros.
96263         (mbsnwidth): Use K&R style function declarations.
96264         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96265         can optimize it when MB_CUR_MAX == 1.
96266         The width of control characters is zero, not 1.
96267
96268 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96269
96270         The following changes are from gettext 0.10.39 as maintained by
96271         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96272
96273         * m4/codeset.m4: Upgrade to serial AM1.
96274         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96275         all uses changed.  Quote first arg of AC_DEFUN.
96276         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96277
96278         * m4/iconv.m4: Upgrade to serial AM2.
96279         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96280         Add --with-libconv-prefix.
96281         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96282         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96283         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96284         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96285         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96286
96287         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96288         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96289         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96290         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96291         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96292         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96293         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96294         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96295         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96296
96297         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96298         string.h any more.
96299
96300         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96301         not the default value.
96302
96303         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96304         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96305         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96306         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96307         Also check for iswcntrl, used for wcwidth fallback.
96308         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96309         to Autoconf 2.13.
96310
96311 2001-08-03  Jim Meyering  <meyering@lucent.com>
96312
96313         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96314         as it was in the original.  Reported by Paul Eggert.
96315
96316 2001-07-16  Jim Meyering  <meyering@lucent.com>
96317
96318         * m4/gettimeofday.m4: New file.
96319         Prompted by a report from Bernhard Baehr.
96320
96321 2001-07-15  Jim Meyering  <meyering@lucent.com>
96322
96323         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96324         stuff. Now it's in ../Makefile.cfg.
96325
96326 2001-07-15  Jim Meyering  <meyering@lucent.com>
96327
96328         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96329         (BUILT_SOURCES): Add unlocked-io.h.
96330         (io_functions): Define.
96331         (unlocked-io.h): New rule.
96332         (DISTCLEANFILES): Add unlocked-io.h.
96333         (all-local): Depend on unlocked-io.h, to ensure it is created.
96334
96335         * lib/unlocked-io.hin: New file
96336
96337         * lib/regex.c: Update from glibc.
96338
96339 2001-07-05  Jim Meyering  <meyering@lucent.com>
96340
96341         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96342         recommendation.
96343         (libfetish_a_SOURCES): Put all .h files here instead.
96344         Remove a thus-exposed (better checks in automake) duplicate and
96345         two unnecessary .h files.
96346
96347 2001-07-04  Jim Meyering  <meyering@lucent.com>
96348
96349         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96350         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96351         distcheck failure.
96352
96353 2001-07-02  Jim Meyering  <meyering@lucent.com>
96354
96355         The following changes were prompted by suggestions from Bruno Haible.
96356
96357         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96358         is now generated.
96359         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96360         definition of EXTRA_DIST.
96361         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96362         ensure that the generated file is created/updated whenever the list
96363         of $(unlocked_functions) is changed.
96364         (jm-glibc-io.m4): New rule.
96365         (unlocked-io.h): New rule -- currently unused.
96366
96367 2001-06-24  Jim Meyering  <meyering@lucent.com>
96368
96369         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96370         unmatched right bracket, rather than kludging it with an extra,
96371         falsely-matching quote in a comment.  Patch by Akim Demaille.
96372
96373 2001-06-11  Jim Meyering  <meyering@lucent.com>
96374
96375         * lib/regex.c: Update from GNU libc.
96376
96377 2001-05-27  Jim Meyering  <meyering@lucent.com>
96378
96379         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96380         Check for ut_type in struct utmp.
96381
96382 2001-05-27  Jim Meyering  <meyering@lucent.com>
96383
96384         * lib/readutmp.h (UT_TYPE): Define.
96385
96386 2001-05-24  Jim Meyering  <meyering@lucent.com>
96387
96388         * lib/argmatch.c: Include "quote.h".
96389         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96390         quote function.  Reported by Göran Uddeborg.
96391
96392 2001-05-22  Jim Meyering  <meyering@lucent.com>
96393
96394         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96395         now that we use the package-supplied version unconditionally.
96396         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96397
96398 2001-05-21  Jim Meyering  <meyering@lucent.com>
96399
96400         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96401         shell syntax errors.
96402
96403 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96404
96405         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96406
96407 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96408
96409         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96410         Don't bother to check library strftime, since
96411         we'll be using our own my_strftime function anyway.
96412         Define my_strftime instead of strftime.
96413
96414 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96415
96416         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96417         which is not yet declared.
96418
96419 2001-05-15  Jim Meyering  <meyering@lucent.com>
96420
96421         * m4/regex.m4: Use proper quoting so brackets appear in the test
96422         program.
96423         Reported by, and with help from, Bruno Haible.
96424
96425 2001-05-13  Jim Meyering  <meyering@lucent.com>
96426
96427         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96428         undefined.
96429
96430 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96431
96432         dirname code cleanup.  base_name now behaves more compatibly
96433         with POSIX basename when given file names that have trailing
96434         slashes, and similarly for dir_name.  Add new primitives
96435         base_len and dir_len.  Put the directory-name-related decls
96436         into dirname.h.
96437
96438         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96439         * lib/backupfile.c (base_name): Likewise.
96440         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96441         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96442         * lib/makepath.c (strip_trailing_slashes): Likewise.
96443         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96444         ISSLASH): Likewise.
96445         * lib/rename.c (strip_trailing_slashes): Likewise.
96446         * lib/same.c (base_name): Likewise.
96447         * lib/stripslash.c (ISSLASH): Likewise.
96448
96449         * lib/addext.c: Include <dirname.h> after size_t is defined.
96450         * lib/backupfile.c: Likewise.
96451
96452         * lib/addext.c (addext): Use base_len to trim redundant
96453         trailing slashes instead of doing it ourselves.
96454         But do not trim the last slash if it is not redundant.
96455
96456         * lib/backupfile.c (find_backup_file_name,
96457         max_backup_version): Use base_len instead of rolling it ourselves.
96458         Handle the case of "" and (on DOS) "C:" correctly.
96459
96460         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96461         needed. Include <string.h>, <dirname.h>.
96462         (base_name): Allow file names ending in slashes, other than names
96463         that are all slashes.  In this case, return the basename followed
96464         by the slashes.  This is more general, and can be used in places
96465         where the original base_name purposely had an assertion failure.
96466         (base_len): New function.
96467
96468         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96469         Do not include <assert.h>; no longer needed.
96470         Include xalloc.h.
96471         (memrchr): Remove decl.
96472         (dir_name_r): Remove.
96473         (dir_len): Renamed from dirlen.  All callers changed.
96474         Rewrite in terms of base_name, for simplicity and consistency.
96475         (dir_name): Never return NULL.  All callers changed.
96476         Do not include <stdlib.h> in test program; no longer needed.
96477         return 0; is fine for test program.
96478
96479         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96480         New macros.
96481         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96482
96483         * lib/path-concat.c (path_concat): Use base_len to compute
96484         base length, not strlen; this means we cannot rely on memcpy
96485         to null-terminate.
96486
96487         * lib/same.c (STREQ): Remove.
96488         (same_name): Handle the case where the basename ends in trailing '/'.
96489
96490         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96491         a slash was stripped.  Do not strip the last slash after a
96492         file system prefix.
96493
96494 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96495
96496         * lib/Makefile.am (libfetish_a_SOURCES):
96497         Add strftime.c, since we now compile it on all hosts.
96498
96499         * lib/strftime.c (my_strftime):
96500         Define to nstrftime if emacs, but only if my_strftime is not defined.
96501         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96502         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96503         Add one more extra argument: a nanoseconds value.
96504         All uses changed.
96505         (ns): New macro.
96506         (my_strftime function): Add %N format.
96507         (emacs_strftimeu): Renamed from emacs_strftime,
96508         with extra ut argument.
96509
96510 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96511
96512         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96513
96514 2001-04-21  Jim Meyering  <meyering@lucent.com>
96515
96516         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96517         doesn't interfere.
96518
96519 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96520
96521         * m4/ftruncate.m4: Check for chsize.
96522         Link with ftruncate.o unconditionally if ftruncate is missing.
96523         This was required when cross-compiling to i586-mingw32msvc.
96524
96525 2001-04-08  Jim Meyering  <meyering@lucent.com>
96526
96527         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96528         recomputed; that's necessary when the offset spans a DST transition.
96529         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96530
96531 2001-04-02  Jim Meyering  <meyering@lucent.com>
96532
96533         * lib/regex.h, regex.c: Update from GNU libc.
96534
96535 2001-03-24  Jim Meyering  <meyering@lucent.com>
96536
96537         * m4/jm-macros.m4: Require autoconf-2.49d.
96538
96539 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96540
96541         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96542
96543 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96544
96545         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96546
96547 2001-03-17  Jim Meyering  <meyering@lucent.com>
96548
96549         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96550         now that the version in autoconf is equivalent.
96551         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96552
96553         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96554         Suggestion from Akim Demaille.
96555
96556         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96557         (jm_PREREQ_TEMPNAME): New function.
96558
96559 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96560
96561         * lib/tempname.c (uint64_t): Define to uintmax_t if
96562         not defined, and if UINT64_MAX is not defined.
96563         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96564         Reported by John David Anglin.
96565
96566 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96567
96568         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96569         resolve alias if codeset is empty.
96570         * lib/config.charset (BeOS): Use wildcard syntax.
96571
96572 2001-03-13  Jim Meyering  <meyering@lucent.com>
96573
96574         * lib/path-concat.c (path_concat)
96575         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96576         concatenating e.g., `C:' and `foo'.
96577         From Bruno Haible.
96578
96579 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96580
96581         * lib/localcharset.c (locale_charset): Don't use
96582         setlocale(LC_CTYPE,NULL). Don't return NULL.
96583         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96584
96585 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96586
96587         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96588         support for DOS/DJGPP.
96589
96590 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96591
96592         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96593         lacks mkstemp.  Compile our own tempname.c if we compile our own
96594         mkstemp.c, as mkstemp relies on tempname.
96595
96596 2001-03-01  Jim Meyering  <meyering@lucent.com>
96597
96598         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96599         AH_VERBATIM really does output its argument verbatim.
96600
96601 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96602
96603         * lib/Makefile.am (libfetish_a_SOURCES):
96604         Add dup-safer.c, fopen-safer.c.
96605         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96606
96607         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96608         * lib/unistd-safer.h: New files.
96609
96610 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96611
96612         The mkstemp replacement is taken from glibc 2.2.2, with some
96613         portability fixes for use outside glibc, as follows:
96614
96615         * lib/tempname.c (struct_stat64): New macro.
96616         (direxists, __gen_tempname): Use it.
96617         This avoids a portability problem with Solaris 8.
96618
96619         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96620         (<stddef.h>, <stdint.h>, <string.h>):
96621         Include only if STDC_HEADERS || _LIBC.
96622         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96623         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96624         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96625         (__set_errno): Define this macro if <errno.h> doesn't.
96626         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96627         Define these macros if <stdio.h> doesn't.
96628         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96629         Define these macros if <sys/stat.h>
96630         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96631         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96632         __xstat64): Define if not _LIBC.
96633         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96634         (__gen_tempname): Invoke gettimeofday only if
96635         HAVE_GETTIMEOFDAY || _LIBC;
96636         otherwise, fall back on plain "time".
96637         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96638
96639         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96640
96641         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96642
96643 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96644
96645         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96646
96647 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96648
96649         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96650         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96651         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96652         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96653
96654 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96655
96656         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96657         Remove workaround macros for hosts that have mbrtowc but not
96658         mbstate_t, as we now insist on proper declarations for both
96659         before using mbrtowc.
96660
96661 2001-02-17  Jim Meyering  <meyering@lucent.com>
96662
96663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96664         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96665         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96666         UnixWare 7.1.1.
96667
96668         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96669         rather than AC_CACHE_VAL.
96670
96671 2001-02-17  Jim Meyering  <meyering@lucent.com>
96672
96673         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96674         around included file name.
96675
96676         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96677
96678         * lib/strftime.c: Update from GNU libc (the only changes were to
96679         comments).
96680
96681 2001-02-17  Jim Meyering  <meyering@lucent.com>
96682
96683         * lib/regex.c: Update from libc.
96684
96685 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96686
96687         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96688         clash.
96689
96690 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96691
96692         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96693         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96694         Reported by Mark Hounschell via Paul Eggert.
96695
96696 2001-02-07  Jim Meyering  <meyering@lucent.com>
96697
96698         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96699
96700 2001-02-05  Jim Meyering  <meyering@lucent.com>
96701
96702         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96703         it includes the patch required for `large file' support with at least
96704         HP-UX's 10.20 /bin/cc.
96705
96706 2001-02-03  Jim Meyering  <meyering@lucent.com>
96707
96708         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96709         AS_IF, now that it works once again (mysteriously).
96710         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96711
96712 2001-01-30  Jim Meyering  <meyering@lucent.com>
96713
96714         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96715         * m4/chown.m4: Rename conftestchown to conftest.chown.
96716         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96717         s/conftestdir2/conftest.d2/.
96718         * m4/utimes.m4: s/conftestdata/conftest.data/
96719         Inspired by Pavel Roskin's change in autoconf.
96720
96721 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96722
96723         * lib/config.charset: Update for FreeBSD 4.2.
96724
96725 2001-01-27  Jim Meyering  <meyering@lucent.com>
96726
96727         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96728         a use of AS_IF.
96729         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96730
96731 2001-01-26  Jim Meyering  <meyering@lucent.com>
96732
96733         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96734         quotearg.c includes it.
96735
96736 2001-01-26  Jim Meyering  <meyering@lucent.com>
96737
96738         * lib/quotearg.c: Include stddef.h.
96739         * lib/quote.c: Include stddef.h.
96740         Reported by Axel Kittenberger.
96741
96742         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96743         line in double quotes so that it evokes a better diagnostic.
96744         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96745         Reported by Axel Kittenberger.
96746
96747 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96748
96749         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96750         as if it was a `charset'.
96751
96752 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96753
96754         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96755         has const.
96756
96757 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96758
96759         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96760         to avoid a warning.  Add back 'const' to inptr.
96761
96762 2001-01-20  Jim Meyering  <meyering@lucent.com>
96763
96764         Be sure that headers are checked before used in code compiled
96765         for the type checks.
96766         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96767         In place of that, invoke jm_CHECK_ALL_TYPES.
96768         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96769         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96770         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96771         The check for ssize_t was mistakenly run before the test for unistd.h.
96772
96773         The configure-time check for stdbool.h was missing.
96774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96775         (jm_PREREQ_HASH): New function.
96776
96777 2001-01-17  Jim Meyering  <meyering@lucent.com>
96778
96779         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96780         for autoconf-2.49c.
96781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96782
96783 2001-01-16  Jim Meyering  <meyering@lucent.com>
96784
96785         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96786         From Bruno Haible.
96787
96788 2001-01-14  Jim Meyering  <meyering@lucent.com>
96789
96790         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96791         foo and bar.  Create conftestdir/ in the script, not in the C code.
96792         Remove directories in the script, not in the C code.
96793         Remove conftestdir{,2} before trying to create the directory.
96794         Make the entire configure script fail if the mkdir fails.
96795
96796 2001-01-14  Jim Meyering  <meyering@lucent.com>
96797
96798         * lib/rename.c: New file.  From Volker Borchert.
96799         Include stdlib.h, string.h or strings.h, and xalloc.h.
96800         Use strip_trailing_slashes rather than open-coding it.
96801
96802 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96803
96804         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96805
96806 2001-01-03  Jim Meyering  <meyering@lucent.com>
96807
96808         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96809         of local `inptr' to avoid warning with some system declarations of
96810         iconv.
96811
96812 2001-01-02  Volker Borchert  <bt@teknon.de>
96813
96814         * m4/rename.m4: New file.
96815         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96816
96817 2001-01-01  Jim Meyering  <meyering@lucent.com>
96818
96819         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96820         even on systems with utmpx.h.  It's necessary for the declaration of
96821         utmp's ut_user member.  Reported by Andreas Jaeger.
96822
96823         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96824         available. They are required for the declarations of getgrgid and
96825         getpwuid resp.
96826         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96827         Reported by Andreas Jaeger.
96828
96829 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96830
96831         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96832         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96833         so `make install' also works in VPATH builds.
96834
96835 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96836
96837         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96838         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96839         can be used in subdirectories.
96840
96841 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96842
96843         * lib/modechange.c: Do not assume that mode_t uses the
96844         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96845         the other-execute bit of FOO even if S_IXOTH != 1.
96846
96847         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96848         WOTH, XOTH, ALLM): New macros.
96849         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96850          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96851         Use them.
96852         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96853         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96854         (mode_compile):
96855         No need to use uintmax_t; unsigned long is long enough.
96856         Don't bother to get suffix since we don't use it.
96857
96858 2000-12-26  Jim Meyering  <meyering@lucent.com>
96859
96860         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96861         better with autoheader.
96862
96863 2000-12-24  Jim Meyering  <meyering@lucent.com>
96864
96865         * lib/hash.c (is_prime): Return explicit boolean values.
96866         (hash_get_first): Return NULL to appease Irix5.6's 89.
96867         Reported by Nelson Beebe.
96868
96869 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96870
96871         * lib/localcharset.c (locale_charset): Add support for Win32.
96872
96873 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96874
96875         * lib/physmem.h, lib/physmem.c: New files.
96876
96877         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96878         (noinst_HEADERS): Add physmem.h.
96879
96880         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96881         't' for compatibility with Solaris 8 sort.
96882
96883 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96884
96885         * lib/config.charset: Add support for BeOS.
96886
96887 2000-12-17  Jim Meyering  <meyering@lucent.com>
96888
96889         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96890         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96891
96892 2000-12-16  Jim Meyering  <meyering@lucent.com>
96893
96894         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96895         N and M) would have treated it like `chown N:N FILE'.
96896
96897         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96898
96899 2000-12-16  Jim Meyering  <meyering@lucent.com>
96900
96901         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96902         SHELLS_FILE to a file name that's useful on djgpp systems.
96903         Include stdlib.h.
96904         (ADDITIONAL_DEFAULT_SHELLS): Define.
96905         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96906         Based mostly on a patch from Prashant TR.
96907
96908 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96909
96910         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96911         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96912         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96913
96914 2000-12-08  Andreas Schwab  <schwab@suse.de>
96915
96916         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96917         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96918
96919 2000-12-07  Jim Meyering  <meyering@lucent.com>
96920
96921         * lib/stripslash.c (ISSLASH): Define.
96922         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96923         `/'.
96924         From Prashant TR.
96925
96926         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96927         (dir_name_r): Declare this function as static.
96928         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96929         manifest itself on a name containing a mix of slashes and
96930         backslashes.
96931         Make this function work with names starting with a DOS-style
96932         drive letter and colon prefix.
96933         (dir_name): Append `.' if necessary.
96934         Based mostly on patches from Prashant TR and Eli Zaretskii.
96935
96936         * lib/dirname.h (dir_name_r): Remove prototype.
96937
96938 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96939
96940         * m4/off_t-format.m4: Remove this file.
96941         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96942
96943 2000-12-06  Jim Meyering  <meyering@lucent.com>
96944
96945         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96946         replacement strtoull, we may well need the replacement strtoul, too.
96947         Check for declarations of strtoul and strtoull.
96948         Check for strtol.  Mainly as a cue to cause automake to include
96949         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96950         Check for limits.h -- strtol.c needs it.
96951
96952 2000-12-05  Jim Meyering  <meyering@lucent.com>
96953
96954         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96955
96956 2000-12-04  Jim Meyering  <meyering@lucent.com>
96957
96958         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96959         Also include memory.h, stdlib.h, unistd.h if appropriate.
96960         Reported by Andreas Jaeger (conflicting declaration of malloc).
96961
96962 2000-12-02  Jim Meyering  <meyering@lucent.com>
96963
96964         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96965         * m4/jm-macros.m4 (jm_MACROS): require it.
96966
96967 2000-12-02  Jim Meyering  <meyering@lucent.com>
96968
96969         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96970
96971 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96972
96973         * lib/memrchr.c: Include <config.h> before any system include file.
96974
96975 2000-11-30  Jim Meyering  <meyering@lucent.com>
96976
96977         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96978
96979 2000-11-30  Jim Meyering  <meyering@lucent.com>
96980
96981         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96982
96983 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96984
96985         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96986
96987 2000-11-26  Jim Meyering  <meyering@lucent.com>
96988
96989         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96990
96991 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96992
96993         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96994         size of (size_t) -1; it's not portable.
96995
96996 2000-11-17  Jim Meyering  <meyering@lucent.com>
96997
96998         * lib/strstr.c: Update from GNU libc.
96999
97000 2000-11-17  Akim Demaille  <akim@epita.fr>
97001
97002         * lib/obstack.h: Formatting changes.
97003         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97004         prevent type checking.
97005         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97006         cast the value to (void *): assigning a `foo *' to a `void *'
97007         variable is valid.
97008         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97009
97010 2000-11-16  Jim Meyering  <meyering@lucent.com>
97011
97012         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97013
97014 2000-11-11  Jim Meyering  <meyering@lucent.com>
97015
97016         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97017
97018 2000-11-10  Jim Meyering  <meyering@lucent.com>
97019
97020         * lib/obstack.h: Update from GNU libc.
97021         * lib/obstack.c: Likewise.
97022
97023 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97024
97025         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97026
97027 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97028
97029         * lib/getusershell.c (setusershell): Use rewind rather than
97030         fseek/fseeko, to avoid configuration hassles with fseeko.
97031         Don't bother opening SHELLS_FILE if shellstream is NULL;
97032         it's not necessary.
97033
97034 2000-11-05  Jim Meyering  <meyering@lucent.com>
97035
97036         * lib/makepath.h (make_dir): Declare.
97037         * lib/makepath.c (make_dir): Remove `static' attribute.
97038         Tweak a comment.
97039
97040 2000-11-04  Jim Meyering  <meyering@lucent.com>
97041
97042         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97043
97044 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97045
97046         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97047         last one in a bucket, advance to the next bucket.
97048
97049 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97050
97051         * lib/fnmatch.c: Do not comment out all the code if we are using
97052         the GNU C library, because in some cases we are replacing buggy
97053         code in the GNU C library itself.
97054
97055 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97056
97057         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97058         (regex_compile): Catch bogus \(\1\).
97059
97060 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97061
97062         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97063         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97064         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97065
97066 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97067
97068         * lib/error.h, getline.h, modechange.h:
97069         Remove "2000" from Copyright line, as the file hasn't been
97070         changed this year other than in the copyright notice.
97071
97072         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97073         was changed this year.
97074
97075 2000-10-29  Jim Meyering  <meyering@lucent.com>
97076
97077         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97078         renaming.
97079         * m4/ls-mntd-fs.m4: Likewise
97080
97081 2000-10-29  Jim Meyering  <meyering@lucent.com>
97082
97083         * lib/xstat.in: Fix grammar in comment.
97084
97085 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97086
97087         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97088         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97089         doesn't define __restrict_arr.
97090
97091 2000-10-28  Jim Meyering  <meyering@lucent.com>
97092
97093         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97094         (jm_PREREQ_MEMCHR): New function.
97095
97096 2000-10-28  Jim Meyering  <meyering@lucent.com>
97097
97098         * lib/memchr.c: Update from libc.
97099         Adjust for portability:
97100         [HAVE_STDLIB_H]: Include stdlib.h.
97101         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97102         Undef __memchr, too.
97103         [!weak_alias]: Define __memchr to memchr.
97104
97105         * lib/regex.c: Update from libc.
97106         * lib/regex.h: Likewise.
97107         * lib/getopt1.c: Likewise.
97108         * lib/memcmp.c: Likewise.
97109
97110         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97111         Avoid using fseek, when possible -- it's broken by design.
97112         Patch by Ulrich Drepper.
97113
97114 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97115
97116         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97117         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97118         Giving in to popular pressure to shut up the compiler with casts.
97119
97120 2000-10-26  Jim Meyering  <meyering@lucent.com>
97121
97122         * lib/strftime.c: Update from libc.
97123
97124 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97125
97126         * regex.c: More `unsigned char' -> `re_char' changes.
97127         Also change several `int' into `re_wchar_t'.
97128         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97129         (PUSH_FAILURE_POINTER): Don't cast any more.
97130         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97131         We want GCC to complain, since this piece of code makes
97132         re_match non-reentrant, which *should* be fixed.
97133         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97134         (EXTEND_BUFFER): Use RETALLOC.
97135         (SET_LIST_BIT): Don't cast.
97136         (re_wchar_t): New type.
97137         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97138         that those two functions will always properly return.
97139         (IMMEDIATE_QUIT_CHECK): Cast to void.
97140         (analyse_first): Use recursion rather than an explicit stack.
97141         (re_compile_fastmap): Can't fail anymore.
97142         (re_search_2): Don't check re_compile_fastmap for failure.
97143         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97144         Now also sets the new value (passed in a new argument).
97145         (re_match_2_internal): Use it.
97146         Also, use a new var `reg' of type size_t when looping through regs
97147         rather than reuse the inappropriate `mcnt'.
97148
97149 2000-10-25  Jim Meyering  <meyering@lucent.com>
97150
97151         * lib/obstack.c: Update from libc.
97152
97153 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97154
97155         * regex.c (regex_compile): Change the way of handling a range from
97156         a char less than 256 to a char not less than 256.
97157
97158 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97159
97160         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97161         NT-Emacs only.
97162         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97163         so that re_search functions only quit when callers expect them to.
97164
97165 2000-10-23  Jim Meyering  <meyering@lucent.com>
97166
97167         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97168         wrong.  That set_locale call must not have any side effects.
97169         From Paul Eggert.
97170
97171 2000-10-22  Jim Meyering  <meyering@lucent.com>
97172
97173         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97174         [CYCLIC]: Remove now-unused definition.
97175
97176         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97177         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97178         Suggestion from Ulrich Drepper.
97179
97180 2000-10-21  Jim Meyering  <meyering@lucent.com>
97181
97182         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97183         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97184         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97185
97186 2000-10-21  Jim Meyering  <meyering@lucent.com>
97187
97188         * lib/dirname.c (memrchr): Declare if necessary.
97189         (dir_name): Remove the restriction that there be no
97190         trailing slashes.  Now, this code skips past them, effectively
97191         ignoring them.
97192         [TEST_DIRNAME] (main): New unit tests.
97193
97194         * lib/memrchr.c: New file from GNU libc.
97195         Undef __memrchr, too.
97196         [!weak_alias]: Define __memrchr to memrchr.
97197         Guard weak_alias use with `#ifdef weak_alias'.
97198
97199 2000-10-21  Jim Meyering  <meyering@lucent.com>
97200
97201         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97202         (dir_name): Use dir_name_r.
97203         * lib/dirname.h (dir_name_r): Declare it.
97204
97205 2000-10-17  Jim Meyering  <meyering@lucent.com>
97206
97207         * lib/quote.h (PARAMS): Define and use.
97208         Reported by Akim Demaille.
97209
97210         * lib/getopt.c: Update from libc.
97211
97212 2000-10-16  Jim Meyering  <meyering@lucent.com>
97213
97214         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97215         setlocale.
97216         From Jan Fedak.
97217
97218 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97219
97220         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97221
97222 2000-09-25  Jim Meyering  <meyering@lucent.com>
97223
97224         * lib/md5.h (rol): Define (from GnuPG).
97225
97226         * lib/sha.c: Give credit (GnuPG) where due.
97227         (M): Use rol rather than open-coding it.
97228         Add a FIXME comment.
97229
97230 2000-09-21  Jim Meyering  <meyering@lucent.com>
97231
97232         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97233         Reported by Michael Stone.
97234
97235 2000-09-20  Jim Meyering  <meyering@lucent.com>
97236
97237         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97238         (noinst_HEADERS): Add sha.h.
97239         Based on code from Scott G. Miller and from GnuPG.
97240
97241 2000-09-18  Jim Meyering  <meyering@lucent.com>
97242
97243         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97244         LIBS. Otherwise, everyone ends up linking with -lelf for some
97245         configurations.
97246         Reported by Mike Stone.
97247
97248 2000-09-15  Jim Meyering  <meyering@lucent.com>
97249
97250         * lib/regex.c: Update from libc.
97251
97252 2000-09-10  Jim Meyering  <meyering@lucent.com>
97253
97254         * lib/getopt.c (_getopt_internal): Update from glibc.
97255
97256 2000-09-09  Jim Meyering  <meyering@lucent.com>
97257
97258         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97259         think it should be used as a general replacement for isascii.
97260         * lib/fnmatch.c: Likewise.
97261         * lib/mbswidth.c: Likewise
97262         * lib/regex.c: Likewise.
97263
97264         Don't use atoi.
97265         * lib/userspec.c: Include sys/param.h and limits.h.
97266         Include xstrtol.h.
97267         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97268         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97269         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97270         UID, GID.  Check range.
97271
97272 2000-09-06  Jim Meyering  <meyering@lucent.com>
97273
97274         * lib/getopt.c (_getopt_internal): Update from glibc.
97275
97276 2000-08-30  Jim Meyering  <meyering@lucent.com>
97277
97278         * lib/strftime.c: Merge in changes from GNU libc.
97279
97280 2000-08-26  Jim Meyering  <meyering@lucent.com>
97281
97282         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97283         * m4/fpending.m4: New file.
97284
97285 2000-08-26  Jim Meyering  <meyering@lucent.com>
97286
97287         * lib/closeout.c: Include "__fpending.h".
97288         (close_stdout_status): Return right away if there's nothing to flush.
97289
97290         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97291         * lib/__fpending.c: New file.
97292         * lib/__fpending.h: New file.
97293
97294 2000-08-20  Jim Meyering  <meyering@lucent.com>
97295
97296         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97297         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97298         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97299
97300 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97301
97302         Improve fileutils installation on systems where running
97303         programs (like install) can't be unlinked.
97304         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97305         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97306
97307 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97308
97309         Standardize on "memory exhausted" instead of "Memory exhausted"
97310         or "virtual memory exhausted".
97311         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97312         "virtual memory exhausted".
97313         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97314         our own message.
97315         * lib/userspec.c (parse_user_spec): Likewise.
97316         * lib/bumpalloc.h: comment fix
97317         * lib/same.c, userspec.c: Include xalloc.h.
97318
97319         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97320         not char *const and pointing to a constant array.
97321         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97322         (xrealloc): Comment fix.
97323
97324         * lib/userspec.c (parse_user_spec):
97325         Don't translate a message until just before returning,
97326         to avoid unnecessary translation.
97327
97328 2000-08-07  Jim Meyering  <meyering@lucent.com>
97329
97330         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97331         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97332         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97333         getgroups.c, gethostname.c, getopt.h, group-member.c,
97334         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97335         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97336         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97337         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97338         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97339         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97340         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97341         yesno.c: Back out Copyright date changes for each file with no change
97342         this year.  This eases coordination with other programs using the same
97343         source code modules.  From Paul Eggert.
97344
97345 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97346
97347         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97348         not char, for compatibility with glibc 2.1.3 strftime.c.
97349
97350 2000-08-03  Greg McGary  <greg@mcgary.org>
97351
97352         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97353         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97354         (EXTEND_BUFFER): Use them.
97355
97356 2000-08-01  Jim Meyering  <meyering@lucent.com>
97357
97358         * lib/dirname.c (ISSLASH): Define.
97359         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97360         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97361         both `\' and `/' may be use as path separators.
97362         Based on a patch from Prashant TR.
97363
97364 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97365
97366         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97367         slot vector a constant, since it might get modified.
97368
97369 2000-07-31  Jim Meyering  <meyering@lucent.com>
97370
97371         * lib/xmalloc.c: Use `virtual memory exhausted', not
97372         `Memory exhausted'.
97373         * lib/obstack.c (print_and_abort): Likewise.
97374
97375 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97376
97377         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97378         buffer, so that the caller can always quote one small
97379         component of a "memory exhausted" message in slot 0.
97380         From a suggestion by Jim Meyering.
97381
97382 2000-07-30  Jim Meyering  <meyering@lucent.com>
97383
97384         * lib/makepath.c (make_path): Quote the other instance, too.
97385
97386         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97387         (STATIC_BUF_SIZE): Define.
97388         (quotearg_n_options): Use only statically allocated storage when
97389         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97390         than STATIC_BUF_SIZE.
97391
97392 2000-07-29  Jim Meyering  <meyering@lucent.com>
97393
97394         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97395         * lib/dirname.c (dir_name): Likewise.
97396
97397         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97398         `/'.
97399
97400         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97401         (dir_name): Assert that there are no trailing slashes.
97402
97403 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97404
97405         * lib/mbswidth.h (mbswidth): Add a flags argument.
97406         (mbswidth): New declaration.
97407         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97408         * lib/mbswidth.c (mbswidth): Add a flags argument.
97409         (mbsnwidth): New function.
97410
97411 2000-07-24  Jim Meyering  <meyering@lucent.com>
97412
97413         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97414
97415 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97416
97417         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97418
97419 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97420
97421         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97422         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97423         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97424         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97425         invoke multibyte primitives.
97426
97427 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97428
97429         * lib/quotearg.c:
97430         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97431         so that mbstate_t is always defined.
97432
97433         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97434         be 1 in at least one GCC installation, and this configuration
97435         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97436         performance on hosts that have mbrtowc but have only unibyte
97437         locales, but I assume these hosts are rare.
97438
97439 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97440
97441         * lib/mbswidth.c (_XOPEN_SOURCE):
97442         Don't define; this causes problems on Solaris 7.
97443         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97444
97445 2000-07-23  Jim Meyering  <meyering@lucent.com>
97446
97447         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97448         too: getgrgid, getpwuid, getuid.
97449
97450 2000-07-23  Jim Meyering  <meyering@lucent.com>
97451
97452         * lib/basename.c (base_name): Add an assertion.
97453
97454 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97455
97456         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97457         shadow its mbsinit function.
97458
97459 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97460
97461         * lib/mbswidth.h: New file.
97462         * lib/mbswidth.c: New file.
97463         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97464         (noinst_HEADERS): Add mbswidth.h.
97465
97466 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97467
97468         * lib/config.charset: Add support for FreeBSD. Improve support for
97469         HP-UX and IRIX 6.
97470
97471 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97472
97473         * m4/mbswidth.m4: New file.
97474         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97475
97476 2000-07-15  Jim Meyering  <meyering@lucent.com>
97477
97478         * lib/makepath.c: Include quote.h.
97479         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97480         corresponding argument in a `quote (...)' call.
97481         Give better diagnostics.
97482
97483         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97484         (noinst_HEADERS): Add quote.h.
97485
97486         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97487         from tar's src/misc.c.
97488         * lib/quote.h: New file.  Prototypes for same.
97489
97490 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97491
97492         From a suggestion by Bruno Haible.
97493         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97494         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97495         to decide whether to define the BeOS workaround macro;
97496         this adjusts to the change to AC_MBSTATE_T.
97497
97498 2000-07-14  Jim Meyering  <meyering@lucent.com>
97499
97500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97501         jm_AC_TYPE_UINTMAX_T.
97502
97503 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97504
97505         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97506
97507         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97508         quotearg_buffer_restyled): Add support for
97509         clocale_quoting_style.  Undo previous change to
97510         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97511         and "{RIGHT QUOTATION MARK}" msgids.
97512
97513 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97514
97515         From a suggestion by Bruno Haible.
97516         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97517         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97518         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97519         and mbstate_t, to a single-part test that simply defines mbstate_t.
97520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97521         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97522
97523 2000-07-10  Jim Meyering  <meyering@lucent.com>
97524
97525         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97526
97527         * m4/gnu-source.m4: Output to confdefs.h directly.
97528         Suggestion from Akim Demaille.
97529
97530 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97531
97532         The old behavior of quoting `like this' doesn't look good with
97533         newer, ISO-style fonts.  See:
97534         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97535
97536         Instead, quote "like this" by default.  Let the translator
97537         tailor the locale-specific quoting behavior by providing
97538         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97539
97540         * lib/quotearg.c (N_): New macro.
97541         (gettext_default): New function.
97542         (quotearg_buffer_restyled): Use
97543         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97544         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97545
97546 2000-07-09  Jim Meyering  <meyering@lucent.com>
97547
97548         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97549         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97550
97551         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97552         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97553
97554 2000-07-09  Jim Meyering  <meyering@lucent.com>
97555
97556         * lib/Most files: Update copyright dates to include 2000.
97557
97558 2000-07-08  Jim Meyering  <meyering@lucent.com>
97559
97560         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97561         if not defined.
97562         (xgethostname): Remove now-unnecessary #ifdef.
97563         Move declaration of `err' into loop where it's used.
97564
97565 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97566         and Bruno Haible  <haible@clisp.cons.org>
97567
97568         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97569         only if the test for an object-type mbstate_t fails.  This
97570         prevents us from mistakenly reporting that mbstate_t is a
97571         system object type after we "#define mbstate_t int" to work
97572         around its lack.
97573
97574 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97575         and Bruno Haible  <haible@clisp.cons.org>
97576
97577         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97578
97579 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97580
97581         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97582         to strerror_r.
97583         Include <ctype.h> for use of isalpha.
97584
97585 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97586
97587         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97588         by allocating a larger buffer. Test the gethostname return value for
97589         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97590         returns an error and ENAMETOOLONG isn't defined.
97591
97592 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97593
97594         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97595         dimension.
97596
97597 2000-07-04  Jim Meyering  <meyering@lucent.com>
97598
97599         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97600         of the deprecated AC_CHECKING.
97601
97602 2000-07-04  Jim Meyering  <meyering@lucent.com>
97603
97604         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97605         Reported by Bruno Haible.
97606
97607 2000-07-04  Jim Meyering  <meyering@lucent.com>
97608
97609         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97610         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97611         lacks mbrtowc.
97612
97613 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97614
97615         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97616         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97617
97618 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97619         and Bruno Haible  <haible@clisp.cons.org>
97620
97621         * lib/quotearg.c (mbrtowc):
97622         Assign to *pwc, and return 1 only if result is nonzero.
97623         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97624
97625 2000-07-03  Jim Meyering  <meyering@lucent.com>
97626
97627         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97628
97629 2000-07-03  Jim Meyering  <meyering@lucent.com>
97630
97631         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97632         This is necessary to get a definition of e.g., UTMP_FILE on
97633         HP-UX 10.20.
97634         From Bob Proulx.
97635
97636 2000-07-02  Jim Meyering  <meyering@lucent.com>
97637
97638         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97639
97640         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97641         AC_LIBOBJ(function_name).
97642         * m4/chown.m4: Likewise.
97643         * m4/fnmatch.m4: Likewise.
97644         * m4/ftruncate.m4: Likewise.
97645         * m4/getgroups.m4: Likewise.
97646         * m4/getline.m4: Likewise.
97647         * m4/group-member.m4: Likewise.
97648         * m4/jm-macros.m4: Likewise.
97649         * m4/lstat.m4: Likewise.
97650         * m4/malloc.m4: Likewise.
97651         * m4/memcmp.m4: Likewise.
97652         * m4/nanosleep.m4: Likewise.
97653         * m4/putenv.m4: Likewise.
97654         * m4/realloc.m4: Likewise.
97655         * m4/regex.m4: Likewise.
97656         * m4/stat.m4: Likewise.
97657         * m4/strftime.m4: Likewise.
97658
97659 2000-07-02  Jim Meyering  <meyering@lucent.com>
97660
97661         * lib/quotearg.c (mbstate_t): Don't define here.
97662
97663 2000-07-02  Jim Meyering  <meyering@lucent.com>
97664
97665         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97666
97667 2000-07-01  Jim Meyering  <meyering@lucent.com>
97668
97669         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97670
97671 2000-07-01  Jim Meyering  <meyering@lucent.com>
97672
97673         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97674         problem.
97675
97676 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97677
97678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97679         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97680
97681 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97682
97683         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97684         per change in ../m4/ls-mntd-fs.m4.
97685         (read_filesystem_list): Ignore symbolic links.
97686
97687 2000-06-29  Jim Meyering  <meyering@lucent.com>
97688
97689         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97690         for declaration of strcmp.
97691
97692         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97693
97694         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97695         Avoid warning by casting result to `char *' to remove `const'.
97696
97697 2000-06-28  Jim Meyering  <meyering@lucent.com>
97698
97699         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97700         included by quotearg.c, for which we perform this test.  From
97701         Bruno Haible.
97702
97703 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97704
97705         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97706         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97707         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97708
97709 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97710
97711         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97712
97713 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97714
97715         savedir now sets errno on failure and invokes xmalloc to get memory.
97716         Fix a couple of other minor bugs while we're at it.
97717
97718         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97719         (NAMLEN): Remove macro.
97720         (malloc, realloc): Remove decls.
97721         (stpcpy): Likewise.
97722         ("xalloc.h"): Include.
97723         (NAME_SIZE_DEFAULT): New macro.
97724         (savedir): Use xmalloc / xrealloc to allocate memory.
97725         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97726         Skip "" directory entries.
97727         Use strlen to calculate directory entry length, since the old method
97728         is rarely used these days and isn't worth supporting.
97729         Don't use a pointer after freeing it.
97730         Check for integer overflow when calculating allocation size.
97731         Use memcpy to copy entries, instead of stpcpy.
97732         Set errno properly when returning NULL.
97733         Check for readdir error.
97734
97735 2000-06-26  Jim Meyering  <meyering@lucent.com>
97736
97737         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97738
97739 2000-06-25  Jim Meyering  <meyering@lucent.com>
97740
97741         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97742         Linux header bug when _XOPEN_SOURCE is defined to 500.
97743
97744 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97745
97746         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97747         deficiency.
97748
97749 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97750
97751         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97752         Include xalloc.h.
97753         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97754
97755 2000-06-24  Jim Meyering  <meyering@lucent.com>
97756
97757         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97758         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97759         for which strerror does return char*, but which lacks a conveniently
97760         accessible declaration of the function.  If the compile-test says
97761         strerror_r doesn't work, then resort to a `run'-test that works on
97762         BeOS and segfaults on DEC Unix.
97763
97764 2000-06-24  Jim Meyering  <meyering@lucent.com>
97765
97766         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97767
97768 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97769
97770         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97771         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97772
97773 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97774
97775         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97776         (mbrtowc, mbstate_t): Define substitutes if
97777         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97778         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97779         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97780
97781 2000-06-23  Jim Meyering  <meyering@lucent.com>
97782
97783         * m4/afs.m4: Add missing AC_MSG_RESULT.
97784         Reported by Bruno Haible.
97785
97786         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97787         Suggestion from Bruno Haible.
97788
97789 2000-06-23  Jim Meyering  <meyering@lucent.com>
97790
97791         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97792
97793 2000-06-21  Jim Meyering  <meyering@lucent.com>
97794
97795         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97796
97797 2000-06-21  Jim Meyering  <meyering@lucent.com>
97798
97799         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97800         (noinst_HEADERS): Add getstr.h.
97801
97802         * lib/getline.c (getstr): Move into a separate file.
97803         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97804         the following changes: new parameter, delim2; both delim[12]
97805         parameters have type `int', not `char'.  The latter would lose
97806         with 8-bit delimiters.
97807         * lib/getstr.h: New file.
97808
97809 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97810
97811         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97812         than 1024, return a memory chunk of least possible size, instead
97813         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97814         Use free/xmalloc instead of xrealloc to avoid copying for very long
97815         paths.
97816
97817 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97818
97819         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97820         the empty string.
97821
97822 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97823
97824         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97825         address, not strdup.  Include <stdlib.h> and don't declare free().
97826
97827 2000-06-19  Jim Meyering  <meyering@lucent.com>
97828
97829         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97830
97831 2000-06-18  Jim Meyering  <meyering@lucent.com>
97832
97833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97834
97835         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97836         `checking whether...' message to be consistent with that of the
97837         lstat test.
97838
97839 2000-06-18  Jim Meyering  <meyering@lucent.com>
97840
97841         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97842         Besides, these days every porting target provides a mkdir function.
97843
97844         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97845         needed. (this snippet comes from src/system.h).
97846
97847 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97848
97849         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97850
97851 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97852
97853         * lib/human.c (adjust_value): New function.
97854         (human_readable_inexact): Apply rounding style even when
97855         printing approximate values.
97856
97857 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97858
97859         * lib/human.c (human_readable_inexact): Allow an input block
97860         size that is not a multiple of the output block size, and vice versa.
97861         Reported by Piergiorgio Sartor.
97862
97863 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97864
97865         * lib/getdate.y (get_date): Apply relative times after time
97866         zone indicator, not before.  Reported by Todd A. Jacobs.
97867
97868 2000-06-13  Jim Meyering  <meyering@lucent.com>
97869
97870         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97871
97872         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97873
97874 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97875
97876         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97877
97878 2000-06-12  Jim Meyering  <meyering@lucent.com>
97879
97880         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97881         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97882         optional argument.
97883         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97884         the optional argument, `lib'.
97885
97886 2000-06-08  Jim Meyering  <meyering@lucent.com>
97887
97888         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97889
97890 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97891
97892         Rewrite largefile configuration so that we don't need to run
97893         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97894         AC_CANONICAL_HOST in configure.in -- jmm]
97895
97896         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97897         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97898         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97899         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97900         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97901         All uses changed.
97902         Instead of inspecting the output of getconf, try to compile the
97903         test program without and with the macro definition.
97904         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97905         for getconf.  Instead, check for the needed flags by compiling
97906         test programs.
97907
97908 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97909
97910         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97911
97912 2000-06-04  Jim Meyering  <meyering@lucent.com>
97913
97914         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97915         SunOS 4.1.4 for which gid_t is an unsigned type.
97916
97917 2000-06-03  Jim Meyering  <meyering@lucent.com>
97918
97919         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97920         now that autoconf requires that.
97921
97922         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97923         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97924         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97925
97926 2000-06-03  Jim Meyering  <meyering@lucent.com>
97927
97928         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97929
97930 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97931
97932         * m4/glibc21.m4: New file.
97933         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97934
97935 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97936
97937         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97938         newer, don't install charset.alias.
97939         * lib/config.charset: Change the Linux/glibc rules so they become empty
97940         on glibc-2.1 or newer.
97941
97942 2000-06-02  Jim Meyering  <meyering@lucent.com>
97943
97944         * lib/mountlist.c: Back out last change.  Instead, do this...
97945         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97946         me_dummy member using the same `ignore'-testing code.
97947         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97948         fs_type strings.
97949         From Mark D. Roth.
97950
97951 2000-05-29  Jim Meyering  <meyering@lucent.com>
97952
97953         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97954         mounts with the `ignore' attribute.  Based on a patch from
97955         Mark D. Roth.
97956
97957 2000-05-28  Jim Meyering  <meyering@lucent.com>
97958
97959         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97960         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97961         * m4/stat.m4: Likewise.
97962         * m4/lstat.m4: Likewise.
97963         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97964
97965         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97966         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97967
97968 2000-05-26  Jim Meyering  <meyering@lucent.com>
97969
97970         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97971
97972 2000-05-24  Jim Meyering  <meyering@lucent.com>
97973
97974         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97975         autoconf requires that.
97976         * m4/lib-check.m4: Likewise.
97977         * m4/jm-macros.m4: Likewise.
97978         * m4/strftime.m4: Likewise.
97979
97980         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97981         AC_CHECK_DECLS, now that autoconf requires that.
97982
97983 2000-05-22  Jim Meyering  <meyering@lucent.com>
97984
97985         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97986         * m4/lstat.m4: Likewise.
97987
97988 2000-05-22  Jim Meyering  <meyering@lucent.com>
97989
97990         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97991
97992 2000-05-20  Jim Meyering  <meyering@lucent.com>
97993
97994         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97995         (jm_PREREQ): Use it.
97996
97997 2000-05-18  Jim Meyering  <meyering@lucent.com>
97998
97999         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98000         back, too, since it may have been modified by allocate_entry.
98001         (hash_delete): Rewrite to use neither the assignment operator
98002         nor the comma operator in an if-expression.
98003
98004 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98005
98006         * lib/closeout.c:
98007         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98008         Remove; no longer needed.
98009         "quotearg.h": Add include.
98010         (file_name): Do not bother to explicitly initialize to NULL; it's less
98011         efficient on some hosts.
98012         (close_stdout_status): Remove test as to whether stdout was already
98013         closed; it breaks for the case "echo x | sort >&-".
98014         Quote file name colons.
98015         Do not assume that _("write error") lacks format strings.
98016
98017 2000-05-15  Jim Meyering  <meyering@lucent.com>
98018
98019         * lib/version-etc.c (version_etc_copyright): Update the copyright
98020         string used in all --version output.
98021
98022 2000-05-14  Jim Meyering  <meyering@lucent.com>
98023
98024         * lib/closeout.c (close_stdout_set_file_name): New function.
98025         (close_stdout_status): Use new file-scoped global.
98026         Return right away if fstat says the stdout file descriptor is invalid.
98027         * lib/closeout.h (close_stdout_set_file_name): Declare.
98028
98029 2000-05-10  Jim Meyering  <meyering@lucent.com>
98030
98031         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98032         (close_stdout_set_status): New function.
98033         * lib/closeout.h (close_stdout_set_status): Declare.
98034
98035 2000-05-09  Jim Meyering  <meyering@lucent.com>
98036
98037         * m4/gettext.m4: Rename this...
98038         * m4/libintl.m4: ...to this.
98039
98040 2000-05-08  Jim Meyering  <meyering@lucent.com>
98041
98042         * lib/long-options.c: Don't include closeout.h.
98043         (parse_long_options): Don't call close_stdout for --version.
98044
98045 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98046
98047         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98048         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98049         2.1.3 bug.  This avoids a clash when files like regex.c define
98050         _GNU_SOURCE.
98051
98052 2000-05-06  Jim Meyering  <meyering@lucent.com>
98053
98054         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98055         (AC_REPLACE_FUNCS): Add strnlen.
98056
98057         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98058         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98059
98060         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98061         AC_SEARCH_LIBS call for nanosleep.
98062         (LIB_NANOSLEEP): Set and AC_SUBST.
98063
98064 2000-05-06  Jim Meyering  <meyering@lucent.com>
98065
98066         * lib/strnlen.c: Undefine __strnlen and strnlen.
98067         [!weak_alias]: Define __strnlen to strnlen.
98068
98069         * lib/atexit.c: New file, from libiberty.
98070
98071 2000-05-06  Jim Meyering  <meyering@lucent.com>
98072
98073         * lib/closeout.c (close_stdout_status): Also check for errors on the
98074         stderr stream.
98075
98076 2000-05-05  Jim Meyering  <meyering@lucent.com>
98077
98078         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98079         AC_SEARCH_LIBS call for clock_gettime.
98080         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98081
98082         * m4/search-libs.m4: Update from autoconf.
98083
98084         su doesn't work on Solaris 2.6.
98085         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98086         <shadow.h>.  Reported by Dragos Harabor.
98087
98088 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98089
98090         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98091         memcpy instead of xmalloc, xrealloc, path_concat.
98092         (locale_charset): Treat empty environment variables as absent.
98093         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98094
98095 2000-05-04  Jim Meyering  <meyering@lucent.com>
98096
98097         * lib/getopt.c: Update from glibc.
98098         * lib/obstack.c: Likewise.
98099         * lib/obstack.h: Likewise.
98100         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98101         file
98102
98103         * lib/regex.h: Likewise.
98104         * lib/strndup.c: Likewise.
98105         * lib/strnlen.c: New file, from glibc.
98106
98107 2000-05-03  Jim Meyering  <meyering@lucent.com>
98108
98109         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98110
98111 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98112
98113         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98114         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98115         compile-time test, rather than inspecting host and OS, to
98116         decide whether to define _LARGEFILE_SOURCE.
98117
98118 2000-05-01  Jim Meyering  <meyering@lucent.com>
98119
98120         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98121
98122         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98123         Based on a patch from Bruno Haible.
98124
98125 2000-05-01  Jim Meyering  <meyering@lucent.com>
98126
98127         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98128
98129 2000-04-29  Jim Meyering  <meyering@lucent.com>
98130
98131         * lib/path-concat.c: Declare strdup only if it's not defined.
98132         * lib/canon-host.c: Likewise.
98133
98134 2000-04-28  Jim Meyering  <meyering@lucent.com>
98135
98136         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98137         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98138         is included first, then limits.h is included by locale.h by libintl.h.
98139         From John David Anglin.
98140
98141 2000-04-25  Jim Meyering  <meyering@lucent.com>
98142
98143         * lib/makepath.c (S_IRWXUGO): Define.
98144         (make_path): Always perform explicit chmod if MODE specifies any
98145         of the `special' permission bits.  Prompted by a bug report against
98146         install from Mate Wierdl and Joost van Baal.
98147
98148 2000-04-18  Jim Meyering  <meyering@lucent.com>
98149
98150         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98151         (jm_PREREQ): Use it.
98152
98153 2000-04-18  Jim Meyering  <meyering@lucent.com>
98154
98155         * lib/README: New file.
98156
98157         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98158         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98159
98160 2000-04-17  Jim Meyering  <meyering@lucent.com>
98161
98162         Get it right :-)
98163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98164         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98165         Suggestion from Akim Demaille.
98166
98167 2000-04-17  Jim Meyering  <meyering@lucent.com>
98168
98169         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98170         the definition of it to rpl_strftime also defined-away the system's
98171         declaration.
98172
98173 2000-04-15  Jim Meyering  <meyering@lucent.com>
98174
98175         Use `C' to denote so-called `contiguous' files, the same way
98176         that tar does.
98177         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98178         (ftypelet): Use S_ISCTG.
98179         From Michael Deutschmann.
98180
98181 2000-04-14  Jim Meyering  <meyering@lucent.com>
98182
98183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98184         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98185         clobbered.
98186
98187 2000-04-14  Jim Meyering  <meyering@lucent.com>
98188
98189         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98190
98191 2000-04-13  Jim Meyering  <meyering@lucent.com>
98192
98193         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98194         AH_VERBATIM to insert required #ifndef into config.h.in.
98195         Suggestion from Akim Demaille.
98196
98197 2000-04-12  Jim Meyering  <meyering@lucent.com>
98198
98199         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98200         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98201         Christian Krackowizer.
98202
98203         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98204         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98205         (AC_SYS_LARGEFILE): Require.
98206         (AM_C_PROTOTYPES): Require.
98207
98208 2000-04-08  Jim Meyering  <meyering@lucent.com>
98209
98210         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98211         names don't conflict.  Reported by Eli Zaretskii.
98212
98213 2000-04-07  Jim Meyering  <meyering@lucent.com>
98214
98215         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98216         sys/types.h, to work around system header problems on AIX 3.2.5.
98217         From Bruno Haible.
98218
98219 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98220
98221         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98222         bug.  Deal with the different error behavior of Irix iconv.
98223
98224 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98225
98226         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98227         IRIX if the installer said otherwise.
98228
98229 2000-04-05  Jim Meyering  <meyering@lucent.com>
98230
98231         Portability tweaks required for ultrix4.3.
98232         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98233         (jm_CHECK_DECLS): Add getutent to the list of functions.
98234         (_jm_DECL_HEADERS): Add utmpx.h.
98235         From John David Anglin.
98236
98237         * m4/strftime.m4: Back out the 2000-04-02 change.
98238         Instead of that change, simply undefine putenv in the test program.
98239
98240 2000-04-05  Jim Meyering  <meyering@lucent.com>
98241
98242         Portability tweaks required for ultrix4.3.
98243         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98244         getutent.
98245         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98246         * lib/canon-host.c: Declare strdup.
98247         * lib/path-concat.c: Likewise.
98248         From John David Anglin.
98249
98250 2000-04-04  Jim Meyering  <meyering@lucent.com>
98251
98252         Be more DOS 8.3-friendly.
98253         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98254         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98255         * lib/Makefile.am: Reflect renaming.
98256         Reported by Eli Zaretskii.
98257
98258         Use a temporary file name that won't clash with `charset.alias'
98259         in the DOS 8.3 name space.
98260         * lib/Makefile.am (charset_tmp): Define.
98261         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98262         (uninstall-local): Likewise.
98263         Reported by Eli Zaretskii.
98264
98265 2000-04-03  Jim Meyering  <meyering@lucent.com>
98266
98267         * m4/gettext.m4: Fix typo in comment.
98268
98269         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98270         textutils/configure.in).  Suggestion from Paul Eggert.
98271         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98272
98273 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98274
98275         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98276         variable in the shell rather than using putenv, which isn't
98277         portable.  This avoids the configure-time inter-test dependency
98278         on the potentially-renamed putenv function.
98279
98280 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98281
98282         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98283         before checking struct stat.st_blksize, so that
98284         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98285
98286 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98287
98288         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98289         since strftime.c uses HAVE_STRFTIME to decide whether to use
98290         the underlying strftime.
98291
98292 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98293
98294         * lib/time/strftime.c (my_strftime): Make sure we call the system
98295         strftime, not ourselves, when invoking the underlying strftime.
98296
98297 2000-03-24  Jim Meyering  <meyering@lucent.com>
98298
98299         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98300         (charset_alias): Define.
98301         (install-exec-local): Factor out common code.
98302         (uninstall-local): Split lines longer than 80.
98303         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98304         (SUFFIXES): Define.
98305         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98306         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98307
98308 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98309
98310         * lib/config.charset: Output a line containing "Packages using this
98311         file".
98312         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98313         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98314         ref-del.sed): New rules.
98315
98316 2000-03-17  Jim Meyering  <meyering@lucent.com>
98317
98318         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98319         Otherwise, include <strings.h>
98320
98321 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98322
98323         * lib/unicodeio.c (utf8_wctomb): New function.
98324         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98325         format instead of in UCS-4 with platform dependent endianness.
98326
98327 2000-03-10  Jim Meyering  <meyering@lucent.com>
98328
98329         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98330         From Marco Franzen.
98331
98332 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98333
98334         * lib/savedir.c (savedir): Work even if directory size is
98335         negative; this can happen with some screwy NFS configurations.
98336
98337 2000-03-06  Jim Meyering  <meyering@lucent.com>
98338
98339         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98340         if it's NULL (because we ran out of memory).  From Bruno Haible.
98341
98342 2000-03-05  Jim Meyering  <meyering@lucent.com>
98343
98344         * lib/localcharset.c ("path-concat.h"): Include.
98345         (get_charset_aliases): Use path_concat instead of ANSI string
98346         concatenation.
98347
98348         * lib/unicodeio.h (PARAMS): Define.
98349         Use it to guard prototype.
98350
98351 2000-03-04  Jim Meyering  <meyering@lucent.com>
98352
98353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98354         for lib/localcharset.c.
98355
98356 2000-03-04  Jim Meyering  <meyering@lucent.com>
98357
98358         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98359         installing into it.
98360         (uninstall-local): Uncomment this rule so `make distcheck' works
98361         once again.
98362
98363         * lib/unicodeio.c (<errno.h>): Include it.
98364         (errno): Declare if not defined.
98365
98366         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98367
98368         * lib/config.charset: New version, incorporating remarks from a linux
98369         i18n mailing list.  From Bruno Haible.
98370
98371 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98372
98373         * m4/codeset.m4: New file.
98374         * m4/iconv.m4: New file.
98375         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98376
98377 2000-03-03  Jim Meyering  <meyering@lucent.com>
98378
98379         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98380
98381 2000-03-02  Jim Meyering  <meyering@lucent.com>
98382
98383         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98384         the messages come out on separate lines.
98385
98386         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98387         rather than jm_CHECK_DECLARATIONS.
98388         * m4/decl.m4: Remove now-unused file.
98389
98390         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98391         geteuid.
98392
98393 2000-03-02  Jim Meyering  <meyering@lucent.com>
98394
98395         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98396
98397 2000-03-01  Jim Meyering  <meyering@lucent.com>
98398
98399         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98400         * lib/unicodeio.c: Likewise.
98401
98402 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98403
98404         * lib/config.charset: New file.
98405         * lib/localcharset.c: New file.
98406         * lib/unicodeio.h, lib/unicodeio.c: New files.
98407         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98408         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98409         (noinst_HEADERS): Add unicodeio.h.
98410         (all-local, install-exec-local, charset.alias): New targets.
98411
98412 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98413
98414         * lib/quotearg.c (ALERT_CHAR): New macro.
98415         (quotearg_buffer_restyled): Use it.
98416
98417 2000-02-27  Jim Meyering  <meyering@lucent.com>
98418
98419         * m4/check-decl.m4: Add getenv to the list.
98420
98421 2000-02-27  Jim Meyering  <meyering@lucent.com>
98422
98423         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98424         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98425
98426         * lib/backupfile.c: Guard inclusion of stdlib.h with
98427         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98428         Declare malloc if needed.
98429
98430         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98431         `#ifndef HAVE_DECL..'
98432         now that autoconf always defines the HAVE_DECL_ symbols.
98433         * lib/human.c: Likewise.
98434         * lib/same.c: Likewise.
98435         * lib/strtoumax.c: Likewise.
98436
98437         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98438         declaration check was not run.
98439         * lib/hash.c: Likewise.
98440         * lib/human.c: Likewise.
98441         * lib/same.c: Likewise.
98442         * lib/strtoumax.c: Likewise.
98443
98444         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98445         `.', then first look up the entire `.'-containing string as a login
98446         name.
98447
98448 2000-02-23  Jim Meyering  <meyering@lucent.com>
98449
98450         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98451         in place of my hack.
98452
98453 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98454
98455         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98456         (textint): New typedef.
98457         (parser_control): Member year changed from int to textint.
98458         All uses changed.
98459         (YYSTYPE): Removed; replaced by %union with int and textint members.
98460         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98461         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98462         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98463         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98464         (date, number, to_year): Use width of number in digits, not its value,
98465         to determine whether it's a 2-digit year, or a 2-digit time.
98466         (yylex): Store number of digits of numeric tokens.
98467         Reported by John Kendall.
98468
98469         (parser_control): Changed from struct parser_control to typedef (for
98470         consistency).  All uses changed.
98471
98472         (tID): Removed; not used.
98473         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98474
98475 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98476
98477         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98478         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98479
98480 2000-02-12  Jim Meyering  <meyering@lucent.com>
98481
98482         * lib/userspec.c (ISDIGIT): Define it.
98483         (isdigit): Remove definition.
98484         (is_number): Use ISDIGIT, not isdigit.
98485         <libintl.h>: Include.
98486         (_ and N_): Define.
98487         (parse_user_spec): Mark translatable strings.
98488
98489 2000-02-10  Jim Meyering  <meyering@lucent.com>
98490
98491         With these changes, nanosleep.[ch] are finally enough like the other
98492         lib/* replacement files to compile on a few more losing systems.
98493
98494         * lib/nanosleep.h: Don't include config.h.
98495         Remove prototype from declaration of nanosleep.
98496         (PARAMS): Remove now-unneeded definition.
98497         * lib/nanosleep.c: #undef nanosleep.
98498         (rpl_nanosleep): Rename from nanosleep.
98499
98500 2000-02-10  Jim Meyering  <meyering@lucent.com>
98501
98502         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98503         gnu_nanosleep to rpl_nanosleep.
98504
98505 2000-02-09  Jim Meyering  <meyering@lucent.com>
98506
98507         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98508         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98509
98510 2000-02-08  Akim Demaille  <akim@epita.fr>
98511
98512         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98513         `[' and `]' and remove uses of `changequote'.
98514         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98515         (AC_SYS_LARGEFILE): Likewise.
98516         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98517         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98518         of changequote.
98519         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98520         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98521         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98522         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98523
98524 2000-02-05  Jim Meyering  <meyering@lucent.com>
98525
98526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98527         Remove explicit use of AC_HEADER_TIME.  It is required by
98528         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98529         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98530         in autoconf whereby the expansion of the latter ended up preceding
98531         the expansion of its prerequisite, AC_HEADER_TIME.
98532         Reported by Volker Borchert.
98533
98534 2000-02-03  Jim Meyering  <meyering@lucent.com>
98535
98536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98537
98538 2000-02-03  Jim Meyering  <meyering@lucent.com>
98539
98540         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98541         rather than with `#if HAVE_UTMPNAME'.
98542
98543 2000-02-02  Jim Meyering  <meyering@lucent.com>
98544
98545         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98546         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98547         Reported by Eli Zaretskii.
98548
98549 2000-02-01  Jim Meyering  <meyering@lucent.com>
98550
98551         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98552
98553 2000-01-31  Jim Meyering  <meyering@lucent.com>
98554
98555         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98556         functions.  Add the time.h and sys/time.h headers along with the
98557         AC_REQUIRE'ment of AC_HEADER_TIME.
98558
98559 2000-01-31  Jim Meyering  <meyering@lucent.com>
98560
98561         * lib/nanosleep.h (nanosleep): Guard declaration with
98562         `#if ! HAVE_DECL_NANOSLEEP'.
98563         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98564         the declaration in that vendor's sys/timers.h.
98565         Reported by Christian Krackowizer.
98566
98567         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98568         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98569         (ISPRINT): Likewise.
98570         Reported by Tom Tromey.
98571
98572 2000-01-30  Jim Meyering  <meyering@lucent.com>
98573
98574         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98575
98576         * m4/prereq.m4 (utmp_includes): Define.
98577         Check for ut_user and ut_name members in both struct utmpx
98578         and struct utmp.
98579
98580 2000-01-30  Jim Meyering  <meyering@lucent.com>
98581
98582         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98583         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98584         header files where only utmpx.ut_user is declared.
98585
98586         * lib/readutmp.h (UT_USER): Define.
98587
98588 2000-01-29  Jim Meyering  <meyering@lucent.com>
98589
98590         * m4/lib-check.m4: New file containing library-related checks from
98591         fileutils and sh-utils (textutils had none).
98592
98593 2000-01-28  Jim Meyering  <meyering@lucent.com>
98594
98595         * m4/perl.m4: Change format of warning message to look more like that
98596         from the missing script.  Suggestion from François Pinard.
98597
98598 2000-01-25  Jim Meyering  <meyering@lucent.com>
98599
98600         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98601         well as time.h in the compile check.
98602         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98603         Fix typo in cross-compiling case: s/yes/no/.
98604
98605 2000-01-23  Jim Meyering  <meyering@lucent.com>
98606
98607         * m4/jm-macros.m4: Move df-related tests here from
98608         fileutils/configure.in
98609
98610         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98611         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98612
98613         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98614         s/space/ac_fsusage_space/.
98615         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98616
98617         * m4/ftruncate.m4: New file (derived from part of
98618         fileutils/configure.in).
98619         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98620         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98621
98622         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98623         AC_SUBST these here, rather than just in sh-util/configure.in, so
98624         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98625         all the same.
98626         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98627         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98628         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98629         (AC_SUBST(POW_LIBM)): Likewise.
98630         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98631
98632 2000-01-23  Jim Meyering  <meyering@lucent.com>
98633
98634         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98635         obstack.c.
98636
98637 2000-01-22  Jim Meyering  <meyering@lucent.com>
98638
98639         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98640
98641         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98642
98643         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98644         configure.in
98645         (AC_CHECK_HEADERS): Likewise for sh-utils.
98646         (AC_CHECK_HEADERS): Likewise for textutils.
98647         Merge the three lists of headers.
98648
98649         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98650         from fileutils' configure.in.
98651
98652         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98653         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98654         check-decl.m4.
98655
98656         * m4/check-decl.m4: Use #if rather than #ifdef.
98657         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98658         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98659         (_jm_DECL_HEADERS): Define new function.
98660         (jm_CHECK_DECLARATIONS): Require it.
98661
98662 2000-01-22  Jim Meyering  <meyering@lucent.com>
98663
98664         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98665         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98666         Required for some AIX systems.  Reported by Christian Krackowizer.
98667         [TESTING] (main): New function.
98668
98669         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98670         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98671         letters.
98672
98673         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98674         iswprint.
98675
98676         * lib/strverscmp.c (ISDIGIT): Define.
98677         (strverscmp): Use ISDIGIT, not isdigit.
98678
98679 2000-01-19  Jim Meyering  <meyering@lucent.com>
98680
98681         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98682         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98683         defines `struct timespec' in <sys/time.h>
98684
98685         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98686         Thanks to Akim for explaining.
98687
98688 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98689
98690         * lib/nanosleep.c (nanosleep):
98691         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98692         POSIX.1 doesn't require SA_INTERRUPT and some systems
98693         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98694         it's been part of POSIX.1 since day 1 (in 1988).
98695
98696 2000-01-17  Jim Meyering  <meyering@lucent.com>
98697
98698         * lib/interlock: Remove unused file.  Reported by François Pinard.
98699
98700 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98701
98702         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98703         alert, backslash, formfeed, and vertical tab unnecessarily in
98704         shell quoting style.
98705
98706 2000-01-16  Jim Meyering  <meyering@lucent.com>
98707
98708         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98709         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98710         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98711         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98712
98713 2000-01-16  Jim Meyering  <meyering@lucent.com>
98714
98715         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98716         because the latter didn't work.
98717
98718 2000-01-15  Jim Meyering  <meyering@lucent.com>
98719
98720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98721         (AC_REPLACE_FUNCS): Add memcpy and memset.
98722         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98723         Add strpbrk.
98724         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98725
98726 2000-01-12  Jim Meyering  <meyering@lucent.com>
98727
98728         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98729         (jm_PREREQ): Use it.
98730         (jm_PREREQ_READUTMP): New macro.
98731         (jm_PREREQ): Use it.
98732
98733 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98734
98735         Quote multibyte characters correctly.
98736         * m4/c-bs-a.m4: New file.
98737         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98738         (jm_PREREQ): Use it.
98739
98740 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98741
98742         * m4/uintmax_t.m4: Port to autoconf 2.13.
98743
98744 2000-01-08  Jim Meyering  <meyering@ascend.com>
98745
98746         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98747         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98748
98749 2000-01-04  Jim Meyering  <meyering@ascend.com>
98750
98751         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98752         jm_STRUCT_DIRENT_D_TYPE.
98753         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98754         jm_STRUCT_DIRENT_D_INO.
98755         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98756         jm_STRUCT_UTIMBUF.
98757         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98758         renamings.
98759         * m4/utime.m4: Likewise.
98760
98761         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98762         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98763
98764 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98765
98766         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98767         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98768
98769 2000-01-02  Jim Meyering  <meyering@ascend.com>
98770
98771         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98772         remember if this is necessary.
98773
98774 1999-12-26  Jim Meyering  <meyering@ascend.com>
98775
98776         * m4/jm-macros.m4: Use it here.
98777         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98778
98779 1999-12-23  Jim Meyering  <meyering@ascend.com>
98780
98781         * m4/jm-macros.m4: Check for clock_gettime (moved from
98782         fileutils/configure.in)
98783         Check for gettimeofday.
98784
98785 1999-12-20  Jim Meyering  <meyering@ascend.com>
98786
98787         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98788         autoconf-2.14a-1999-12-20.
98789
98790 1999-12-19  Jim Meyering  <meyering@ascend.com>
98791
98792         * m4/lstat-slash.m4: New file.
98793         * m4/jm-macros.m4: Use the new macro:
98794         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98795
98796 1999-12-07  Jim Meyering  <meyering@ascend.com>
98797
98798         * m4/perl.m4: Require that File::Compare be available, too.
98799         Too many systems seem to lack it.
98800
98801         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98802         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98803
98804 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98805
98806         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98807         problem with the QNX 4.25 shell, which doesn't propagate exit
98808         status of failed commands inside shell assignments.
98809
98810 1999-11-17  Jim Meyering  <meyering@ascend.com>
98811
98812         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98813
98814 1999-11-07  Jim Meyering  <meyering@ascend.com>
98815
98816         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98817
98818 1999-11-06  Jim Meyering  <meyering@ascend.com>
98819
98820         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98821         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98822
98823 1999-11-05  Jim Meyering  <meyering@ascend.com>
98824
98825         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98826         configure.in of textutils, fileutils, and sh-utils into this one
98827         (shared between those packages) file.
98828         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98829         AC_STRUCT_ST_BLKSIZE.
98830
98831 1999-11-03  Jim Meyering  <meyering@ascend.com>
98832
98833         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98834         of AC_CHECK_TYPE checks includes unistd.h.
98835         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98836         Suggestion from Akim Demaille.
98837
98838 1999-10-30  Jim Meyering  <meyering@ascend.com>
98839
98840         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98841         m4-quoted string.
98842         * m4/ls-mntd-fs.m4: Likewise.
98843         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98844         * m4/jm-winsz1.m4: Likewise.
98845
98846         * m4/const.m4: Remove file, since the fix made it into the experimental
98847         version of autoconf.
98848         * m4/mktime.m4: Likewise.
98849
98850         * m4/check-type.m4: Remove file, now that the latest version of
98851         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98852
98853         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98854         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98855         AC_CHECK_TYPE.
98856
98857 1999-10-04  Jim Meyering  <meyering@ascend.com>
98858
98859         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98860
98861 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98862
98863         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98864         2.95.1 bug with HP-UX 10.20.
98865
98866 1999-09-17  Jim Meyering  <meyering@ascend.com>
98867
98868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98869         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98870         due to missing strdup (against sh-utils-2.0).
98871
98872 1999-08-29  Jim Meyering  <meyering@ascend.com>
98873
98874         * m4/jm-macros.m4: Require jm_BISON.
98875         * m4/bison.m4: New file.
98876
98877 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98878
98879         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98880         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98881
98882 1999-08-05  Jim Meyering  <meyering@ascend.com>
98883
98884         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98885         to avoid conflicts with `conftest' on 8+3 filesystems.
98886         Suggestion from Eli Zaretskii.
98887
98888 1999-08-04  Jim Meyering  <meyering@ascend.com>
98889
98890         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98891         fileutils and sh-utils (textutils's getline test was inadequate).
98892         (AM_FUNC_GETLINE): Run this test.
98893         (AC_CHECK_FUNCS): Check for getdelim.
98894         Reported by Bob Proulx.
98895
98896 1999-08-02  Jim Meyering  <meyering@ascend.com>
98897
98898         * m4/jm-macros.m4: Add a comment.
98899
98900 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98901
98902         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98903         <inttypes.h> defines strtoumax as a macro (and not as a
98904         function).
98905
98906 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98907
98908         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98909         that we can shift, multiply and divide unsigned long long
98910         values; Ultrix cc can't do it.
98911
98912 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98913
98914         * m4/mktime.m4: New file, which is a preview of what should appear
98915         in the next public autoconf release.
98916
98917 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98918
98919         * m4/lfs.m4: Remove this file.
98920         * m4/largefile.m4: New file.  It contains the old contents of
98921         lfs.m4, except that all names with prefix AC_LFS have been
98922         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98923         compatible with future autoconf versions.  Also, some minor m4
98924         quoting problems have been fixed.
98925
98926 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98927
98928         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98929         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98930         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98931         and simplify the shell code.
98932
98933 1999-08-01  Jim Meyering  <meyering@ascend.com>
98934
98935         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98936         m4.
98937
98938 1999-07-20  Jim Meyering  <meyering@ascend.com>
98939
98940         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98941
98942 1999-07-15  Jim Meyering  <meyering@ascend.com>
98943
98944         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98945
98946 1999-05-22  Jim Meyering  <meyering@ascend.com>
98947
98948         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98949
98950 1999-05-20  Jim Meyering  <meyering@ascend.com>
98951
98952         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98953         Add a colon after each `then' in case $4 is empty.
98954
98955 1999-05-16  Jim Meyering  <meyering@ascend.com>
98956
98957         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98958
98959 1999-05-10  Jim Meyering  <meyering@ascend.com>
98960
98961         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98962
98963         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98964         AC_FUNC_MKTIME.
98965
98966 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98967
98968         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98969
98970 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98971
98972         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98973         not CPPFLAGS, so that linking works correctly in IRIX.
98974
98975 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98976
98977         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98978
98979 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98980
98981         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98982         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98984         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98985         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98986
98987         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98988
98989 1999-04-20  Jim Meyering  <meyering@ascend.com>
98990
98991         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98992         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98993         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98994
98995 1999-04-18  Jim Meyering  <meyering@ascend.com>
98996
98997         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98998         * m4/jm-macros.m4: Use it.
98999
99000 1999-04-06  Jim Meyering  <meyering@ascend.com>
99001
99002         * m4/strftime.m4: Remove test for %f.
99003
99004 1999-03-29  Jim Meyering  <meyering@ascend.com>
99005
99006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99007         superset of the AC_TYPE_* checks in the textutils, fileutils,
99008         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99009         AC_TYPE_PID_T.
99010
99011 1999-03-28  Jim Meyering  <meyering@ascend.com>
99012
99013         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99014         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99015         replaced e.g., in the *.sh files of the sh-utils.
99016
99017 1999-03-20  Jim Meyering  <meyering@ascend.com>
99018
99019         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99020         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99021         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99022
99023 1999-03-19  Jim Meyering  <meyering@ascend.com>
99024
99025         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99026
99027 1999-03-12  Jim Meyering  <meyering@ascend.com>
99028
99029         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99030
99031 1999-03-07  Jim Meyering  <meyering@ascend.com>
99032
99033         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99034         declared.
99035
99036 1999-02-17  Jim Meyering  <meyering@ascend.com>
99037
99038         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99039         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99040
99041 1999-02-07  Jim Meyering  <meyering@ascend.com>
99042
99043         * m4/group-member.m4: New file -- extracted from sh-utils'
99044         configure.in.
99045
99046         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99047         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99048
99049 1999-02-06  Jim Meyering  <meyering@ascend.com>
99050
99051         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99052         * m4/fnmatch.m4: Likewise.
99053         * m4/getgroups.m4: Likewise.
99054         * m4/lstat.m4: Likewise.
99055         * m4/malloc.m4: Likewise.
99056         * m4/putenv.m4: Likewise.
99057         * m4/realloc.m4: Likewise.
99058         * m4/regex.m4: Likewise.
99059         * m4/stat.m4: Likewise.
99060         * m4/strftime.m4: Likewise.
99061         Suggestion from Alain Magloire.
99062
99063         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99064         * m4/fnmatch.m4: Likewise.
99065         * m4/getgroups.m4: Likewise.
99066         * m4/getline.m4: Likewise.
99067         * m4/lstat.m4: Likewise.
99068         * m4/malloc.m4: Likewise.
99069         * m4/memcmp.m4: Likewise.
99070         * m4/putenv.m4: Likewise.
99071         * m4/realloc.m4: Likewise.
99072         * m4/regex.m4: Likewise.
99073         * m4/stat.m4: Likewise.
99074         * m4/strftime.m4: Likewise.
99075         Suggestion from Alain Magloire.
99076
99077         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99078         an argument.
99079
99080         * m4/regex.m4: Add a run-time Test for proper operation of
99081         re_compile_pattern.
99082
99083 1999-01-31  Jim Meyering  <meyering@ascend.com>
99084
99085         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99086
99087 1999-01-30  Jim Meyering  <meyering@ascend.com>
99088
99089         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99090
99091         * m4/jm-mktime.m4: Make this a wrapper around the official
99092         AM_FUNC_MKTIME rather than my private copy, now that the official one
99093         is up to date.
99094         * m4/mktime.m4: Remove file.
99095
99096         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99097         * m4/uptime.m4: Likewise.
99098         * m4/uintmax_t.m4: Likewise.
99099
99100 1999-01-28  Jim Meyering  <meyering@ascend.com>
99101
99102         * m4/jm-macros.m4: Use jm_AFS.
99103         * m4/afs.m4: New file (from fileutils' configure.in).
99104
99105         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99106         * m4/chown.m4: Likewise.
99107         * m4/d-ino.m4: Likewise.
99108         * m4/d-type.m4: Likewise.
99109         * m4/fnmatch.m4: Likewise.
99110         * m4/getgroups.m4: Likewise.
99111         * m4/gettext.m4: Likewise.
99112         * m4/jm-mktime.m4: Likewise.
99113         * m4/jm-winsz2.m4: Likewise.
99114         * m4/lcmessage.m4: Likewise.
99115         * m4/ls-mntd-fs.m4: Likewise.
99116         * m4/malloc.m4: Likewise.
99117         * m4/memcmp.m4: Likewise.
99118         * m4/putenv.m4: Likewise.
99119         * m4/realloc.m4: Likewise.
99120         * m4/st_mtim.m4: Likewise.
99121         * m4/strftime.m4: Likewise.
99122
99123 1999-01-16  Jim Meyering  <meyering@ascend.com>
99124
99125         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99126         (ARGMATCH_DIE_DECL): Define.
99127
99128 1999-01-12  Jim Meyering  <meyering@ascend.com>
99129
99130         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99131         Reported by Lars Hecking.
99132
99133 1999-01-10  Jim Meyering  <meyering@ascend.com>
99134
99135         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99136         gross kludge.
99137         * m4/inttypes_h.m4: Likewise.
99138         * m4/lstat.m4: Likewise.
99139         * m4/malloc.m4: Likewise.
99140         * m4/readdir.m4: Likewise.
99141         * m4/realloc.m4: Likewise.
99142         * m4/st_dm_mode.m4: Likewise.
99143         * m4/stat.m4: Likewise.
99144         * m4/utimbuf.m4: Likewise.
99145         * m4/utimes.m4: Likewise.
99146
99147         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99148         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99149         comments in config.h.in are meaningful.
99150
99151         * m4/jm-macros.m4: Require autoconf-2.13 here.
99152
99153         * m4/regex.m4: By default, don't use the included regex.c on systems
99154         with glibc 2.  Suggestion from Uli Drepper.
99155
99156 1999-01-02  Jim Meyering  <meyering@ascend.com>
99157
99158         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99159
99160 1998-12-18  Jim Meyering  <meyering@ascend.com>
99161
99162         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99163         Based on a suggestion from Lars Hecking.
99164
99165 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99166
99167         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99168
99169 1998-11-16  Jim Meyering  <meyering@ascend.com>
99170
99171         * m4/lfs.m4: Double-quote the `uname...` expression.
99172
99173 1998-11-14  Jim Meyering  <meyering@ascend.com>
99174
99175         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99176         * m4/stat.m4: Likewise.
99177
99178 1998-11-03  Jim Meyering  <meyering@ascend.com>
99179
99180         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99181         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99182
99183 1998-10-18  Jim Meyering  <meyering@ascend.com>
99184
99185         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99186
99187 1998-10-17  Jim Meyering  <meyering@ascend.com>
99188
99189         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99190         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99191         calls for those previously hard-coded headers.  Instead, take a new
99192         parameter.
99193         (jm_CHECK_DECLARATIONS): Reflect interface change.
99194         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99195         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99196
99197         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99198
99199 1998-10-14  Jim Meyering  <meyering@ascend.com>
99200
99201         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99202         instead of "TZ=America/Vancouver".  From Paul Eggert.
99203
99204 1998-10-11  Jim Meyering  <meyering@ascend.com>
99205
99206         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99207         This adds a test for a recently added compatibility fix for mktime.c.
99208         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99209
99210 1998-09-27  Jim Meyering  <meyering@ascend.com>
99211
99212         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99213
99214         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99215         ../configure.in, including a change from Gordon Matzigkeit to allow
99216         cross-compiling for the Hurd.
99217
99218         * m4/glibc.m4: New file/macro to test for the GNU C Library
99219         versions 1 and 2.  From Gordon Matzigkeit.
99220         Indent.
99221
99222 1998-09-21  Jim Meyering  <meyering@ascend.com>
99223
99224         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99225
99226 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99227
99228         Port nanosecond-resolution times to UnixWare 2.1.2 and
99229         pedantic Solaris 2.6.
99230
99231         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99232         AC_STRUCT_ST_MTIM.
99233         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99234         Generate name of ns member, instead of just 1 or undef.
99235         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99236
99237 1998-08-15  Jim Meyering  <meyering@ascend.com>
99238
99239         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99240         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99241         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99242         instead of jm_TYPE_SSIZE_T.
99243
99244 1998-08-12  Jim Meyering  <meyering@ascend.com>
99245
99246         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99247
99248 1998-08-02  Jim Meyering  <meyering@ascend.com>
99249
99250         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99251         in acconfig.h manually.
99252
99253 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99254
99255         * m4/st_mtim.m4: New file.
99256
99257 1998-07-28  Jim Meyering  <meyering@ascend.com>
99258
99259         * m4/utimes.m4: Undef stat.
99260
99261 1998-07-25  Jim Meyering  <meyering@ascend.com>
99262
99263         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99264         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99265
99266 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99267
99268         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99269         uid and gid actually remain unchanged.
99270
99271 1998-07-07  Jim Meyering  <meyering@ascend.com>
99272
99273         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99274
99275 1998-07-04  Jim Meyering  <meyering@ascend.com>
99276
99277         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99278         to prove that this macro can be used in packages without regex.c.
99279
99280 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99281
99282         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99283         is to be used.
99284
99285 1998-07-03  Jim Meyering  <meyering@ascend.com>
99286
99287         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99288
99289         * m4/gettext.m4: New file -- from gettext-0.10.35.
99290         * m4/lcmessage.m4: Likewise.
99291         * m4/progtest.m4: Likewise.
99292
99293         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99294         * m4/jm-macros.m4: Require the new macro.
99295
99296 1998-06-29  Jim Meyering  <meyering@ascend.com>
99297
99298         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99299         for the definition of NGROUPS (used in a system header included
99300         by sys/mount.h).
99301
99302 1998-06-28  Jim Meyering  <meyering@ascend.com>
99303
99304         * m4/ls-mntd-fs.m4: New file.
99305         * m4/fstypename.m4: New file.
99306
99307         * m4/jm-macros.m4: Require the new macro.
99308         * m4/jm-glibc-io.m4: New file.
99309
99310 1998-05-19  Jim Meyering  <meyering@ascend.com>
99311
99312         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99313         * m4/lchown.m4: New file.
99314
99315         * m4/Makefile.am.in: New file.
99316         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99317
99318 1998-05-14  Jim Meyering  <meyering@ascend.com>
99319
99320         * m4/Makefile.am (EXTRA_DIST): Add them.
99321         * m4/jm-macros.m4: New file.
99322         * m4/utimbuf.m4: New file.
99323
99324 1998-05-12  Jim Meyering  <meyering@ascend.com>
99325
99326         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99327
99328 1998-05-11  Jim Meyering  <meyering@ascend.com>
99329
99330         * m4/isc-posix.m4: New file.
99331
99332 1998-05-10  Jim Meyering  <meyering@ascend.com>
99333
99334         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99335
99336 1998-05-09  Jim Meyering  <meyering@ascend.com>
99337
99338         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99339         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99340         with automake.
99341
99342         * m4/ssize_t.m4: New file.
99343         * m4/mktime.m4: Remove file -- the new automake has this now.
99344
99345 1998-04-26  Jim Meyering  <meyering@ascend.com>
99346
99347         * m4/assert.m4: New file.
99348         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99349
99350 1998-04-05  Jim Meyering  <meyering@ascend.com>
99351
99352         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99353         (jm_PREREQ): Use it here.
99354
99355 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99356
99357         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99358         in acconfig.h.
99359
99360 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99361
99362         * m4/prereq.m4: New file.
99363         * m4/error.m4: New file.
99364         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99365
99366 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99367
99368         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99369         cache-check for the same variable -- that defeated the purpose of
99370         the test; the test program was never run.  This was a problem only
99371         on systems with losing getline functions -- HP-UX 10.20 is one.
99372         Reported by Bjorn Helgaas.
99373
99374 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99375
99376         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99377
99378 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99379
99380         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99381
99382         * m4/const.m4: New file.  Use an initializer in this declaration
99383         typedef int charset[2]; const charset x;
99384         Reported by Bob Glickstein.
99385
99386 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99387
99388         * m4/chown.m4: Fix reversed types on -1 args to chown.
99389         From Kaveh Ghazi.
99390
99391 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99392
99393         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99394         Add lseek and memchr.
99395
99396         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99397         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99398         have a 20-character limit on names.
99399
99400 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99401
99402         * m4/inttypes_h.m4: New file.
99403         * m4/uintmax_t.m4: New file.
99404         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99405
99406
99407         -----
99408
99409         Local Variables:
99410         coding: utf-8
99411         End:
99412
99413         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99414
99415         Copying and distribution of this file, with or without
99416         modification, are permitted provided the copyright notice
99417         and this notice are preserved.